/* ---------- tokens ---------- */
:root {
  --paper: #f6f7f9;
  --card: #ffffff;
  --ink: #14161c;
  --ink-soft: #2a2e38;
  --muted: #5c6474;
  --line: #e3e6ee;
  --accent: #2b52e0;
  --accent-ink: #1c39a6;
  --accent-soft: #e9edfd;
  --accent-tint: #f3f5fe;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 18px 48px rgba(28, 40, 84, 0.10);
  --shadow-sm: 0 6px 18px rgba(28, 40, 84, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
mark { background: var(--accent-soft); color: var(--accent-ink); padding: 0 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(43, 82, 224, 0.24); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 14px 30px rgba(43, 82, 224, 0.3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfd4e0; }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 249, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.brand-text em { font-style: normal; margin-left: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-soft); font-weight: 500; }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.28s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 76px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--pill);
  padding: 6px 12px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); letter-spacing: -0.035em; }
.lede { margin-top: 20px; max-width: 30em; font-size: 17px; color: var(--muted); line-height: 1.75; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  position: relative;
  width: 320px;
  border-radius: 42px;
  background: #0f1116;
  padding: 10px;
  box-shadow: 0 34px 70px rgba(20, 26, 56, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone-notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; border-radius: var(--pill);
  background: #0f1116; z-index: 3;
}
.phone-screen {
  position: relative;
  height: 556px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 62%, #eff2f8 100%);
  padding: 52px 18px 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.app-title { font-size: 17px; font-weight: 700; margin-top: 3px; }
.ring { position: relative; width: 46px; height: 46px; }
.ring svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: #e4e8f3; stroke-width: 5; }
.ring-bar {
  fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 113; stroke-dashoffset: 113;
  transition: stroke-dashoffset 0.6s var(--ease);
}
.ring-num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.wordcard {
  position: relative;
  margin-top: 22px;
  flex: 1;
  min-height: 300px;
  perspective: 1200px;
  cursor: pointer;
}
.wc-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.62s var(--ease), opacity 0.32s var(--ease);
  text-align: center;
}
.wc-back { transform: rotateY(180deg); opacity: 0; background: linear-gradient(160deg, #ffffff, #f2f5ff); }
.wordcard.flipped .wc-front { transform: rotateY(-180deg); opacity: 0; }
.wordcard.flipped .wc-back { transform: rotateY(0deg); opacity: 1; }

.wc-pos {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: var(--pill); padding: 3px 10px;
}
.wc-word { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; word-break: break-word; }
.wc-phon { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wc-flip {
  margin-top: 10px;
  min-height: 38px; padding: 0 18px;
  border: 1px solid #cfd4e0; background: #fff; color: var(--ink);
  border-radius: var(--pill); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.wc-flip:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-tint); }
.wc-cn { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.wc-ex { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.wc-ex-cn { font-size: 13px; color: var(--muted); }

.grade-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.grade {
  min-height: 44px;
  border-radius: var(--pill);
  border: 1px solid #d9dde7;
  background: #fff;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.grade:hover { border-color: var(--accent); color: var(--accent-ink); }
.grade:active { transform: scale(0.97); }
.grade-ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.grade-ok:hover { background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); }
.app-hint { margin-top: 12px; font-size: 11px; color: #8b92a3; text-align: center; min-height: 16px; }

.float-chip {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.float-chip-a { top: 46px; left: -8px; animation: float 7s ease-in-out infinite; }
.float-chip-b { bottom: 66px; right: -18px; animation: float 9s ease-in-out infinite reverse; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- sections ---------- */
.section-title { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.03em; max-width: 22em; }

.product { padding: 24px 0 88px; }
.bento {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cell h3 { font-size: 20px; letter-spacing: -0.02em; }
.cell p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.cell-curve { grid-column: span 2; background: linear-gradient(165deg, #ffffff 0%, var(--accent-tint) 100%); }
.cell-books { grid-column: span 2; }
.cell-speak { background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%); }

.curve { width: 100%; height: 130px; margin-top: 6px; }
.curve-line {
  fill: none; stroke: #c9d1e6; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
}
.curve-line-2 { stroke: var(--accent); stroke-width: 3; }
.curve-dots circle { fill: var(--accent); opacity: 0; transition: opacity 0.5s var(--ease) 0.6s; }
.is-in .curve-line { animation: draw 1.5s var(--ease) forwards; }
.is-in .curve-line-2 { animation-delay: 0.18s; }
.is-in .curve-dots circle { opacity: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.curve-legend { display: flex; gap: 18px; font-size: 12px; color: var(--muted); }
.curve-legend .legend-ok { color: var(--accent-ink); font-weight: 600; }

.quote-mini {
  margin: 6px 0 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #f7f8fb;
  border-left: 3px solid var(--accent);
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.quote-mini cite { display: block; margin-top: 10px; font-style: normal; font-size: 12px; color: var(--muted); }

.bars { display: flex; align-items: flex-end; gap: 5px; height: 84px; margin-top: auto; }
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: var(--pill);
  background: linear-gradient(180deg, var(--accent), #7c93ee);
  transform-origin: bottom;
  animation: bar 2.4s ease-in-out infinite alternate;
}
.bars span:nth-child(2n) { animation-delay: 0.35s; }
.bars span:nth-child(3n) { animation-delay: 0.7s; }
@keyframes bar { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }

.book-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.book-chips li {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: #f2f4f9;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 7px 14px;
  font-variant-numeric: tabular-nums;
}

/* how */
.how { padding: 12px 0 92px; }
.steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.steps li { padding: 28px 32px 0 0; position: relative; }
.steps li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.steps h3 { font-size: 22px; color: var(--ink); }
.steps h3::before {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 2px;
  background: var(--accent); margin-bottom: 16px;
}
.steps p { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.75; max-width: 30em; }

/* words */
.words { padding: 84px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.words-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: start; }
.words-head .section-title { font-size: clamp(24px, 2.9vw, 34px); margin-bottom: 26px; }
.tabs { display: inline-flex; gap: 6px; padding: 5px; background: #f1f3f8; border-radius: var(--pill); }
.tab {
  border: none; background: transparent; cursor: pointer;
  min-height: 38px; padding: 0 18px; border-radius: var(--pill);
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
  font-family: inherit;
}
.tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.words-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 26em; }

.word-list { display: grid; gap: 2px; }
.word-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid #eef0f6;
  animation: rowIn 0.5s var(--ease) both;
}
.word-row:last-child { border-bottom: none; }
.word-row .w { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.word-row .ph { font-size: 12.5px; color: #8b92a3; margin-left: 8px; font-variant-numeric: tabular-nums; }
.word-row .cn { font-size: 14.5px; color: var(--muted); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* shelf */
.shelf { padding: 68px 0; }
.shelf-stats { display: flex; flex-wrap: wrap; gap: 56px; }
.shelf-stats div { display: flex; align-items: baseline; gap: 10px; }
.shelf-stats strong { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; }
.shelf-stats span { font-size: 13.5px; color: var(--muted); }
.marquee {
  margin-top: 42px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 36px; width: max-content; animation: slide 34s linear infinite; }
.marquee-track span { font-size: 17px; font-weight: 600; color: #a7aebd; letter-spacing: 0.01em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* voices */
.voices { padding: 84px 0 56px; }
.quotes { margin-top: 44px; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; align-items: stretch; }
.quote {
  margin: 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-lead { background: linear-gradient(165deg, #ffffff, var(--accent-tint)); border-color: #d8e0fb; }
.quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-soft); }
.quote-lead blockquote { font-size: 18px; line-height: 1.7; color: var(--ink); }
.quote figcaption { font-size: 14px; font-weight: 700; }
.quote figcaption span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* price */
.price { padding: 44px 0 92px; }
.plans { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; }
.plan {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan h3 { font-size: 18px; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-note { font-size: 13px; color: var(--muted); }
.plan ul { margin: 18px 0 24px; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-soft); }
.plan li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent);
}
.plan a.btn { margin-top: auto; }
.plan-plus { border-color: #c9d4fa; box-shadow: var(--shadow); }

/* download */
.download { padding: 28px 0 96px; }
.download-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  background: linear-gradient(165deg, #ffffff 0%, var(--accent-tint) 100%);
  border: 1px solid #dbe2fa;
  border-radius: var(--radius-lg);
}
.download h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; }
.download p { margin: 16px auto 28px; font-size: 15px; color: var(--muted); max-width: 34em; }
.download .download-note { margin: 20px auto 0; font-size: 12.5px; color: #8b92a3; }

/* footer */
.footer { border-top: 1px solid var(--line); background: #fff; padding: 58px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 1.2fr;
  gap: 40px;
}
.footer-desc { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 24em; line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: 0.02em; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-record p { font-size: 13px; color: var(--muted); padding: 3px 0; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #eef0f6;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12.5px; color: #8b92a3; }

/* reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: 2; }
  .hero-copy { max-width: 34em; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell-curve, .cell-books { grid-column: span 2; }
  .words-grid { grid-template-columns: 1fr; gap: 36px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote-lead { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-inner { height: 62px; gap: 12px; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .lede { font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .phone { width: 100%; max-width: 320px; }
  .float-chip { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell-curve, .cell-books { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 24px 0 0; }
  .steps li + li { padding-left: 0; border-left: none; border-top: 1px solid var(--line); margin-top: 24px; }
  .word-row { grid-template-columns: 1fr; gap: 4px; }
  .shelf-stats { gap: 28px; }
  .quotes { grid-template-columns: 1fr; }
  .quote-lead { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .download-inner { padding: 40px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .curve-line { stroke-dashoffset: 0; }
  .curve-dots circle { opacity: 1; }
}
