:root {
    --bg: #0a0b14;
    --bg-elev: #11131f;
    --bg-card: #161927;
    --surface: #1c2030;
    --border: #262b3d;
    --border-soft: #1e2233;
    --text: #eef1f8;
    --text-muted: #9aa3bd;
    --text-dim: #6b7390;
    --accent: #6c5ce7;
    --accent-2: #00d2ff;
    --accent-grad: linear-gradient(120deg, #6c5ce7 0%, #00d2ff 100%);
    --success: #2ecc71;
    --warn: #f6c343;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 60px -20px rgba(0,0,0,.6);
    --maxw: 1160px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg: #f7f8fc;
    --bg-elev: #ffffff;
    --bg-card: #ffffff;
    --surface: #eef1f8;
    --border: #e2e6f0;
    --border-soft: #eaeef5;
    --text: #0f1320;
    --text-muted: #515a73;
    --text-dim: #8a93ad;
    --shadow: 0 20px 60px -30px rgba(40,50,90,.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background .4s ease, color .4s ease;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; font-weight: 600;
    font-size: 15px; cursor: pointer; border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(108,92,231,.7); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(108,92,231,.85); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--text); }
.btn-outline:hover { background: rgba(108,92,231,.12); }
.btn-nav { background: var(--accent-grad); color: #fff; padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0; transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: blur(14px); border-bottom-color: var(--border-soft);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 34px; height: 34px; border-radius: 9px; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.logo-tagline { font-size: 11px; color: var(--text-dim); letter-spacing: .4px; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14.5px; color: var(--text-muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
    background: var(--surface); border: 1px solid var(--border); color: var(--text);
    width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
    transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* Hero */
.hero { position: relative; padding: 160px 0 90px; text-align: center; overflow: hidden; }
.hero-glow {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 900px; height: 600px; background: radial-gradient(circle, rgba(108,92,231,.35), transparent 60%);
    filter: blur(40px); pointer-events: none;
}
.hero-grid-bg {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
    background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    opacity: .5; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); margin-bottom: 26px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(46,204,113,.18); }
.hero h1 {
    font-family: var(--font-display); font-size: clamp(44px, 8vw, 84px); font-weight: 700;
    line-height: 1.02; letter-spacing: -1.5px; background: linear-gradient(180deg, var(--text), color-mix(in srgb, var(--text) 55%, var(--accent)));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-product-line {
    font-family: var(--font-display); font-size: clamp(18px, 3vw, 26px); font-weight: 600;
    margin-top: 14px; color: var(--accent-2);
}
.hero-subtitle { font-size: 18px; color: var(--text-muted); max-width: 680px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.hero-metrics { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 54px; flex-wrap: wrap; }
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--text); }
.metric-label { font-size: 12.5px; color: var(--text-dim); max-width: 150px; text-align: left; }
.metric-divider { width: 1px; height: 38px; background: var(--border); }

/* Trust strip */
.trust-strip { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-elev); padding: 22px 0; }
.trust-inner { display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-muted); font-weight: 500; }
.trust-item svg { width: 20px; height: 20px; color: var(--accent-2); flex-shrink: 0; }

/* Section header */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.section-header h2 { font-family: var(--font-display); font-size: clamp(28px, 4.5vw, 42px); font-weight: 700; letter-spacing: -.5px; line-height: 1.1; }
.section-header p { color: var(--text-muted); margin-top: 16px; font-size: 16.5px; }

section { padding: 96px 0; }

/* Product showcase */
.product-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.product-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent-2); background: rgba(0,210,255,.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.product-info h3 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.5px; }
.product-tagline { color: var(--accent); font-weight: 600; margin-top: 6px; }
.product-desc { color: var(--text-muted); margin-top: 16px; font-size: 16px; }
.product-features { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.product-features li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.product-features li::before {
    content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
    background: var(--accent-grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat;
}
.product-stack { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.product-stack span { font-size: 12.5px; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); padding: 6px 12px; border-radius: 8px; }

/* Mockup window */
.mockup-window { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mockup-titlebar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mockup-dots span:nth-child(1){ background:#ff5f57; } .mockup-dots span:nth-child(2){ background:#febc2e; } .mockup-dots span:nth-child(3){ background:#28c840; }
.mockup-title { font-size: 12.5px; color: var(--text-dim); font-weight: 500; }
.mockup-body { display: flex; min-height: 320px; }
.mock-sidebar { width: 60px; background: var(--bg-elev); border-right: 1px solid var(--border); padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; }
.mock-nav-item { height: 12px; border-radius: 5px; background: var(--border); }
.mock-nav-item.active { background: var(--accent); }
.mock-content { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-header-row { display: flex; justify-content: space-between; align-items: center; }
.mock-title-block { width: 130px; height: 14px; border-radius: 6px; background: var(--border); }
.mock-btn { width: 64px; height: 26px; border-radius: 7px; background: var(--accent-grad); }
.mock-stats-row { display: flex; gap: 12px; }
.mock-stat-card { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.mock-stat-icon { width: 26px; height: 26px; border-radius: 8px; }
.tax-color { background: linear-gradient(135deg,#6c5ce7,#a29bfe); } .success-color { background: linear-gradient(135deg,#2ecc71,#7bed9f); } .warn-color { background: linear-gradient(135deg,#f6c343,#ffeaa7); }
.mock-stat-lines { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border); }
.mock-line.short { width: 50%; } .mock-line.medium { width: 80%; }
.mock-chart { height: 70px; }
.mock-chart svg { width: 100%; height: 100%; }
.mock-badges-row { display: flex; gap: 8px; }
.mock-pill { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.mock-pill.ok { background: rgba(46,204,113,.15); color: var(--success); }
.mock-pill.warn { background: rgba(246,195,67,.15); color: var(--warn); }
.mock-table { display: flex; flex-direction: column; gap: 8px; }
.mock-table-row { height: 12px; border-radius: 5px; background: var(--border); }
.mock-table-row.header { background: color-mix(in srgb, var(--accent) 40%, var(--border)); height: 16px; }

/* How it works */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 0; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 200px; max-width: 260px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.flow-num { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-grad); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; display: grid; place-items: center; margin: 0 auto 16px; }
.flow-step h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.flow-step p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }
.flow-connector { width: 40px; align-self: center; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); position: relative; }
.flow-connector::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 8px solid var(--accent-2); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* Tech grid */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tech-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.tech-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent-2); margin-bottom: 16px; }
.tech-icon svg { width: 22px; height: 22px; }
.tech-card h4 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.tech-card p { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* Security */
.security-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.security-copy h2 { font-family: var(--font-display); font-size: clamp(26px,4vw,38px); font-weight: 700; letter-spacing: -.5px; }
.security-copy p { color: var(--text-muted); margin-top: 14px; font-size: 16px; }
.security-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.security-list li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.security-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; }
.security-visual { display: grid; place-items: center; }
.sec-console { width: 100%; max-width: 420px; }
.sec-body { flex-direction: column; padding: 18px; gap: 12px; }
.sec-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.sec-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(108,92,231,.12); border: 1px solid var(--border); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.sec-ico svg { width: 18px; height: 18px; }
.sec-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sec-text strong { font-size: 14px; font-weight: 600; }
.sec-text small { font-size: 12px; color: var(--text-dim); }
.sec-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sec-bar { display: flex; align-items: center; gap: 10px; }
.sec-bar label { font-size: 12px; color: var(--text-muted); width: 64px; flex-shrink: 0; }
.sec-bar span { flex: 1; height: 8px; border-radius: 999px; background: var(--border); position: relative; overflow: hidden; }
.sec-bar span::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--accent-grad); border-radius: 999px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; position: relative; transition: transform .25s ease, border-color .25s ease; }
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--accent); box-shadow: 0 20px 50px -24px rgba(108,92,231,.6); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; }
.pricing-card h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.currency { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.amount { font-family: var(--font-display); font-size: 40px; font-weight: 700; }
.period { font-size: 14px; color: var(--text-dim); }
.pricing-desc { color: var(--text-muted); font-size: 14px; }
.pricing-features { list-style: none; margin: 20px 0 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.pricing-features li { position: relative; padding-left: 26px; font-size: 14px; color: var(--text); }
.pricing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* Early access */
.early-access-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 50px; }
.early-access-copy h2 { font-family: var(--font-display); font-size: clamp(26px,4vw,36px); font-weight: 700; letter-spacing: -.5px; }
.early-access-copy p { color: var(--text-muted); margin-top: 14px; font-size: 16px; }
.early-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.early-list li { position: relative; padding-left: 30px; color: var(--text); font-size: 15px; }
.early-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--accent-grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 6'/%3E%3C/svg%3E") center/12px no-repeat; }
.early-form { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.form-group { margin-bottom: 14px; }
.early-form input, .early-form select, .early-form textarea {
    width: 100%; padding: 13px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-family: var(--font); font-size: 14.5px; transition: border-color .2s; resize: vertical;
}
.early-form input:focus, .early-form select:focus, .early-form textarea:focus { outline: none; border-color: var(--accent); }
.early-form select { appearance: none; cursor: pointer; }
.early-form option { background: var(--bg-elev); color: var(--text); }
.form-note { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; text-align: center; }
.form-note.success { color: var(--success); }

/* Footer */
.footer { border-top: 1px solid var(--border-soft); background: var(--bg-elev); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 16px 0; max-width: 320px; }
.footer-legal-entity { color: var(--text-dim); font-size: 12.5px; line-height: 1.5; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.footer-bottom p { color: var(--text-dim); font-size: 13px; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 920px) {
    .product-showcase, .security-layout, .early-access-layout, .footer-top { grid-template-columns: 1fr; }
    .tech-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { position: fixed; top: 68px; left: 0; right: 0; background: var(--bg-elev); flex-direction: column; gap: 0; padding: 10px 24px 20px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .35s ease; }
    .nav-links.open { transform: translateY(0); }
    .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--border-soft); }
    .mobile-toggle { display: flex; }
    .flow-connector { display: none; }
    .flow-step { max-width: 100%; }
}
@media (max-width: 600px) {
    .tech-grid, .pricing-grid { grid-template-columns: 1fr; }
    .hero { padding: 130px 0 70px; }
    .hero-metrics { gap: 16px; }
    section { padding: 70px 0; }
    .early-access-layout { padding: 30px 22px; }
    .footer-nav { grid-template-columns: 1fr 1fr; }
}
