/* FlashThreads marketing — dark ink + neon mint thread */
:root {
  /* Tokens matched to app/lib/theme/app_theme.dart */
  --bg: #07090f;
  --bg-deep: #04060a;
  --bg-elevated: #0e121c;
  --bg-soft: #0e121c;
  --surface: #161c2a;
  --surface-alt: #1c2436;
  --text: #f2f4f8;
  --text-muted: #a7b0c2;
  --text-dim: #6b7589;
  --mint: #2ee6a6;
  --mint-soft: #66ffcc;
  --mint-deep: #1ecf8f;
  --cyan: #3d8bfd;
  --accent: #2ee6a6;
  --accent-dim: #1ecf8f;
  --accent-2: #3d8bfd;
  --accent-warm: #ff8a5b;
  --danger: #ff5c7a;
  --warn: #ffc857;
  --rating-easy: #f5c451;
  --rating-hard: #e0994b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(46, 230, 166, 0.35);
  --glass: rgba(22, 28, 42, 0.72);
  --glass-strong: rgba(22, 28, 42, 0.88);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(46, 230, 166, 0.35);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--glass-border);
  --gradient-hero-mesh:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(46, 230, 166, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 10%, rgba(61, 139, 253, 0.12), transparent 50%),
    linear-gradient(180deg, #04060a 0%, #07090f 50%, #0e121c 100%);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max: 1120px;
  --nav-h: 68px;
  --font: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --display: 'Outfit', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--mint-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* —— Atmosphere —— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
  width: 100%;
  max-width: 100vw;
  background:
    radial-gradient(ellipse 70% 50% at 8% 0%, rgba(46, 230, 166, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 10%, rgba(61, 139, 253, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, rgba(46, 230, 166, 0.06), transparent 55%),
    linear-gradient(180deg, #04060a 0%, #07090f 50%, #0e121c 100%);
}

.atmosphere-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: drift 22s var(--ease) infinite;
}

.atmosphere-glow--mint {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -60px;
  max-width: none;
  background: rgba(0, 255, 178, 0.22);
}

.atmosphere-glow--cyan {
  width: 380px;
  height: 380px;
  top: 28%;
  right: -100px;
  max-width: none;
  background: rgba(62, 203, 255, 0.16);
  animation-delay: -8s;
}

.atmosphere-thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  opacity: 0.55;
  overflow: hidden;
  /* Glow on the SVG (not paths) so filters don't expand document scroll width */
  filter: drop-shadow(0 0 6px rgba(0, 255, 178, 0.35));
}

.thread-path {
  stroke-linecap: round;
  fill: none;
  vector-effect: non-scaling-stroke;
}

.thread-path--a {
  stroke: var(--mint);
  stroke-width: 1.25;
  opacity: 0.35;
  stroke-dasharray: 8 14;
  animation: thread-flow 28s linear infinite;
}

.thread-path--b {
  stroke: var(--cyan);
  stroke-width: 1;
  opacity: 0.22;
  stroke-dasharray: 4 18;
  animation: thread-flow 36s linear infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, -24px) scale(1.06); }
}

@keyframes thread-flow {
  to { stroke-dashoffset: -400; }
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s, backdrop 0.3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 8, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.site-header .inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-lockup:hover { text-decoration: none; }

.brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-flash { color: var(--text); }
.brand-threads { color: var(--mint); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav-cta {
  margin-left: 6px;
  background: var(--mint) !important;
  color: #041018 !important;
  font-weight: 700 !important;
  box-shadow: 0 0 24px rgba(0, 255, 178, 0.28);
}

.nav-cta:hover {
  filter: brightness(1.06);
  text-decoration: none !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, filter 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-soft));
  color: #041018;
  box-shadow: 0 8px 32px rgba(0, 255, 178, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 255, 178, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(0, 255, 178, 0.45);
}

.btn-ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 0 24px rgba(0, 255, 178, 0.12);
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.8vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 14px;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 30rem;
  color: #c5cedb;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.hero-orbit {
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 255, 178, 0.12);
  box-shadow: inset 0 0 60px rgba(0, 255, 178, 0.04);
  animation: orbit-spin 40s linear infinite;
}

.hero-orbit::before {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(62, 203, 255, 0.15);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.phone {
  position: relative;
  z-index: 2;
  width: min(100%, 268px);
  animation: phone-float 6s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone-bezel {
  padding: 11px 10px 14px;
  border-radius: 34px;
  background: linear-gradient(165deg, #1a2332, #0a0f16 55%, #07090f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(46, 230, 166, 0.08),
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(46, 230, 166, 0.12);
}

.phone-notch {
  width: 78px;
  height: 7px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 9 / 17.5;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-app {
  height: 100%;
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
}

.mock-card {
  border-radius: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #1a2438, #101826);
}

.mock-card--front {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  margin: 8px 0 10px;
}

.mock-chip {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(61, 139, 253, 0.18);
  padding: 4px 8px;
  border-radius: 999px;
}

.mock-card p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 22, 32, 0.55), rgba(14, 22, 32, 0.25));
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-label {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  line-height: 1.18;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* —— Icons —— */
.icon-line {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--mint);
  border-radius: 14px;
  background: rgba(0, 255, 178, 0.08);
  border: 1px solid rgba(0, 255, 178, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 178, 0.12);
}

.icon-line svg { width: 22px; height: 22px; }

.icon-line--sm {
  width: 40px;
  height: 40px;
  margin: 0;
  flex-shrink: 0;
}

.icon-line--sm svg { width: 18px; height: 18px; }

/* —— Features zigzag —— */
.feature-zigzag {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  align-items: center;
}

.feature-row--reverse .feature-copy { order: 2; }
.feature-row--reverse .feature-media { order: 1; }

.feature-copy h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

.feature-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
}

.feature-media { min-width: 0; }

.screen-frame {
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(160deg, rgba(0, 255, 178, 0.12), rgba(62, 203, 255, 0.06) 45%, transparent);
  border: 1px solid rgba(0, 255, 178, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-carousel {
  position: relative;
  z-index: 2;
  width: min(100%, 268px);
}

.phone-carousel .phone-bezel {
  position: relative;
}

.phone-carousel .phone-screen {
  position: relative;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 17.5;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.carousel-slide figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.carousel-btn:hover {
  border-color: rgba(46, 230, 166, 0.4);
  color: var(--mint);
  background: rgba(46, 230, 166, 0.08);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.carousel-dot.is-active {
  background: var(--mint);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(46, 230, 166, 0.55);
}

.carousel-label {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
}

.feature-shot,
.benefits-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 9 / 19;
  max-height: 560px;
  background: var(--bg);
}

.benefits-shot {
  max-height: 620px;
  aspect-ratio: 9 / 17;
}

/* —— App-faithful UI mocks (matched to Flutter screens) —— */
.app-screen {
  border-radius: 18px;
  padding: 20px 18px;
  min-height: 280px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--font);
}

.app-screen-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.app-field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.app-field-help,
.app-muted {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.app-tight { margin-top: -4px; margin-bottom: 14px; }

.app-input {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.app-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.app-chip-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
}

.app-chip-row span.is-on {
  color: #041018;
  background: rgba(46, 230, 166, 0.9);
  border-color: transparent;
}

.app-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 10px;
  height: 44px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  box-shadow: 0 8px 24px rgba(46, 230, 166, 0.28);
}

.app-quota {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.app-streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(46, 230, 166, 0.1);
  border: 1px solid rgba(46, 230, 166, 0.25);
}

.app-streak-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.app-due-count {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 4px 0 6px;
  color: var(--text);
}

.app-due-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-top: 8px;
  border-radius: 14px;
  background: var(--glass);
  border: 1px solid var(--line);
}

.app-cover {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.cover-sys { background: linear-gradient(135deg, #1a4a7a, #0d2840 45%, #1ecf8f); }
.cover-ml { background: linear-gradient(135deg, #2a1a5c, #143048 50%, #3d8bfd); }

.app-due-row b {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.app-due-row em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--warn);
}

.app-score-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.app-score-row strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--mint);
}

.app-score-row span {
  color: var(--text-muted);
  font-weight: 600;
}

.app-level {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
}

.app-level-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, var(--accent-2), var(--mint));
}

.app-level b { display: block; font-size: 0.9rem; }
.app-level em { font-style: normal; font-size: 0.75rem; color: var(--text-muted); }

.app-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.app-mini-stats div {
  padding: 10px 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.app-mini-stats strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mint);
}

.app-mini-stats span {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.app-screen--benefits {
  min-height: 360px;
  height: 100%;
}

.session-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 140px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(160deg, #1a2438, #101826);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  margin: 12px 0;
}

.session-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.mock-session-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-xp { color: var(--mint); }

.mock-progress {
  height: 4px;
  margin: 8px 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mock-progress--tall { height: 8px; margin-bottom: 12px; }

.mock-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
}

.mock-chip--blue {
  background: rgba(61, 139, 253, 0.18) !important;
  color: var(--accent-2) !important;
}

.mock-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-weight: 500;
}

.mock-ratings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.rate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.rate small {
  font-size: 0.58rem;
  font-weight: 600;
  opacity: 0.8;
}

.rate-again { color: var(--danger); border-color: rgba(255, 92, 122, 0.35); }
.rate-hard { color: var(--rating-hard); border-color: rgba(224, 153, 75, 0.35); }
.rate-good { color: var(--mint); border-color: rgba(46, 230, 166, 0.45); background: rgba(46, 230, 166, 0.08); }
.rate-easy { color: var(--rating-easy); border-color: rgba(245, 196, 81, 0.35); }

.screen-ui {
  border-radius: 20px;
  padding: 20px;
  min-height: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.screen-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.screen-bar span:first-child { background: rgba(0, 255, 178, 0.55); }

.screen-label {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.screen-input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 178, 0.25);
  background: rgba(0, 255, 178, 0.05);
  color: var(--text);
  font-weight: 600;
  margin-bottom: 14px;
}

.screen-lines { display: grid; gap: 8px; margin-bottom: 16px; }
.screen-lines i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.screen-lines i:nth-child(1) { width: 92%; }
.screen-lines i:nth-child(2) { width: 78%; }
.screen-lines i:nth-child(3) { width: 86%; }
.screen-lines i:nth-child(4) { width: 64%; }

.screen-cta {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), var(--mint-soft));
  color: #041018;
  font-size: 0.8rem;
  font-weight: 800;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.schedule-row b { font-weight: 700; }
.schedule-row em { font-style: normal; color: var(--mint); font-weight: 700; }
.schedule-row.is-far em { color: var(--text-muted); }

.schedule-curve {
  margin-top: 18px;
  height: 48px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, transparent, rgba(0, 255, 178, 0.35)),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 255, 178, 0.2), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.swipe-stack {
  position: relative;
  height: 140px;
  margin-top: 8px;
}

.swipe-card {
  position: absolute;
  inset: 0 8% auto;
  height: 110px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.swipe-card.c1 { transform: translateY(18px) scale(0.92); opacity: 0.35; }
.swipe-card.c2 { transform: translateY(10px) scale(0.96); opacity: 0.55; }
.swipe-card.c3 {
  display: grid;
  place-items: center;
  border-color: rgba(0, 255, 178, 0.35);
  background: rgba(0, 255, 178, 0.06);
  color: var(--mint);
  font-weight: 700;
  box-shadow: 0 0 28px rgba(0, 255, 178, 0.12);
}

.streak-num {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: linear-gradient(135deg, var(--mint), var(--mint-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.streak-sub {
  margin: 4px 0 18px;
  color: var(--text-muted);
  font-weight: 600;
}

.streak-dots {
  display: flex;
  gap: 8px;
}

.streak-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.streak-dots i.on {
  background: var(--mint);
  box-shadow: 0 0 12px rgba(0, 255, 178, 0.55);
}

/* —— Benefits —— */
.benefits-asymmetric {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.benefits-visual {
  border-radius: var(--radius-lg);
  padding: 10px;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(0, 255, 178, 0.1), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
}

.benefits-shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  max-height: 520px;
}

.retention-viz { width: 100%; max-width: 360px; height: auto; }
.viz-title {
  fill: var(--text);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
}
.viz-caption {
  fill: var(--text-dim);
  font-size: 11px;
  font-family: var(--font);
}
.viz-caption--mint { fill: var(--mint); }

.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.benefit-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.benefit-row:hover {
  background: rgba(0, 255, 178, 0.04);
  border-color: rgba(0, 255, 178, 0.18);
  transform: translateX(4px);
}

.benefit-row h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.benefit-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Demo video —— */
.demo-video {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(0, 255, 178, 0.12), rgba(62, 203, 255, 0.06) 45%, transparent);
  border: 1px solid rgba(0, 255, 178, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.demo-player {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: var(--bg-deep);
}

.demo-video.is-portrait {
  max-width: 360px;
}

.demo-video.is-portrait .demo-player {
  aspect-ratio: 9 / 16;
}

.demo-video figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}

/* —— Steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mint) 20%, var(--mint-soft) 50%, var(--mint) 80%, transparent);
  box-shadow:
    0 0 10px rgba(0, 255, 178, 0.7),
    0 0 24px rgba(0, 255, 178, 0.35);
  filter: drop-shadow(0 0 6px rgba(0, 255, 178, 0.5));
  pointer-events: none;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 22px;
  border-radius: var(--radius);
  background: rgba(10, 16, 24, 0.65);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 178, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), 0 0 28px rgba(0, 255, 178, 0.1);
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 800;
  color: #041018;
  background: linear-gradient(135deg, var(--mint), var(--mint-soft));
  box-shadow: 0 4px 20px rgba(0, 255, 178, 0.35);
  transition: box-shadow 0.3s, transform 0.3s;
}

.step:hover .step-num {
  transform: scale(1.06);
  box-shadow:
    0 0 0 5px rgba(0, 255, 178, 0.12),
    0 0 28px rgba(0, 255, 178, 0.55);
}

.step h3 {
  font-family: var(--display);
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* —— Pricing —— */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 840px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background: rgba(10, 16, 24, 0.7);
  border: 1px solid var(--line);
}

.pricing-card--spark {
  background:
    linear-gradient(180deg, rgba(0, 255, 178, 0.06), rgba(0, 255, 178, 0.015)),
    rgba(10, 16, 24, 0.85);
  border: 1px solid var(--mint);
  box-shadow: 0 0 40px rgba(0, 255, 178, 0.1), 0 24px 48px rgba(0, 0, 0, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #041018;
  background: linear-gradient(135deg, var(--mint), var(--mint-soft));
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 255, 178, 0.3);
}

.pricing-card-name {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 4px 0 8px;
  letter-spacing: -0.02em;
}

.pricing-card--spark .pricing-card-name { color: var(--mint); }

.pricing-card-price {
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.pricing-card-price .amount {
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-card--spark .pricing-card-price .amount { color: var(--mint); }

.pricing-card-price .period {
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-annual-note {
  width: 100%;
  font-size: 0.8rem;
  color: var(--mint-soft);
  font-weight: 600;
}

.pricing-card-compare {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 0.9rem;
}

.pricing-yearly {
  color: var(--text-muted);
  line-height: 1.45;
}

.pricing-yearly strong {
  color: var(--text);
  font-weight: 700;
}

.pricing-effective {
  color: var(--text-muted);
}

.pricing-effective strong {
  color: var(--mint-soft);
  font-weight: 700;
}

.pricing-strike {
  color: var(--text-dim);
  text-decoration: line-through;
}

.pricing-save {
  color: var(--mint);
  font-weight: 700;
}

.pricing-card-tagline {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-card-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.pricing-card-features li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.pricing-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(0, 255, 178, 0.5);
}

.pricing-card-features li.is-muted {
  color: var(--text-dim);
}

.pricing-card-features li.is-muted::before {
  background: var(--text-dim);
  box-shadow: none;
}

.pricing-card-cta { width: 100%; margin-top: auto; }

.pricing-footnote {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* —— FAQ —— */
.faq-list { max-width: 780px; margin-inline: auto; }

.faq-item {
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(10, 16, 24, 0.65);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.faq-item.open {
  background: rgba(0, 255, 178, 0.05);
  border-color: rgba(0, 255, 178, 0.3);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q:hover { color: var(--mint); }

.faq-q::after {
  content: '+';
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 255, 178, 0.1);
  color: var(--mint);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.faq-item.open .faq-q::after {
  content: '−';
  transform: rotate(180deg);
  background: rgba(0, 255, 178, 0.18);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-in-out;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 0.25s ease-in-out, padding 0.35s ease-in-out;
}

.faq-item.open .faq-a-inner {
  padding: 4px 22px 22px;
  opacity: 1;
}

.faq-a p { margin: 0 0 12px; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0 0 12px; padding-left: 1.2rem; }
.faq-a li { margin-bottom: 6px; }

/* —— CTA —— */
.cta-band {
  position: relative;
  z-index: 1;
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(0, 255, 178, 0.12), transparent 60%),
    linear-gradient(180deg, transparent, rgba(14, 22, 32, 0.8));
  border-top: 1px solid var(--line);
}

.cta-inner { max-width: 560px; }

.cta-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 255, 178, 0.25);
}

.cta-band h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(10, 16, 24, 0.85);
  border: 1px solid rgba(0, 255, 178, 0.35);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.store-badge:hover {
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--mint);
  box-shadow: 0 12px 36px rgba(0, 255, 178, 0.18);
}

.store-badge img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.store-badge small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.store-badge strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.cta-meta {
  margin-top: 18px !important;
  font-size: 0.85rem;
  color: var(--text-dim) !important;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 56px 0 28px;
  border-top: 1px solid var(--line);
  background: #04070b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand strong { color: var(--text); }

.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: inline-block;
  color: var(--text-muted);
  padding: 4px 0;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--text-muted); }

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay { transition-delay: 0.12s; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .container {
    width: min(100% - 40px, var(--max));
  }

  .hero-grid,
  .feature-row,
  .benefits-asymmetric,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-copy,
  .feature-row--reverse .feature-media { order: initial; }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 40px;
  }

  .hero-grid {
    gap: 20px;
    justify-items: center;
  }

  .hero-copy {
    text-align: center;
    width: 100%;
  }

  .hero-lead {
    margin-inline: auto;
    font-size: 1rem;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 0;
    width: 100%;
  }

  .hero-orbit {
    width: min(100%, 280px);
  }

  .hero-brand {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .hero h1 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .phone,
  .phone-carousel {
    width: min(100%, 200px);
  }

  .feature-zigzag { gap: 56px; }

  .feature-row {
    gap: 20px;
    justify-items: center;
    text-align: center;
  }

  .feature-copy .icon-line {
    margin-inline: auto;
  }

  .feature-copy p {
    margin-inline: auto;
    font-size: 1rem;
  }

  .feature-media {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .screen-frame {
    width: min(100%, 240px);
    padding: 8px;
    border-radius: 22px;
  }

  .feature-shot,
  .benefits-shot {
    max-height: 420px;
    aspect-ratio: 9 / 17.5;
    border-radius: 14px;
  }

  .benefits-asymmetric {
    gap: 28px;
    justify-items: center;
    text-align: center;
  }

  .benefits-visual {
    min-height: 0;
    width: min(100%, 260px);
    padding: 8px;
  }

  .benefits-list {
    width: 100%;
    text-align: left;
  }

  .benefit-row:hover { transform: none; }

  .section-head { margin-bottom: 36px; }

  .demo-video {
    margin-bottom: 36px;
    padding: 8px;
    border-radius: 22px;
  }

  .demo-video.is-portrait {
    max-width: min(100%, 320px);
  }

  .demo-player { border-radius: 14px; }

  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }

  .site-header .inner {
    width: min(100% - 40px, var(--max));
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) - 4px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 16px;
    background: rgba(8, 12, 18, 0.95);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }

  .site-nav.open { display: flex; }
  .nav-cta { margin: 6px 0 0; text-align: center; justify-content: center; }
  .section { padding: 64px 0; }

  .faq-q {
    font-size: 0.95rem;
    padding-right: 36px;
    text-align: left;
  }

  .pricing-card { padding: 24px 20px; }

  .footer-grid {
    gap: 28px;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .container,
  .site-header .inner {
    width: min(100% - 36px, var(--max));
  }

  .phone,
  .phone-carousel {
    width: min(100%, 180px);
  }

  .screen-frame,
  .benefits-visual {
    width: min(100%, 210px);
  }

  .feature-shot,
  .benefits-shot {
    max-height: 380px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-lead {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere-glow,
  .thread-path,
  .hero-orbit,
  .phone,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal { opacity: 1; transform: none; }

  .step, .step-num, .faq-a, .faq-a-inner, .faq-q::after {
    transition: none !important;
  }
}
