:root {
  --paper: #f6f4ef;
  --ink: #111111;
  --mute: #6f6a62;
  --line: rgba(17, 17, 17, 0.08);
  --card: #fffcf7;
  --flow: #1f5fff;
  --pocket: #c24b2a;
  --shadow: 0 30px 80px rgba(40, 28, 12, 0.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 "Plus Jakarta Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
}
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.glow {
  position: fixed;
  inset: -20% 10% auto;
  height: 52vh;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(31, 95, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 72% 30%, rgba(194, 75, 42, 0.12), transparent 50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
.top, main, footer, .studio, .sheet { position: relative; z-index: 2; }
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 22px 28px;
  padding-top: max(22px, env(safe-area-inset-top));
  background: var(--paper);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}
.mark img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}
nav { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; }
nav .short { display: none; }
nav a, .ghost, .swap button {
  background: none;
  border: 0;
  color: var(--mute);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
nav [data-portal].on,
nav a.on {
  color: var(--ink);
}
.ink {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.ink.lg, .ghost.lg { padding: 15px 22px; font-size: 16px; }
.ghost.lg { color: var(--ink); }
.hero, .race, .film, .devices, .versus, .crafts, .world, .how, .faq, .trust, .join, .studio { max-width: 1080px; margin: 0 auto; padding: 72px 24px 24px; }
.hero { padding-top: 56px; text-align: center; }
.kicker {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--mute);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(52px, 9vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 800;
  margin: 0 0 22px;
}
h1 em, h2 em {
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 18px;
}
.lede { font-size: 19px; color: #3d3a35; max-width: 680px; margin: 0 auto; }
.lede strong { color: var(--ink); }
.cta { display: flex; gap: 16px; justify-content: center; align-items: center; margin: 32px 0 14px; flex-wrap: wrap; }
.fine { color: var(--mute); font-size: 14px; }
.demo { max-width: 1100px; margin: 0 auto; padding: 28px 16px 80px; }
.stage {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #e4dfd6; display: block; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  display: flex;
  background: #efece5;
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.seg-solo {
  border: 0;
  background: #efece5;
  color: var(--mute);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.seg-solo.on { background: var(--ink); color: #fff; }
.lang-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.lang-rail button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.lang-rail button.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.world-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  justify-content: center;
}
.world-cloud button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
}
.world-cloud button:hover, .world-cloud button.on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.stage[data-script="arab"] .raw,
.stage[data-script="arab"] .out,
.stage[data-script="arab"] .minutes,
.stage[data-script="arab"] .voices {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
}
.stage[data-script="deva"] .raw,
.stage[data-script="deva"] .out,
.stage[data-script="deva"] .minutes {
  font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif;
}
.stage[data-script="cjk"] .raw,
.stage[data-script="cjk"] .out,
.stage[data-script="cjk"] .minutes {
  font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}
.stage[data-script="ml"] .raw,
.stage[data-script="ml"] .out,
.stage[data-script="ml"] .minutes {
  font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif;
}
.listen {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px 28px 8px;
}
.orb {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4d7dff, #1f5fff 42%, #163bb3);
  box-shadow: 0 12px 30px rgba(31, 95, 255, 0.35);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.orb:hover { filter: brightness(1.06); }
.orb.holding { transform: scale(0.9); box-shadow: 0 8px 22px rgba(31, 95, 255, 0.45); }
.orb.hot { background: radial-gradient(circle at 35% 30%, #e07a5f, #c24b2a 50%, #8a2d16); box-shadow: 0 12px 30px rgba(194, 75, 42, 0.35); }
.orb.hot.holding { box-shadow: 0 8px 22px rgba(194, 75, 42, 0.5); }
.orb-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(31, 95, 255, 0.28);
  pointer-events: none;
  opacity: 0;
}
.orb-ring.r2 { inset: -26px; }
.orb.holding .orb-ring,
.orb.listening .orb-ring {
  opacity: 1;
  animation: orb-ring 1.5s ease-out infinite;
}
.orb.holding .orb-ring.r2,
.orb.listening .orb-ring.r2 { animation-delay: 0.45s; }
.orb.hot .orb-ring { border-color: rgba(194, 75, 42, 0.35); }
.orb-core {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.92;
  pointer-events: none;
}
.orb.listening .orb-core,
.orb.holding .orb-core { animation: pulse 0.85s ease-in-out infinite; }
.orb.holding { animation: orb-breathe 1s ease-in-out infinite; }
@keyframes orb-ring {
  0% { transform: scale(0.72); opacity: 0.55; }
  100% { transform: scale(1.15); opacity: 0; }
}
@keyframes orb-breathe {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
@keyframes pulse {
  50% { transform: scale(0.82); opacity: 0.7; }
}
.wave {
  display: flex;
  gap: 3px;
  height: 28px;
  align-items: center;
  min-width: 48px;
}
.wave b {
  width: 3px;
  border-radius: 99px;
  background: #1f5fff;
  display: block;
  height: 8px;
  animation: bar 0.9s ease-in-out infinite;
}
.orb.hot ~ .wave b { background: #c24b2a; }
.orb.holding ~ .wave b { animation-duration: 0.45s; }
@keyframes bar {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}
.listen-copy { min-height: 72px; }
.status { margin: 0; font-weight: 800; letter-spacing: -0.03em; font-size: 22px; }
.hint { margin: 6px 0 0; color: var(--mute); font-size: 14px; }
.raw-wrap { padding: 8px 28px 22px; }
.label, .pane-kicker, .pane header .where {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.raw {
  min-height: 4.6em;
  margin: 10px 0 14px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: #7a746a;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: #efece5;
  color: #3d3a35;
  opacity: 0;
  transform: translateY(6px);
  animation: pop 0.4s ease forwards;
}
.chip.flow { background: #e8eeff; color: #1f5fff; }
.chip.pocket { background: #f8e6df; color: #c24b2a; }
@keyframes pop { to { opacity: 1; transform: none; } }
.fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  min-height: 320px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.fork.open { opacity: 1; transform: none; pointer-events: auto; transition: 0.55s ease; }
.pane { padding: 22px 24px 24px; }
.pane.flow { border-right: 1px solid var(--line); background: linear-gradient(180deg, #f7f9ff, #fffcf7 40%); }
.pane.pocket { background: linear-gradient(180deg, #fff6f2, #fffcf7 40%); }
.pane header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.app { font-weight: 800; }
.pane.flow .app { color: var(--flow); }
.pane.pocket .app { color: var(--pocket); }
.out, .voices p, .minutes {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  min-height: 4.8em;
}
.voices { display: grid; gap: 8px; margin-bottom: 12px; }
.voices em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
  color: var(--pocket);
}
.minutes {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 5.2em;
  white-space: pre-wrap;
}
.composer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--mute);
  font-size: 13px;
  background: #fff;
}
.composer b { color: var(--flow); font-size: 12px; }
.composer.send b { color: var(--pocket); }
.race-grid, .craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.race-grid article, .craft {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.race-grid span, .tag {
  color: var(--mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.race-grid strong { display: block; font-size: 40px; letter-spacing: -0.05em; margin: 6px 0 14px; }
.race-grid p { min-height: 8em; margin: 0; color: #3d3a35; }
.race-grid .win { box-shadow: var(--shadow); }
.craft h3 { font-size: 32px; letter-spacing: -0.04em; margin: 8px 0 10px; }
.craft ul { margin: 16px 0; padding-left: 18px; color: #3d3a35; }
.craft a, .craft button, .craft .ghost { color: var(--ink); font-weight: 800; }
.trust {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: center;
}
.trust ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-weight: 700; }
.join ol { padding: 0; margin: 0 0 28px; list-style: none; display: grid; gap: 16px; }
.join li { display: grid; gap: 4px; }
.join li span { color: var(--mute); }
.sheet {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}
.sheet.hidden, .studio.hidden, .hidden { display: none; }
.panel {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.panel .x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: var(--mute);
  font-size: 28px;
  cursor: pointer;
}
.panel label { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.panel input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
.panel .ink { width: 100%; margin-top: 10px; }
.swap { text-align: center; display: grid; gap: 8px; justify-items: center; }
.err { color: #c24b2a; min-height: 1.2em; }
.studio { text-align: center; padding-bottom: 80px; }
.studio .craft, button.craft {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.studio .lede { margin-bottom: 8px; }
footer {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 20px 60px;
  color: var(--mute);
  font-size: 14px;
}
footer a { color: var(--mute); }
body.in-studio main { display: none; }
[dir="rtl"] .raw, [dir="rtl"] .out, [dir="rtl"] .minutes, [dir="rtl"] .voices { font-size: 18px; }
.scenes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1080px;
  margin: 48px auto 0;
  text-align: left;
}
.scene {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.scene.lead { grid-column: 1 / -1; }
.scene .frame {
  overflow: hidden;
  background: #ece7de;
}
.scene.lead .frame { aspect-ratio: 16 / 9; }
.scene:not(.lead) .frame { aspect-ratio: 4 / 3; }
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08) translate3d(0, calc((1 - var(--deal, 1)) * 24px), 0);
  will-change: transform;
}
.scene figcaption {
  padding: 14px 20px 18px;
  color: var(--mute);
  font-size: 14px;
}
@media (max-width: 800px) {
  .scenes { grid-template-columns: 1fr; }
  .scene.lead { grid-column: auto; }
}
.versus-grid, .device-grid, .how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.film-track {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 8px;
  padding: 8px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.film-track::-webkit-scrollbar { display: none; }
.film-track article {
  flex: 0 0 min(78vw, 280px);
  scroll-snap-align: center;
}
.versus-grid, .device-grid { grid-template-columns: 1fr 1fr 1fr; }
.device-grid { grid-template-columns: 1.2fr 0.8fr; }
.how-steps { grid-template-columns: 1fr 1fr 1fr; }
.film-track article, .versus-grid article, .how-steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  min-height: 180px;
}
.film-track article.on, .versus-grid .win {
  box-shadow: var(--shadow);
}
.film-track span { color: var(--mute); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }
.film-track h3, .versus-grid h3, .how-steps strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 10px 0 8px;
}
.device {
  text-align: center;
}
.bezel {
  background: #171513;
  border-radius: 22px;
  padding: 14px 14px 18px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
}
.phone .bezel { max-width: 280px; margin: 0 auto 14px; border-radius: 32px; }
.screen {
  background: #fffcf7;
  border-radius: 14px;
  min-height: 220px;
  padding: 22px;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.phone .screen { min-height: 320px; border-radius: 22px; }
.app-name { font-weight: 800; margin: 0 0 12px; }
.flow-screen .app-name { color: var(--flow); }
.pocket-screen .app-name { color: var(--pocket); }
.ghost-line { margin: 0; color: #3d3a35; min-height: 4.5em; }
.mini-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4d7dff, #1f5fff);
  margin-top: 22px;
  animation: pulse 1.4s ease-in-out infinite;
}
.mini-letter {
  margin-top: 22px;
  height: 72px;
  border-radius: 10px;
  background: linear-gradient(#fff, #f3eee6);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(194, 75, 42, 0.12);
}
.faq-list { display: grid; gap: 10px; margin-top: 28px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.faq-list summary { font-weight: 800; cursor: pointer; }
.faq-list p { margin: 10px 0 0; color: #3d3a35; }
.shuffle {
  --deal: 1;
  --sx: 0;
  --rot: 0;
  opacity: calc(0.2 + var(--deal) * 0.8);
  transform:
    translate3d(calc(var(--sx) * (1 - var(--deal)) * 1px), calc(32px * (1 - var(--deal))), 0)
    rotate(calc(var(--rot) * (1 - var(--deal)) * 1deg))
    scale(calc(0.92 + var(--deal) * 0.08));
  will-change: transform, opacity;
}
.shuffle.in { --deal: 1; }
@media (max-width: 860px) {
  .fork, .race-grid, .craft-grid, .trust, .versus-grid, .device-grid, .how-steps { grid-template-columns: 1fr; }
  .pane.flow { border-right: 0; border-bottom: 1px solid var(--line); }
  .top {
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
  }
  .mark { font-size: 18px; gap: 8px; flex: 0 0 auto; }
  .mark img { width: 24px; height: 24px; }
  nav { gap: 10px; min-width: 0; }
  nav a, nav .desk-only, nav .full { display: none; }
  nav .short { display: inline; }
  nav .ghost, nav .ink {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
  }
  nav .ink { padding: 8px 12px; }
  h1 { font-size: 48px; }
  .listen { flex-wrap: wrap; }
}
#words {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
#words b {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
  will-change: transform;
  opacity: 0.22;
  letter-spacing: -0.02em;
}
#words b[data-script="arab"] { font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif; }
#words b[data-script="deva"] { font-family: "Noto Sans Devanagari", "Noto Sans", sans-serif; }
#words b[data-script="cjk"] { font-family: "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif; }
#words b[data-script="ml"] { font-family: "Noto Sans Malayalam", "Noto Sans", sans-serif; }
.portal {
  position: fixed;
  top: var(--ace-top, 73px);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--paper);
}
.portal.hidden { display: none; }
.portal iframe { width: 100%; height: 100%; border: 0; background: var(--paper); }
body.in-portal {
  overflow: hidden;
}
body.in-portal .top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
body.in-portal main,
body.in-portal footer,
body.in-portal .studio,
body.in-portal .grain,
body.in-portal .hall-link,
body.in-portal #words,
body.in-portal #field,
body.in-portal .glow { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .mini-orb, .orb.holding, .orb.listening .orb-core, .orb.holding .orb-core, .orb-ring { animation: none; }
  .shuffle, .scene img { transform: none; opacity: 1; }
  #words { display: none; }
}
