:root {
  color-scheme: dark;
  --bg: #050713;
  --bg-2: #0a1027;
  --surface: rgba(255,255,255,.075);
  --surface-strong: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.14);
  --text: #f7f8ff;
  --muted: #aeb6d4;
  --soft: #dbe3ff;
  --blue: #0aa2ff;
  --blue-2: #0067ff;
  --cyan: #18e0ff;
  --purple: #c738ff;
  --pink: #ff3b8d;
  --green: #33d66b;
  --yellow: #ffd339;
  --orange: #ff9d2e;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
  --radius: 28px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(199,56,255,.24), transparent 32rem),
    radial-gradient(circle at 90% 5%, rgba(10,162,255,.32), transparent 36rem),
    radial-gradient(circle at 75% 62%, rgba(24,224,255,.09), transparent 34rem),
    linear-gradient(180deg, #050713 0%, #080b1a 44%, #050713 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: -30%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent, rgba(24,224,255,.08), transparent, rgba(199,56,255,.12), transparent);
  animation: spin-bg 28s linear infinite;
  z-index: -3;
}

@keyframes spin-bg { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes shimmer { to { transform: translateX(120%); } }
@keyframes pulse-line { 0%,100% { opacity: .45; transform: scaleX(.92); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes orbit { to { transform: rotate(360deg); } }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  top: -42px;
  left: 18px;
  padding: 12px 16px;
  border-radius: 999px;
  background: white;
  color: #111;
  z-index: 20;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(22px);
  background: rgba(5,7,19,.72);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -.03em;
}
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 12px 34px rgba(0, 103, 255, .35); }
.brand span small { display: block; color: var(--muted); font-weight: 650; font-size: 12px; letter-spacing: .02em; }
.nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--soft);
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 999px;
  font-weight: 720;
  font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.09); color: white; }

.button {
  appearance: none;
  border: 0;
  color: white;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.01em;
  border-radius: 999px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 18px 40px rgba(0,103,255,.25);
  position: relative;
  overflow: hidden;
}
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
}
.button:hover::after { animation: shimmer .82s ease; }
.button.secondary { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); box-shadow: none; }
.button.green { background: linear-gradient(135deg, #27d45d, #0fa8ff); }

.hero {
  padding: 76px 0 56px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 48px;
  align-items: center;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: var(--soft);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 760;
}
.badge strong { color: white; }

h1, h2, h3 { margin: 0; letter-spacing: -.055em; line-height: 1.02; }
h1 { font-size: clamp(48px, 7.4vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 62px); }
h3 { font-size: 24px; }
p { color: var(--muted); line-height: 1.7; font-size: 17px; }
.lead { font-size: clamp(18px, 2.3vw, 23px); color: #d7ddf6; max-width: 66ch; }
.gradient-text { background: linear-gradient(90deg, #fff, #8fe8ff, #f3a5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 18px; color: #c9d0ee; font-size: 15px; }

.hero-visual {
  min-height: 620px;
  position: relative;
  display: grid;
  place-items: center;
}
.orbit-wrap {
  position: absolute;
  width: min(92vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle, rgba(10,162,255,.16), rgba(199,56,255,.07), transparent 70%);
  animation: orbit 22s linear infinite;
}
.orbit-wrap span {
  position: absolute;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: var(--shadow);
  font-size: 26px;
}
.orbit-wrap span:nth-child(1) { top: 8%; left: 16%; }
.orbit-wrap span:nth-child(2) { top: 16%; right: 6%; }
.orbit-wrap span:nth-child(3) { bottom: 12%; right: 16%; }
.orbit-wrap span:nth-child(4) { bottom: 18%; left: 4%; }
.phone {
  width: min(390px, 88vw);
  min-height: 594px;
  border-radius: 46px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.17);
  padding: 12px;
  box-shadow: 0 32px 100px rgba(0,0,0,.5), 0 0 80px rgba(0,103,255,.22);
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  min-height: 570px;
  background: #050713;
  border: 1px solid rgba(255,255,255,.12);
  padding: 26px;
  position: relative;
}
.phone-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 740; font-size: 13px; }
.progressbar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.12); margin: 24px 0 28px; overflow: hidden; }
.progressbar span { display: block; width: 64%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--purple)); animation: pulse-line 2.3s ease-in-out infinite; transform-origin: left; }
.lesson-card {
  min-height: 330px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(199,56,255,.38), transparent 36%),
    radial-gradient(circle at 95% 20%, rgba(24,224,255,.22), transparent 42%),
    rgba(255,255,255,.065);
  padding: 28px;
  display: grid;
  align-content: center;
  text-align: center;
}
.lesson-card .emoji { font-size: 76px; margin-bottom: 16px; }
.word { color: white; font-size: 52px; line-height: 1; font-weight: 950; letter-spacing: -.06em; }
.translation { color: #c7cde5; font-size: 24px; margin: 12px 0 24px; }
.speak-pill { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 20px; background: #139cff; color: white; font-weight: 850; justify-self: center; }
.nav-pill { position: absolute; left: 24px; right: 24px; bottom: 24px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.nav-pill span { text-align: center; border-radius: 999px; padding: 11px 6px; font-size: 13px; color: var(--muted); font-weight: 780; }
.nav-pill span:first-child { background: rgba(255,255,255,.16); color: #7bd0ff; }

.section { padding: 82px 0; }
.section-head { display: grid; grid-template-columns: 1fr .78fr; gap: 28px; align-items: end; margin-bottom: 34px; }
.eyebrow { color: var(--cyan); text-transform: uppercase; letter-spacing: .16em; font-weight: 900; font-size: 12px; margin-bottom: 13px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.055));
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 34px rgba(0,0,0,.18);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(24,224,255,.14), transparent 48%);
  opacity: 0;
  transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.icon-bubble { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, rgba(10,162,255,.34), rgba(199,56,255,.32)); border: 1px solid rgba(255,255,255,.13); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }

.path {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.level {
  min-height: 168px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  position: relative;
  overflow: hidden;
}
.level::after { content:""; position:absolute; left:20px; right:20px; bottom:18px; height:6px; border-radius:999px; background: linear-gradient(90deg, var(--green), var(--blue), var(--purple)); opacity:.8; }
.level strong { display:block; font-size: 32px; letter-spacing: -.05em; }
.level span { color: var(--muted); font-size: 14px; line-height: 1.5; display:block; margin-top: 8px; }

.showcase {
  border-radius: 40px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 20% 15%, rgba(199,56,255,.18), transparent 40%),
    rgba(255,255,255,.06);
  box-shadow: var(--shadow);
}
.screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.shot {
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  transform: translateY(0) rotate(0);
  transition: transform .25s ease, border-color .25s ease;
}
.shot:nth-child(2), .shot:nth-child(4) { transform: translateY(24px); }
.shot:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(24,224,255,.45); }
.shot:nth-child(2):hover, .shot:nth-child(4):hover { transform: translateY(12px) scale(1.02); }
.shot img { display: block; width: 100%; height: auto; }

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
  align-items: stretch;
}
.ai-panel {
  border: 1px solid rgba(24,224,255,.2);
  background: linear-gradient(135deg, rgba(10,162,255,.18), rgba(199,56,255,.14));
  border-radius: 34px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.ai-panel::after { content:"AI"; position:absolute; right:-10px; bottom:-44px; font-weight: 1000; font-size: 170px; color: rgba(255,255,255,.045); letter-spacing: -.12em; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: #dbe3ff; font-weight: 650; line-height: 1.5; }
.check-list li::before { content: "✓"; flex: 0 0 24px; height: 24px; border-radius: 50%; background: rgba(51,214,107,.18); color: #6dff99; display: inline-grid; place-items:center; font-weight: 950; }
.demo-stack { display: grid; gap: 14px; }
.demo-row { border: 1px solid var(--line); background: rgba(255,255,255,.07); border-radius: 24px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.demo-num { width: 42px; height: 42px; border-radius: 15px; display:grid; place-items:center; background:rgba(255,255,255,.12); color:white; font-weight: 950; }
.demo-row h3 { font-size: 19px; letter-spacing: -.03em; margin-bottom: 4px; }
.demo-row p { margin: 0; font-size: 15px; }

.faq { display: grid; gap: 12px; }
details { border: 1px solid var(--line); background: rgba(255,255,255,.07); border-radius: 22px; padding: 0; overflow: hidden; }
summary { cursor: pointer; padding: 20px 22px; font-weight: 850; color: white; list-style: none; display:flex; justify-content:space-between; gap:18px; }
summary::-webkit-details-marker { display:none; }
summary::after { content: "+"; color: var(--cyan); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 22px 22px; }

.cta {
  border-radius: 42px;
  padding: 46px;
  border: 1px solid rgba(255,255,255,.15);
  background:
    radial-gradient(circle at 18% 0%, rgba(24,224,255,.28), transparent 42%),
    radial-gradient(circle at 90% 20%, rgba(199,56,255,.25), transparent 48%),
    rgba(255,255,255,.08);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta p { max-width: 720px; margin-left: auto; margin-right: auto; }

.privacy-main { padding: 54px 0 92px; }
.policy-hero { border-radius: 38px; border: 1px solid var(--line); padding: 42px; background: linear-gradient(135deg, rgba(10,162,255,.14), rgba(199,56,255,.10)); margin-bottom: 26px; }
.policy-layout { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.policy-toc { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.065); padding: 18px; }
.policy-toc a { display: block; color: var(--soft); text-decoration: none; padding: 9px 10px; border-radius: 14px; font-size: 14px; font-weight: 720; }
.policy-toc a:hover { background: rgba(255,255,255,.09); color: white; }
.policy-content { display: grid; gap: 18px; }
.policy-card { border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.07); padding: 28px; }
.policy-card h2 { font-size: 32px; margin-bottom: 14px; }
.policy-card h3 { font-size: 22px; margin-top: 20px; margin-bottom: 6px; }
.policy-card ul { color: var(--muted); line-height: 1.75; padding-left: 20px; }
.policy-card a, .site-footer a { color: #91ddff; }
.notice { border-left: 4px solid var(--cyan); padding: 15px 18px; border-radius: 16px; background: rgba(24,224,255,.09); color: #e8fbff; }

.site-footer { border-top: 1px solid rgba(255,255,255,.09); padding: 34px 0; color: var(--muted); }
.footer-inner { display:flex; justify-content: space-between; gap: 22px; align-items: center; flex-wrap: wrap; }
.footer-links { display:flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 760; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .section-head, .split, .policy-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
  .hero-visual { min-height: 560px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .path { grid-template-columns: repeat(2, 1fr); }
  .screenshots { grid-template-columns: repeat(2, 1fr); }
  .policy-toc { position: relative; top: 0; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 26px, var(--max)); }
  .nav { align-items: flex-start; min-height: auto; padding: 14px 0; }
  .nav-links { display: none; }
  .hero-visual { min-height: 520px; }
  .phone { width: min(345px, 94vw); min-height: 540px; }
  .phone-screen { min-height: 516px; padding: 20px; }
  .word { font-size: 44px; }
  .lesson-card { min-height: 300px; padding: 20px; }
  .card-grid, .path, .screenshots { grid-template-columns: 1fr; }
  .shot:nth-child(2), .shot:nth-child(4), .shot, .shot:hover, .shot:nth-child(2):hover, .shot:nth-child(4):hover { transform: none; }
  .section { padding: 58px 0; }
  .cta, .policy-hero { padding: 28px; border-radius: 30px; }
  .button { width: 100%; }
  .hero-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
