:root {
    --ink: #170e40;
    --deep: #0b0820;
    --indigo: #3a28d6;
    --violet: #7a2fe3;
    --pink: #ee4aa2;
    --paper: #f7f4ff;
    --text: #f4f1ff;
    --muted: rgba(244, 241, 255, 0.72);
    --brand: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 52%, var(--pink) 100%);
    --radius: 22px;
    --max: 1160px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--deep);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); margin-bottom: 18px; }
p { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); }
.fine { font-size: 0.92rem; opacity: 0.8; margin-top: 18px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 26px; border-radius: 999px;
    background: #fff; color: var(--ink); font-weight: 700; font-size: 1.02rem;
    box-shadow: 0 10px 30px rgba(10, 6, 40, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(10, 6, 40, 0.45); }
.btn-small { padding: 9px 18px; font-size: 0.92rem; box-shadow: none; }

/* ── Nav ── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 8, 32, 0.72);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-inner {
    max-width: var(--max); margin: 0 auto; padding: 12px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand img { border-radius: 22%; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; color: var(--muted); white-space: nowrap; }
.nav-links a:not(.btn):hover { color: #fff; }
@media (max-width: 1080px) { .nav-links a:not(.btn) { display: none; } }

/* ── Hero ── */
.hero {
    position: relative; overflow: hidden;
    background: var(--brand);
    padding: 120px 0 0;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(60% 50% at 85% 10%, rgba(255, 255, 255, 0.18), transparent 70%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; }
.hero-copy { max-width: 640px; }
.lede { color: rgba(255, 255, 255, 0.86); margin: 22px 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cta-note { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); }
.hero-art { position: relative; margin: 8px -6% 0; padding-bottom: 0; }
.hero-mac { width: 100%; filter: drop-shadow(0 30px 50px rgba(10, 6, 40, 0.45)); margin-bottom: -6%; }
.hero-phone {
    position: absolute; width: 26%; right: 2%; bottom: 0;
    filter: drop-shadow(0 24px 40px rgba(10, 6, 40, 0.5));
}
@media (min-width: 980px) {
    .hero { padding-top: 128px; }
    .hero-grid { grid-template-columns: 0.9fr 1.1fr; align-items: end; }
    .hero-copy { padding-bottom: 120px; }
    .hero-art { margin-right: -12%; }
}

/* ── Features ── */
.features { background: var(--paper); color: var(--ink); padding: 96px 0 40px; }
.features p { color: rgba(23, 14, 64, 0.72); }
.feature {
    display: grid; gap: 32px; align-items: center; justify-items: center;
    padding: 40px 0 72px;
}
.feature + .feature { border-top: 1px solid rgba(23, 14, 64, 0.08); }
.feature-copy { max-width: 520px; }
.feature .device { width: min(300px, 72vw); filter: drop-shadow(0 26px 40px rgba(60, 30, 140, 0.25)); }
.feature.wide .device { width: min(560px, 90vw); }
@media (min-width: 860px) {
    .feature { grid-template-columns: 1fr 1fr; justify-items: start; }
    .feature .device { justify-self: center; }
    .feature.flip .feature-copy { order: 2; }
}

/* ── Motion ── */
.motion { padding: 96px 0; background: radial-gradient(90% 70% at 50% 0%, #2c1878 0%, var(--deep) 70%); text-align: center; }
.motion video {
    margin: 32px auto 0; width: 100%; max-width: 1040px; border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); background: #1a1046;
}

/* ── AI ── */
.ai { padding: 96px 0; background: linear-gradient(200deg, #3d2296 0%, var(--ink) 48%, var(--deep) 100%); }
.ai-grid { display: grid; gap: 48px; align-items: center; justify-items: center; }
.ai .device { width: min(300px, 72vw); filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.5)); }
.models { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.models li {
    display: inline-flex; gap: 8px; align-items: baseline;
    padding: 9px 15px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12);
}
.models span { font-size: 0.85rem; color: var(--muted); }
@media (min-width: 860px) { .ai-grid { grid-template-columns: 1.1fr 0.9fr; justify-items: start; } .ai .device { justify-self: center; } }

/* ── Download ── */
.download { padding: 110px 0; background: var(--brand); text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 720px; }
.download .app-icon { border-radius: 22.37%; box-shadow: 0 20px 50px rgba(10, 6, 40, 0.45); }
.download p { color: rgba(255, 255, 255, 0.86); }
.download .btn { margin-top: 10px; }

/* ── Footer ── */
.footer { padding: 44px 0 56px; background: var(--deep); border-top: 1px solid rgba(255, 255, 255, 0.07); }
.footer-inner { display: grid; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: rgba(244, 241, 255, 0.5); font-size: 0.88rem; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Comparison ── */
.compare { padding: 96px 0; background: var(--deep); }
.compare-head { max-width: 680px; margin-bottom: 40px; }
.table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
}
.compare-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: center; vertical-align: middle; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.compare-table thead th {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
    color: var(--muted); background: #150d3a;
}
.compare-table tbody th { text-align: left; font-weight: 600; color: var(--text); background: #0f0a2a; }
/* Feature names stay visible while the other columns scroll on narrow screens. */
.compare-table tr > :first-child { position: sticky; left: 0; z-index: 1; width: 230px; }
.compare-table thead th:first-child { background: #150d3a; }
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .ours { background: rgba(122, 47, 227, 0.2); }
.compare-table thead .ours { background: #3a1d86; }
.compare-table thead .ours { color: #fff; }
.th-brand { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.th-brand img { display: block; border-radius: 22%; }
.mk {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%; font-size: 0.8rem; font-weight: 800; line-height: 1;
}
.mk.yes { background: rgba(52, 217, 123, 0.16); color: #4be08b; }
.mk.partial { background: rgba(251, 191, 36, 0.16); color: #fbbf24; }
.mk.no { background: rgba(255, 255, 255, 0.06); color: rgba(244, 241, 255, 0.4); }
.txt { font-size: 0.86rem; color: var(--muted); white-space: nowrap; }
.ours .txt { color: #fff; font-weight: 600; }
.table-hint { display: none; margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 760px) {
    .compare-table { min-width: 600px; font-size: 0.88rem; }
    .compare-table th, .compare-table td { padding: 12px 8px; }
    .compare-table tr > :first-child { width: 128px; padding-left: 14px; }
    .compare-table .txt { white-space: normal; font-size: 0.8rem; }
    .table-hint { display: block; }
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* ── The Barlow Code ── */
.barlow { padding: 0 0 96px; background: var(--deep); }
.barlow-card {
    position: relative; overflow: hidden; padding: 56px 20px;
    border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius);
    background: radial-gradient(60% 60% at 90% 0%, rgba(122, 47, 227, 0.28), transparent 70%), rgba(255, 255, 255, 0.03);
}
@media (min-width: 720px) { .barlow-card { padding: 72px 56px; } }
.barlow-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.barlow-badge {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    padding: 6px 14px 6px 10px; border-radius: 999px;
    background: rgba(238, 74, 162, 0.12); border: 1px solid rgba(238, 74, 162, 0.3);
    color: #ff9fd0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.barlow-principles {
    list-style: none; display: grid; gap: 1px; overflow: hidden;
    border-radius: 16px; background: rgba(255, 255, 255, 0.08);
}
.barlow-principles li { display: flex; gap: 18px; padding: 28px 24px; background: #120b33; }
.barlow-principles .num { font-weight: 800; font-size: 0.9rem; color: #c08bff; font-variant-numeric: tabular-nums; padding-top: 3px; }
.barlow-principles h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.barlow-principles p { font-size: 0.97rem; }
@media (min-width: 860px) { .barlow-principles { grid-template-columns: 1fr 1fr; } }
.barlow-promise {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 36px;
    text-align: center; color: #fff; font-weight: 600;
}
.barlow-promise svg { flex-shrink: 0; color: #ff9fd0; }

/* ── Support ── */
.support { padding: 96px 0; background: linear-gradient(180deg, var(--deep) 0%, #140c38 100%); }
.support-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .support-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.support-alt { margin-top: 22px; font-size: 1rem; }
.support-alt a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.support-form {
    display: grid; gap: 18px; padding: 28px 20px;
    border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03);
}
@media (min-width: 720px) { .support-form { padding: 36px; } }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.support-form label { display: grid; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.support-form input, .support-form select, .support-form textarea {
    width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 1rem; color: var(--text);
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
}
.support-form textarea { resize: vertical; min-height: 140px; }
.support-form select option { color: #170e40; }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus {
    outline: none; border-color: #c08bff; box-shadow: 0 0 0 3px rgba(192, 139, 255, 0.3);
}
.support-form .btn { justify-self: start; border: none; cursor: pointer; }
.form-status { font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.ok { color: #4be08b; }
.form-status.error { color: #ff8a9b; }
.support-form [aria-invalid="true"] { border-color: #ff8a9b; }
.support-form .btn:disabled { opacity: 0.6; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Legal pages ── */
.legal { padding: 64px 0 96px; }
.legal-inner { max-width: 820px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.legal-updated { margin: 12px 0 32px; font-size: 0.95rem; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin: 48px 0 14px; padding-top: 8px; scroll-margin-top: 80px; }
.legal p, .legal li { font-size: 1.04rem; line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0 22px; color: var(--muted); }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--text); }
.legal a { color: #fff; text-decoration: underline; text-decoration-color: rgba(192, 139, 255, 0.6); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: #fff; }
.legal-summary {
    padding: 22px 24px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(122, 47, 227, 0.22), rgba(238, 74, 162, 0.12));
    border: 1px solid rgba(192, 139, 255, 0.28);
}
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal-toc a {
    padding: 7px 14px; border-radius: 999px; font-size: 0.88rem; text-decoration: none; color: var(--muted);
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
}
.legal-toc a:hover { color: #fff; }
.legal-table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 16px; }
.legal-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: 14px 16px; text-align: left; vertical-align: top; font-size: 0.95rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.legal-table th { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.legal-table td { color: var(--muted); }
.legal-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.legal-table tr:last-child td { border-bottom: none; }
