:root {
    --bg-primary: #0d0b14;
    --bg-secondary: #161320;
    --bg-card: #1c1728;
    --bg-card-hover: #221c33;
    --text-primary: #e8e4f0;
    --text-secondary: #a89dbe;
    --text-muted: #6e6485;
    --accent: #d4a017;
    --accent-bright: #ecc23e;
    --accent-hover: #e8b830;
    --accent-light: rgba(212, 160, 23, 0.13);
    --accent-glow: rgba(212, 160, 23, 0.4);
    --purple-glow: rgba(152, 85, 180, 0.35);
    --border: #2a2440;
    --border-light: #221d35;
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-lg: rgba(0, 0, 0, 0.55);
    --success: #2ecc71;
    --radius: 14px;
    --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, #b0840b 100%);
    color: #1a1408;
    box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 30px var(--accent-glow); }
.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-light); }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(13, 11, 20, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
}
.site-nav.scrolled {
    padding: 12px 0;
    background: rgba(13, 11, 20, 0.92);
    border-bottom-color: var(--border-light);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 40px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.93rem;
    color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 860px) {
    .nav-links { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: rgba(13,11,20,0.98); border-bottom: 1px solid var(--border-light);
        padding: 10px 24px 20px; gap: 4px; transform: translateY(-130%); opacity: 0;
        transition: transform 0.25s ease, opacity 0.2s ease; }
    .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
    .nav-links.open { transform: translateY(0); opacity: 1; }
    .nav-toggle { display: block; }
    /* On mobile, show Log in instead of Start free trial — not both. The
       hero (and several sections below it) already repeats "Start your
       free 14-day trial" as its own full-width button just a scroll away,
       so it doesn't need to live in the persistent nav bar too; Log in
       used to be dropped entirely here (display:none), and the ONLY way
       to log in from mobile was scrolling all the way to the footer link. */
    .nav-brand img { height: 32px; }
    /* Themed to match .btn-primary (the "Start your free 14-day trial"
       button) exactly, since that's the only other CTA-style button most
       mobile visitors will see before scrolling — same gradient, text
       color, and shadow, just smaller to fit the nav bar. */
    .nav-actions .btn-ghost {
        padding: 8px 14px;
        font-size: 0.85rem;
        background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 55%, #b0840b 100%);
        color: #1a1408;
        box-shadow: 0 8px 24px var(--accent-glow);
    }
    .nav-actions .btn-ghost:hover { color: #1a1408; box-shadow: 0 10px 30px var(--accent-glow); }
    .nav-actions .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 168px 0 100px;
    text-align: center;
    overflow: hidden;
}
#starfield {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.hero-glow {
    position: absolute;
    top: -220px; left: 50%;
    width: 900px; height: 700px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--purple-glow), transparent 70%);
    z-index: 0;
    pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 0 auto 36px;
}
.hero-logo-icon { height: 120px; width: auto; }
.hero-logo-word {
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #ffffff;
}
.hero-logo-the {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--accent);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--accent-light);
    color: var(--accent-bright);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 26px;
}
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.14;
    max-width: 780px;
    margin: 0 auto 22px;
    letter-spacing: -0.01em;
}
.hero h1 .accent-text {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent) 60%, #b0840b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
}
.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero-fineprint {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Browser mock */
.browser-mock {
    margin: 64px auto 0;
    max-width: 860px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    box-shadow: 0 30px 80px var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
    text-align: left;
}
.browser-chrome {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3a3350; }
.browser-url {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 7px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.browser-body {
    position: relative;
    padding: 30px;
    min-height: 220px;
    background:
        radial-gradient(500px 200px at 20% 0%, rgba(152,85,180,0.14), transparent 60%),
        linear-gradient(160deg, #171129 0%, #14101f 100%);
}
.mock-lines { max-width: 60%; }
.mock-lines .l { height: 12px; border-radius: 6px; background: rgba(255,255,255,0.08); margin-bottom: 12px; }
.mock-lines .l1 { width: 80%; height: 20px; }
.mock-lines .l2 { width: 96%; }
.mock-lines .l3 { width: 88%; }
.mock-lines .l4 { width: 70%; }
.mock-badges { display: flex; flex-direction: column; gap: 10px; position: absolute; right: 26px; bottom: 26px; }
.mock-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(20, 16, 31, 0.9);
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    box-shadow: 0 8px 20px var(--shadow);
    animation: floatIn 0.6s ease both;
}
.mock-badge svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }
.mock-badge:nth-child(1) { animation-delay: 0.1s; }
.mock-badge:nth-child(2) { animation-delay: 0.25s; }
.mock-badge:nth-child(3) { animation-delay: 0.4s; }
@keyframes floatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Section shared ---------- */
section { padding: 100px 0; position: relative; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-tag {
    color: var(--accent-bright);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--border); background: var(--bg-card-hover); }
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-light);
    color: var(--accent-bright);
    margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- How it works ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 24px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); }
.step-num {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: #1a1408;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--text-secondary); font-size: 0.92rem; }

/* ---------- Use cases ---------- */
.usecases {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 980px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .usecases { grid-template-columns: 1fr; } }
.usecase {
    padding: 24px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    background: linear-gradient(160deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}
.usecase .uc-emoji { font-size: 1.6rem; margin-bottom: 12px; display: block; }
.usecase h3 { font-size: 0.98rem; margin-bottom: 6px; }
.usecase p { color: var(--text-secondary); font-size: 0.87rem; }

/* ---------- Security ---------- */
.security-section { background: var(--bg-secondary); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.security-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .security-grid { grid-template-columns: 1fr; gap: 40px; } }
.security-list { display: flex; flex-direction: column; gap: 22px; }
.security-item { display: flex; gap: 16px; }
.security-item .sec-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent-bright);
    display: flex; align-items: center; justify-content: center;
}
.security-item .sec-icon svg { width: 20px; height: 20px; }
.security-item h4 { margin-bottom: 4px; font-size: 0.98rem; }
.security-item p { color: var(--text-secondary); font-size: 0.88rem; }
.security-copy .section-tag { }
.security-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin-bottom: 16px; letter-spacing: -0.01em; }
.security-copy p { color: var(--text-secondary); margin-bottom: 20px; }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 820px;
    margin: 0 auto;
}
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-grid-single { grid-template-columns: 1fr; max-width: 420px; }
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
}
.price-card.featured {
    border-color: var(--accent);
    background: linear-gradient(160deg, var(--bg-card) 0%, rgba(212,160,23,0.06) 100%);
    box-shadow: 0 20px 50px var(--shadow-lg);
    position: relative;
}
.price-badge {
    position: absolute;
    top: -13px; left: 30px;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: #1a1408;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.03em;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price-amount .price-num { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em; }
.price-amount .price-per { color: var(--text-muted); font-size: 1rem; }
.price-tax-note { color: var(--text-muted); font-size: 0.76rem; margin-bottom: 12px; }
.price-card .price-sub { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 22px; }
.price-card .price-sub strong { color: var(--text-primary); }
.price-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex: 1; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-secondary); }
.price-list svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; margin-top: 3px; }
.pricing-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 26px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border-light); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.96rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.faq-q .chev { transition: transform 0.2s ease; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq-a p { padding: 0 22px 20px; color: var(--text-secondary); font-size: 0.9rem; }
.faq-a p a { color: var(--accent); text-decoration: underline; }
.faq-a p a:hover { color: var(--accent-bright); }

/* ---------- CTA banner ---------- */
.cta-banner {
    text-align: center;
    padding: 110px 0;
}
.cta-panel {
    max-width: 780px;
    margin: 0 auto;
    padding: 56px 40px;
    border-radius: 22px;
    background: linear-gradient(160deg, #1c1728 0%, #221a34 60%, #1c1728 100%);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}
.cta-panel::before {
    content: "";
    position: absolute;
    top: -140px; left: 50%; transform: translateX(-50%);
    width: 640px; height: 400px;
    background: radial-gradient(closest-side, var(--purple-glow), transparent 70%);
}
.cta-panel h2 { position: relative; font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 14px; }
.cta-panel p { position: relative; color: var(--text-secondary); margin-bottom: 30px; }
.cta-panel .hero-ctas { position: relative; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border-light); padding: 60px 0 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 46px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.87rem; max-width: 260px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    padding-top: 26px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mock-badge { animation: none; }
}
