/* ================================================
   LowKey Training — Website Design System
   Mirrors the app: cream/sage/orange, pixel art,
   glassmorphism, warm rounded typography.
   Every detail intentional.
   ================================================ */

/* --- Custom Properties --- */

:root {
  --bg: #FDFAF6;
  --bg-secondary: #F5F1EC;
  --bg-tertiary: #F4EFE9;
  --text: #1C1C1E;
  --text-secondary: #6C6C70;
  --text-tertiary: #9C9CA0;
  --accent: #73B88F;
  --accent-light: #94D1AE;
  --accent-secondary: #F4A261;
  --glass-bg: rgba(253, 250, 246, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --glass-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
  --grass: #80C773;
  --grass-highlight: #99D884;
  --grass-dark: #6BAF5E;
}

[data-theme="dark"] {
  --bg: #151316;
  --bg-secondary: #1D1A1D;
  --bg-tertiary: #272428;
  --text: #F5F5F5;
  --text-secondary: #A0A0A4;
  --text-tertiary: #636366;
  --accent: #8CCCA6;
  --accent-light: #A8DDB9;
  --accent-secondary: #F7B87E;
  --glass-bg: rgba(39, 36, 40, 0.72);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --glass-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --grass: #385A3F;
  --grass-highlight: #476B4D;
  --grass-dark: #2D4A33;
}

/* --- Reset --- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-compact {
  padding: 48px 0;
  position: relative;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
  position: relative;
  display: block;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin: 14px auto 0;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0px, var(--accent) 6px,
    transparent 6px, transparent 10px
  );
}

.section-subtitle {
  text-align: center;
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
}

/* --- Theme Toggle --- */

#theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
  transition: transform 0.15s ease, background 0.4s ease, box-shadow 0.3s ease;
}
#theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--accent), var(--glass-shadow);
}
#theme-toggle:active { transform: scale(0.92); }
#theme-toggle canvas { display: block; }

/* ===========================
   HERO — The Living World
   =========================== */

#hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px 0;
}

/* Sky layers */
.hero-sky {
  position: absolute;
  inset: 0;
  transition: opacity 1s ease;
}
.hero-sky--day {
  background: linear-gradient(175deg, #a8d4f0 0%, #c6e4f7 35%, #dceef9 65%, #e8f3fb 100%);
}
.hero-sky--night {
  background: linear-gradient(175deg, #141833 0%, #1E2447 35%, #2E3358 70%, #3a3f6a 100%);
  opacity: 0;
}
[data-theme="dark"] .hero-sky--day { opacity: 0; }
[data-theme="dark"] .hero-sky--night { opacity: 1; }

/* Stars */
.hero-stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}
[data-theme="dark"] .hero-stars { opacity: 1; }

/* Pixel clouds */
.hero-clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 1s ease;
}
[data-theme="dark"] .hero-clouds { opacity: 0.35; }

.cloud {
  position: absolute;
  image-rendering: pixelated;
}
.cloud--1 { top: 14%; left: -60px; animation: cloudDrift 45s linear infinite; }
.cloud--2 { top: 8%; left: -80px; animation: cloudDrift 60s linear infinite; animation-delay: -20s; }
.cloud--3 { top: 28%; left: -50px; animation: cloudDrift 70s linear infinite; animation-delay: -35s; }

@keyframes cloudDrift {
  from { transform: translateX(-80px); }
  to { transform: translateX(calc(100vw + 80px)); }
}

/* Ground */
.hero-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--grass) 0%, var(--grass-dark) 100%);
  transition: background 0.8s ease;
  z-index: 5;
}
.hero-ground-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--grass-highlight) 0px, var(--grass-highlight) 4px,
    var(--grass) 4px, var(--grass) 12px
  );
  transition: background 0.8s ease;
}

.hero-flowers {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-around;
  padding: 0 8%;
  opacity: 1;
  transition: opacity 0.8s ease;
}
[data-theme="dark"] .hero-flowers { opacity: 0; }
.hero-flower {
  width: 5px;
  height: 5px;
  border-radius: 1px;
  box-shadow: 0 -5px 0 var(--grass-dark);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Companion with Radial Glow --- */

.companion-wrapper {
  position: relative;
  margin-bottom: 12px;
  cursor: pointer;
}

.companion-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(115, 184, 143, 0.25) 0%,
    rgba(115, 184, 143, 0.08) 50%,
    transparent 70%
  );
  animation: glowBreathe 3s ease-in-out infinite;
  pointer-events: none;
}
.companion-glow--outer {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle,
    rgba(115, 184, 143, 0.08) 0%,
    rgba(115, 184, 143, 0.02) 50%,
    transparent 70%
  );
  animation-delay: 0.5s;
}
[data-theme="dark"] .companion-glow {
  background: radial-gradient(circle,
    rgba(140, 204, 166, 0.3) 0%,
    rgba(140, 204, 166, 0.1) 50%,
    transparent 70%
  );
}
[data-theme="dark"] .companion-glow--outer {
  background: radial-gradient(circle,
    rgba(140, 204, 166, 0.12) 0%,
    rgba(140, 204, 166, 0.03) 50%,
    transparent 70%
  );
}

@keyframes glowBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.7; }
}

#companion-canvas {
  position: relative;
  display: block;
  image-rendering: pixelated;
  animation: companionFloat 4s ease-in-out infinite;
  z-index: 2;
}
@keyframes companionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.companion-wrapper:hover #companion-canvas {
  animation: pixelWobble 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pixelWobble {
  0% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-4deg) scale(1.06); }
  40% { transform: rotate(3deg) scale(1.08); }
  60% { transform: rotate(-2deg) scale(1.05); }
  80% { transform: rotate(1deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

.companion-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: 8px;
  transition: opacity 0.3s ease;
  letter-spacing: 0.5px;
}

/* Thought bubble */
.thought-bubble {
  position: absolute;
  bottom: calc(100% + 24px);
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.9);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 20px;
  min-width: 200px;
  max-width: 300px;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 20;
}
.thought-bubble.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
.thought-bubble p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
  font-style: italic;
}

.bubble-trail {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bubble-trail span {
  background: var(--glass-bg);
  border-radius: 1px;
  border: 1px solid var(--glass-border);
}
.bubble-trail span:nth-child(1) { width: 10px; height: 10px; }
.bubble-trail span:nth-child(2) { width: 6px; height: 6px; }
.bubble-trail span:nth-child(3) { width: 4px; height: 4px; }

/* Hero text */
.hero-title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 10px;
  transition: color 0.5s ease;
}

#hero .hero-title,
#hero .hero-tagline,
#hero .companion-hint {
  color: #1C1C1E;
  text-shadow: 0 1px 8px rgba(255,255,255,0.25);
}
[data-theme="dark"] #hero .hero-title,
[data-theme="dark"] #hero .hero-tagline,
[data-theme="dark"] #hero .companion-hint {
  color: #F5F5F5;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.hero-tagline {
  font-size: 16px;
  font-weight: 500;
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.5;
  transition: color 0.5s ease;
}

/* App Store button */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.3s ease, border-radius 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  margin-bottom: 40px;
}
[data-theme="dark"] .store-btn {
  background: #fff;
  color: #000;
}
.store-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  text-decoration: none;
  border-radius: 6px;
}
.store-btn:active { transform: scale(0.97); }
.store-btn-icon { font-size: 22px; }
.store-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-btn-small { font-size: 11px; font-weight: 400; opacity: 0.85; }
.store-btn-large { font-size: 18px; font-weight: 700; }

/* Scroll hint */
.scroll-hint {
  margin-bottom: 80px;
  opacity: 0.4;
}
.scroll-hint span {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}
[data-theme="dark"] .scroll-hint span {
  border-color: #F5F5F5;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  #companion-canvas,
  .companion-glow,
  .companion-glow--outer,
  .cloud,
  .scroll-hint span,
  .hero-stars { animation: none !important; }
}

/* ==========================
   PROMISE
   ========================== */

#promise {
  padding: 100px 0 60px;
}

.promise-block {
  text-align: center;
  position: relative;
}

.promise-paw {
  display: block;
  margin: 0 auto 24px;
  image-rendering: pixelated;
  opacity: 0.3;
}

#promise blockquote {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  max-width: 580px;
  margin: 0 auto 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.promise-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

/* ==========================
   STATS RIBBON
   ========================== */

.stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
}

.stat-number {
  display: block;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.stat-green .stat-number { color: var(--accent); }
.stat-orange .stat-number { color: var(--accent-secondary); }

.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--bg-tertiary);
  flex-shrink: 0;
  transition: background 0.4s ease;
}

/* ==========================
   HOW IT WORKS
   ========================== */

#how-it-works {
  padding-bottom: 60px;
  background: var(--bg-secondary);
  transition: background 0.5s ease;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
  position: relative;
}

.step {
  flex: 1;
  max-width: 260px;
  text-align: center;
  position: relative;
  padding: 0 20px;
}

.step-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 50%;
  position: relative;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step:hover .step-circle {
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--bg-tertiary);
  transform: scale(1.1);
}

.step-connector {
  position: absolute;
  top: 40px;
  left: calc(50% + 50px);
  width: calc(100% - 60px);
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--bg-tertiary) 0px, var(--bg-tertiary) 6px,
    transparent 6px, transparent 10px
  );
  transition: background 0.4s ease;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================
   FEATURES
   ========================== */

#features {
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  text-align: left;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
}

.feature-accent {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.feature-card:hover .feature-accent { opacity: 1; }

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 14px;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 0.2s ease;
}
.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(-3deg);
  background: var(--bg);
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--bg-tertiary);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================
   GLASS CARD
   ========================== */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-hover-shadow);
  border-color: var(--accent);
}

/* ==========================
   NO COMPROMISES
   ========================== */

#no-compromises {
  text-align: center;
  background: var(--bg-secondary);
  transition: background 0.5s ease;
}

#no-compromises .section-title::after {
  background: repeating-linear-gradient(90deg,
    var(--accent-secondary) 0px, var(--accent-secondary) 6px,
    transparent 6px, transparent 10px
  );
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.promise-item {
  padding: 24px 20px;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.promise-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-radius 0.2s ease;
}
.promise-icon--orange { background: var(--accent-secondary); }
.promise-icon canvas { display: block; }

.promise-item:hover .promise-icon {
  transform: scale(1.12);
  border-radius: 8px;
  box-shadow:
    0 0 0 3px var(--accent),
    0 0 0 6px rgba(115, 184, 143, 0.15);
}
.promise-item:hover .promise-icon--orange {
  box-shadow:
    0 0 0 3px var(--accent-secondary),
    0 0 0 6px rgba(244, 162, 97, 0.15);
}

.promise-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}
.promise-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================
   DOWNLOAD CTA
   ========================== */

#download {
  padding: 80px 0 120px;
  text-align: center;
}

.download-block {
  position: relative;
  padding: 64px 32px;
  background: var(--bg-secondary);
  border-radius: 32px;
  overflow: hidden;
  transition: background 0.5s ease;
}

.download-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(115, 184, 143, 0.12) 0%,
    rgba(115, 184, 143, 0.04) 50%,
    transparent 70%
  );
  animation: glowBreathe 4s ease-in-out infinite;
  pointer-events: none;
}
[data-theme="dark"] .download-glow {
  background: radial-gradient(circle,
    rgba(140, 204, 166, 0.15) 0%,
    rgba(140, 204, 166, 0.05) 50%,
    transparent 70%
  );
}

#companion-cta {
  display: block;
  margin: 0 auto 24px;
  image-rendering: pixelated;
  position: relative;
}

#download h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 8px;
  position: relative;
}

#download .subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  position: relative;
}

.store-btn--final { margin-bottom: 0; position: relative; }

/* ==========================
   MORE TO COME
   ========================== */

#roadmap {
  padding: 80px 0;
}

.roadmap-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.roadmap-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-secondary);
  border-radius: 16px;
  animation: sparkleRotate 6s linear infinite;
}
@keyframes sparkleRotate {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(3deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-icon-wrapper { animation: none; }
}

#roadmap h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

#roadmap p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.roadmap-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.roadmap-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  border: 1px solid var(--glass-border);
  transition: transform 0.15s ease;
}
.roadmap-pill:hover { transform: scale(1.06); }

/* ==========================
   FOOTER
   ========================== */

footer {
  padding: 32px 0;
  border-top: 1px solid var(--bg-tertiary);
  transition: border-color 0.4s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand canvas { image-rendering: pixelated; }

.footer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
}
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0px, var(--accent) 3px,
    transparent 3px, transparent 5px
  );
  transition: width 0.3s ease;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-links a:hover::after { width: 100%; }

.copyright {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ==========================
   SCROLL REVEAL
   ========================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ==========================
   LEGAL PAGES
   ========================== */

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text) !important;
  text-decoration: none !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg,
    var(--accent) 0px, var(--accent) 3px,
    transparent 3px, transparent 5px
  );
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a.active::after { width: 100%; }

.legal-page #theme-toggle {
  position: static;
  width: 40px;
  height: 40px;
}

.legal-content {
  min-height: calc(100vh - 200px);
  padding: 64px 0 96px;
}

.legal-content h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content .highlight-box {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
  transition: background 0.4s ease;
}

.legal-content .highlight-box p {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--text);
}

/* FAQ */
.faq-item { margin-bottom: 12px; }

.faq-question {
  width: 100%;
  text-align: left;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}
.faq-question:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.3s ease, color 0.2s ease;
}
.faq-item.open .faq-question { border-color: var(--accent); }
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 16px 20px 4px;
}
.faq-answer p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
  .hero-title { font-size: 38px; }
  .hero-tagline { font-size: 15px; }
  #promise blockquote { font-size: 26px; }
  .section-title { font-size: 28px; }
  #download h2 { font-size: 28px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feature-card { padding: 22px 18px 20px; }
  .promises-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-connector { display: none; }
  .section { padding: 72px 0; }
  .stat-number { font-size: 32px; }
  .stat-label { font-size: 10px; }
  .stat-item { padding: 8px 6px; }
  .stats-ribbon { padding: 24px 8px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .download-block { padding: 48px 24px; }
  .companion-glow { width: 180px; height: 180px; }
  .companion-glow--outer { width: 260px; height: 260px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .thought-bubble { min-width: 160px; max-width: 240px; }
  .stats-ribbon { flex-wrap: wrap; gap: 8px; border-radius: 16px; }
  .stat-divider { display: none; }
  .stat-item { min-width: 30%; }
}

@media (max-width: 480px) {
  .nav-links a:not(.active) { display: none; }
  .legal-nav .nav-links a { display: inline; }
}
