/* ========== VARIABLES ========== */
:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #3730A3;
    --accent: #06B6D4;
    --bg: #0B0F1A;
    --bg-card: #111827;
    --bg-card-hover: #1F2937;
    --text: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-dim: #6B7280;
    --border: #1F2937;
    --gradient: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --gradient-text: linear-gradient(135deg, #818CF8 0%, #22D3EE 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
    --max-w: 1200px;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
    font-family: inherit; font-size: 1rem;
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 16px; width: 100%; outline: none;
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }

/* ========== UTILITIES ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 8px; font-weight: 600;
    font-size: 0.95rem; transition: all 0.2s; gap: 8px;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient); color: white;
    box-shadow: 0 0 20px rgba(79,70,229,0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(79,70,229,0.5);
    transform: translateY(-1px);
}
.btn-outline {
    border: 1px solid var(--border); color: var(--text);
    background: transparent;
}
.btn-outline:hover { border-color: var(--primary); background: rgba(79,70,229,0.1); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-nav {
    background: var(--gradient); color: white; padding: 8px 20px;
    border-radius: 8px; font-size: 0.875rem;
}

/* ========== NAV ========== */
#navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(11,15,26,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(31,41,55,0.5);
    transition: all 0.3s;
}
.nav-container {
    max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--primary-light); font-size: 1.2rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
    transition: all 0.2s;
}
.lang-switch:hover { border-color: var(--primary); color: var(--text); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); transition: all 0.3s; }

/* ========== HERO ========== */
#hero {
    position: relative; padding: 160px 0 100px; overflow: hidden;
    min-height: 85vh; display: flex; align-items: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79,70,229,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(6,182,212,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: rgba(79,70,229,0.15); border: 1px solid rgba(79,70,229,0.3);
    font-size: 0.85rem; font-weight: 500; color: var(--primary-light);
    margin-bottom: 24px;
}
#hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--text-muted); max-width: 640px;
    margin: 0 auto 40px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats {
    display: flex; justify-content: center; gap: 48px; padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.85rem; color: var(--text-dim); }

/* ========== SECTIONS ========== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-block; padding: 4px 14px; border-radius: 50px;
    background: rgba(79,70,229,0.1); border: 1px solid rgba(79,70,229,0.25);
    font-size: 0.8rem; font-weight: 600; color: var(--primary-light);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ========== FEATURES ========== */
#features { background: var(--bg); }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: rgba(79,70,229,0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; color: white; }
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ========== HOW IT WORKS ========== */
#how-it-works {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step { text-align: center; position: relative; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 700; margin: 0 auto 20px;
}
.step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ========== INTEGRATIONS ========== */
#integrations { background: var(--bg-card); }
.integrations-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}
.integration-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 20px;
    text-align: center; transition: all 0.3s;
}
.integration-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.integration-logo {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 8px;
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.integration-card p { color: var(--text-dim); font-size: 0.8rem; }

/* ========== DEMO ========== */
#demo { background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%); }
.demo-box {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center; max-width: 960px; margin: 0 auto;
}
.demo-info { display: flex; flex-direction: column; gap: 28px; }
.demo-feature {
    display: flex; gap: 16px; align-items: flex-start;
}
.demo-feature svg { flex-shrink: 0; color: var(--primary-light); margin-top: 2px; }
.demo-feature strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.demo-feature p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
.demo-login {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    text-align: center;
}
.demo-login-header {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 1.2rem; font-weight: 700; margin-bottom: 28px;
}
.demo-login-header .logo-icon { color: var(--primary-light); }
.demo-credentials { margin-bottom: 24px; }
.demo-field {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.demo-field:last-child { border-bottom: none; }
.demo-field label { color: var(--text-muted); font-size: 0.9rem; }
.demo-value {
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 1.05rem;
    font-weight: 600; color: var(--accent); background: rgba(6,182,212,0.1);
    padding: 4px 12px; border-radius: 6px; cursor: pointer;
    user-select: all;
}
.demo-btn { width: 100%; margin-bottom: 12px; }
.demo-note { color: var(--text-dim); font-size: 0.8rem; }
@media (max-width: 768px) {
    .demo-box { grid-template-columns: 1fr; gap: 32px; }
}

/* ========== PRICING ========== */
#pricing { background: var(--bg); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 32px;
    text-align: center; position: relative; transition: all 0.3s;
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(79,70,229,0.15);
    transform: scale(1.05);
}
.popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--gradient); color: white; padding: 6px 20px;
    border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.pricing-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; color: var(--text-muted); }
.pricing-price { font-size: 2.6rem; font-weight: 800; margin-bottom: 8px; }
.pricing-yearly { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 20px; }
.currency { font-size: 1.5rem; vertical-align: top; margin-right: 2px; }
.period { font-size: 1rem; font-weight: 400; color: var(--text-dim); }
.pricing-features { margin-bottom: 32px; }
.pricing-features li {
    padding: 10px 0; border-bottom: 1px solid var(--border);
    font-size: 0.9rem; color: var(--text-muted);
}
.pricing-features li:last-child { border-bottom: none; }

/* ========== CTA ========== */
#cta {
    background: var(--gradient); text-align: center;
    padding: 80px 24px; border-radius: 0;
}
#cta h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
#cta p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; }
#cta .btn-primary {
    background: white; color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#cta .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }

/* ========== CONTACT ========== */
#contact { background: var(--bg-card); }
.contact-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { width: 100%; }

/* ========== FOOTER ========== */
footer { padding: 60px 0 30px; background: var(--bg); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-dim); margin-top: 12px; font-size: 0.9rem; }
.footer-links h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text-muted); }
.footer-links a { display: block; color: var(--text-dim); font-size: 0.9rem; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.85rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 72px; left: 0; right: 0; background: var(--bg);
        border-bottom: 1px solid var(--border); padding: 20px 24px;
        gap: 16px;
    }
    .btn-nav { display: none; }
    #hero { padding: 120px 0 60px; min-height: auto; }
    .hero-stats { gap: 24px; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr !important; }
    .pricing-card.popular { transform: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
}
