/* ===================================================
   Stanimation — Landing Page Stylesheet
   =================================================== */

@import url('fonts.css');

/* ---- Variables ---- */
:root {
  --pink:    #ff4d8b;
  --purple:  #8b5cf6;
  --yellow:  #fbbf24;
  --teal:    #10d9b4;
  --orange:  #fb923c;
  --blue:    #38bdf8;

  --bg:       #0d0d14;
  --bg-card:  #16161f;
  --bg-card2: #1c1c28;
  --border:   rgba(255,255,255,0.08);
  --text:     #e8e8f0;
  --text-muted: #8888aa;

  --nav-h: 64px;
  --radius: 16px;
  --radius-sm: 10px;

  --font-heading: 'Nunito', system-ui, -apple-system, sans-serif;
  --font-body:    'Space Grotesk', system-ui, -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 16px;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.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;
}

body.menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee-track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    padding: 4px 0;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .feature-card:hover,
  .download-card:hover,
  .compare-card:hover,
  .carousel-btn:hover {
    transform: none;
  }

  .carousel-track {
    transition: none;
  }
}

/* ===================================================
   TYPOGRAPHY
   =================================================== */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 900; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(255, 77, 139, 0.12);
  border: 1px solid rgba(255, 77, 139, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-label.light { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }

.section-title { margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 2.5rem; }

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(139, 92, 246, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }

.btn-nav {
  background: var(--bg-card2);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 9px 20px;
  font-size: 0.9rem;
}
.btn-nav:hover { background: var(--bg-card); border-color: rgba(255,255,255,0.2); }

.btn-download {
  background: #fff;
  color: #0d0d14;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.btn-download:hover { box-shadow: 0 6px 24px rgba(255,255,255,0.15); }

.underline-link {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.underline-link:hover { opacity: 0.8; }

/* ===================================================
   NAVBAR
   =================================================== */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}
.nav-wrap.scrolled {
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  margin-right: auto;
}
.site-logo-icon {
  height: 1em;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-s { color: var(--pink); }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-mobile-menu {
  display: none;
  background: rgba(13, 13, 20, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 16px;
}
.nav-mobile-menu.is-open {
  display: flex;
}
.nav-mobile-menu a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
  overflow: hidden;
}

/* blobs */
.hero-bg-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.blob-1 { width: 500px; height: 500px; background: var(--purple); top: -120px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--pink);   bottom: 0px; right: -80px; animation-delay: 3s; }
.blob-3 { width: 300px; height: 300px; background: var(--teal);   top: 50%; left: 50%; animation-delay: 6s; }

@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -30px) scale(1.08); }
}

.hero-content { position: relative; z-index: 1; }
.hero-mockup  { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-title { margin-bottom: 1.25rem; }

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-platforms {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.platform-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.7;
}

/* Mockup window */
.mockup-window {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  background: #111119;
}
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1a1a26;
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }
.mockup-title-text { font-size: 0.78rem; color: var(--text-muted); margin-left: 8px; font-weight: 500; }

.mockup-screen { position: relative; aspect-ratio: 16/10; background: #0a0a12; }
.mockup-img { width: 100%; height: 100%; object-fit: cover; }
.mockup-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: 220px;
}
.mockup-placeholder-icon { font-size: 2.5rem; }

/* ===================================================
   MARQUEE
   =================================================== */
.marquee-wrap {
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-track .sep { opacity: 0.5; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ===================================================
   FEATURES
   =================================================== */
.features {
  padding: 100px 0;
  text-align: center;
}
.features .section-sub { margin: 0 auto 3rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  text-align: left;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: var(--radius);
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card:hover::before { opacity: 1; }

.card-accent-pink  { --accent: var(--pink); }
.card-accent-purple{ --accent: var(--purple); }
.card-accent-yellow{ --accent: var(--yellow); }
.card-accent-teal  { --accent: var(--teal); }
.card-accent-orange{ --accent: var(--orange); }
.card-accent-blue  { --accent: var(--blue); }

.feature-card { border-top: 3px solid var(--accent, var(--border)); }
.feature-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.4); border-top-color: var(--accent); }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.feature-card h3 { margin-bottom: 8px; color: var(--text); }
.feature-card p  { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }

.features-footnote {
  margin-top: 1.25rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.features-edu {
  margin-top: 0.75rem;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.features-edu a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.features-edu a:hover { opacity: 0.85; }

.feature-card-pro {
  position: relative;
}
.feature-pro-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e6c040;
  background: rgba(230, 192, 64, 0.1);
  border: 1px solid rgba(230, 192, 64, 0.32);
  padding: 4px 8px;
  border-radius: 100px;
  line-height: 1;
}
.feature-pro-badge img { display: block; }
.feature-pro-badge-inline {
  position: static;
  display: inline-flex;
  vertical-align: middle;
  margin: 0 2px;
  padding: 2px 7px;
  font-size: 0.62rem;
}

/* ===================================================
   GALLERY / CAROUSEL
   =================================================== */
.gallery {
  padding: 100px 0;
  text-align: center;
}
.gallery .section-sub { margin: 0 auto 2.5rem; }

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  max-width: 860px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
}

.carousel-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #0a0a12;
  overflow: hidden;
}
.carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  gap: 10px;
}

.carousel-caption {
  padding: 18px 24px;
  text-align: left;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.carousel-caption strong { color: var(--text); }

.carousel-btn {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13,13,20,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(40,40,60,0.9); transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots .dot.active {
  background: var(--pink);
  transform: scale(1.25);
}

/* ===================================================
   PRICING / COMPARE
   =================================================== */
.pricing {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(22, 22, 31, 0.55) 50%, var(--bg) 100%);
}
.pricing .section-sub { margin: 0 auto 3rem; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.compare-card:hover { transform: translateY(-4px); }

.compare-free {
  border-top: 3px solid var(--teal);
}
.compare-free:hover {
  box-shadow: 0 20px 50px rgba(16, 217, 180, 0.08);
}

.compare-pro {
  border-top: 3px solid transparent;
  background:
    linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
    linear-gradient(135deg, var(--pink), var(--purple), var(--blue)) border-box;
  box-shadow: 0 24px 60px rgba(139, 92, 246, 0.15);
}
.compare-pro:hover {
  box-shadow: 0 28px 70px rgba(139, 92, 246, 0.28);
}

.compare-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  padding: 5px 10px;
  border-radius: 100px;
}

.compare-card-head { margin-bottom: 1.25rem; }
.compare-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.compare-price {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3rem);
  line-height: 1.05;
  color: var(--text);
}
.compare-price-pro {
  background: linear-gradient(135deg, var(--pink) 0%, var(--purple) 55%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.compare-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
.compare-includes {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.75rem;
  flex: 1;
}
.compare-list li {
  position: relative;
  padding-left: 1.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.compare-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}
.compare-list-pro li::before {
  color: var(--yellow);
}

.compare-cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.compare-note {
  max-width: 560px;
  margin: 2rem auto 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.compare-note a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================================================
   DOWNLOAD
   =================================================== */
.download {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}
.download-blobs { position: absolute; inset: 0; pointer-events: none; }
.dl-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}
.dl-blob-1 { width: 600px; height: 600px; background: var(--purple); top: -200px; left: -100px; }
.dl-blob-2 { width: 400px; height: 400px; background: var(--pink);   bottom: -100px; right: 0; }

.download-inner { position: relative; z-index: 1; }
.download-inner .section-title.light,
.download-inner .section-sub.light { color: #fff; }
.download-inner .section-sub { margin: 0 auto 3rem; }

.download-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.download-card {
  background: rgba(22, 22, 31, 0.7);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 280px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.download-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }

.download-platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--text);
  opacity: 0.9;
}
.download-platform-icon svg { width: 100%; height: 100%; }

.download-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.download-card p  { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; line-height: 1.5; }

.download-note {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.download-note a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.2rem;
  margin-right: auto;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-support {
  width: 100%;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}
.footer-support a { color: var(--text-muted); }
.footer-support a:hover { color: var(--text); }

/* ===================================================
   LEGAL PAGES
   =================================================== */
.legal-page {
  padding: calc(var(--nav-h) + 56px) 0 80px;
  min-height: 60vh;
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}
.legal-inner h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}
.legal-lead {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.legal-inner h2 {
  font-size: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.legal-inner p,
.legal-inner li {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.legal-inner ul {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}
.legal-inner a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-inner a:hover { opacity: 0.85; }
.legal-dl {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}
.legal-dl dt {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.legal-dl dd {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.legal-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.legal-table th {
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-heading);
}
.legal-table td { color: var(--text-muted); }
.legal-table tr:last-child td { border-bottom: none; }

@media (max-width: 600px) {
  .legal-dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
  .legal-dl dt { margin-top: 0.75rem; }
}

/* ===================================================
   404 PAGE
   =================================================== */
.error-page {
  min-height: calc(100svh - var(--nav-h));
  padding: calc(var(--nav-h) + 48px) 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-inner {
  max-width: 640px;
  text-align: center;
}
.error-visual {
  margin-bottom: 1.5rem;
}
.error-code {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(4rem, 14vw, 6.5rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.error-stage {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 100px;
  margin: 0 auto;
  background: rgba(0, 251, 255, 0.12);
  border: 2px solid rgba(0, 251, 255, 0.35);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.error-wanderer {
  color: #e8e8f0;
  animation: wander 4s ease-in-out infinite alternate;
}
.error-stage-label {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}
.error-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}
.error-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}
.error-prompt {
  margin: 2rem 0 2.25rem;
  padding: 1.25rem 1.35rem;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-top: 3px solid var(--yellow);
}
.error-prompt h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.error-prompt ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.error-prompt li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.error-prompt li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--pink);
}
.error-prompt li:last-child { margin-bottom: 0; }
.error-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@keyframes wander {
  from { transform: translateX(-18px) rotate(-4deg); }
  to   { transform: translateX(18px) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .error-wanderer {
    animation: none;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  .error-btns {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ===================================================
   REVEAL ANIMATIONS
   =================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 60px;
  }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-btns { justify-content: center; }
  .hero-platforms { justify-content: center; }
  .hero-mockup { order: -1; max-width: 480px; margin: 0 auto; }

  .compare-grid { grid-template-columns: 1fr; max-width: 420px; }

  .nav-links, .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .download-cards { flex-direction: column; align-items: center; }
  .download-card { width: 100%; max-width: 320px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo { margin-right: 0; }
}
