/* nevertrapped.com v2 — UNTRAP
   Refractive Liquid Glass + 3D Perspective UI
   Brand colors:
   - Yellow (#FFC93C) = Chosen Answer Ring
   - Red (#FF5470)    = Official Answer Key Ring
   - Green (#2BE38B)  = Untrapped / Mastered Ring
   - Violet/Blue (#8B5CF6 -> #3B82F6) = Official UNTRAP App Icon Gradient */

:root {
  --bg: #050816;
  --bg-2: #0a1029;
  --ink: #f2f5ff;
  --ink-2: #cad3ee;
  --muted: #93a0c6;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --glass: rgba(15, 23, 52, 0.48);
  --glass-strong: rgba(20, 30, 68, 0.62);
  --green: #2be38b;
  --cyan: #22d3ee;
  --yellow: #ffc93c;
  --red: #ff5470;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --grad: linear-gradient(125deg, var(--green) 0%, var(--cyan) 55%, #60a5fa 100%);
  --grad-brand: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 68px -18px rgba(0, 0, 0, 0.72), 0 4px 20px rgba(0, 0, 0, 0.4);
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', 'Noto Sans JP', 'Noto Sans KR', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', 'Noto Sans KR', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 80px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  font-weight: 800;
}
h1 { font-size: clamp(2.5rem, 5.2vw + 1rem, 5.1rem); }
h2 { font-size: clamp(1.85rem, 2.6vw + 0.9rem, 3.1rem); }
h3, .h3 { font-size: 1.26rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  padding: 10px 18px; border-radius: 12px;
  background: var(--yellow); color: #090d16; font-weight: 700;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 14px; }
main:focus { outline: none; }

.container { width: min(1220px, 100% - 36px); margin-inline: auto; }
.container.narrow { width: min(880px, 100% - 36px); }
.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section + .section { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4.5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px; padding: 6px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green);
  background: rgba(43, 227, 139, 0.08);
  border: 1px solid rgba(43, 227, 139, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.eyebrow::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 10px var(--green);
}
.lead {
  font-size: clamp(1.05rem, 0.45vw + 0.98rem, 1.24rem);
  color: var(--ink-2);
  max-width: 64ch;
}
.section-head.center .lead { margin-inline: auto; }

/* ---------- Liquid Glass Backdrop & Ambient Aurora ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1100px 650px at 85% -5%, rgba(139, 92, 246, 0.22) 0%, transparent 60%),
    radial-gradient(950px 600px at -10% 25%, rgba(34, 211, 238, 0.16) 0%, transparent 60%),
    radial-gradient(800px 550px at 50% 105%, rgba(43, 227, 139, 0.12) 0%, transparent 65%),
    var(--bg);
}
.grid-mesh {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 30%, transparent 80%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.42; will-change: transform;
}
.b1 {
  width: 48vmax; height: 48vmax; left: -12vmax; top: -12vmax;
  background: radial-gradient(circle at 35% 35%, #2be38b, transparent 65%);
  animation: drift1 24s var(--ease) infinite alternate;
}
.b2 {
  width: 44vmax; height: 44vmax; right: -12vmax; top: 14vh;
  background: radial-gradient(circle at 60% 40%, #8b5cf6, transparent 65%);
  animation: drift2 30s var(--ease) infinite alternate;
  opacity: 0.38;
}
.b3 {
  width: 36vmax; height: 36vmax; left: 28vw; bottom: -14vmax;
  background: radial-gradient(circle, #22d3ee, transparent 65%);
  animation: drift3 26s var(--ease) infinite alternate;
  opacity: 0.32;
}
.grain {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { to { transform: translate(12vw, 15vh) scale(1.14); } }
@keyframes drift2 { to { transform: translate(-14vw, 10vh) scale(0.92); } }
@keyframes drift3 { to { transform: translate(-8vw, -12vh) scale(1.18); } }

/* ---------- Refractive Liquid Glass Surfaces ---------- */
.glass, .glass-strong {
  position: relative;
  background:
    radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.09), transparent 45%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(43, 227, 139, 0.03) 100%),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05),
    var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  backdrop-filter: blur(22px) saturate(165%);
}
.glass-strong {
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(43, 227, 139, 0.11), transparent 45%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(34, 211, 238, 0.05) 100%),
    var(--glass-strong);
  border-color: var(--line-strong);
}
.glass-strong::before, .glass.liquid-rim::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(43, 227, 139, 0.4) 70%,
    rgba(139, 92, 246, 0.55) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* 3D Tilt interactive cards */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.28s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
[data-tilt]:hover {
  border-color: rgba(43, 227, 139, 0.42);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 28px 70px -16px rgba(0, 0, 0, 0.8),
    0 0 28px -8px rgba(43, 227, 139, 0.25);
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 12px 22px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; isolation: isolate; overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 19px; height: 19px; transition: transform 0.25s var(--ease); flex: none; }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad);
  color: #03150e;
  box-shadow: 0 12px 34px -8px rgba(43, 227, 139, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.65);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.6) 50%, transparent 80%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px -10px rgba(43, 227, 139, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.75);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px);
}
.btn-lg { --pad: 16px 28px; font-size: 1.05rem; }
.btn-sm { --pad: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; align-items: center; }
.cta-row.center { justify-content: center; }

.badge-soon {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; color: var(--yellow);
  background: rgba(255, 201, 60, 0.12); border: 1px solid rgba(255, 201, 60, 0.35);
}
.badge-soon::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

.badge-live {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; color: var(--green);
  background: rgba(43, 227, 139, 0.12); border: 1px solid rgba(43, 227, 139, 0.35);
}
.badge-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}

/* ---------- Header & Multilingual Liquid Glass Switcher ---------- */
.site-header { position: sticky; top: 0; z-index: 90; padding: 12px 0; }
.nav {
  width: min(1220px, 100% - 24px); margin-inline: auto; min-height: 64px; padding: 6px 12px 6px 16px;
  display: flex; align-items: center; gap: 12px; border-radius: 999px;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled .nav {
  background: rgba(7, 11, 28, 0.82);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.65);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand .logo-mark { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.38rem;
  letter-spacing: -0.03em; background: linear-gradient(90deg, #fff, #cbd5e1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { margin-inline: auto; }
.nav-links ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a, .mobile-menu ul a {
  display: block; padding: 8px 13px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 0.92rem;
  transition: color 0.2s, background-color 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a[aria-current='page'] {
  color: var(--ink); background: rgba(255, 255, 255, 0.1);
}
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }

/* Language Dropdown */
.lang-dropdown { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06);
  color: var(--ink); font-size: 0.86rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.lang-trigger:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--line-strong); }
.lang-trigger .icon { width: 16px; height: 16px; color: var(--cyan); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 190px;
  padding: 8px; border-radius: 18px; z-index: 120;
  display: grid; grid-template-columns: 1fr; gap: 3px;
  background: rgba(10, 16, 40, 0.94);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: 12px; text-decoration: none;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-2);
  transition: background-color 0.18s, color 0.18s;
}
.lang-menu a:hover, .lang-menu a.is-active {
  background: rgba(43, 227, 139, 0.14); color: var(--ink);
}
.lang-code {
  font-size: 0.72rem; font-weight: 800; padding: 2px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08); color: var(--cyan);
}

.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07);
  cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle .icon { width: 20px; height: 20px; }

.mobile-menu {
  width: min(1220px, 100% - 24px); margin: 10px auto 0; padding: 16px;
  background: rgba(8, 13, 34, 0.94);
}
.mobile-menu ul { list-style: none; margin: 0 0 14px; padding: 0; }
.mobile-menu ul a { padding: 12px 14px; font-size: 1.02rem; }
.mobile-langs {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0;
  border-top: 1px solid var(--line); margin-bottom: 12px;
}
.mobile-langs a {
  padding: 6px 11px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
}
.mobile-langs a.is-active {
  border-color: var(--green); background: rgba(43, 227, 139, 0.15); color: var(--green);
}

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
}

/* ---------- Official UNTRAP Logo Motion ---------- */
.logo-arrow {
  transform-box: fill-box; transform-origin: center;
  transition: transform 0.4s var(--ease);
}
.brand:hover .logo-arrow, .final-logo:hover .logo-arrow {
  transform: translateY(-4px) scale(1.05);
}

/* ---------- Hero Section & 3D Optical Trap Stage ---------- */
.hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(32px, 4.5vw, 64px); align-items: center;
  padding-block: clamp(28px, 5vw, 72px) clamp(40px, 6vw, 80px);
}
.hero-title { margin-bottom: 20px; }
.hero-title .line { display: block; }
.hero-note { font-size: 0.9rem; margin-bottom: 22px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 26px;
}
.stat-pill {
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line);
}
.stat-pill strong {
  display: block; font-family: var(--font-display); font-size: 1.3rem;
  color: var(--green); margin-bottom: 2px;
}
.stat-pill span { font-size: 0.78rem; color: var(--ink-2); line-height: 1.35; display: block; }

/* 3D Holographic Stage */
.stage-3d-wrap {
  perspective: 1200px;
  width: 100%; max-width: 520px; justify-self: center;
}
.stage-3d {
  position: relative;
  padding: 26px;
  border-radius: 30px;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(-12deg);
  transition: transform 0.25s ease-out;
  animation: float3d 8s ease-in-out infinite alternate;
}
@keyframes float3d {
  0% { transform: rotateX(9deg) rotateY(-11deg) translateY(0px); }
  100% { transform: rotateX(4deg) rotateY(7deg) translateY(-10px); }
}
.stage-3d:hover { animation-play-state: paused; }

.stage-top-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-bottom: 18px; transform: translateZ(35px);
}
.holo-stack {
  position: relative;
  display: grid; gap: 14px;
  transform-style: preserve-3d;
}
.holo-layer {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(12, 19, 46, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative; overflow: hidden;
}
.holo-layer.l1 { transform: translateZ(16px); }
.holo-layer.l2 { transform: translateZ(42px); border-color: rgba(255, 201, 60, 0.45); }
.holo-layer.l3 {
  transform: translateZ(68px);
  background: linear-gradient(135deg, rgba(43, 227, 139, 0.16), rgba(15, 23, 54, 0.9));
  border-color: rgba(43, 227, 139, 0.55);
}
.scan-beam {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--green), transparent);
  box-shadow: 0 0 14px var(--cyan);
  animation: scanSweep 3.6s ease-in-out infinite;
}
@keyframes scanSweep {
  0%, 100% { top: 8%; opacity: 0.3; }
  50% { top: 90%; opacity: 1; }
}
.holo-tag {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cyan); margin-bottom: 8px; display: block;
}
.holo-paper {
  padding: 10px 12px; border-radius: 12px;
  background: rgba(244, 241, 232, 0.95); color: #1a2035;
  font-weight: 700; font-size: 0.88rem; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.holo-rings-preview {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 6px;
}
.holo-opt {
  flex: 1; padding: 8px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); font-size: 0.84rem; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between;
}
.holo-opt.y { border: 1.5px solid var(--yellow); color: var(--yellow); box-shadow: 0 0 15px rgba(255, 201, 60, 0.2); }
.holo-opt.r { border: 1.5px solid var(--red); color: var(--red); box-shadow: 0 0 15px rgba(255, 84, 112, 0.2); }
.holo-opt.g { border: 1.5px solid var(--green); color: var(--green); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* ---------- Interactive Two-Tap Demo (Student + Teacher Mode) ---------- */
.demo-section-grid {
  display: grid; grid-template-columns: 1fr; max-width: 860px; margin-inline: auto;
}
.demo { padding: clamp(20px, 3.5vw, 34px); border-radius: 28px; }
.demo-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.mode-switch {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(5, 8, 22, 0.65); border: 1px solid var(--line);
}
.mode-btn {
  padding: 7px 15px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); font-size: 0.84rem; font-weight: 700; cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.mode-btn.is-active {
  background: var(--grad); color: #04150d;
}
.pill {
  padding: 6px 13px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
}
.demo-reset {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); color: var(--ink-2);
  font-size: 0.84rem; font-weight: 600; cursor: pointer;
}
.demo-reset:hover { color: var(--ink); background: rgba(255, 255, 255, 0.12); }
.demo-reset .icon { width: 15px; height: 15px; }
.demo-q {
  font-size: 1.08rem; color: var(--ink); margin-bottom: 18px;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.demo-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 12px 16px 12px 18px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045); cursor: pointer; text-align: left;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.opt:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); transform: translateY(-2px); }
.opt:active { transform: scale(0.98); }
.opt-letter { font-weight: 800; color: var(--cyan); min-width: 24px; }
.opt-text { font-weight: 700; white-space: nowrap; font-size: 1.02rem; }
.opt-rings {
  position: absolute; left: 4px; top: 50%; width: 46px; height: 46px;
  transform: translateY(-50%); pointer-events: none;
}
.opt-rings .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring circle {
  fill: none; stroke-width: 3.3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transform: rotate(-90deg); transform-origin: center;
  transition: stroke-dashoffset 0.55s var(--ease), opacity 0.35s;
}
.r-yellow circle { stroke: var(--yellow); }
.r-red circle { stroke: var(--red); }
.r-green circle { stroke: var(--green); stroke-width: 3.7; }
.ring { opacity: 0.95; }
.ring.show circle { stroke-dashoffset: 0; }
.opt.is-yours .r-yellow circle,
.opt.is-correct .r-red circle,
.opt.is-right .r-green circle { stroke-dashoffset: 0; }
.opt.is-right .r-yellow circle,
.opt.is-right .r-red circle { opacity: 0; }
.opt.is-right .r-green { filter: drop-shadow(0 0 10px rgba(43, 227, 139, 0.75)); }
.opt.shake { animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.demo-hint {
  min-height: 1.6em; margin: 16px 0 0; font-weight: 600; color: var(--cyan);
}
.demo-result { margin-top: 16px; display: grid; gap: 12px; }
.demo-result:not([hidden]) { animation: rise 0.45s var(--ease); }
.result-card {
  padding: 16px 18px; border-radius: 16px;
  background: rgba(255, 84, 112, 0.11); border: 1px solid rgba(255, 84, 112, 0.4);
}
.result-card.is-right {
  background: rgba(43, 227, 139, 0.11); border-color: rgba(43, 227, 139, 0.45);
}
.result-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.04rem; margin-bottom: 6px; }
.result-card h3 .icon { width: 19px; height: 19px; color: var(--red); flex: none; }
.result-card.is-right h3 .icon { color: var(--green); }
.result-card p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }

.result-tactic {
  padding: 14px 18px; border-radius: 16px;
  background: rgba(255, 201, 60, 0.09); border: 1px solid rgba(255, 201, 60, 0.35);
  font-size: 0.94rem; color: var(--ink-2);
}
.result-tactic strong { color: var(--yellow); }

.result-teacher {
  padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.45);
  font-size: 0.94rem; color: var(--ink-2);
}
.result-teacher strong {
  color: #c4b5fd; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 1rem;
}
.heatmap-bars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px;
}
.hm-bar {
  padding: 6px 8px; border-radius: 10px; background: rgba(0, 0, 0, 0.3);
  font-size: 0.78rem; font-weight: 700; text-align: center;
}
.hm-bar.hot { border: 1px solid rgba(255, 84, 112, 0.5); color: #fda4af; }
.hm-bar.key { border: 1px solid rgba(43, 227, 139, 0.5); color: var(--green); }

.demo-legend {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted);
}
.demo-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid; display: inline-block; }
.dot-y { border-color: var(--yellow); }
.dot-r { border-color: var(--red); }
.dot-g { border-color: var(--green); }
.demo-caption { margin: 12px 4px 0; font-size: 0.82rem; color: var(--muted); text-align: center; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 520px) {
  .demo-opts { grid-template-columns: 1fr; }
  .heatmap-bars { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Teacher Spotlight & Cards ---------- */
.teacher-grid, .rings-grid, .loop-grid, .trap-grid, .fam-grid, .steps, .check-list, .plan-list, .footer-links, .perm-grid {
  list-style: none; margin: 0; padding: 0;
}
.teacher-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.teacher-card {
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.teacher-card p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) {
  .teacher-grid { grid-template-columns: 1fr; }
}

/* ---------- Rings Section ---------- */
.rings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ring-card { padding: 28px; text-align: center; }
.ring-card p { color: var(--ink-2); margin: 0; }
.ring-visual { position: relative; width: 88px; height: 88px; margin: 0 auto 18px; }
.ring-visual .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-visual .ring circle { stroke-width: 3.5; stroke-dashoffset: 0; }
.ring-visual.merge .r-green { filter: drop-shadow(0 0 12px rgba(43, 227, 139, 0.65)); }
@media (max-width: 760px) { .rings-grid { grid-template-columns: 1fr; } }

/* ---------- Statement & 4T Loop ---------- */
.statement { text-align: center; }
.statement-title { max-width: 20ch; margin-inline: auto; font-size: clamp(2rem, 3.8vw + 1rem, 3.8rem); }
.statement .lead { margin-inline: auto; }

.loop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.loop-card { padding: 24px; display: flex; flex-direction: column; }
.loop-card p { color: var(--ink-2); margin: 0; }
.loop-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.loop-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(43, 227, 139, 0.12); color: var(--green); border: 1px solid rgba(43, 227, 139, 0.32);
}
.loop-icon .icon { width: 24px; height: 24px; }
.loop-n { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: rgba(255, 255, 255, 0.18); }
@media (max-width: 1000px) { .loop-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .loop-grid { grid-template-columns: 1fr; } }

/* ---------- Inside Analysis ---------- */
.inside-panel { padding: clamp(28px, 5vw, 56px); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.check-list li, .plan-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list .icon, .plan-list .icon {
  flex: none; width: 22px; height: 22px; padding: 3px; margin-top: 2px;
  border-radius: 50%; color: #04150d; background: var(--green); stroke-width: 3;
}
@media (max-width: 700px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- Trap Marquee ---------- */
.traps-teaser { overflow: hidden; }
.marquee {
  display: flex; gap: 14px; overflow: hidden; padding: 6px 0 34px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 14px; flex: none; list-style: none; margin: 0; padding: 0;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 14px)); } }
.chip {
  flex: none; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  white-space: nowrap; border: 1px solid; background: rgba(255, 255, 255, 0.045);
}
.chip-r { border-color: rgba(255, 84, 112, 0.45); color: #ffc2cd; }
.chip-y { border-color: rgba(255, 201, 60, 0.45); color: #ffe6a6; }
.chip-c { border-color: rgba(34, 211, 238, 0.45); color: #b5f2fb; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 940px; margin-inline: auto; }
.plan { padding: clamp(24px, 3.5vw, 38px); display: flex; flex-direction: column; }
.plan-list { display: grid; gap: 12px; margin: 10px 0 28px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-deep h3 {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content;
}
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final-inner { text-align: center; padding: clamp(42px, 7vw, 84px) 24px; overflow: hidden; }
.final-inner::after {
  content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(43, 227, 139, 0.24), transparent);
  pointer-events: none; z-index: -1;
}
.final-logo { width: 84px; height: 84px; margin: 0 auto 22px; }
.final-logo .logo-mark { width: 100%; height: 100%; animation: float 6s ease-in-out infinite; }
.final-sub {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2vw + 1rem, 2.3rem);
  font-weight: 800; margin-bottom: 28px;
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Inner Pages ---------- */
.page-hero { padding-block: clamp(36px, 7vw, 90px) clamp(16px, 3vw, 32px); }
.page-title { font-size: clamp(2.2rem, 4.2vw + 1rem, 4.3rem); max-width: 18ch; }
.page-hero.center .page-title { margin-inline: auto; }
.group-title { font-size: clamp(1.5rem, 1.5vw + 1rem, 2.2rem); margin-bottom: 24px; }

/* How It Works */
.how-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { position: relative; display: grid; gap: 18px; }
.steps::before {
  content: ''; position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(var(--green), var(--cyan), rgba(139, 92, 246, 0.4)); opacity: 0.55;
}
.step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.step-n {
  position: relative; z-index: 1; display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: 18px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--green); font-weight: 800; color: var(--green);
}
.step-card { display: flex; gap: 16px; padding: 20px 22px; }
.step-card p { margin: 0; color: var(--ink-2); }
.step-card .h3 { margin-bottom: 6px; }
.step-icon {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: rgba(34, 211, 238, 0.12); color: var(--cyan);
}
.step-icon .icon { width: 22px; height: 22px; }
.how-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.note-card { padding: 22px; }
.note-card p { margin: 0; }
@media (max-width: 900px) { .how-layout { grid-template-columns: 1fr; } .how-aside { position: static; } }

/* CSS 3D Phone Preview */
.phone {
  width: min(290px, 82%); margin-inline: auto; aspect-ratio: 9 / 18.5; padding: 10px;
  border-radius: 42px; background: linear-gradient(160deg, #313d6b, #10152e);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}
.phone-screen {
  height: 100%; border-radius: 33px; padding: 26px 16px 16px;
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(180deg, #0f1636, #080c1f); overflow: hidden;
}
.ph-bar { width: 40%; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); }
.ph-q { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: #f4f1e8; }
.ph-q i { display: block; height: 7px; border-radius: 4px; background: #c9c3b2; }
.ph-q i.short { width: 60%; }
.ph-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-opts span {
  position: relative; display: grid; place-items: center; height: 46px;
  border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-weight: 700; color: var(--muted);
}
.ph-opts .ring { position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; translate: -50% -50%; }
.ph-opts .ring circle { stroke-dashoffset: 0; }
.ph-nav { margin-top: auto; display: flex; gap: 8px; }
.ph-nav b { flex: 1; height: 34px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.ph-nav b.wide { flex: 2; background: var(--grad); opacity: 0.9; }

/* Traps & Teachers Grids */
.trap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.trap-card, .fam-card { padding: 24px; display: flex; flex-direction: column; }
.trap-card h3, .fam-card .h3 { margin-bottom: 8px; }
.trap-card p, .fam-card p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.trap-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 13px; color: var(--cyan);
  background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.28);
}
.trap-icon .icon { width: 22px; height: 22px; }
.tone-red .trap-icon { color: var(--red); background: rgba(255, 84, 112, 0.12); border-color: rgba(255, 84, 112, 0.32); }
.tone-yellow .trap-icon { color: var(--yellow); background: rgba(255, 201, 60, 0.12); border-color: rgba(255, 201, 60, 0.32); }
.tone-green .trap-icon { color: var(--green); background: rgba(43, 227, 139, 0.12); border-color: rgba(43, 227, 139, 0.32); }

.fam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .fam-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fam-grid { grid-template-columns: 1fr; } }

.split {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  align-items: center; padding: clamp(26px, 5vw, 52px);
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.06rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.faq-icon .icon { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: rgba(43, 227, 139, 0.22); color: var(--green); }
.faq-body { padding: 0 24px 22px; color: var(--ink-2); }
.faq-body p { margin: 0; }

/* Download & Forms */
.download-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 5vw, 56px); align-items: start;
}
.stores { display: grid; gap: 14px; }
.store {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  border-radius: 22px; text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
a.store:hover { transform: translateY(-3px); border-color: var(--green); }
.store .icon-store { width: 34px; height: 34px; flex: none; color: var(--green); }
.store-text { display: grid; line-height: 1.2; }
.store-text small { font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.store-text strong { font-size: 1.3rem; font-family: var(--font-display); }
.store.is-soon { opacity: 0.82; }
.store.is-soon .badge-soon { margin: 0 0 0 auto; }
.dl-logo { width: 132px; margin: 24px auto 0; }

.signup { padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
.signup .h3 { margin: 0; }
.signup > p { margin: 0; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.92rem; padding: 0; margin-bottom: 6px; }
input[type='email'], input[type='text'], textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 8, 22, 0.65); color: var(--ink); font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #75809f; }
input:focus, textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(43, 227, 139, 0.18);
}
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.segmented label { position: relative; margin: 0; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented label > span {
  display: block; padding: 11px 12px; border-radius: 12px; text-align: center;
  font-weight: 600; font-size: 0.9rem; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04); transition: all 0.2s;
}
.segmented input:checked + span {
  background: rgba(43, 227, 139, 0.16); border-color: var(--green); color: var(--ink);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 600; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff8a9e; }
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } .dl-logo { display: none; } }

/* ---------- Privacy Policy & Google Play Data Safety ---------- */
.compliance-banner {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-radius: 20px; margin-top: 18px;
  border-color: rgba(43, 227, 139, 0.4);
  background: linear-gradient(135deg, rgba(43, 227, 139, 0.12), rgba(34, 211, 238, 0.06));
}
.perm-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0 32px;
}
.perm-card { padding: 18px 20px; border-radius: 18px; }
.perm-card h3 { font-size: 1rem; color: var(--cyan); margin-bottom: 6px; }
.perm-card p { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 700px) { .perm-grid { grid-template-columns: 1fr; } }

.prose section {
  padding: 26px 28px; margin-bottom: 20px; border-radius: 22px;
}
.prose section h2 { color: var(--ink); margin-bottom: 14px; font-size: 1.38rem; }
.prose p { color: var(--ink-2); line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px; padding: 60px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(3, 6, 18, 0.85));
}
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 32px; }
.footer-brand p { max-width: 38ch; margin: 14px 0 6px; }
.footer-tagline { font-family: var(--font-display); font-weight: 800; color: var(--green); }
.footer-h {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 14px;
}
.footer-links { display: grid; gap: 6px; }
.footer-links a {
  display: inline-block; padding: 5px 0; text-decoration: none;
  color: var(--ink-2); font-size: 0.94rem;
}
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--muted);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reveal Animations ---------- */
.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

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