:root {
  --primary: #1673c4;
  --primary-dark: #125fa3;
  --on-primary: #ffffff;
  --accent: #3eb8ff;
  --cta: linear-gradient(135deg, #2d8cff, #1f5fe0);
  --accent-surface: #e8f5ff;
  --accent-border: #bfe3fb;
  --bg: #f5f7fa;
  --screen: #ffffff;
  --surface: #ffffff;
  --card: #f0f2f5;
  --bubble: #f0f2f5;
  --text: #14171f;
  --text-msg: #1f2430;
  --text-2: #6b7785;
  --text-3: #8a93a3;
  --border: #e3e6ec;
  --border-2: #d5dae2;
  --shadow: 0 18px 40px rgba(31, 60, 110, 0.10);
  --phone: #14171f;
  --tutor: #5b45f0;
  --tutor-bg: #f4f2ff;
  --correction: #1f8f55;
  --suggest: #b7791f;
  --radius: 20px;
  --max: 1120px;
  --ease-out: cubic-bezier(.2, .7, .25, 1);
  interpolate-size: allow-keywords;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
button { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border-2); }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--text); }
.nav a.btn, .nav a.btn:hover { color: var(--on-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.btn-primary {
  background: var(--cta);
  color: var(--on-primary);
  box-shadow: 0 8px 22px rgba(45, 140, 255, 0.3);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary.is-playing { background: #0e9f6e; color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 18px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid #000;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 10px 24px rgba(20, 23, 31, 0.22);
}
.play-btn:hover { transform: translateY(-2px); }
.play-btn svg { width: 28px; height: 28px; flex: none; stroke: none; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.play-btn small { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }
.play-btn strong { font-size: 1.2rem; font-weight: 500; }

/* ---------- Shared type ---------- */
.kicker {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hl {
  background: linear-gradient(90deg, #2d8cff, #6a5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background:
    radial-gradient(90% 70% at 80% 0%, rgba(62, 184, 255, 0.28) 0%, transparent 60%),
    linear-gradient(180deg, #dcebfa 0%, #eef5fd 55%, var(--bg) 100%);
}
.hero-blob-1 { width: 460px; height: 460px; left: -180px; top: 40%; background: rgba(139, 124, 255, 0.16); }
.hero-blob-2 { width: 560px; height: 560px; right: -220px; top: -160px; background: rgba(62, 184, 255, 0.22); }
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 64px;
}
.hero-copy { padding-bottom: 96px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--accent-border);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(62, 184, 255, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(62, 184, 255, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(62, 184, 255, 0); }
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 20px 0 18px;
}
.hero p.lead {
  font-size: 1.2rem;
  max-width: 470px;
  color: var(--text-2);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-note { font-size: 0.9rem; color: var(--text-2); }
.hero-art { position: relative; align-self: stretch; min-height: 620px; }
.hero-phone { position: absolute; left: 50%; bottom: 0; z-index: 1; margin-left: -160px; }
.hero-phone .screen { height: 540px; }

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: chip-float 6s ease-in-out infinite;
}
.chip-1 { top: 30%; left: -12px; }
.chip-2 { top: 50%; right: -24px; animation-delay: -2s; }
.chip-3 { bottom: 22%; left: 0; animation-delay: -4s; }
@keyframes chip-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -1px; }
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat { padding: 24px 20px; background: var(--surface); text-align: center; }
.stat strong { display: block; font-size: 1.7rem; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--text-2); font-size: 0.92rem; }

/* ---------- Sections & panels ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 0; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2, .feature h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 10px 0 14px;
}
.sub { margin: 0; color: var(--text-2); font-size: 1.15rem; }

.panel {
  position: relative;
  overflow: hidden;
  overflow: clip;
  border-radius: 32px;
  background: linear-gradient(160deg, #ffffff, #f7faff 55%);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(31, 60, 110, 0.06);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 620px;
  padding: 64px 64px 0;
}
.feature-copy { position: relative; z-index: 1; align-self: center; padding-bottom: 64px; }
.feature-art { position: relative; z-index: 1; display: flex; justify-content: center; align-self: end; }
.reverse .feature-copy { order: 2; }
.b-glow { width: 420px; height: 420px; right: -120px; top: -140px; background: rgba(62, 184, 255, 0.14); }
.reverse .b-glow { right: auto; left: -120px; }
.b-lilac { width: 460px; height: 460px; left: -160px; bottom: -160px; background: rgba(139, 124, 255, 0.35); }

.feature-light { background: linear-gradient(160deg, #ffffff, var(--tutor-bg) 60%, #e9e4ff); color: #171342; border-color: transparent; }
.feature-light .kicker { color: var(--tutor); }
.feature-light .hl { background: linear-gradient(90deg, #5b45f0, #3eb8ff); -webkit-background-clip: text; background-clip: text; }
.feature-light .sub { color: #6c6685; }

.checks { list-style: none; display: grid; gap: 12px; margin: 28px 0 0; padding: 0; }
.checks li { position: relative; padding-left: 32px; color: #3b4352; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%231673c4' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.legend { list-style: none; display: grid; gap: 14px; margin: 28px 0 0; padding: 0; }
.legend li { display: flex; gap: 12px; align-items: flex-start; }
.legend b { display: block; }
.legend div { color: #4b4668; line-height: 1.45; }
.legend b { color: #171342; }
.dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; }
.d-correction { background: var(--correction); }
.d-tutor { background: var(--tutor); }
.d-suggest { background: var(--suggest); }

.example-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.example-tabs button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.example-tabs button:hover { color: var(--text); transform: translateY(-1px); }
.example-tabs button[aria-pressed="true"] { background: var(--accent-surface); border-color: var(--accent); color: var(--primary); }
.feature-light .example-tabs button { border-color: #ddd4f1; background: #fff; color: #6c6685; }
.feature-light .example-tabs button:hover { color: #171342; }
.feature-light .example-tabs button[aria-pressed="true"] { background: var(--tutor); border-color: var(--tutor); color: #fff; }

.float-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
  animation: chip-float 5s ease-in-out infinite;
}
.float-badge svg { width: 16px; height: 16px; color: var(--primary); }
.badge-modes { top: 9%; right: -12px; background: #fff; color: #171342; border-color: #e6e1f5; box-shadow: 0 14px 30px rgba(80, 60, 180, 0.2); }

/* ---------- Phone mockup ---------- */
.phone {
  flex: none;
  width: 320px;
  padding: 7px 7px 0;
  background: var(--phone);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 30px 70px rgba(31, 60, 110, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.screen {
  position: relative;
  height: 560px;
  overflow: hidden;
  border-radius: 34px 34px 0 0;
  background: var(--screen);
  color: var(--text);
}
.screen > img { width: 100%; }
.dark-screen { font-size: 12px; line-height: 1.5; }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 20px 16px 12px; font-size: 17px; }
.app-bar svg { width: 20px; height: 20px; }

.chat { padding: 4px 10px 96px; transition: opacity 0.4s ease; }
.dark-screen .chat { height: calc(100% - 56px); overflow: hidden; }
.chat.is-resetting { opacity: 0; }
.msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.msg.is-in { opacity: 1; transform: none; }
.msg-u { flex-direction: row-reverse; }
.msg-u .bubble { margin-left: 16%; }
.msg-a .bubble { margin-right: 10%; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 16px; height: 16px; color: var(--text-2); fill: currentColor; stroke: none; }
.bubble {
  padding: 9px 12px;
  border-radius: 14px;
  background: var(--bubble);
  color: var(--text-msg);
  white-space: pre-line;
}
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.tools { display: flex; justify-content: flex-end; gap: 14px; margin-top: 8px; color: var(--text-2); opacity: 0; transition: opacity 0.4s ease; }
.tools.is-in { opacity: 0.9; }
.tools svg { width: 14px; height: 14px; }
.tools .fill { fill: currentColor; stroke: none; }

.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa3b3; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--primary); animation: blink 0.9s steps(1) infinite; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes blink { 50% { opacity: 0; } }

.composer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.composer > span {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text-3);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.composer.is-typing > span { color: var(--text); }
.mic-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--cta);
  color: var(--on-primary);
}
.mic-btn svg { width: 20px; height: 20px; }
.screen::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 55%);
  pointer-events: none;
}
.screen:has(> img)::after { display: none; }
.screen .composer { z-index: 1; }

/* Zoomed chat (One assistant for every question) */
.phone-zoom { width: 380px; }
.phone-zoom .screen { height: 580px; }
.chat-zoom { font-size: 13.5px; }

/* ---------- Tutor screen (light, like the app) ---------- */
.phone-light { box-shadow: 0 30px 70px rgba(79, 53, 210, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.6); background: #1b1740; }
.tutor-screen { background: var(--tutor-bg); color: #1d1a3a; font-size: 11.5px; line-height: 1.45; }
.phone .tutor-screen { height: 620px; }
.tutor-screen::after { background: linear-gradient(to bottom, rgba(244, 242, 255, 0), var(--tutor-bg) 40%); height: 150px; }
.tutor-top {
  position: relative;
  height: 132px;
  background: url("img/ellie.webp") center 18% / cover;
  color: #fff;
}
.tutor-top::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, transparent, rgba(60, 40, 160, 0.35)); }
.tutor-top .i-back { position: absolute; top: 16px; left: 12px; width: 20px; height: 20px; color: rgba(255, 255, 255, 0.9); }
.tutor-top strong { position: absolute; left: 14px; bottom: 10px; z-index: 1; font-size: 21px; font-weight: 700; text-shadow: 0 2px 8px rgba(20, 10, 60, 0.35); }
.tutor-screen .chat { padding: 12px 10px 150px; }
.msg-user {
  position: relative;
  margin-left: 24%;
  padding: 0.85em 1em 2em;
  background: #efecff;
  border: 1px solid #d9d2ff;
  border-radius: 1.5em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.msg-user p { margin: 0; }
.msg-user svg { position: absolute; right: 0.9em; bottom: 0.6em; width: 1.3em; height: 1.3em; color: var(--tutor); fill: currentColor; stroke: none; }
.reply {
  margin: 0.8em 10% 0 0;
  padding: 0.2em 1em 0.5em;
  background: #fff;
  border: 1px solid #e6e1f5;
  border-radius: 1.5em;
  box-shadow: 0 6px 14px rgba(80, 60, 180, 0.07);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.s1 .msg-user, .s2 .reply { opacity: 1; transform: none; }
.row {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s var(--ease-out), opacity 0.5s ease;
}
.row-in { overflow: hidden; }
.row + .row .row-in { border-top: 1px solid #ece8f6; }
.row-in > div { padding: 0.65em 0; }
.row p { margin: 0; }
.s2 .r-correction, .s4 .r-tutor, .s6 .r-suggest { grid-template-rows: 1fr; opacity: 1; }
.lbl { display: block; margin-bottom: 0.2em; font-weight: 700; }
.r-correction .lbl { color: var(--correction); }
.r-tutor .lbl { color: var(--tutor); }
.r-suggest .lbl { color: var(--suggest); }
.r-suggest p { font-style: italic; }
.fix { display: inline-grid; vertical-align: bottom; }
.fix > * { grid-area: 1 / 1; text-decoration: none; transition: opacity 0.4s ease, transform 0.4s var(--ease-out); }
.fix del { color: #d64545; text-decoration: line-through; }
.fix ins {
  padding: 0 0.15em;
  border-radius: 0.25em;
  background: #d9f5e6;
  color: #137a45;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.7);
}
.s3 .fix del { opacity: 0; transform: translateY(-6px); }
.s3 .fix ins { opacity: 1; transform: none; }
.s3.is-settled .fix del { display: none; }
.tutor-screen .typing i { background: #b8adf5; }
.r-tutor p { display: none; }
.s5 .r-tutor p { display: block; animation: fade-up 0.4s var(--ease-out); }
.s5 .r-tutor .typing { display: none; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.talk-bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 18px 18px;
}
.talk-label { position: absolute; top: 0; left: 0; right: 0; text-align: center; color: #5f5a78; font-weight: 700; font-size: 13px; }
.side-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ebe7f6;
  color: var(--tutor);
  box-shadow: 0 6px 16px rgba(80, 60, 180, 0.12);
}
.side-btn svg { width: 22px; height: 22px; }
.side-wave { display: flex; gap: 3px; justify-content: center; align-items: center; background: #e2f8f4; border-color: #c9f0e9; }
.side-wave i { width: 3px; height: 16px; border-radius: 2px; background: #1fb5a3; animation: bars 1.1s ease-in-out infinite; }
.side-wave i:nth-child(1), .side-wave i:nth-child(5) { height: 7px; }
.side-wave i:nth-child(2), .side-wave i:nth-child(4) { height: 11px; animation-delay: 0.2s; }
.side-wave i:nth-child(3) { animation-delay: 0.4s; }
.talk-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(150deg, #7a6bff, #4f35e6);
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 53, 230, 0.4);
}
.talk-btn svg { width: 30px; height: 30px; }
.talk-btn::before, .talk-btn::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(122, 107, 255, 0.18);
  z-index: -1;
  animation: ring 2.4s ease-out infinite;
}
.talk-btn::after { animation-delay: 1.2s; }
@keyframes ring {
  from { transform: scale(0.85); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}
@keyframes bars {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.speed-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.speed { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid #ddd4f1; }
.speed button {
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #6c6685;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.speed button[aria-checked="true"] { background: #eee9ff; color: var(--tutor); }
.feature-light .btn-primary { background: var(--tutor); color: #fff; box-shadow: 0 8px 22px rgba(91, 69, 240, 0.3); }
.feature-light .btn-primary:hover { background: #4a34d8; }
.feature-light .btn-primary.is-playing { background: #1fb5a3; }
.audio-status { min-height: 1.4em; margin: 10px 0 0; color: #6c6685; font-size: 0.88rem; }

/* ---------- Experts marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: 8px; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.expert {
  flex: none;
  width: 168px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.expert:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.expert img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.expert figcaption { padding: 10px 12px 12px; line-height: 1.25; }
.expert b { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.expert span { color: var(--text-3); font-size: 0.78rem; }

.topics { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 40px 0 0; padding: 0; }
.topics li {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.45;
}
.topics b { display: block; margin-bottom: 4px; color: var(--text); font-size: 1rem; }

/* ---------- Voice & languages ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card {
  position: relative;
  overflow: hidden;
  padding: 36px 36px 0;
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff, #f7faff 60%);
  border: 1px solid var(--border);
}
.duo-card h3 { margin: 8px 0 10px; font-size: 1.7rem; font-weight: 900; line-height: 1.15; }
.duo-card p { margin: 0; color: var(--text-2); }
.voice-demo {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 180px;
  margin: 28px -36px 0;
  padding: 0 36px;
  background: radial-gradient(60% 80% at 50% 100%, rgba(62, 184, 255, 0.16), transparent);
}
.voice-wave { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; height: 80px; overflow: hidden; }
.voice-wave i { flex: none; width: 3px; height: 100%; border-radius: 2px; background: #2d8cff; transform: scaleY(var(--s, 0.3)); animation: wave 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.voice-wave i:nth-child(4n) { background: #8fd0ff; }
@keyframes wave {
  0%, 100% { transform: scaleY(calc(var(--s, 0.3) * 0.4)); }
  50% { transform: scaleY(var(--s, 0.3)); }
}
.voice-stop { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--cta); }
.voice-stop i { width: 18px; height: 18px; border-radius: 3px; background: var(--on-primary); }

/* ---------- Tools screen (Translation · Summarize · Spell Checker) ---------- */
.tool-screen, .create-screen { transition: opacity 0.4s ease; }
.tool-screen.is-resetting, .create-screen.is-resetting { opacity: 0; }
.tool-body { padding: 4px 14px 0; }
.lang-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lang-row[hidden] { display: none; }
.lang-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  font-weight: 500;
}
.lang-pill svg { width: 14px; height: 14px; color: var(--text-3); }
.lang-swap { flex: none; width: 18px; height: 18px; color: var(--primary); }
.tool-label { margin: 0 0 8px; font-weight: 700; font-size: 13px; }
.tool-label[hidden] { display: none; }
.tool-input {
  height: 112px;
  padding: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tool-input.is-pasted { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(62, 184, 255, 0.18); }
.tool-input span { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.is-placeholder { color: var(--text-3); }
.tool-btn {
  display: block;
  margin: 12px 0;
  padding: 11px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--on-primary);
  font-weight: 700;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.tool-btn.is-pressed { transform: scale(0.96); filter: brightness(1.15); }
.tool-result {
  position: relative;
  min-height: 120px;
  padding: 12px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--accent-surface);
  border: 1px solid var(--accent-border);
  white-space: pre-line;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.tool-result.is-in { opacity: 1; transform: none; }
.tool-result b { display: block; margin-bottom: 4px; color: var(--primary); }
.tool-result p { margin: 0; color: var(--text-msg); }
.tool-result.is-loading::after {
  content: "";
  position: absolute;
  inset: 34px 12px 12px;
  border-radius: 8px;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.7) 50%, transparent 80%) 0 0 / 200% 100%,
    repeating-linear-gradient(to bottom, rgba(22, 115, 196, 0.12) 0 9px, transparent 9px 20px);
  animation: shimmer 1.1s linear infinite;
}
.badge-copy { bottom: 7%; left: -6px; animation-delay: -2.5s; }

/* ---------- Your AI (Create AI form → chat) ---------- */
.create-form, .create-chat {
  position: absolute;
  inset: 56px 0 0;
  transition: opacity 0.45s ease, transform 0.5s var(--ease-out);
}
.create-form { padding: 0 14px; }
.create-chat { opacity: 0; transform: translateX(30px); pointer-events: none; }
.is-chat .create-form { opacity: 0; transform: translateX(-30px); }
.is-chat .create-chat { opacity: 1; transform: none; }
.field-label { margin: 10px 0 6px; font-weight: 700; }
.field-label:first-child { margin-top: 2px; }
.icon-pick {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--card);
  border: 1px dashed var(--border-2);
  color: var(--text-3);
}
.icon-pick svg { width: 22px; height: 22px; }
.icon-pick img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
}
.icon-pick.is-picked img { opacity: 1; transform: none; }
.field {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field-tall { height: 74px; white-space: normal; }
.create-btn { margin-top: 16px; }
.guide { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 16px 14px; text-align: center; }
.guide img { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; }
.guide b { font-size: 15px; }
.guide span { color: var(--text-2); }
.create-chat .chat { height: calc(100% - 110px); overflow: hidden; padding-bottom: 24px; }
.badge-create { bottom: 5%; right: -12px; animation-delay: -1.5s; }

/* ---------- AI Store personas ---------- */
.persona img {
  padding: 26px;
  object-fit: contain;
  background: radial-gradient(circle at 50% 40%, #e8f5ff, #f7faff 70%);
}

/* ---------- App languages ---------- */
.lang-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0 0 36px; }
.lang-cloud li {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), border-color 0.2s ease, color 0.2s ease;
}
.lang-cloud li:hover { border-color: var(--accent); color: var(--primary); }
.is-on .lang-cloud li { opacity: 1; transform: none; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease;
}
.step:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cta);
  color: var(--on-primary);
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-2); }

/* ---------- Gallery ---------- */
.gallery-wrap { position: relative; max-width: calc(var(--max) + 120px); margin: 0 auto; }
.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 60px 12px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 250px; border-radius: 34px; padding: 6px; }
.gallery .screen { height: auto; aspect-ratio: 9 / 20; border-radius: 28px; }
.gallery figcaption { margin-top: 14px; color: var(--text-2); font-weight: 500; }
.gallery-nav {
  position: absolute;
  top: calc(50% - 40px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.gallery-nav:hover { background: var(--cta); color: var(--on-primary); }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev { left: 6px; }
.gallery-nav.next { right: 6px; }
.swipe-hint { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--accent-border); box-shadow: 0 8px 26px rgba(45, 140, 255, 0.08); }
.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 0.3s var(--ease-out), content-visibility 0.3s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body p { margin: 12px 0 0; color: var(--text-2); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 32px;
  padding: 64px 24px;
  background:
    radial-gradient(circle at 85% 15%, rgba(139, 124, 255, 0.35), transparent 45%),
    linear-gradient(140deg, #2d8cff, #1f5fe0 60%, #1a4fc0);
  color: #fff;
  border: 0;
}
.cta-blob { width: 360px; height: 360px; left: -120px; bottom: -180px; background: rgba(120, 210, 255, 0.45); }
.cta > :not(.blob) { position: relative; }
.cta-mark { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 16px 34px rgba(10, 40, 110, 0.35); animation: chip-float 5s ease-in-out infinite; }
.cta h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin: 0 0 12px; line-height: 1.15; }
.cta p { margin: 0 auto 28px; max-width: 520px; color: rgba(255, 255, 255, 0.88); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-2);
  font-size: 0.92rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .container { max-width: 820px; }
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; margin: 0 0 6px; line-height: 1.15; }
.legal .updated { color: var(--text-2); margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal p, .legal li { color: #3b4352; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; color: #3b4352; }
.legal th { background: var(--card); color: var(--text); font-weight: 700; }
.legal .table-wrap { overflow-x: auto; }

/* ---------- Scroll reveal ---------- */
.reveal { transition: opacity 0.52s ease, transform 0.52s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .feature { padding: 56px 40px 0; gap: 24px; }
  .topics { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; text-align: center; gap: 0; }
  .hero-copy { padding-bottom: 24px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-phone .screen { height: 480px; }
  .phone { text-align: left; }

  .stats .container { margin: 0 20px; width: auto; }

  .feature { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 48px 24px 0; text-align: center; }
  .feature-copy, .reverse .feature-copy { order: 0; padding-bottom: 8px; }
  .legend, .checks { display: inline-grid; text-align: left; }
  .example-tabs, .speed-row { justify-content: center; }
  .feature-art { margin-top: 24px; }

  .duo { grid-template-columns: 1fr; }
  .gallery-nav { display: none; }
  .gallery { padding: 8px calc(50% - 125px) 12px; }
  .swipe-hint {
    display: block;
    width: max-content;
    margin: 8px auto 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 0.8rem;
    transition: opacity 0.3s ease;
  }
  .swipe-hint.is-hidden { opacity: 0; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px 12px; }
  .stat strong { font-size: 1.35rem; }
  .steps { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr 1fr; }
  .topics li:last-child { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
  .section-tight { padding-top: 0; }
  .panel { border-radius: 26px; }
  .feature { padding: 40px 16px 0; }
  .sub { font-size: 1.05rem; }
  .phone { width: 290px; }
  .screen { height: 520px; }
  .hero-art { min-height: 500px; }
  .hero-phone { margin-left: -145px; }
  .hero-phone .screen { height: 430px; }
  .float-chip { font-size: 0.78rem; padding: 8px 12px; }
  .chip-2 { right: 0; }
  .phone-zoom { width: 300px; }
  .phone-zoom .screen { height: 560px; }
  .chat-zoom { font-size: 12.5px; }
  .float-badge { font-size: 0.8rem; padding: 8px 12px; }
  .badge-modes { right: 0; }
  .badge-copy { left: 0; }
  .badge-create { right: 0; }
  .expert { width: 140px; }
  .duo-card { padding: 28px 22px 0; }
  .voice-demo { margin: 24px -22px 0; padding: 0 22px; height: 150px; }
  .legal-card { padding: 28px 22px; }
}

@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;
    transition-delay: 0s !important;
  }
  .reveal.is-pending { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
