:root {
    --brand: #5850ec;
    --brand-hover: #4a43d4;
    --brand-soft: #eef0ff;
    --brand-softer: #f4f5ff;
    --ink: #111827;
    --ink-2: #1f2937;
    --muted: #6b7280;
    --muted-2: #9aa3b2;
    --line: #e5e7eb;
    --card: #ffffff;
    --bg: #f7f8fc;
    --hero-from: #0b1020;
    --hero-to: #1a1540;
    --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    --shadow-lg: 0 18px 50px rgba(17, 24, 39, 0.10);
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 76px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    min-height: 100vh;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.header-inner {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.brand-mark svg {
    width: 40px;
    height: 40px;
}

.brand-mark-sm svg {
    width: 32px;
    height: 32px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 500;
    color: #374151;
}

.nav-link:hover,
.nav-link.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 11px 18px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.18s ease;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(88, 80, 236, 0.22);
}

.btn-primary:hover {
    background: var(--brand-hover);
}

.btn-outline {
    background: #fff;
    border-color: #d1d5db;
    color: var(--ink);
}

.btn-outline:hover {
    background: #f9fafb;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-wide {
    width: 100%;
}

.header-login {
    min-width: 84px;
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(88, 80, 236, 0.28), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.18), transparent 24%),
        linear-gradient(160deg, var(--hero-from) 0%, var(--hero-to) 48%, #0d1224 100%);
    color: #fff;
    padding: 72px 0 88px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
}

.eyebrow-pill {
    padding: 7px 12px;
    border: 1px solid rgba(165, 180, 252, 0.45);
    border-radius: 999px;
    background: rgba(88, 80, 236, 0.18);
    color: #c7d2fe;
    letter-spacing: 0.12em;
}

.hero h1,
.page-hero h1,
.section-head h2 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.hero h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.hero p + p {
    margin-top: 12px;
}

.hero p {
    color: #c5c9d6;
    font-size: 16.5px;
    max-width: 640px;
}

.lede {
    color: var(--muted);
    font-size: 16.5px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.console-frame {
    background: linear-gradient(180deg, #1b2340, #111827);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.console-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: #0f1528;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4b5563;
}

.console-body {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 320px;
}

.console-side {
    padding: 16px 12px;
    background: rgba(15, 21, 40, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    font-size: 12.5px;
}

.console-side div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
}

.console-side .on {
    background: rgba(88, 80, 236, 0.18);
    color: #e0e7ff;
}

.console-main {
    padding: 16px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.metric {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
}

.metric b {
    display: block;
    font-size: 16px;
}

.metric span {
    color: #9ca3af;
    font-size: 11px;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 92px;
    margin: 16px 0;
    padding: 10px;
    background: #111827;
    border-radius: 10px;
}

.bars i {
    flex: 1;
    display: block;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #818cf8, #5850ec);
}

.status-list {
    display: grid;
    gap: 8px;
    font-size: 12px;
}

.status-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111827;
    border-radius: 8px;
    padding: 8px 10px;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 7px;
    border-radius: 999px;
}

.badge-ok { background: #064e3b; color: #6ee7b7; }
.badge-warn { background: #312e81; color: #c7d2fe; }
.badge-pass { background: #1e3a8a; color: #93c5fd; }

.section {
    padding: 84px 0;
}

.section-head {
    max-width: 720px;
    margin-bottom: 36px;
}

.section-head p,
.page-hero p {
    color: var(--muted);
    font-size: 16.5px;
}

.why-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 40px;
    align-items: center;
}

.shield-wrap {
    position: relative;
    min-height: 340px;
    display: grid;
    place-items: center;
}

.shield-glow {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 68%);
    display: grid;
    place-items: center;
}

.shield {
    width: 148px;
    height: 168px;
    filter: drop-shadow(0 18px 30px rgba(88, 80, 236, 0.28));
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.feature-item {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    padding: 16px 16px 16px 14px;
    display: flex;
    gap: 12px;
    box-shadow: var(--shadow);
}

.feature-item p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
}

.check {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    display: grid;
    place-items: center;
    margin-top: 2px;
}

.surface-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.surface-card,
.plan-card,
.faq-item,
.about-card,
.form-card,
.legal-card {
    background: var(--card);
    border: 1px solid #eef0f4;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.surface-card {
    padding: 22px 20px 24px;
}

.icon-bubble {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-softer);
    color: var(--brand);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}

.surface-card h3,
.about-card h3,
.plan-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.surface-card p,
.about-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.guardrails {
    background: linear-gradient(160deg, #111827, #1e1b4b 70%);
    color: #fff;
    border-radius: 28px;
    padding: 42px 48px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.guardrails .eyebrow {
    color: #a5b4fc;
}

.guardrails p {
    color: #d1d5db;
    max-width: 460px;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stat {
    padding: 8px 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:first-child {
    border-left: 0;
}

.stat b {
    display: block;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.stat span {
    color: #c7d2fe;
    font-size: 14px;
}

.page-hero {
    padding: 56px 0 28px;
    text-align: center;
}

.page-hero p {
    margin: 0 auto;
    max-width: 620px;
}

.page-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 28px 0 80px;
}

.page-split h1 {
    margin: 10px 0 16px;
    font-size: clamp(32px, 4vw, 46px);
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5563;
    font-weight: 500;
}

.contact-list svg {
    color: var(--muted);
}

.about-stack {
    display: grid;
    gap: 14px;
}

.about-card {
    display: flex;
    gap: 14px;
    padding: 18px 18px;
}

.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 72px;
}

.plan-card {
    position: relative;
    padding: 22px 20px 20px;
}

.plan-card.featured {
    border: 2px solid var(--brand);
    box-shadow: var(--shadow-lg);
}

.popular {
    position: absolute;
    top: -11px;
    right: 16px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 8px;
    border-radius: 999px;
}

.plan-kicker {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.plan-card h3 {
    font-size: 22px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 10px 0 18px;
}

.price b {
    font-size: 42px;
    letter-spacing: -0.04em;
}

.price span {
    color: var(--muted);
}

.plan-card ul {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.plan-card li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 14.5px;
    color: #374151;
}

.plan-card li svg {
    color: var(--brand);
    margin-top: 3px;
    flex: 0 0 16px;
}

.section-tight {
    padding-top: 8px;
}

.copy-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.copy-block p {
    color: var(--muted);
    font-size: 16.5px;
    margin: 0 0 14px;
}

.feature-rich-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-rich-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.feature-rich-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
}

.cta-band {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 42px 48px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 28px;
    align-items: center;
}

.cta-band h2 {
    margin: 8px 0 14px;
    font-size: clamp(28px, 3.2vw, 40px);
    letter-spacing: -0.03em;
}

.cta-band p {
    color: var(--muted);
    margin: 0 0 12px;
    max-width: 720px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.faq {
    padding-bottom: 80px;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

.faq-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px 20px;
}

.q-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.faq-item h3 {
    margin: 2px 0 6px;
    font-size: 16px;
}

.faq-item p {
    margin: 0;
    color: var(--muted);
}

.form-card {
    padding: 24px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 16px;
}

.field label {
    font-size: 14px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(88, 80, 236, 0.12);
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14.5px;
}

.alert-ok {
    background: #ecfdf5;
    color: #065f46;
}

.alert-err {
    background: #fef2f2;
    color: #991b1b;
}

.legal-card {
    padding: 28px;
    margin: 20px 0 80px;
}

.legal-card h1 {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--ink);
}

@media (max-width: 1024px) {
    .hero-grid,
    .why-grid,
    .page-split,
    .guardrails,
    .copy-split,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .plans,
    .surface-grid,
    .feature-rich-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding: 48px 0 56px;
    }
}

@media (max-width: 760px) {
    .header-inner {
        grid-template-columns: 1fr auto auto;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 12px 20px 16px;
        gap: 4px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .plans,
    .surface-grid,
    .feature-grid,
    .feature-rich-grid,
    .stat-row,
    .metric-row {
        grid-template-columns: 1fr;
    }

    .cta-band {
        padding: 28px 22px;
    }

    .console-body {
        grid-template-columns: 1fr;
    }

    .console-side {
        display: flex;
        gap: 8px;
        overflow: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .guardrails {
        padding: 28px 22px;
    }

    .stat {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 16px 0;
    }

    .footer-inner {
        flex-direction: column;
        padding: 22px 0;
        align-items: flex-start;
    }
}
