:root {
  --bg: #070707;
  --bg-2: #0d0d0d;
  --card: rgba(255, 255, 255, 0.035);
  --card-hi: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-hi: rgba(255, 255, 255, 0.14);
  --text: #f2f1ed;
  --text-2: rgba(242, 241, 237, 0.66);
  --text-3: rgba(242, 241, 237, 0.42);
  --paper: #f7f6f2;
  --ink: #0d0d0d;
  --radius: 22px;
  --max: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
@media (min-width: 720px) { .wrap { width: min(var(--max), calc(100% - 64px)); } }

/* Grain + light */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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)'/%3E%3C/svg%3E"); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 7, 7, 0.72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); border-color: var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 640; font-size: 19px; letter-spacing: -0.03em; }
.logo svg { width: 22px; height: 22px; }
.nav-links { display: none; gap: 26px; font-size: 14.5px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }
.gh { display: none; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.gh:hover { color: var(--text); }
@media (min-width: 900px) { .nav-links, .gh { display: flex; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 560; font-size: 15.5px; letter-spacing: -0.01em; transition: transform 0.2s, background 0.2s, box-shadow 0.2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 10px 40px rgba(247,246,242,0.12); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 14px 50px rgba(247,246,242,0.2); }
.btn.ghost { background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn.ghost:hover { background: rgba(255,255,255,0.1); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn .tag { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,0.1); color: var(--text-2); letter-spacing: 0.02em; }

/* Hero */
.hero { position: relative; padding: 148px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: -240px; width: 1400px; height: 900px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(247,246,242,0.09) 0%, rgba(247,246,242,0) 60%); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--text-2); }
.eyebrow b { font-weight: 600; color: var(--ink); background: var(--paper); padding: 3px 9px; border-radius: 999px; font-size: 12px; }
h1 { font-size: clamp(44px, 8.4vw, 104px); line-height: 1; letter-spacing: -0.045em; font-weight: 680; margin: 26px auto 0; max-width: 11.5em; }
h1 .soft { color: var(--text-3); }
.lede { font-size: clamp(17px, 2vw, 21px); color: var(--text-2); max-width: 36em; margin: 26px auto 0; letter-spacing: -0.012em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--text-3); }

.showreel { position: relative; margin: 72px auto 0; max-width: 1120px; }
.showreel .frame { position: relative; border-radius: 22px; overflow: hidden; background: #000 url("assets/kokon-poster.jpg") center / cover; box-shadow: 0 0 0 1px var(--line-hi), 0 60px 160px rgba(0,0,0,0.75), 0 0 120px rgba(247,246,242,0.06); aspect-ratio: 16 / 9; }
.showreel video { width: 100%; height: 100%; object-fit: cover; }
.showreel .glow { position: absolute; inset: 8% 4% -6%; background: radial-gradient(ellipse at center, rgba(255,214,140,0.16), transparent 65%); filter: blur(40px); z-index: -1; }
.sound { position: absolute; right: 16px; bottom: 16px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(0,0,0,0.55); backdrop-filter: blur(10px); font-size: 13px; color: #fff; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }

/* Runs on */
.runs { padding: 64px 0 24px; text-align: center; }
.runs p { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 22px; }
.runs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.runs li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-weight: 560; font-size: 17px; letter-spacing: -0.01em; }
.runs svg { width: 24px; height: 24px; fill: currentColor; }

/* Sections */
section { position: relative; }
.sec { padding: 120px 0 0; }
.kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }
h2 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; letter-spacing: -0.042em; font-weight: 670; margin: 0; max-width: 14em; }
.sec-lede { font-size: 19px; color: var(--text-2); max-width: 34em; margin: 20px 0 0; letter-spacing: -0.01em; }
.center { text-align: center; }
.center h2, .center .sec-lede { margin-left: auto; margin-right: auto; }

/* Compare */
.studio { margin-top: 48px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: rgba(0,0,0,0.35); border-radius: 16px; width: max-content; max-width: 100%; margin: 0 auto 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 38px; padding: 0 16px; border-radius: 12px; font-size: 14.5px; font-weight: 520; color: var(--text-2); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--paper); color: var(--ink); }
.cmp { position: relative; border-radius: 16px; overflow: hidden; background: #000; user-select: none; touch-action: pan-y; cursor: ew-resize; aspect-ratio: 16 / 9; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.cmp .before { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.cmp .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 0 24px rgba(255,255,255,0.4); pointer-events: none; }
.cmp .handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,0.45); display: grid; place-items: center; color: #111; }
.cmp .lbl { position: absolute; top: 14px; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; color: #fff; background: rgba(0,0,0,0.55); backdrop-filter: blur(8px); pointer-events: none; }
.cmp .lbl.l { left: 14px; } .cmp .lbl.r { right: 14px; }
.cmp .bg-blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(40px) brightness(0.35) saturate(1.2); transform: scale(1.1); }
.promptbar { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 20px; border-radius: 18px; background: #1a1a1a; box-shadow: inset 0 0 0 1px var(--line); }
.promptbar .mode { flex: none; font-size: 12.5px; font-weight: 560; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,0.08); color: var(--text-2); }
.promptbar .txt { flex: 1; min-width: 0; font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.promptbar .send { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.honest { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--text-3); }

/* Bento */
.bento { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(6, 1fr); } .b-wide { grid-column: span 4; } .b-mid { grid-column: span 3; } .b-small { grid-column: span 2; } }
.card { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)); box-shadow: inset 0 0 0 1px var(--line); padding: 30px; overflow: hidden; min-height: 280px; display: flex; flex-direction: column; }
.card h3 { margin: 0; font-size: 24px; letter-spacing: -0.035em; font-weight: 640; line-height: 1.15; }
.card p { margin: 10px 0 0; color: var(--text-2); font-size: 15.5px; max-width: 30em; }
.card .vis { margin-top: auto; padding-top: 26px; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,0.07); display: grid; place-items: center; margin-bottom: 20px; box-shadow: inset 0 0 0 1px var(--line); }
.icon svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mask-demo { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.mask-demo img { width: 100%; height: 100%; object-fit: cover; }
.mask-demo svg { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: difference; opacity: 0.75; }
.mask-demo .path { stroke-dasharray: 3000; stroke-dashoffset: 3000; transition: stroke-dashoffset 2.6s cubic-bezier(0.65, 0, 0.35, 1); }
.mask-demo.in .path { stroke-dashoffset: 0; }
.mask-demo .after { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s 2.8s; }
.mask-demo.in .after { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; font-size: 13.5px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.chip.on { background: var(--paper); color: var(--ink); box-shadow: none; font-weight: 560; }
.timeline { display: flex; align-items: center; gap: 0; }
.timeline .t { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; flex: none; outline: 2px solid transparent; outline-offset: 3px; }
.timeline .t.sel { outline-color: var(--text); }
.timeline .t img { width: 100%; height: 100%; object-fit: cover; }
.timeline .j { width: 22px; height: 2px; background: var(--line-hi); flex: none; }
.timeline .lbls { display: flex; gap: 0; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.big-num { font-size: 64px; font-weight: 680; letter-spacing: -0.05em; line-height: 1; }
.big-num small { font-size: 20px; font-weight: 520; color: var(--text-2); letter-spacing: -0.01em; margin-left: 6px; }

/* Agent */
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .split { grid-template-columns: 1fr 1.12fr; gap: 72px; } }
.term { border-radius: 18px; background: #0c0c0c; box-shadow: 0 0 0 1px var(--line-hi), 0 40px 120px rgba(0,0,0,0.6); overflow: hidden; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; }
.term-head { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #151515; font-family: var(--font); font-size: 12.5px; color: var(--text-3); }
.term-head i { width: 11px; height: 11px; border-radius: 50%; background: #333; }
.term-body { padding: 20px 22px 22px; color: #cfcfcf; overflow-x: auto; }
.term-body .c { color: #6f6f6f; }
.term-body .w { color: #f2f2f2; }
.term-body .d { color: #9a9a9a; }
.term-body img { margin-top: 14px; border-radius: 10px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tools code { font-family: var(--mono); font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.copy { margin-top: 26px; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 14px; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.copy code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.copy button { flex: none; height: 32px; padding: 0 12px; border-radius: 9px; background: rgba(255,255,255,0.08); font-family: var(--font); font-size: 13px; color: var(--text); }
.copy button:hover { background: rgba(255,255,255,0.14); }

/* Requirements */
.req { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .req { grid-template-columns: 1fr 1fr; } }
.req .card { min-height: 0; }
.req h3 { display: flex; align-items: center; gap: 12px; }
.req h3 svg { width: 26px; height: 26px; fill: var(--text); }
.rows { margin-top: 18px; }
.row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.row span:first-child { color: var(--text-3); }
.row span:last-child { text-align: right; color: var(--text); }
.beta { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; background: rgba(255,255,255,0.1); color: var(--text-2); margin-left: 6px; vertical-align: 1px; }

/* Privacy */
.privacy { margin-top: 48px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .privacy { grid-template-columns: repeat(3, 1fr); } }
.privacy .card { min-height: 0; }

/* FAQ */
.faq { margin-top: 40px; max-width: 860px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 19px; font-weight: 560; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 1; color: var(--text-3); transition: transform 0.25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: -6px 0 22px; color: var(--text-2); max-width: 44em; }

/* Maker */
.maker { display: inline-flex; align-items: center; gap: 14px; margin-top: 56px; padding: 10px 22px 10px 10px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; transition: background 0.2s; }
.maker:hover { background: var(--card-hi); }
.maker-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.12); }
.maker b { display: block; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.maker small { display: block; color: var(--text-2); font-size: 13.5px; }
footer .me { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
footer .me:hover { color: var(--text); }

/* Final */
.final { padding: 160px 0 120px; text-align: center; position: relative; }
.final::before { content: ""; position: absolute; left: 50%; top: 40px; width: 1100px; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(247,246,242,0.08), transparent 60%); pointer-events: none; }
.final .mark { width: 64px; height: 64px; margin: 0 auto 30px; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--text-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }
.legal { width: 100%; font-size: 12.5px; color: var(--text-3); opacity: 0.8; }

/* Reveal */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; } .rv.d2 { transition-delay: 0.16s; } .rv.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .mask-demo .path { transition: none; stroke-dashoffset: 0; } .mask-demo .after { transition: none; } }

/* Steps + comparison */
.step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); color: var(--ink); font-weight: 650; font-size: 15px; margin-bottom: 18px; }
.table-wrap { margin-top: 44px; overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 16px 20px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { border-top: 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.cmp-table thead th span { font-weight: 450; font-size: 13px; color: var(--text-3); }
.cmp-table td:first-child { color: var(--text-2); width: 30%; }
.cmp-table td { color: var(--text-3); }
.cmp-table .us { color: var(--text); font-weight: 560; background: rgba(255,255,255,0.035); }
.cmp-table thead .us { color: var(--paper); }

/* Article pages (guides) */
.article { padding: 120px 0 40px; }
.wrap.narrow { width: min(780px, calc(100% - 32px)); }
.crumbs { font-size: 14px; color: var(--text-3); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; }
.article h1 { font-size: clamp(36px, 5.4vw, 58px); letter-spacing: -0.04em; line-height: 1.06; margin: 0; max-width: none; }
.article h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -0.03em; line-height: 1.15; margin: 64px 0 0; max-width: none; }
.article h3 { font-size: 18px; letter-spacing: -0.015em; margin: 28px 0 0; font-weight: 600; }
.article p, .article li { color: var(--text-2); font-size: 17px; }
.article p { margin: 16px 0 0; }
.article strong { color: var(--text); font-weight: 600; }
.article a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.article a:not(.btn):hover { text-decoration-color: var(--text); }
.article ul, .article ol { margin: 16px 0 0; padding-left: 22px; }
.article li { margin: 8px 0; }
.article .table-wrap { margin-top: 24px; }
.article .cmp-table { min-width: 560px; }
.lede-left { font-size: 20px !important; margin-top: 22px !important; letter-spacing: -0.01em; }
.article figure { margin: 44px 0 0; }
.article figure img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line-hi), 0 40px 120px rgba(0,0,0,0.6); width: 100%; height: auto; }
.article figcaption { margin-top: 12px; font-size: 14px; color: var(--text-3); text-align: center; }
.article .term { margin-top: 40px; }
.article code { font-family: var(--mono); font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.07); color: var(--text); }
.article pre { margin: 14px 0 0; padding: 16px 18px; border-radius: 14px; background: #0f0f0f; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.article pre code { padding: 0; background: none; font-size: 13.5px; line-height: 1.6; color: #d6d6d6; }
.note { font-size: 15px !important; color: var(--text-3) !important; }
.cta-box { margin: 72px 0 40px; padding: 36px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); box-shadow: inset 0 0 0 1px var(--line); }
.cta-box h2 { margin: 0 !important; }
