*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --ink: #121110;
    --ink-2: #1a1917;
    --ink-3: #23211e;
    --line: rgba(242, 238, 232, 0.08);
    --line-strong: rgba(242, 238, 232, 0.16);
    --cream: #f2eee8;
    --cream-dim: #a8a29a;
    --cream-faint: #8a847c;
    --honey: #f2a93b;
    --honey-bright: #f5bb5c;
    --moss: #8fbf7f;
    --serif: 'Instrument Serif', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--ink);
    color: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: var(--honey); color: var(--ink); }

/* Grain */
body::after {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9999;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }

/* ---------- Nav ---------- */
header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(18, 17, 16, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
nav { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--cream); }
.logo svg { display: block; }
.logo-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { color: var(--cream-dim); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--cream); }
.nav-cta {
    color: var(--ink) !important; background: var(--cream);
    padding: 0.5rem 1.2rem; border-radius: 100px;
    font-weight: 600 !important; transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--honey-bright); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero { padding: 6.5rem 0 4rem; position: relative; }
.hero-eyebrow {
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--honey); margin-bottom: 2rem;
    display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--honey); opacity: 0.6; }
.hero h1 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(3.2rem, 8.5vw, 6.8rem);
    line-height: 0.98; letter-spacing: -0.02em;
    max-width: 12ch;
}
.hero h1 em { font-style: italic; color: var(--honey); }
.hero-row { display: flex; gap: 4rem; align-items: flex-end; justify-content: space-between; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-sub { font-size: 1.05rem; color: var(--cream-dim); line-height: 1.75; max-width: 46ch; }
.hero-sub strong { color: var(--cream); font-weight: 600; }
.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 1.8rem; border-radius: 100px;
    font-weight: 600; font-size: 0.92rem; text-decoration: none;
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: var(--honey-bright); transform: translateY(-2px); }
.btn-line { border: 1px solid var(--line-strong); color: var(--cream); }
.btn-line:hover { border-color: var(--honey); color: var(--honey-bright); transform: translateY(-2px); }

/* ---------- App preview ---------- */
.preview-wrap { margin: 4.5rem 0 0; position: relative; }
.preview-wrap::before {
    content: ''; position: absolute; inset: -80px -200px auto;
    height: 400px;
    background: radial-gradient(ellipse at 50% 100%, rgba(242, 169, 59, 0.13), transparent 65%);
    pointer-events: none;
}
.preview {
    position: relative;
    background: var(--ink-2); border: 1px solid var(--line-strong);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.8);
}
.pv-bar { height: 38px; background: var(--ink); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; gap: 8px; }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line-strong); }
.pv-bar-title { margin-left: auto; margin-right: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--cream-faint); display: flex; align-items: center; gap: 6px; }
.pv-body { display: flex; height: 460px; }
.pv-rail { width: 60px; background: #0c0b0a; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.pv-srv { width: 38px; height: 38px; border-radius: 12px; background: var(--ink-3); border: 1px solid var(--line); }
.pv-srv.on { background: var(--honey); border-color: var(--honey); }
.pv-srv.g2 { background: #262420; } .pv-srv.g3 { background: #1d2118; } .pv-srv.g4 { background: #241a1a; }
.pv-rail-sep { width: 26px; height: 1px; background: var(--line-strong); margin: 4px 0; }
.pv-side { width: 210px; background: #171614; border-right: 1px solid var(--line); padding: 16px 12px; flex-shrink: 0; }
.pv-side-name { font-weight: 700; font-size: 0.82rem; letter-spacing: -0.01em; padding: 0 8px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.pv-side-name .lock { color: var(--honey); font-family: var(--mono); font-size: 0.6rem; }
.pv-cat { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-faint); margin: 14px 8px 6px; }
.pv-ch { font-size: 0.8rem; color: var(--cream-dim); padding: 5px 8px; border-radius: 6px; display: flex; gap: 7px; align-items: center; }
.pv-ch .h { color: var(--cream-faint); }
.pv-ch.on { background: rgba(242, 169, 59, 0.09); color: var(--cream); }
.pv-ch.on .h { color: var(--honey); }
.pv-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pv-head { height: 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 0.82rem; font-weight: 600; }
.pv-head .h { color: var(--honey); }
.pv-head .badge { margin-left: auto; font-family: var(--mono); font-size: 0.6rem; color: var(--moss); border: 1px solid rgba(143, 191, 127, 0.25); background: rgba(143, 191, 127, 0.07); padding: 3px 9px; border-radius: 100px; display: flex; align-items: center; gap: 5px; }
.pv-head .badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--moss); }
.pv-msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.pv-msg { display: flex; gap: 12px; }
.pv-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; }
.av-a { background: linear-gradient(135deg, #d98f3e, #a4661f); }
.av-b { background: linear-gradient(135deg, #8fbf7f, #5a8a4c); }
.av-c { background: linear-gradient(135deg, #c4b49a, #8d7d61); }
.pv-msg-name { font-size: 0.78rem; font-weight: 700; margin-bottom: 3px; }
.pv-msg-name span { font-family: var(--mono); font-size: 0.6rem; font-weight: 400; color: var(--cream-faint); margin-left: 8px; }
.n-a { color: var(--honey-bright); } .n-b { color: var(--moss); } .n-c { color: #c4b49a; }
.pv-msg-text { font-size: 0.82rem; color: var(--cream-dim); line-height: 1.55; }
.pv-input { margin: 0 18px 16px; border: 1px solid var(--line-strong); background: var(--ink); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.pv-input span { font-size: 0.8rem; color: var(--cream-faint); }
.pv-input .k { font-family: var(--mono); font-size: 0.6rem; color: var(--honey); letter-spacing: 0.08em; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 1.1rem 0; overflow: hidden; margin-top: 5.5rem; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: slide 32s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--cream-faint); text-transform: uppercase; white-space: nowrap; }
.marquee span b { color: var(--honey); font-weight: 500; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Sections ---------- */
section { padding: 7rem 0 0; }
.sec-head { display: flex; align-items: baseline; gap: 1.5rem; margin-bottom: 3rem; }
.sec-num { font-family: var(--mono); font-size: 0.75rem; color: var(--honey); letter-spacing: 0.1em; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.015em; line-height: 1.05; }
.sec-title em { font-style: italic; color: var(--honey); }
.sec-sub { color: var(--cream-dim); font-size: 1rem; line-height: 1.7; max-width: 52ch; margin-top: 1rem; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cell { background: var(--ink); padding: 2.4rem 2.2rem; transition: background 0.3s; position: relative; }
.cell:hover { background: var(--ink-2); }
.cell.wide { grid-column: span 2; }
.cell.full { grid-column: 1 / -1; }
.cell-icon { margin-bottom: 1.4rem; color: var(--honey); }
.cell h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.cell p { font-size: 0.88rem; color: var(--cream-dim); line-height: 1.65; max-width: 44ch; }
.cell .tag { position: absolute; top: 2.2rem; right: 2rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; color: var(--cream-faint); text-transform: uppercase; }

/* ---------- Import ---------- */
.import { margin-top: 7rem; background: var(--cream); color: var(--ink); border-radius: 20px; padding: 4.5rem 4rem; display: flex; justify-content: space-between; align-items: center; gap: 3rem; flex-wrap: wrap; }
.import h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 14ch; }
.import h2 em { font-style: italic; }
.import p { color: #55503f; font-size: 0.98rem; line-height: 1.7; max-width: 40ch; margin-top: 1rem; }
.import .btn { background: var(--ink); color: var(--cream); }
.import .btn:hover { background: #282623; transform: translateY(-2px); }
.import-steps { font-family: var(--mono); font-size: 0.72rem; color: #776f5a; margin-top: 1.6rem; display: flex; gap: 1.8rem; flex-wrap: wrap; }

/* ---------- Security ---------- */
.sec-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.terminal { background: #0c0b0a; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7); }
.term-bar { height: 36px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 14px; gap: 7px; }
.term-title { font-family: var(--mono); font-size: 0.62rem; color: var(--cream-faint); margin-left: 8px; }
.term-body { padding: 1.4rem 1.5rem; font-family: var(--mono); font-size: 0.74rem; line-height: 2.05; color: var(--cream-dim); }
.term-body .p { color: var(--cream-faint); }
.term-body .c { color: var(--honey); }
.term-body .g { color: var(--moss); }
.term-body .w { color: var(--cream); }
.algo-list { display: flex; flex-direction: column; }
.algo { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.algo:first-child { border-top: 1px solid var(--line); }
.algo-name { font-family: var(--mono); font-size: 1rem; color: var(--honey); font-weight: 500; white-space: nowrap; }
.algo-role { font-size: 0.85rem; font-weight: 600; color: var(--cream); text-align: right; }
.algo-desc { font-size: 0.78rem; color: var(--cream-faint); display: block; margin-top: 2px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 2.4rem 2.2rem; display: flex; flex-direction: column; transition: border-color 0.3s, transform 0.3s; background: var(--ink); }
.plan:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.plan.hot { border-color: rgba(242, 169, 59, 0.5); background: linear-gradient(170deg, rgba(242, 169, 59, 0.06), transparent 45%); position: relative; }
.plan.hot::before { content: 'MOST POPULAR'; position: absolute; top: -9px; left: 2.2rem; background: var(--honey); color: var(--ink); font-family: var(--mono); font-size: 0.56rem; font-weight: 600; letter-spacing: 0.14em; padding: 0.3rem 0.7rem; border-radius: 4px; }
.plan-name { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-faint); margin-bottom: 1.2rem; }
.plan.hot .plan-name { color: var(--honey); }
.plan-price { font-family: var(--serif); font-size: 3.4rem; line-height: 1; letter-spacing: -0.02em; }
.plan-price span { font-family: var(--sans); font-size: 0.85rem; color: var(--cream-faint); }
.plan-period { font-size: 0.78rem; color: var(--cream-faint); margin: 0.5rem 0 1.8rem; }
.plan ul { list-style: none; margin-bottom: 2.2rem; flex: 1; }
.plan li { font-size: 0.86rem; color: var(--cream-dim); padding: 0.42rem 0; display: flex; gap: 0.7rem; align-items: baseline; }
.plan li::before { content: '·'; color: var(--honey); font-weight: 900; }
.plan .btn { justify-content: center; }

/* ---------- Download / CTA ---------- */
.cta { margin: 8rem 0 0; padding: 7rem 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: auto -200px -300px; height: 500px; background: radial-gradient(ellipse at 50% 100%, rgba(242, 169, 59, 0.1), transparent 65%); pointer-events: none; }
.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 6.5vw, 5rem); letter-spacing: -0.02em; line-height: 1; }
.cta h2 em { font-style: italic; color: var(--honey); }
.cta p { color: var(--cream-dim); margin: 1.5rem auto 2.5rem; max-width: 46ch; line-height: 1.7; font-size: 1rem; }
.cta-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.cta-meta { margin-top: 2rem; font-family: var(--mono); font-size: 0.68rem; color: var(--cream-faint); letter-spacing: 0.05em; }
.cta-meta a { color: var(--cream-dim); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 3rem 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.foot-links a { color: var(--cream-dim); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.foot-links a:hover { color: var(--cream); }
.foot-right { font-family: var(--mono); font-size: 0.68rem; color: var(--cream-faint); }
.foot-right a { color: var(--honey); text-decoration: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .sec-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .bento { grid-template-columns: 1fr 1fr; }
    .cell.wide { grid-column: span 2; }
    .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .pv-side { display: none; }
}
@media (max-width: 680px) {
    .nav-links a:not(.nav-cta) { display: none; }
    .bento { grid-template-columns: 1fr; }
    .cell.wide { grid-column: span 1; }
    .import { padding: 3rem 2rem; }
    .pv-body { height: 380px; }
    .pv-rail { display: none; }
    .hero { padding-top: 4.5rem; }
    section { padding-top: 5rem; }
}

/* ---------- Demo button ---------- */
.btn-play { padding-left: 0.55rem; }
.play-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--honey); position: relative; flex-shrink: 0; }
.play-dot::after { content: ''; position: absolute; left: 12px; top: 9px; border-left: 9px solid var(--ink); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.nav-links a[aria-current="page"] { color: var(--cream); }

/* ---------- Affiliate band ---------- */
.aff-band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; margin: 0 0 5rem; padding: 2rem 2.4rem; border: 1px solid var(--line-strong); border-radius: 18px; text-decoration: none; color: var(--cream); background: linear-gradient(100deg, rgba(242, 169, 59, 0.08), transparent 60%); transition: border-color 0.2s, transform 0.2s; }
.aff-band:hover { border-color: rgba(242, 169, 59, 0.5); transform: translateY(-2px); }
.aff-band-k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--honey); margin-bottom: 0.5rem; }
.aff-band-t { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.01em; }
.aff-band-t em { font-style: italic; color: var(--honey); }
