@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Variable-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --space: #07060f;
  --space-2: #0d0b1c;
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --line: rgba(190, 180, 240, .18);
  --line-2: rgba(190, 180, 240, .34);
  --text: #f4f1fb;
  --dim: #bdb7d3;
  --gold: #ffb84d;
  --gold-2: #ffd591;
  --on-gold: #2a1800;
  --cyan: #5fe1ee;
  --violet: #a48bff;
  --danger: #ff9c9c;
  --ok: #7ef0b2;
  --confirm: #5c4800;
  --on-confirm: #fff0a8;
  --display: "Space Grotesk", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", "Kohinoor Devanagari", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--space); color: var(--text); font: 17px/1.6 var(--body); overflow-x: clip; }
html[lang="hi"] body { font-size: 18px; line-height: 1.75; }
h1, h2, h3 { font-family: var(--display); line-height: 1.16; margin: 0; letter-spacing: -.014em; text-wrap: balance; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { letter-spacing: 0; line-height: 1.36; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold-2); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
code { font: .9em var(--mono); background: var(--glass-2); padding: .1em .35em; border-radius: 5px; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: 8px; z-index: 30; }
.skip:focus { top: 10px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font: 500 .8rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
html[lang="hi"] .kicker { font-family: var(--body); font-size: .95rem; letter-spacing: 0; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border: 0; border-radius: 999px; font: 600 1rem var(--display); text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-main { background: linear-gradient(120deg, var(--gold), var(--gold-2)); color: var(--on-gold); box-shadow: 0 0 26px rgba(255, 184, 77, .35); }
.btn-main:hover { box-shadow: 0 0 40px rgba(255, 184, 77, .6); }
.btn-line { color: var(--text); background: var(--glass); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--cyan); }
.btn-quiet { min-height: 40px; padding: 6px 16px; font-size: .94rem; color: var(--text); background: var(--glass); border: 1px solid var(--line-2); }

.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 6, 15, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--gold); font: 600 1.14rem var(--display); text-decoration: none; }
.brand span { color: var(--text); }
.top-nav { display: flex; align-items: center; gap: 20px; }
.top-nav a:not(.btn) { color: var(--dim); text-decoration: none; font-size: .95rem; padding: 10px 0; }
.top-nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(900px 620px at 76% 34%, rgba(92, 66, 200, .42), transparent 68%), radial-gradient(700px 500px at 8% 92%, rgba(40, 170, 190, .16), transparent 70%), var(--space); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 44px; padding-block: 70px 86px; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 600; margin-top: 18px; }
.gradient-word { display: inline-block; background: linear-gradient(95deg, var(--gold), var(--gold-2) 40%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .25s ease, transform .25s ease; padding-bottom: .08em; }
.gradient-word.out { opacity: 0; transform: translateY(.25em); }
.lede { margin-top: 22px; max-width: 34em; font-size: 1.16rem; color: var(--dim); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.cta-note { margin-top: 14px; font-size: .93rem; color: var(--dim); }

/* The orbit */
.core-side { display: grid; gap: 22px; justify-items: center; }
.core { position: relative; width: min(450px, 100%); aspect-ratio: 1; }
.core-art { position: absolute; inset: 7%; color: var(--gold); }
.core-art .hero-art { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 0 16px rgba(255, 184, 77, .25)); }
.ring { animation: turn 80s linear infinite; }
.ring-1, .ring-3 { animation-direction: reverse; animation-duration: 110s; }
.ring-0 { animation-duration: 50s; }
@keyframes turn { to { transform: rotate(360deg); } }
.core-heart { position: absolute; inset: 37%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 213, 145, .55), rgba(255, 184, 77, .08) 62%, transparent 72%); animation: breathe 4.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.16); opacity: .75; } }
.node { position: absolute; left: var(--x, 50%); top: var(--y, 50%); translate: -50% -50%; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(16, 13, 36, .88); color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s, box-shadow .2s, scale .2s, background-color .2s; }
.node:hover { color: var(--text); border-color: var(--cyan); scale: 1.1; }
.node.on { color: var(--on-gold); background: var(--gold); border-color: var(--gold-2); box-shadow: 0 0 26px rgba(255, 184, 77, .7); scale: 1.14; }
.core-panel { width: min(450px, 100%); min-height: 172px; padding: 16px 20px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.core-panel p { margin-top: 5px; color: var(--dim); font-size: .97rem; }
.link-btn { display: inline-block; margin-top: 8px; padding: 6px 0; min-height: 36px; background: none; border: 0; color: var(--cyan); font: 600 .95rem var(--display); text-decoration: none; cursor: pointer; }
.link-btn::after { content: " →"; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
html:not(.js) .core-side { display: none; }
html:not(.js) .hero-grid { grid-template-columns: 1fr; }

/* Sections */
.band { position: relative; padding-block: 92px; border-top: 1px solid var(--line); }
.band-alt { background: linear-gradient(180deg, var(--space-2), var(--space)); }
.band h2 { margin-top: 12px; }
.intro { margin-top: 14px; max-width: 44em; color: var(--dim); font-size: 1.08rem; }
.panel { border-radius: 22px; background: var(--glass); border: 1px solid var(--line); }
html:not(.js) #try, html:not(.js) #read, html:not(.js) #talk, html:not(.js) #check { display: none; }

/* Conversation demo */
.demo { display: grid; grid-template-columns: .82fr 1.18fr; gap: 40px; align-items: start; margin-top: 44px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-chip { min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); color: var(--text); cursor: pointer; font-size: .97rem; text-align: start; transition: border-color .15s, background-color .15s, color .15s; }
.demo-chip:hover { border-color: var(--cyan); }
.demo-chip.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.demo-private { margin-top: 18px; font-size: .92rem; color: var(--dim); }
.demo-more { margin-top: 16px; }
.terminal { overflow: hidden; box-shadow: 0 30px 80px rgba(10, 6, 40, .7), 0 0 60px rgba(100, 80, 230, .16); }
.terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: .88rem; }
.badge { padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(95, 225, 238, .45); color: var(--cyan); font-size: .78rem; white-space: nowrap; }
.screen { display: flex; flex-direction: column; gap: 10px; height: 410px; padding: 18px; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: contain; }
.bubble { padding: 10px 14px; border-radius: 16px; max-width: 88%; white-space: pre-line; overflow-wrap: anywhere; animation: arrive .3s ease; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
.bubble.you { align-self: flex-end; background: linear-gradient(120deg, #4f3bb5, #6a4fd4); border-bottom-right-radius: 5px; }
.bubble.me { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.attach { display: block; font-size: .8rem; opacity: .85; margin-bottom: 4px; }
.attach::before { content: "▣ "; }
.status { align-self: flex-start; color: var(--cyan); font-size: .9rem; animation: arrive .3s ease; }
.status::after { content: "…"; }
.words { white-space: pre-line; }
.reply-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .84rem; color: var(--gold-2); }
.demo-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.demo-form input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-2); color: var(--text); font: inherit; }
.demo-form input::placeholder { color: var(--dim); }
.demo-form .btn { padding-inline: 18px; min-height: 46px; }

/* Bill reader and sheet */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-text .actions { margin-top: 24px; }
.result-note { margin-top: 18px; min-height: 5.4em; padding: 14px 18px; border-left: 3px solid var(--line-2); color: var(--dim); transition: border-color .2s, color .2s; }
.result-note.said { color: var(--text); border-color: var(--gold); }
.paper { position: relative; overflow: hidden; padding: 24px; border-radius: 18px; background: #f7f3e8; color: #231f38; box-shadow: 0 26px 70px rgba(8, 4, 34, .7); }
.paper-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid #231f38; }
.paper-head b { font-family: var(--display); font-size: 1.05rem; }
.paper-head span { padding: 2px 9px; border-radius: 999px; background: #e7dcc1; font-size: .78rem; white-space: nowrap; }
.bill-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; min-height: 46px; padding: 10px; margin-top: 4px; background: none; border: 1px solid transparent; border-radius: 9px; color: inherit; text-align: start; }
.bill-line:disabled { color: inherit; }
.bill-line b { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.read .bill-line { cursor: pointer; animation: glow 2.2s ease-in-out infinite; border-color: rgba(190, 110, 0, .55); background: rgba(255, 184, 77, .18); }
.read .bill-line:hover { background: rgba(255, 184, 77, .38); }
.read .bill-line.open { animation: none; background: #231f38; color: #fff; border-color: #231f38; }
@keyframes glow { 50% { background: rgba(255, 184, 77, .34); } }
.scan-beam { display: none; position: absolute; inset-inline: 0; top: 0; height: 74px; background: linear-gradient(180deg, transparent, rgba(35, 180, 200, .4)); border-bottom: 2px solid #12a8ba; pointer-events: none; }
.scanning .scan-beam { display: block; animation: scan 1.9s ease-in-out; }
@keyframes scan { from { top: -74px; } to { top: 100%; } }

.sheet { width: 100%; border-collapse: collapse; font-size: .98rem; }
.sheet th, .sheet td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; }
.sheet th { color: var(--dim); font-weight: 500; font-size: .86rem; }
.sheet td:last-child, .sheet th:last-child { text-align: end; font-family: var(--mono); }
.sheet tbody tr { transition: background-color .2s; }
.sheet tbody tr.on { background: rgba(95, 225, 238, .22); }
.sheet tbody tr.done td:last-child { color: var(--ok); }
.sheet tfoot td { font-weight: 700; border-bottom: 0; transition: color .2s; }
.sheet tfoot tr.wrong td { color: var(--danger); }
.sheet-box { padding: 8px; }
.sheet-running { padding: 10px 14px; color: var(--cyan); font-family: var(--mono); min-height: 2.8em; }
html[lang="hi"] .sheet-running { font-family: var(--body); }
.sheet-result { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--danger); }

/* Voice */
.talk { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 44px; }
.orb-box { display: grid; place-items: center; min-height: 400px; }
.orb { --level: 0; position: relative; width: 170px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff1d6, var(--gold) 34%, #a4490c 74%, #3c1a33); box-shadow: 0 0 calc(40px + 80px * var(--level)) rgba(255, 184, 77, .55); scale: calc(1 + .16 * var(--level)); transition: box-shadow .1s linear, scale .1s linear; }
.orb::before, .orb::after { content: ""; position: absolute; inset: -30px; border-radius: 50%; border: 1px solid rgba(255, 184, 77, .4); scale: calc(1 + .38 * var(--level)); transition: scale .12s linear; }
.orb::after { inset: -52px; border-color: rgba(95, 225, 238, .28); scale: calc(1 + .3 * var(--level)); }
.orb.listening { background: radial-gradient(circle at 34% 30%, #dcfbff, var(--cyan) 36%, #1a6c88 76%, #1a1a4b); box-shadow: 0 0 70px rgba(95, 225, 238, .6); animation: breathe 1.1s ease-in-out infinite; }
.orb.thinking { background: radial-gradient(circle at 34% 30%, #efe7ff, var(--violet) 36%, #4a2fa5 76%, #1a1a4b); box-shadow: 0 0 70px rgba(164, 139, 255, .6); animation: breathe .7s ease-in-out infinite; }
.talk-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.talk-steps li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); font-size: .9rem; transition: background-color .2s, color .2s, border-color .2s; }
.talk-steps li.on { color: var(--on-gold); background: var(--gold); border-color: var(--gold); font-weight: 600; }
.talk-lines { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 10px; min-height: 124px; }
.talk-lines .bubble { animation: none; }
.talk-lines .bubble:empty { display: none; }
.small { font-size: .9rem; color: var(--dim); }
.talk .actions { margin-top: 0; }

.lang-box { margin-top: 70px; padding: 30px; }
.lang-box .small { margin-top: 4px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.langs button { min-height: 44px; padding: 7px 15px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); cursor: pointer; }
.langs button:hover { border-color: var(--cyan); }
.langs button.on { background: var(--cyan); color: #04262b; border-color: var(--cyan); font-weight: 600; }
.lang-shown { margin-top: 22px; font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.45; min-height: 3em; }
.lang-shown.flash { animation: arrive .35s ease; }

/* Everything else */
.can { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.can li { padding: 24px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: border-color .2s, transform .2s, background-color .2s; }
.can li:hover { border-color: var(--line-2); background: var(--glass-2); transform: translateY(-3px); }
.can .icon { display: block; color: var(--gold); margin-bottom: 14px; }
.can p { margin-top: 7px; color: var(--dim); font-size: .97rem; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.days, .ways { margin-top: 28px; display: grid; gap: 22px; }
.days li, .ways li { padding-left: 18px; border-left: 2px solid var(--gold); }
.days p, .ways p { margin-top: 4px; color: var(--dim); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 46px; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); box-shadow: 0 0 20px rgba(255, 184, 77, .3); font: 600 1.05rem var(--mono); }
.steps p { margin-top: 6px; color: var(--dim); }
#join .actions { margin-top: 42px; }
.join-note { font-size: .94rem; color: var(--dim); }

.yours { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; margin-top: 44px; }
.yours li { display: flex; gap: 16px; align-items: flex-start; }
.yours .icon { flex: none; color: var(--gold); margin-top: 2px; }
.yours p { margin-top: 5px; color: var(--dim); }
.note { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); max-width: 52em; }

.faq { margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font: 600 1.06rem var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 1.5rem; font-weight: 400; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 20px; color: var(--dim); }

.end { padding-block: 104px; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(600px 340px at 50% 60%, rgba(92, 66, 200, .4), transparent 72%); }
.end .mark { color: var(--gold); display: block; margin: 0 auto 18px; filter: drop-shadow(0 0 14px rgba(255, 184, 77, .6)); }
.end h1, .end h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0 0 26px; }
.end p { margin: -14px 0 26px; color: var(--dim); }

.foot { border-top: 1px solid var(--line); background: var(--space); color: var(--dim); padding-block: 36px; font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px; }
.foot p { margin-top: 6px; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.foot nav a { color: var(--dim); padding: 8px 0; }
.foot nav a:hover { color: var(--text); }

.legal { padding-block: 56px 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: 18px; }
.legal h2 { font-size: 1.32rem; margin-top: 36px; margin-bottom: 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 10px; }
.legal ul + p { margin-top: 12px; }
.updated { color: var(--dim); font-size: .95rem; margin-bottom: 18px; }
.draft { padding: 12px 16px; margin-bottom: 18px; border-radius: 10px; background: var(--confirm); color: var(--on-confirm); font-weight: 600; }
.confirm { background: var(--confirm); color: var(--on-confirm); padding: .05em .3em; border-radius: 4px; font-weight: 600; }

@media (max-width: 940px) {
  .hero-grid, .demo, .split, .talk, .two { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding-block: 48px 60px; }
  .demo, .split, .talk { gap: 32px; }
  .can { grid-template-columns: 1fr 1fr; }
  .top-nav .wide { display: none; }
  .band { padding-block: 66px; }
  .two { gap: 56px; }
  .orb-box { min-height: 300px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .can, .steps, .yours { grid-template-columns: 1fr; }
  .top-nav { gap: 12px; }
  .actions .btn { width: 100%; }
  .core { width: min(340px, 100% - 34px); }
  .node { width: 46px; height: 46px; }
  .node .icon { width: 20px; height: 20px; }
  .screen { height: 390px; padding: 14px; }
  .lang-box { padding: 20px; }
  .paper { padding: 16px; }
  .orb { width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
