/* Landing page styles. One accent (emerald), cool neutrals, light + dark via prefers-color-scheme.
   Shape system: cards 20px, inner elements 12px, interactive controls fully rounded. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f6f8;
  --bg-alt: #eceef1;
  --surface: #fcfcfd;
  --surface-2: #f1f3f5;
  --ink: #0e1013;
  --ink-2: #353a42;
  --muted: #5a616d;
  --line: rgba(14, 16, 19, 0.08);
  --line-2: rgba(14, 16, 19, 0.14);
  --accent: #0b7a57;
  --accent-hover: #096a4b;
  --accent-ink: #fcfcfd;
  --accent-text: #08694b;
  --accent-soft: #e0f2ea;
  --accent-line: rgba(11, 122, 87, 0.28);
  --mark: rgba(11, 122, 87, 0.16);
  --dark-cell: #121518;
  --dark-cell-ink: #eef0f2;
  --dark-cell-muted: #a3aab4;
  --shadow-sm: 0 1px 2px rgba(16, 32, 26, 0.06);
  --shadow: 0 1px 2px rgba(16, 32, 26, 0.05), 0 18px 40px -18px rgba(16, 32, 26, 0.22);
  --shadow-lg: 0 2px 4px rgba(16, 32, 26, 0.04), 0 40px 80px -32px rgba(16, 32, 26, 0.32);
  --r-card: 20px;
  --r-sm: 12px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0e10;
    --bg-alt: #111417;
    --surface: #15181b;
    --surface-2: #1b1f23;
    --ink: #eef0f2;
    --ink-2: #c6cbd2;
    --muted: #98a0ab;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --accent: #3ddc97;
    --accent-hover: #5ee6a8;
    --accent-ink: #062619;
    --accent-text: #5ee6a8;
    --accent-soft: rgba(61, 220, 151, 0.1);
    --accent-line: rgba(61, 220, 151, 0.3);
    --mark: rgba(61, 220, 151, 0.2);
    --dark-cell: #1c2125;
    --dark-cell-ink: #eef0f2;
    --dark-cell-muted: #a3aab4;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 40px 80px -32px rgba(0, 0, 0, 0.8);
  }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mark); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 920px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-xs { width: 0.95em; height: 0.95em; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 20px -10px var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-2); }
.btn-ghost .icon { transition: transform 0.25s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; letter-spacing: -0.02em; text-decoration: none; font-size: 17px;
}
.brand img { border-radius: 9px; }
.brand span { white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before { /* soft emerald light behind the demo */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 700px; right: -220px; top: -160px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.04; max-width: 15ch; }
.hero-sub { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 30em; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ---------------------------------------------------------------- demo (working mini version of the extension) */

.demo { margin: 0; }
.demo-window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.demo-url {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
}
.demo-url > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-ext {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 4px 4px 4px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.demo-ext-icon {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}
.demo-ext-icon .icon { width: 16px; height: 16px; }
.demo-ext-lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.demo-ext-lang .icon { color: var(--muted); }
.demo-toggle {
  height: 30px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 600;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.demo-toggle:active { transform: scale(0.96); }
.demo-toggle[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

.demo-page { position: relative; padding: 28px 30px 34px; min-height: 270px; }
.demo-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 16px;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
  transition: color 0.3s, background-color 0.3s;
}
.demo-page.is-translated .demo-status { color: var(--accent-text); background: var(--accent-soft); }
.demo-title { font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 14px; }
.demo-text { color: var(--ink-2); font-size: 17px; line-height: 1.65; }
.demo-text + .demo-text { margin-top: 10px; }
.demo-page [data-seg] { transition: opacity 0.28s var(--ease), filter 0.28s var(--ease), transform 0.28s var(--ease); }
.demo-page [data-seg].is-swapping { opacity: 0; filter: blur(6px); transform: translateY(4px); }
.demo-page.is-translated [data-seg] { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.demo-page.is-translated .demo-title { text-decoration: none; }
mark.demo-pick { background: transparent; color: inherit; border-radius: 4px; transition: background-color 0.35s var(--ease); }
mark.demo-pick.is-picked { background: var(--mark); box-shadow: 0 0 0 2px var(--mark); }

.demo-bubble {
  position: absolute; left: 30px; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 60px);
  padding: 8px 8px 8px 14px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(6px) scale(0.98); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.demo-bubble.is-open { opacity: 1; transform: none; pointer-events: auto; }
.bubble-lang {
  font-size: 11px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .bubble-lang { color: #0b7a57; } }
.bubble-text { font-size: 15px; font-weight: 550; }
.bubble-speak {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 999px;
  border: 0; cursor: pointer; background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg);
}
.bubble-speak:hover { background: color-mix(in srgb, var(--bg) 24%, transparent); }
.bubble-speak .icon { width: 16px; height: 16px; }

.demo-langs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-left: 4px; }
.demo-langs-label { font-size: 14px; color: var(--muted); }
.demo-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.demo-tab {
  height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; font-size: 14px; font-weight: 550; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.demo-tab:hover { border-color: var(--ink-2); }
.demo-tab:active { transform: scale(0.96); }
.demo-tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------------------------------------------------------------- languages marquee */

.langs { padding: 8px 0 24px; }
.langs-title { font-size: 15px; font-weight: 550; letter-spacing: 0; color: var(--muted); text-align: center; margin-bottom: 22px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li {
  flex: none; padding: 10px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 18px; font-weight: 550; color: var(--ink-2); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */

.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.035em; max-width: 18ch; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 60ch; }
.section-title + .bento, .section-title + .steps { margin-top: 52px; }

/* ---------------------------------------------------------------- features bento */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: 30px; border-radius: var(--r-card); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.cell h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: -0.02em; }
.cell p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 42ch; }
.icon-head { width: 22px; height: 22px; color: var(--accent-text); }
.cell-page { grid-column: span 7; min-height: 380px; }
.cell-select { grid-column: span 5; }
.cell-word { grid-column: span 4; }
.cell-voice { grid-column: span 3; }
.cell-bi { grid-column: span 5; }

.cell-dark { background: var(--dark-cell); border-color: transparent; color: var(--dark-cell-ink); }
.cell-dark p { color: var(--dark-cell-muted); }
.cell-dark .icon-head { color: #5ee6a8; }
.cell-tint { background: var(--accent-soft); border-color: var(--accent-line); }

/* whole page: one sentence cycling through languages */
.cell-page {
  background:
    radial-gradient(120% 90% at 100% 100%, var(--accent-soft), transparent 60%),
    var(--surface);
}
.cycle { display: grid; gap: 14px; }
.cycle-source { font-size: 15px; color: var(--muted); font-family: var(--mono); }
.cycle-stage { position: relative; height: 3.4em; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.1; }
.cycle-item {
  position: absolute; inset: 0 auto auto 0; display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(10px);
}
.cycle-item em {
  font-style: normal; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--accent-text); padding: 3px 8px; border-radius: 999px; background: var(--accent-soft);
  transform: translateY(-0.5em);
}
.cycle-item:first-child { opacity: 1; transform: none; }
.js .cycle-item { animation: cycle 15s var(--ease) infinite both; }
.js .cycle-item:nth-child(2) { animation-delay: 3s; }
.js .cycle-item:nth-child(3) { animation-delay: 6s; }
.js .cycle-item:nth-child(4) { animation-delay: 9s; }
.js .cycle-item:nth-child(5) { animation-delay: 12s; }
.js .cycle-item:first-child { opacity: 0; transform: translateY(10px); }
@keyframes cycle {
  0% { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  4%, 18% { opacity: 1; transform: none; filter: blur(0); }
  22%, 100% { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
}

/* select to translate */
.select-demo { position: relative; padding-bottom: 52px; }
.select-demo p { margin: 0; max-width: none; font-size: 19px; line-height: 1.6; color: var(--dark-cell-ink); }
.sel { background: rgba(61, 220, 151, 0.28); border-radius: 4px; box-shadow: 0 0 0 2px rgba(61, 220, 151, 0.28); }
.select-pop {
  position: absolute; left: 16%; bottom: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--r-sm);
  background: #fcfcfd; color: #0e1013; font-size: 15px; font-weight: 600;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}
.select-pop::before {
  content: ""; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px;
  background: inherit; transform: rotate(45deg); border-radius: 2px;
}
.select-pop .icon { color: #0b7a57; }

/* dictionary card */
.dict { padding: 18px 20px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); }
.dict p { margin: 0; max-width: none; }
.dict-word { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }
.dict-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px !important; }
.dict-pos {
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
}
.dict-ipa { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.dict-def { margin-top: 10px !important; font-size: 15px !important; color: var(--ink-2) !important; }

/* text to speech */
.voice { display: flex; align-items: center; gap: 16px; }
.voice-play {
  display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px var(--accent);
}
.voice-play .icon { width: 22px; height: 22px; }
.voice-bars { display: flex; align-items: center; gap: 4px; height: 44px; }
.voice-bars i { display: block; width: 4px; height: 100%; border-radius: 4px; background: var(--accent-text); opacity: 0.85; transform-origin: center; transform: scaleY(0.35); }
.voice-bars i:nth-child(3n) { transform: scaleY(0.7); }
.voice-bars i:nth-child(4n + 1) { transform: scaleY(0.5); }
.js .voice-bars i { animation: bar 1.4s ease-in-out infinite; }
.js .voice-bars i:nth-child(2) { animation-delay: -0.2s; } .js .voice-bars i:nth-child(3) { animation-delay: -0.5s; }
.js .voice-bars i:nth-child(4) { animation-delay: -0.9s; } .js .voice-bars i:nth-child(5) { animation-delay: -0.3s; }
.js .voice-bars i:nth-child(6) { animation-delay: -1.1s; } .js .voice-bars i:nth-child(7) { animation-delay: -0.7s; }
.js .voice-bars i:nth-child(8) { animation-delay: -0.1s; } .js .voice-bars i:nth-child(9) { animation-delay: -0.6s; }
.js .voice-bars i:nth-child(10) { animation-delay: -1.2s; } .js .voice-bars i:nth-child(11) { animation-delay: -0.4s; }
.js .voice-bars i:nth-child(12) { animation-delay: -0.8s; } .js .voice-bars i:nth-child(13) { animation-delay: -1s; }
.js .voice-bars i:nth-child(14) { animation-delay: -0.25s; }
@keyframes bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }

/* bilingual */
.bi { display: grid; gap: 10px; }
.bi p { margin: 0; max-width: none; }
.bi-orig { font-size: 18px; color: var(--muted) !important; }
.bi-trans {
  font-size: 18px !important; font-weight: 600; color: var(--ink) !important;
  padding-left: 14px; border-left: 3px solid var(--accent);
}

/* ---------------------------------------------------------------- how it works */

.steps {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
  margin: 0; padding: 0; list-style: none;
}
.steps::before { /* connector between the step nodes */
  content: ""; position: absolute; top: 31px; left: 32px; right: calc(33.33% - 8px);
  border-top: 2px dashed var(--line-2);
}
.step { position: relative; }
.step-node {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--accent-text); margin-bottom: 26px;
}
.step:last-child .step-node { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.step-node .icon { width: 26px; height: 26px; }
.step h3 { font-size: 22px; }
.step p { margin-top: 10px; color: var(--muted); max-width: 34ch; }

/* ---------------------------------------------------------------- compare */

.compare {
  max-width: 920px; margin-top: 44px; border-radius: var(--r-card); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.compare-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
}
.compare-row + .compare-row > * { border-top: 1px solid var(--line); }
.compare-row > * { display: flex; align-items: center; gap: 8px; padding: 18px 24px; font-size: 16px; }
.compare-row > :not(:first-child) { justify-content: center; text-align: center; }
.compare-head > * { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 20px; padding-bottom: 16px; }
.compare-us { background: var(--accent-soft); }
.compare-head .compare-us { color: var(--accent-text); }
.compare .yes .icon { width: 22px; height: 22px; color: var(--accent-text); }
.compare .no .icon { width: 20px; height: 20px; color: var(--muted); opacity: 0.6; }
.compare .part { font-size: 14px; color: var(--muted); }
.compare .txt { font-size: 14px; font-weight: 550; color: var(--accent-text); }

/* ---------------------------------------------------------------- use cases (scroll-snap row) */

.cases-wrap { margin-top: 48px; }
.cases {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 16px;
  margin: 0; list-style: none;
  padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.cases:focus-visible { outline-offset: -2px; }
.case {
  scroll-snap-align: start; padding: 28px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 40px;
}
.case:nth-child(2n) .case-icon { background: var(--ink); color: var(--bg); }
.case-icon .icon { width: 24px; height: 24px; }
.case h3 { font-size: 20px; }
.case p { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* ---------------------------------------------------------------- faq */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-side { position: sticky; top: 104px; }
.faq-side a { color: var(--accent-text); text-underline-offset: 3px; }
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.faq-sign {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 999px;
  border: 1px solid var(--line-2); transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s;
}
.faq-sign .icon { width: 16px; height: 16px; }
.faq-item[open] .faq-sign { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.faq-item summary:hover .faq-sign { border-color: var(--ink-2); }
.faq-a { padding: 0 56px 26px 0; color: var(--muted); }
.faq-a strong { color: var(--ink); font-weight: 600; }
.js .faq-item[open] .faq-a { animation: faq-in 0.4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------------------------------------------------------------- final cta */

.cta { padding: 0 0 104px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 88px 32px; border-radius: 28px;
  background: var(--dark-cell); color: var(--dark-cell-ink);
}
.cta-card::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(61, 220, 151, 0.22), transparent 70%);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -0.04em; max-width: 16ch; margin: 0 auto; }
.cta-card p { margin: 18px auto 34px; font-size: 18px; color: var(--dark-cell-muted); max-width: 46ch; }
.cta-card .btn-primary { background: #3ddc97; color: #062619; box-shadow: 0 12px 32px -12px rgba(61, 220, 151, 0.7); }
.cta-card .btn-primary:hover { background: #5ee6a8; }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer-note { flex: 1 1 320px; font-size: 14px; color: var(--muted); }
.footer-copy { font-size: 14px; color: var(--muted); }

.notfound { padding: 140px 0 160px; }
.notfound h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; max-width: 16ch; }
.notfound .btn { margin-top: 32px; }

/* ---------------------------------------------------------------- reveal on scroll */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .bento .reveal:nth-child(2), .js .steps .reveal:nth-child(2), .js .cases .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .bento .reveal:nth-child(3), .js .steps .reveal:nth-child(3), .js .cases .reveal:nth-child(3) { transition-delay: 0.16s; }
.js .bento .reveal:nth-child(4), .js .cases .reveal:nth-child(4) { transition-delay: 0.24s; }
.js .bento .reveal:nth-child(5), .js .cases .reveal:nth-child(5) { transition-delay: 0.32s; }

/* hero entrance */
.js .hero-copy > *, .js .demo { animation: rise 0.9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.js .demo { animation-delay: 0.22s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 14ch; }
  .cell-page, .cell-select { grid-column: span 12; }
  .cell-word { grid-column: span 6; }
  .cell-voice { grid-column: span 6; }
  .cell-bi { grid-column: span 12; }
  .cell-page { min-height: 0; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { top: 32px; bottom: 32px; left: 31px; right: auto; border-top: 0; border-left: 2px dashed var(--line-2); }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; }
  .step-node { grid-row: span 2; margin-bottom: 0; }
  .step h3 { align-self: end; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 36px 0 56px; }
  .site-header .btn-sm { padding: 0 14px; font-size: 14px; }
  .site-header .btn-sm .icon { display: none; }
  .hero-sub { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .demo-bar { flex-wrap: wrap; }
  .demo-url { display: none; }
  .demo-ext { width: 100%; justify-content: space-between; }
  .demo-page { padding: 22px 20px 26px; min-height: 0; }
  .demo-bubble { left: 20px; max-width: calc(100% - 40px); }
  .demo-title { font-size: 22px; }
  .demo-text { font-size: 16px; }
  .cell { padding: 24px; }
  .cell-word, .cell-voice { grid-column: span 12; }
  .compare-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr); }
  .compare-row > * { padding: 14px 12px; font-size: 14.5px; }
  .compare-head > * { font-size: 11px; letter-spacing: 0.02em; }
  .compare .txt, .compare .part { font-size: 12.5px; }
  .compare .yes .txt { display: none; }
  .faq-a { padding-right: 0; }
  .cta-card { padding: 64px 20px; border-radius: var(--r-card); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 var(--gutter); animation: none !important; }
  .marquee-track li:nth-child(n + 21) { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js .cycle-item { animation: none !important; }
  .js .cycle-item:first-child { opacity: 1; transform: none; }
  .js .voice-bars i { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
