/* ==========================================================================
   7fish — get7fish.com
   ========================================================================== */

:root {
  --ink: #0A1E36;
  --ink-2: #18354A;
  --muted: #4D6A82;
  --paper: #F3FAFF;
  --app-bg: #EFF6FF;
  --reef: #1170A8;
  --reef-2: #1C8BCB;
  --koi: #FF6A1A;
  --koi-2: #FF9A4D;
  --aqua: #63E6DA;
  --aqua-2: #9AF3EA;
  --violet: #A78BFA;
  --mint: #34D399;
  --light: #EAF4FB;
  --light-muted: #9DB9CF;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-line: rgba(255, 255, 255, 0.12);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 22px;
  --wrap: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--light);
  background: #01050C;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--koi); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 650;
  font-variation-settings: 'SOFT' 50, 'opsz' 120;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.glow {
  background: linear-gradient(100deg, var(--aqua) 0%, var(--aqua-2) 40%, #fff 55%, var(--aqua) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  animation: sheen 6s linear infinite;
}

@keyframes sheen { to { background-position: -250% 0; } }

.kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--koi-2);
  margin: 0 0 14px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--light-muted);
  max-width: 640px;
  margin: 0 0 24px;
}

.center-head { text-align: center; margin: 0 auto 56px; max-width: 820px; }
.center-head .lead { margin-left: auto; margin-right: auto; }

.fine { font-size: 0.82rem; color: var(--light-muted); opacity: 0.8; max-width: 720px; margin: 28px auto 0; }

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; border: 0;
  font-weight: 700; text-decoration: none;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s, background 0.25s;
}
.btn-small { padding: 9px 16px; font-size: 0.92rem; }
.btn-koi {
  background: linear-gradient(135deg, var(--koi), var(--koi-2));
  color: #fff;
  box-shadow: 0 6px 20px -6px rgba(255, 106, 26, 0.7);
}
.btn-koi:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 10px 28px -6px rgba(255, 106, 26, 0.85); }

.badges { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.badges.center { justify-content: center; }

.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: transform 0.3s var(--ease-spring), filter 0.3s;
  position: relative;
}
.store-badge img { height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-3px) scale(1.04); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35)); }
.store-badge::after {
  content: ''; position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 150% 0;
  transition: background-position 0.8s var(--ease-out);
}
.store-badge:hover::after { background-position: -50% 0; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  color: var(--ink);
  transition: background 0.4s, color 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.is-scrolled {
  background: rgba(6, 20, 38, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  color: var(--light);
  padding-top: 10px; padding-bottom: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem;
  text-decoration: none; letter-spacing: -0.02em;
}
.brand img { border-radius: 10px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.8; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px;
  background: var(--koi); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Depth gauge ---------- */

.depth {
  position: fixed; right: 22px; top: 50%; z-index: 40;
  height: 46vh; transform: translateY(-50%);
  pointer-events: none;
  color: var(--light);
  transition: color 0.4s, opacity 0.4s;
}
.depth.on-light { color: var(--ink); }
.depth-track { position: relative; width: 2px; height: 100%; border-radius: 2px; }
.depth-track::before { content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0.2; border-radius: 2px; }
.depth-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(var(--aqua), var(--koi)); border-radius: 2px; }
.depth-marker {
  position: absolute; left: 50%; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--koi); transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(255,106,26,.25), 0 0 18px rgba(255,106,26,.8);
}
.depth-readout {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; text-align: right;
}
.depth-readout small { display: block; font-weight: 600; opacity: 0.7; letter-spacing: 0.04em; }

/* ---------- Marine snow ---------- */

.marine-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out) var(--d, 0s), transform 0.9s var(--ease-out) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { position: relative; padding: 130px 0; overflow-x: clip; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 0 190px;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(255, 255, 255, 0.95), transparent 60%),
    linear-gradient(180deg, #F6FCFF 0%, #DDF1FD 45%, #AEDAF4 80%, #7EC1EA 100%);
  overflow: hidden;
  isolation: isolate;
}

.sunrays {
  position: absolute; inset: -20% -10% 0; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(from 180deg at 70% -10%, rgba(255,255,255,0) 0deg 6deg, rgba(255,255,255,.55) 7deg 9deg, rgba(255,255,255,0) 10deg 16deg);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  animation: sway 14s ease-in-out infinite alternate;
  transform-origin: 70% 0;
  opacity: 0.7;
}
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

.caustics {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45;
  background:
    radial-gradient(40px 18px at 20% 30%, rgba(255,255,255,.8), transparent 70%),
    radial-gradient(60px 22px at 60% 18%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(50px 20px at 85% 45%, rgba(255,255,255,.6), transparent 70%),
    radial-gradient(70px 26px at 35% 65%, rgba(255,255,255,.5), transparent 70%),
    radial-gradient(45px 18px at 10% 80%, rgba(255,255,255,.5), transparent 70%);
  filter: blur(6px);
  animation: caustic 9s ease-in-out infinite alternate;
}
@keyframes caustic {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, 14px, 0) scale(1.08); }
  100% { transform: translate3d(-20px, 24px, 0) scale(0.96); }
}

.hero-school { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-school .school-fish { position: absolute; left: 0; top: 0; will-change: transform; opacity: 0.85; }
.hero-school .school-fish svg { width: 100%; height: 100%; overflow: visible; }

.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9) 0 12%, rgba(255,255,255,.08) 30%, transparent 70%);
  animation: rise linear forwards;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--sway, 20px), -55vh); }
  100% { transform: translate(calc(var(--sway, 20px) * -1), -115vh); opacity: 0.2; }
}
.pop-bubble {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 5;
  border: 1.5px solid rgba(255,255,255,.95);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9) 0 12%, rgba(255,255,255,.1) 30%, transparent 70%);
  animation: pop-rise 1.4s var(--ease-out) forwards;
}
@keyframes pop-rise {
  from { transform: translate(-50%, -50%) scale(0.2); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 320px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; padding: 6px 14px 6px 6px;
  background: rgba(255,255,255,.65); border: 1px solid rgba(17,112,168,.15);
  border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.pill { background: var(--koi); color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 750;
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-size: clamp(3rem, 7.4vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
}
.hero-title .line { display: block; overflow: hidden; padding: 0.04em 0 0.12em; margin-bottom: -0.1em; }
.hero-title .word {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  animation: word-up 1.1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) .word:nth-child(1) { animation-delay: 0.05s; }
.hero-title .line:nth-child(1) .word:nth-child(2) { animation-delay: 0.13s; }
.hero-title .line:nth-child(1) .word:nth-child(3) { animation-delay: 0.21s; }
.hero-title .line:nth-child(2) .word:nth-child(1) { animation-delay: 0.34s; }
.hero-title .line:nth-child(2) .word:nth-child(2) { animation-delay: 0.42s; }
@keyframes word-up { to { transform: none; } }

.hero-title .accent {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(100deg, var(--koi) 10%, #FF8F3F 45%, var(--reef) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero-sub em { color: var(--koi); font-style: italic; font-weight: 700; }
.hero-fine { margin: 18px 0 0; font-size: 0.86rem; font-weight: 600; color: var(--muted); }

.hero-visual {
  position: relative;
  height: 640px;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.hero-visual > * { transform-style: preserve-3d; }

/* ---------- Phone ---------- */

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 720 / 1565;
  padding: 11px;
  border-radius: 50px;
  background: linear-gradient(145deg, #2A3343, #0E131C 40%, #1C2431);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.12),
    0 50px 80px -30px rgba(6, 30, 60, 0.55),
    0 30px 40px -20px rgba(6, 30, 60, 0.4);
}
.phone::before {
  content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; border-radius: 20px; background: #05070B; z-index: 3;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; background: var(--app-bg); }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.phone-hero {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotateY(var(--ry, -10deg)) rotateX(var(--rx, 6deg));
  transition: transform 0.6s var(--ease-out);
  animation: phone-in 1.4s var(--ease-out) 0.2s both;
}
@keyframes phone-in {
  from { opacity: 0; transform: translate(-50%, -40%) rotateY(-25deg) rotateX(14deg); }
}

.float-card {
  position: absolute; z-index: 4;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  padding: 14px 18px;
  color: var(--ink-2);
  box-shadow: 0 24px 50px -18px rgba(10, 40, 80, 0.45);
  transform: translate3d(var(--px, 0), var(--py, 0), var(--z, 50px));
  transition: transform 0.6s var(--ease-out);
  animation: card-in 1s var(--ease-spring) both;
}
.float-card > * { animation: bob 6s ease-in-out infinite; }
@keyframes card-in { from { opacity: 0; scale: 0.6; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.card-word { left: -8px; top: 120px; min-width: 190px; display: grid; gap: 2px; animation-delay: 0.9s; }
.card-word .fc-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--reef); }
.card-word strong { font-size: 1.35rem; color: var(--ink-2); }
.card-word em { color: var(--muted); font-size: 0.95rem; }
.card-word span { font-size: 0.95rem; }

.card-translate { right: -20px; top: 300px; display: grid; gap: 2px; max-width: 220px; animation-delay: 1.1s; }
.card-translate > * { animation-delay: -2s; }
.fc-src { font-weight: 700; }
.fc-arrow { color: var(--koi); font-weight: 800; line-height: 1; }
.fc-dst { color: var(--muted); font-style: italic; }

.card-reef { left: 10px; bottom: 70px; display: flex; align-items: center; gap: 12px; animation-delay: 1.3s; }
.card-reef > * { animation-delay: -4s; }
.card-reef strong { display: block; font-size: 0.95rem; }
.card-reef span { font-size: 0.82rem; color: var(--muted); }
.mini-fish { width: 54px; height: 42px; }
.mini-fish svg { width: 100%; height: 100%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 120px; z-index: 3; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; opacity: 0.7;
}
.scroll-cue svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }

.waterline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 160px; z-index: 2; }
.wave { transform-origin: center; }
.w1 { fill: rgba(15, 76, 122, 0.55); animation: wave 9s ease-in-out infinite alternate; }
.w2 { fill: #0F4C7A; animation: wave 7s ease-in-out infinite alternate-reverse; }
@keyframes wave { from { transform: translateX(-3%) scaleY(1); } to { transform: translateX(3%) scaleY(1.2); } }

/* ---------- Origin ---------- */

.origin { background: linear-gradient(180deg, #0F4C7A 0%, #0C3B63 100%); padding-top: 90px; }

.origin-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 70px;
}
.origin-copy p { color: var(--light-muted); font-size: 1.1rem; max-width: 600px; }
.origin-copy p strong { color: var(--light); }
.origin-copy p em { color: var(--light); }

.streak-card {
  position: relative;
  padding: 36px 32px 30px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid var(--glass-line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
  text-align: center;
  overflow: hidden;
}
.streak-card::before {
  content: ''; position: absolute; inset: -40% -20% auto; height: 70%;
  background: radial-gradient(closest-side, rgba(255,140,50,.35), transparent);
  pointer-events: none;
}
.streak-flame { width: 60px; height: 60px; margin: 0 auto 4px; position: relative; }
.streak-flame svg { width: 100%; height: 100%; fill: #FF8A2A; filter: drop-shadow(0 0 16px rgba(255,138,42,.8)); animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.08, 0.94) rotate(2deg); } }
.streak-num {
  position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(4.2rem, 9vw, 6.4rem); line-height: 1;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFD3A6, #FF7A1F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.streak-label { position: relative; color: var(--light-muted); font-weight: 600; }
.streak-divider { height: 1px; background: var(--glass-line); margin: 24px 0; }
.streak-sentence { display: grid; gap: 2px; margin-bottom: 22px; }
.streak-sentence .zh { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.05em; }
.streak-sentence .en { color: var(--light-muted); font-style: italic; }
.comprehension { text-align: left; }
.comp-head { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--light-muted); margin-bottom: 8px; }
.comp-head strong { color: #FF8A8A; font-size: 1rem; }
.comp-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.08); overflow: hidden; }
.comp-bar span { display: block; height: 100%; width: 0; background: #FF6B6B; border-radius: 10px; transition: width 1.2s var(--ease-out); }
.streak-card.is-counting .comp-bar span { width: 38%; }
.streak-card.is-done .comp-bar span { width: 0.6%; transition-duration: 0.9s; }
.streak-card.is-done .comp-head strong { animation: shake 0.5s ease-in-out; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.truths {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.truth {
  position: relative; padding: 30px 26px 26px;
  border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--glass-line);
  transition: transform 0.4s var(--ease-out), background 0.4s, border-color 0.4s, opacity 0.9s var(--ease-out) var(--d, 0s);
}
.truth:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(99,230,218,.35); }
.truth-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--koi), var(--koi-2)); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(255,106,26,.9);
}
.truth h3 { margin: 0 0 8px; font-size: 1.15rem; line-height: 1.3; }
.truth p { margin: 0; color: var(--light-muted); font-size: 0.98rem; }

.origin-punch {
  margin: 70px auto 0; max-width: 760px; text-align: center;
  font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; font-weight: 500;
  font-style: italic;
}
.origin-punch p { margin: 0; }
.origin-punch .sig { margin-top: 18px; font-family: var(--font-body); font-style: normal; font-size: 0.95rem; font-weight: 700; color: var(--koi-2); }
.origin-punch .sig::before { content: '— '; }

/* ---------- i + 1 ---------- */

.iplus { background: linear-gradient(180deg, #0C3B63 0%, #0A2F52 100%); }
.iplus-head { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; margin-bottom: 56px; }

.equation {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(6rem, 15vw, 12rem); line-height: 0.8; letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 0.08em;
  user-select: none;
}
.eq-i { color: var(--light); }
.eq-plus { color: var(--koi); font-style: normal; font-weight: 400; font-size: 0.6em; }
.eq-one {
  font-weight: 800; color: var(--aqua);
  text-shadow: 0 0 40px rgba(99,230,218,.6);
  display: inline-block;
  animation: one-pulse 3.2s ease-in-out infinite;
}
@keyframes one-pulse { 50% { transform: translateY(-8px) rotate(-4deg); text-shadow: 0 0 70px rgba(99,230,218,.9); } }

.level-demo {
  border-radius: 28px; padding: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid var(--glass-line);
}
.level-tabs {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(0,0,0,.25); border-radius: 20px; padding: 6px;
}
.level-tabs button {
  position: relative; z-index: 1; border: 0; background: none; padding: 12px 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--light-muted); border-radius: 14px;
  transition: color 0.3s;
}
.level-tabs button[aria-selected="true"] { color: var(--ink); }
.level-thumb {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4);
  background: linear-gradient(135deg, #fff, #DDF4FF); border-radius: 14px;
  transition: transform 0.5s var(--ease-spring);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.5);
}
.level-body { padding: 30px 30px 26px; min-height: 260px; }
.level-meta { display: flex; align-items: center; gap: 10px; color: var(--light-muted); font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; flex-wrap: wrap; }
.level-meta .flag { font-size: 1.3rem; }
.level-stats { margin-left: auto; display: flex; gap: 8px; }
.stat-chip { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 0.8rem; }
.stat-chip b { color: var(--aqua); }
.level-text {
  font-family: var(--font-display); font-weight: 450; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.45;
  margin: 0 0 14px; color: var(--light);
}
.level-text .w { display: inline-block; opacity: 0; transform: translateY(10px); filter: blur(4px); animation: w-in 0.5s var(--ease-out) forwards; }
.level-text .w.new { color: var(--aqua); text-decoration: underline; text-decoration-color: rgba(99,230,218,.4); text-underline-offset: 5px; text-decoration-thickness: 2px; }
@keyframes w-in { to { opacity: 1; transform: none; filter: none; } }
.level-en { color: var(--light-muted); font-style: italic; margin: 0; opacity: 0; transition: opacity 0.6s 0.4s; }
.level-en.is-in { opacity: 1; }

/* ---------- Try (reader) ---------- */

.try { background: linear-gradient(180deg, #0A2F52 0%, #082644 100%); }
.try-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }

.howto { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.howto li { display: flex; gap: 16px; align-items: flex-start; color: var(--light-muted); }
.howto strong { color: var(--light); }
.howto-ico {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-line); font-size: 1.3rem;
}

.reader-shell {
  position: relative;
  padding: 14px;
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  border: 1px solid var(--glass-line);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.2);
}
.reader-shell::before {
  content: ''; position: absolute; inset: -30px; z-index: -1; border-radius: 60px;
  background: radial-gradient(closest-side, rgba(99,230,218,.18), transparent);
  filter: blur(20px);
}

.reader {
  position: relative;
  background: var(--app-bg);
  color: var(--ink-2);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 600px;
}
.reader-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; gap: 10px; }
.reader-langs { display: flex; gap: 6px; background: #DCEBF7; padding: 4px; border-radius: 12px; }
.reader-langs button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: 0.9rem; color: var(--muted); transition: background 0.25s, color 0.25s; }
.reader-langs button[aria-selected="true"] { background: #fff; color: var(--ink-2); box-shadow: 0 2px 8px rgba(17,112,168,.15); }
.reader-level { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--reef); }
.reader-hint {
  background: #fff; text-align: center; font-size: 0.82rem; color: #66819A; padding: 10px 16px;
  border-top: 1px solid #E2ECF4; border-bottom: 1px solid #E2ECF4;
  min-height: 3.6em; display: grid; place-items: center;
  animation: hint-in 0.3s var(--ease-out);
}
.reader-hint.is-translation { font-size: 0.98rem; color: var(--ink-2); }
@keyframes hint-in { from { opacity: 0; } }

.reader-page { flex: 1; overflow-y: auto; padding: 22px 24px 30px; scrollbar-width: thin; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.reader-page h3 { text-align: center; font-size: 1.45rem; margin: 0 0 18px; color: var(--ink-2); }
.reader-page p { font-size: 1.12rem; line-height: 1.75; margin: 0 0 16px; }
.reader-page[lang="zh"] p { font-size: 1.3rem; letter-spacing: 0.04em; }
.sent { border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.sent:hover { background: rgba(17,112,168,.08); }
.sent.is-open { background: rgba(17,112,168,.12); }
.sent.is-speaking { background: rgba(255,154,77,.28); }
.word { border-radius: 4px; transition: background 0.15s, color 0.15s; }
.word.is-holding { background: rgba(17,112,168,.22); }
.word.is-looked { color: var(--reef); text-decoration: underline dotted rgba(17,112,168,.5); text-underline-offset: 4px; }
.reader-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid #DCE7F0; background: #fff; }
.play {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--reef); color: #fff; transition: transform 0.25s var(--ease-spring), background 0.25s;
}
.play:hover { transform: scale(1.08); }
.play svg { width: 20px; height: 20px; fill: currentColor; }
.play .i-pause { display: none; }
.play.is-playing .i-play { display: none; }
.play.is-playing .i-pause { display: block; }
.play.is-playing { background: var(--koi); animation: ring 1.6s ease-out infinite; }
.play[disabled] { opacity: 0.4; cursor: not-allowed; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255,106,26,.5); } 100% { box-shadow: 0 0 0 14px rgba(255,106,26,0); } }
.speed { display: flex; border: 1.5px solid var(--reef); border-radius: 10px; overflow: hidden; }
.speed button { border: 0; background: none; padding: 5px 10px; font-weight: 700; font-size: 0.85rem; color: var(--reef); }
.speed button[aria-pressed="true"] { background: var(--reef); color: #fff; }
.reader-progress { margin-left: auto; font-size: 0.8rem; color: #7690A6; font-weight: 600; }

.word-pop {
  position: absolute; z-index: 10; width: min(300px, calc(100% - 32px));
  background: #F2F8FD; border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 24px 60px -12px rgba(6, 30, 60, 0.45), 0 0 0 1px rgba(17,112,168,.08);
  display: grid; gap: 4px;
  animation: pop-in 0.3s var(--ease-spring);
}
.word-pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: scale(0.9) translateY(6px); } }
.wp-head { display: flex; align-items: center; justify-content: space-between; }
.wp-head strong { font-size: 1.45rem; }
.wp-say { border: 0; background: none; color: var(--reef); padding: 6px; border-radius: 8px; }
.wp-say:hover { background: rgba(17,112,168,.1); }
.word-pop em { color: var(--muted); }
.word-pop small { color: #7690A6; margin-top: 6px; }

/* ---------- Generator ---------- */

.gen { background: linear-gradient(180deg, #082644 0%, #071E38 100%); }

.gen-stage { display: grid; grid-template-columns: 1fr 120px 1.1fr; align-items: center; gap: 10px; }
.gen-input label { display: block; font-weight: 700; margin-bottom: 12px; color: var(--light-muted); font-size: 0.95rem; }
.gen-field {
  min-height: 92px; padding: 20px 22px; border-radius: 20px;
  background: rgba(255,255,255,.95); color: var(--ink-2);
  font-size: 1.25rem; font-weight: 600; line-height: 1.4;
  box-shadow: 0 0 0 4px rgba(99,230,218,.15), 0 30px 60px -30px rgba(0,0,0,.6);
}
.caret { display: inline-block; width: 2px; height: 1.2em; background: var(--koi); vertical-align: -0.2em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.gen-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gen-chips button {
  border: 1px solid var(--glass-line); background: var(--glass); border-radius: 999px; padding: 7px 14px;
  font-size: 0.85rem; font-weight: 600; color: var(--light-muted); transition: all 0.25s;
}
.gen-chips button:hover { color: var(--light); border-color: rgba(255,255,255,.3); }
.gen-chips button[aria-pressed="true"] { background: rgba(255,106,26,.18); border-color: rgba(255,106,26,.6); color: #FFD0B0; }

.gen-arrow { color: var(--koi-2); opacity: 0.8; }
.gen-arrow svg { width: 100%; }

.gen-card {
  position: relative; min-height: 290px; padding: 28px 28px 30px; border-radius: 26px;
  background: linear-gradient(170deg, #FFFFFF, #EAF5FF);
  color: var(--ink-2);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.8);
  overflow: hidden;
  transition: transform 0.6s var(--ease-spring);
}
.gen-card.is-writing { transform: scale(0.985); }
.gc-top { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.gc-flag { font-size: 1.5rem; }
.gc-tag { margin-left: auto; background: #E0EFFA; color: var(--reef); padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; }
.gc-title { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.15; margin: 0 0 4px; min-height: 1.15em; }
.gc-en { color: var(--muted); font-style: italic; margin: 0 0 18px; font-size: 0.95rem; min-height: 1.5em; }
.gc-first { font-size: 1.15rem; line-height: 1.65; margin: 0; min-height: 3.3em; }
.gc-first .ch { opacity: 0; animation: ch-in 0.3s forwards; }
@keyframes ch-in { to { opacity: 1; } }
.gc-shimmer { position: absolute; left: 28px; right: 28px; bottom: 30px; display: grid; gap: 10px; opacity: 0; transition: opacity 0.3s; }
.gen-card.is-writing .gc-shimmer { opacity: 1; }
.gc-shimmer i { height: 12px; border-radius: 6px; background: linear-gradient(90deg, #DCEAF5 0%, #F5FAFE 50%, #DCEAF5 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.gc-shimmer i:nth-child(2) { width: 85%; }
.gc-shimmer i:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.gen-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 80px; }
.extra { padding: 28px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line); transition: transform 0.4s var(--ease-out), border-color 0.4s, opacity 0.9s var(--ease-out) var(--d, 0s); }
.extra:hover { transform: translateY(-6px); border-color: rgba(255,154,77,.4); }
.extra-ico { font-size: 1.8rem; margin-bottom: 12px; }
.extra h3 { margin: 0 0 6px; font-size: 1.15rem; }
.extra p { margin: 0; color: var(--light-muted); font-size: 0.98rem; }

/* ---------- Tour ---------- */

.tour { background: linear-gradient(180deg, #071E38 0%, #06182E 100%); }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.tour-phone-col { position: relative; }
.phone-tour {
  position: sticky; top: calc(50vh - 290px);
  width: 270px; margin: 0 auto;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12), 0 50px 90px -40px rgba(0,0,0,.8), 0 0 60px -20px rgba(99,230,218,.35);
}
.phone-tour img { opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out); }
.phone-tour img.is-active { opacity: 1; transform: none; }
.tour-steps { list-style: none; margin: 0; padding: 10vh 0; }
.tour-step {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  opacity: 0.25; transform: translateX(20px); transition: opacity 0.6s, transform 0.6s var(--ease-out);
}
.tour-step.is-active { opacity: 1; transform: none; }
.tour-step h3 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.1; margin: 6px 0 14px; }
.tour-step p { color: var(--light-muted); font-size: 1.12rem; max-width: 460px; margin: 0; }
.step-n { font-weight: 800; color: var(--koi-2); letter-spacing: 0.12em; font-size: 0.9rem; }
.tour-inline { display: none; }

/* ---------- Reef ---------- */

.reef { background: linear-gradient(180deg, #06182E 0%, #051326 100%); }

.reef-tank {
  position: relative; height: 440px; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(99,230,218,.25), transparent 70%),
    linear-gradient(180deg, #0F4C7A 0%, #0B3558 60%, #0A2A47 100%);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 0 120px rgba(0,0,0,.5), 0 60px 120px -50px rgba(0,0,0,.8);
}
.reef-light {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 60px, rgba(255,255,255,.05) 70px 90px, transparent 100px 160px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  animation: light-drift 12s linear infinite;
}
@keyframes light-drift { to { background-position: 320px 0; } }
.reef-fishes { position: absolute; inset: 0; }
.tank-fish { position: absolute; left: 0; top: 0; will-change: transform; }
.tank-fish svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
.tank-fish .splash { position: absolute; inset: -30%; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: splash 0.9s var(--ease-out) forwards; pointer-events: none; }
@keyframes splash { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.tank-label {
  position: absolute; left: 50%; top: -26px; transform: translateX(-50%);
  white-space: nowrap; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff;
  opacity: 0; transition: opacity 0.3s;
}
.tank-fish.is-new .tank-label { opacity: 1; }

.reef-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; }
.reef-floor .floor-shape { position: absolute; inset: 0; width: 100%; height: 100%; }
.kelp {
  position: absolute; bottom: 14px; width: 44px; overflow: visible;
  transform-origin: bottom center; animation: kelp 5s ease-in-out infinite alternate;
}
.kelp path { fill: none; stroke: #23977F; stroke-width: 6; stroke-linecap: round; }
.kelp path.leaf { fill: #1E8570; stroke: #1E8570; stroke-width: 1.5; }
.kelp.k1 { left: 4%; height: 190px; }
.kelp.k2 { left: 8%; height: 120px; animation-delay: -1.5s; }
.kelp.k3 { left: 87%; height: 210px; animation-delay: -2.5s; }
.kelp.k4 { left: 91.5%; height: 130px; animation-delay: -0.7s; }
.kelp.k2 path, .kelp.k4 path { stroke: #2FB094; }
@keyframes kelp { from { transform: rotate(-5deg) skewX(-5deg); } to { transform: rotate(5deg) skewX(5deg); } }
.coral { position: absolute; bottom: 18px; overflow: visible; }
.coral path { fill: none; stroke: #E58C6A; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.coral.c1 { left: 52%; width: 110px; height: 82px; }
.coral.c2 { left: 22%; width: 80px; height: 60px; }
.coral.c2 path { stroke: #B48AD8; }

.reef-roster { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.roster-slot {
  position: relative; padding: 14px 8px 12px; border-radius: 18px; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-line);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-spring);
}
.roster-slot .rs-fish { width: 70%; aspect-ratio: 100 / 78; margin: 0 auto 8px; }
.roster-slot .rs-fish svg { width: 100%; height: 100%; }
.roster-slot strong { display: block; font-size: 0.95rem; }
.roster-slot span { display: block; font-size: 0.72rem; color: var(--light-muted); line-height: 1.3; }
.roster-slot .rs-lock { position: absolute; top: 10px; right: 10px; font-size: 0.8rem; opacity: 0.6; }
.roster-slot.is-unlocked { background: rgba(99,230,218,.08); border-color: rgba(99,230,218,.35); }
.roster-slot.is-unlocked .rs-lock { display: none; }
.roster-slot.just-unlocked { animation: slot-pop 0.6s var(--ease-spring); }
@keyframes slot-pop { 40% { transform: scale(1.1); } }
.roster-slot:not(.is-unlocked) strong { color: var(--light-muted); }

.reef-controls { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; margin-top: 30px; padding: 22px 28px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); }
.reef-readout { display: grid; }
.rr-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--aqua); }
.rr-label { font-size: 0.82rem; color: var(--light-muted); font-weight: 600; }
.reef-next { font-size: 0.95rem; color: var(--light-muted); text-align: right; min-width: 210px; }
.reef-next strong { color: var(--light); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 10px; background: linear-gradient(90deg, var(--aqua) var(--fill, 0%), rgba(255,255,255,.12) var(--fill, 0%)); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--koi); box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform 0.2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--koi); box-shadow: 0 4px 14px rgba(0,0,0,.4); }

/* ---------- Languages ---------- */

.langs { background: linear-gradient(180deg, #051326 0%, #040F1F 100%); overflow: hidden; }
.hello-marquee { overflow: hidden; margin: 0 0 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hm-track { display: flex; gap: 60px; width: max-content; animation: marquee 40s linear infinite; }
.hm-track span {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: 1.1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(99,230,218,.4);
  transition: color 0.3s;
}
.hm-track span:nth-child(3n+2) { -webkit-text-stroke-color: rgba(255,154,77,.5); }
@keyframes marquee { to { transform: translateX(-50%); } }

.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lang {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center;
  padding: 20px 22px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line);
  transition: transform 0.4s var(--ease-spring), background 0.3s, border-color 0.3s, opacity 0.9s var(--ease-out);
}
.lang:hover { transform: translateY(-4px) scale(1.02); background: rgba(255,255,255,.09); border-color: rgba(99,230,218,.35); }
.lang:hover .lf { animation: wiggle 0.5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.lf { grid-row: span 2; font-size: 2.2rem; }
.lang strong { font-size: 1.25rem; }
.lang span:last-child { font-size: 0.88rem; color: var(--light-muted); }

/* ---------- Pricing ---------- */

.pricing { background: linear-gradient(180deg, #040F1F 0%, #030B18 100%); }
.billing { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-line); }
.billing button { border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--light-muted); transition: all 0.3s; }
.billing button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.save { font-size: 0.72rem; color: var(--mint); margin-left: 4px; }
.billing button[aria-pressed="true"] .save { color: #0E8F63; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; padding: 30px 24px 26px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-line);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, opacity 0.9s var(--ease-out) var(--d, 0s);
}
.plan:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.25); }
.plan h3 { margin: 0 0 10px; font-size: 1.1rem; color: var(--light-muted); }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.amt { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; display: inline-block; }
.amt.flip { animation: flip 0.45s var(--ease-out); }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.per { color: var(--light-muted); font-weight: 600; }
.plan-note { font-size: 0.88rem; color: var(--light-muted); margin: 0 0 18px; min-height: 2.6em; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--glass-line); display: grid; gap: 10px; font-size: 0.93rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23052' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan li.no { color: rgba(157,185,207,.55); }
.plan li.no::before { background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%237d93a6' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan-hot {
  background: linear-gradient(170deg, rgba(255,106,26,.16), rgba(255,255,255,.04));
  border-color: rgba(255,106,26,.55);
  box-shadow: 0 30px 80px -30px rgba(255,106,26,.45);
}
.plan-hot h3 { color: #FFD0B0; }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: linear-gradient(135deg, var(--koi), var(--koi-2)); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- CTA ---------- */

.cta { background: linear-gradient(180deg, #030B18 0%, #01050C 100%); padding: 150px 0 170px; overflow: hidden; text-align: center; }
.cta-glow {
  position: absolute; left: 50%; top: 52%; width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(255,106,26,.22), rgba(99,230,218,.08) 50%, transparent 75%);
  pointer-events: none; animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.8; } }
.cta-inner { display: grid; justify-items: center; }
.cta-school { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.cta-fish { position: absolute; left: 0; animation: cta-swim var(--dur, 26s) linear infinite; animation-delay: var(--delay, 0s); opacity: 0.55; }
.cta-fish > div { animation: bob 3.2s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.cta-fish svg { width: 100%; height: 100%; }
@keyframes cta-swim { from { transform: translateX(-200px); } to { transform: translateX(calc(100vw + 200px)); } }
.cta-koi {
  width: 150px; height: 150px; border-radius: 36px; margin-bottom: 34px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -20px rgba(255,106,26,.6);
  animation: koi-float 6s ease-in-out infinite;
}
@keyframes koi-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.cta .lead { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */

.footer { position: relative; z-index: 2; background: #01050C; border-top: 1px solid rgba(255,255,255,.06); padding: 36px 0 44px; color: var(--light-muted); font-size: 0.92rem; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer .brand { color: var(--light); font-size: 1.2rem; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a, .footer p a { text-decoration: none; }
.footer nav a:hover, .footer p a:hover { color: var(--light); }
.footer p { margin: 0 0 0 auto; }

/* ==========================================================================
   Document pages (privacy, terms, deletion, support)
   ========================================================================== */

.doc-page { background: linear-gradient(180deg, #0F4C7A 0%, #0A2F52 30%, #051326 100%); min-height: 100vh; display: flex; flex-direction: column; }
.doc-page .nav { color: var(--light); }
.doc-hero { position: relative; padding: 150px 0 50px; overflow: hidden; }
.doc-hero .wrap { max-width: 860px; }
.doc-hero h1 { font-family: var(--font-display); font-weight: 750; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; margin: 0 0 14px; }
.doc-hero p { color: var(--light-muted); margin: 0; font-size: 1.1rem; }
.doc-hero .doc-fish { position: absolute; right: 8%; top: 120px; width: 160px; opacity: 0.9; animation: koi-float 7s ease-in-out infinite; z-index: 1; }
.doc-hero .doc-fish svg { width: 100%; height: auto; }

.doc { flex: 1; padding: 10px 0 100px; }
.doc .wrap { max-width: 860px; }
.doc-card {
  background: rgba(255,255,255,.97); color: var(--ink-2);
  border-radius: 28px; padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.7);
}
.doc-card h2 { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; margin: 38px 0 12px; color: var(--ink); }
.doc-card h2:first-child { margin-top: 0; }
.doc-card h3 { font-size: 1.08rem; margin: 22px 0 8px; color: var(--ink); }
.doc-card p, .doc-card li { color: #34536B; font-size: 1.02rem; }
.doc-card ul, .doc-card ol { padding-left: 1.3em; }
.doc-card li { margin-bottom: 6px; }
.doc-card a { color: var(--reef); font-weight: 600; }
.doc-card .updated { font-size: 0.9rem; color: #6C879C; margin: 0 0 24px; }

.mail-cta {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 24px; margin: 24px 0; border-radius: 20px;
  background: linear-gradient(135deg, #EAF5FF, #FFF3EA); border: 1px solid #DCEAF5;
}
.mail-cta .mc-ico { font-size: 2rem; }
.mail-cta div { flex: 1; min-width: 200px; }
.mail-cta strong { display: block; font-size: 1.2rem; color: var(--ink); word-break: break-all; }
.mail-cta span { color: #557189; font-size: 0.95rem; }
.mail-cta .btn { color: #fff; }

.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 12px; margin: 20px 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 62px; border-radius: 16px; background: #F3F8FC; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--reef); color: #fff; font-weight: 800;
}
.callout { padding: 16px 20px; border-radius: 16px; background: #FFF6E5; border: 1px solid #FBE3B8; color: #6B4E16; }
.callout p { color: #6B4E16; margin: 0; }

.faq details { border-bottom: 1px solid #E3ECF3; padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--reef); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }

.doc-badges { margin-top: 30px; padding-top: 26px; border-top: 1px solid #E3ECF3; }
.doc-badges p { margin: 0 0 14px; font-weight: 700; color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .gen-stage { grid-template-columns: 1fr; }
  .gen-arrow { transform: rotate(90deg); width: 80px; margin: 0 auto; }
  .reef-roster { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 100px 0; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .depth { display: none; }
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .hero-visual { height: 580px; max-width: 460px; margin: 0 auto; width: 100%; }
  .scroll-cue { display: none; }
  .origin-grid, .iplus-head, .try-grid { grid-template-columns: 1fr; gap: 40px; }
  .iplus-head { text-align: center; justify-items: center; }
  .iplus-head .lead { margin-left: auto; margin-right: auto; }
  .truths, .gen-extras { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr; }
  .tour-phone-col { display: none; }
  .tour-steps { padding: 0; display: grid; gap: 70px; }
  .tour-step { min-height: 0; opacity: 1; transform: none; text-align: center; align-items: center; }
  .tour-inline { display: block; width: 240px; border-radius: 30px; margin: 0 auto 26px; box-shadow: 0 0 0 8px #141A25, 0 40px 80px -30px rgba(0,0,0,.8); }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .reef-controls { grid-template-columns: 1fr; text-align: center; }
  .reef-next { text-align: center; }
  .footer p { margin-left: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .hero-visual { height: 520px; }
  .hero-school .school-fish { opacity: 0.5; }
  .phone { width: 250px; border-radius: 42px; }
  .phone-screen { border-radius: 33px; }
  .card-word { left: -4px; top: 60px; min-width: 160px; padding: 10px 14px; }
  .card-translate { right: -6px; top: 270px; max-width: 180px; padding: 10px 14px; font-size: 0.9rem; }
  .card-reef { left: 0; bottom: 30px; padding: 10px 14px; }
  .plans, .lang-grid { grid-template-columns: 1fr; }
  .level-tabs button { font-size: 0.78rem; padding: 10px 2px; }
  .level-body { padding: 22px 16px; }
  .level-stats { margin-left: 0; }
  .reader { height: 560px; }
  .reader-progress { display: none; }
  .reef-tank { height: 340px; }
  .reef-roster { grid-template-columns: repeat(3, 1fr); }
  .gen-field { font-size: 1.05rem; }
  .doc-hero .doc-fish { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .word { transform: none; }
  .hm-track { animation: none; }
}
