/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:             #000000;
  --surface:        #0D0E12;
  --surface-raised: #16181F;
  --border:         #262932;
  --hairline:       rgba(255, 255, 255, 0.07);

  /* Brand */
  --accent:         #8234FA;
  --accent-hover:   #6E1EE0;
  --accent-muted:   rgba(130, 52, 250, 0.14);
  --accent-glow:    rgba(130, 52, 250, 0.25);

  /* Semantic */
  --gold:           #FBBF24;
  --gold-muted:     rgba(251, 191, 36, 0.15);
  --success:        #22C55E;
  --streak:         #FB923C;

  /* Text */
  --text-primary:   #F7F8FA;
  --text-secondary: #9CA2B0;
  --text-muted:     #5B606E;

  /* Fonts */
  --font-sans:      'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display:   'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing (4pt scale) */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;

  /* Radius */
  --r-sm:   8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-2xl: 32px;
  --r-pill: 9999px;

  /* Layout */
  --max-w:   1120px;
  --pad-x:   var(--sp-4);
}

@media (min-width: 640px)  { :root { --pad-x: var(--sp-6); } }
@media (min-width: 1024px) { :root { --pad-x: var(--sp-10); } }

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: var(--sp-20);
}

@media (min-width: 768px) {
  .section { padding-block: var(--sp-32); }
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    /* Explicit height — iOS Safari won't reliably stretch a fixed+flex
       box from top/bottom alone, which collapsed this to 0px. */
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-8);
    z-index: 99;
  }
  .nav-links a { font-size: 20px; }
  .nav-inner .nav-cta { display: none; }
  body.nav-open .nav-links { display: flex; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 11px 22px;
  border-radius: var(--r-lg);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: var(--r-xl);
}

/* App Store badge button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--text-primary);
  color: var(--bg);
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-appstore:hover {
  background: #e8eaed;
  transform: translateY(-1px);
}
.btn-appstore svg { flex-shrink: 0; }
.btn-appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.btn-appstore-sub { font-size: 9px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.7; }
.btn-appstore-main { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-block: var(--sp-20) var(--sp-24);
  position: relative;
  overflow: hidden;
}

/* Canvas is now fixed — covers the whole viewport at all times */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Hero pseudo-element no longer needed — canvas provides the bg */
.hero::before { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

/* Fade-up entrance for hero content */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-copy    { animation: hero-fade-up 0.85s ease 0.35s both; }
.hero-visual  { animation: hero-fade-up 0.85s ease 0.6s  both; }

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(130, 52, 250, 0.25);
  margin-bottom: var(--sp-5);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #A265FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--sp-8);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--sp-4);
}

/* Mascot hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-wrap {
  position: relative;
  width: 320px;
  height: 360px;
  flex-shrink: 0;
}

.mascot-hero {
  width: 280px;
  height: 280px;
  object-fit: contain;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 48px rgba(130, 52, 250, 0.25));
}

/* Floating gamification badges around the mascot */
.float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.float-badge-xp       { border-color: rgba(251, 191, 36, 0.4); }
.float-badge-streak   { border-color: rgba(251, 146, 60, 0.4); }
.float-badge-complete { border-color: rgba(34, 197, 94, 0.4); }

/* Circular orbit around Bax ----------------------------------------- */
.orbit-arm {
  position: absolute;
  top: 52%;
  left: 50%;
  width: 0;
  height: 0;
  --or: 130px;
  animation: orbit-spin 36s linear infinite;
  animation-delay: var(--od, 0s);
}

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

.orbit-badge {
  position: absolute;
  left: var(--or);
  top: 0;
  animation: orbit-counter 36s linear infinite;
  animation-delay: var(--od, 0s);
}

@keyframes orbit-counter {
  from { transform: translate(0, -50%) rotate(0deg); }
  to   { transform: translate(0, -50%) rotate(-360deg); }
}

.float-icon { font-size: 18px; flex-shrink: 0; }

.float-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2px;
}

.float-value {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.float-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  color: #22C55E;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 899px) {
  .mascot-wrap { width: 260px; height: 300px; }
  .mascot-hero { width: 220px; height: 220px; }
  .orbit-arm { --or: 95px; }
}

@media (max-width: 480px) {
  .orbit-arm { --or: 75px; }
}

/* Mascot in premium section */
.premium-mascot {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto var(--sp-4);
  display: block;
  filter: drop-shadow(0 8px 16px rgba(130, 52, 250, 0.3));
}

/* App icon display (e.g. hero background decoration) */
.app-icon-decoration {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(130, 52, 250, 0.35);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--sp-8);
  background: rgba(13, 14, 18, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6) var(--sp-4);
  text-align: center;
}

@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-number span { color: var(--accent); }
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}

@media (min-width: 600px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: rgba(13, 14, 18, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(130, 52, 250, 0.45);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-6) var(--sp-8);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.11);
  border-top-color: rgba(130, 52, 250, 0.75);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(130, 52, 250, 0.08);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(130, 52, 250, 0.6);
  margin-bottom: var(--sp-3);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

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

/* ============================================================
   THE FLOOR
   ============================================================ */
.floor-section {
  background: rgba(13, 14, 18, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--hairline);
}

.floor-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 900px) {
  .floor-inner { grid-template-columns: 1.1fr 1fr; }
}

.floor-points {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.floor-point {
  border-left: 2px solid rgba(130, 52, 250, 0.45);
  padding-left: var(--sp-5);
}

.floor-point h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.floor-point p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Overlapping device frames */
.phone-stack {
  position: relative;
  display: flex;
  justify-content: center;
  padding: var(--sp-8) 0;
}

.phone {
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(20, 21, 28, 0.9);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-front {
  width: 250px;
  position: relative;
  z-index: 2;
  margin-left: 90px;
}

.phone-back {
  width: 225px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-96%, -46%) rotate(-6deg);
  z-index: 1;
  opacity: 0.88;
}

@media (max-width: 560px) {
  .phone-front { width: 210px; margin-left: 64px; }
  .phone-back  { width: 185px; }
}

/* ============================================================
   CURRICULUM / TRACKS
   ============================================================ */
.curriculum-section {
  background: rgba(13, 14, 18, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-10);
}

.track-card {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(22, 24, 31, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  transition: border-color 0.2s;
}

.track-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.track-dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  flex-shrink: 0;
  background: var(--track-color, var(--accent));
}

.track-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ============================================================
   CAREER LADDER
   ============================================================ */
.ladder-wrap {
  margin-top: var(--sp-10);
}

.career-section {
  background: rgba(13, 14, 18, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.career-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
}

@media (min-width: 900px) {
  .career-inner { grid-template-columns: 1fr 1.15fr; }
}

/* Copy above the phone on mobile */
@media (max-width: 899px) {
  .career-copy { order: -1; }
}

.phone-solo {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-solo .phone {
  width: 260px;
  position: relative;
  z-index: 1;
}

/* Vertical career ladder */
.ladder-v {
  position: relative;
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-left: 2px;
}

.ladder-v::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(130, 52, 250, 0.2) 0%,
    rgba(130, 52, 250, 0.55) 70%,
    rgba(251, 191, 36, 0.8) 100%);
}

.lv-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  position: relative;
}

.lv-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(130, 52, 250, 0.7);
  flex-shrink: 0;
  align-self: center;
  position: relative;
  z-index: 1;
}

.lv-row.md .lv-node {
  border-color: var(--gold);
  background: rgba(251, 191, 36, 0.25);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.ladder-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.ladder-xp {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.lv-row.md .ladder-title { color: var(--gold); }
.lv-row.md .ladder-xp    { color: var(--gold); opacity: 0.75; }

.ladder-blurb {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--sp-6);
  line-height: 1.6;
}

/* Purple glow behind device frames */
.phone-stack::before,
.phone-solo::before {
  content: '';
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 45%, rgba(130, 52, 250, 0.3) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.mascot-wrap::before {
  content: '';
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 50% 60%, rgba(130, 52, 250, 0.24) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-strip {
  display: flex;
  gap: var(--sp-5);
  overflow-x: auto;
  padding: var(--sp-6) max(var(--sp-6), calc((100vw - 1140px) / 2));
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-shot {
  width: 236px;
  height: auto;
  flex-shrink: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  scroll-snap-align: center;
  transition: transform 0.25s;
}

.gallery-shot:hover { transform: translateY(-4px); }

/* ============================================================
   PREMIUM / PRICING
   ============================================================ */
.premium-section {
  background: transparent;
  text-align: center;
}

.premium-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 440px;
  margin: var(--sp-8) auto;
  text-align: left;
}

.premium-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 15px;
  color: var(--text-secondary);
}

.premium-feature::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  max-width: 480px;
  margin: var(--sp-8) auto var(--sp-6);
}

@media (min-width: 520px) {
  .pricing-cards { grid-template-columns: 1fr 1fr; }
}

.pricing-card {
  background: rgba(13, 14, 18, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  background: linear-gradient(135deg, rgba(130, 52, 250, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
  border-color: rgba(130, 52, 250, 0.4);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.pricing-period {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-2);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.pricing-amount sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  vertical-align: baseline;
}

.pricing-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--sp-4);
  line-height: 1.6;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-section {
  background: linear-gradient(180deg, transparent 0%, rgba(130, 52, 250, 0.07) 50%, transparent 100%);
  text-align: center;
  padding-block: var(--sp-24);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.cta-section p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--hairline);
  padding-block: var(--sp-10);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-primary); }

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal-hero {
  padding-block: var(--sp-12);
  border-bottom: 1px solid var(--hairline);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.legal-effective {
  font-size: 14px;
  color: var(--text-muted);
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding-block: var(--sp-12) var(--sp-16);
}

.legal-section {
  margin-bottom: var(--sp-10);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.legal-section ul li {
  list-style: disc;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-1);
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   SUPPORT PAGE
   ============================================================ */
.support-hero {
  padding-block: var(--sp-12);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.support-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.support-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.support-content {
  max-width: 720px;
  margin: 0 auto;
  padding-block: var(--sp-12) var(--sp-16);
}

.support-block {
  margin-bottom: var(--sp-12);
}

.support-block h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.support-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.support-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-3);
}

.contact-card-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-muted);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-card-label { font-size: 12px; color: var(--text-muted); margin-bottom: 1px; }
.contact-card-email { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

details[open] { border-color: rgba(130, 52, 250, 0.35); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
  gap: var(--sp-4);
}

summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '−';
}

summary:hover { background: var(--surface-raised); }

.faq-body {
  padding: 0 var(--sp-5) var(--sp-4);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }

/* ============================================================
   LEARN HUB
   ============================================================ */
.learn-hero {
  padding-block: var(--sp-20) var(--sp-12);
  text-align: center;
}

.learn-hero .section-sub {
  margin-inline: auto;
}

.learn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-24);
}

@media (min-width: 640px)  { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .learn-grid { grid-template-columns: repeat(3, 1fr); } }

.learn-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: rgba(13, 14, 18, 0.9);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.learn-card:hover {
  border-color: rgba(130, 52, 250, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.learn-tag {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.learn-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  line-height: 1.3;
}

.learn-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.learn-card-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.learn-card-meta .arrow {
  margin-left: auto;
  color: var(--accent);
  transition: transform 0.2s;
}

.learn-card:hover .learn-card-meta .arrow { transform: translateX(4px); }

/* ============================================================
   ARTICLE (long-form)
   ============================================================ */
.article {
  padding-block: var(--sp-16) var(--sp-20);
}

.article-inner {
  max-width: 720px;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

.breadcrumb a { color: var(--text-secondary); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-muted); }

.article-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.article-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--sp-10);
}

/* Prose */
.prose { color: #DcDfE6; }

.prose > * + * { margin-top: var(--sp-6); }

.prose h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-top: var(--sp-12);
}

.prose h2 + p { margin-top: var(--sp-4); }

.prose p {
  font-size: 18px;
  line-height: 1.75;
}

.prose strong { color: var(--text-primary); font-weight: 600; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(130, 52, 250, 0.4);
  transition: text-decoration-color 0.15s;
}
.prose a:hover { text-decoration-color: var(--accent); }

.prose ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-left: var(--sp-2);
}

.prose li {
  position: relative;
  padding-left: var(--sp-6);
  font-size: 18px;
  line-height: 1.7;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.prose li strong:first-child { color: var(--text-primary); }

/* Key-term / takeaway callout */
.callout {
  background: rgba(130, 52, 250, 0.07);
  border: 1px solid rgba(130, 52, 250, 0.22);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-top: var(--sp-10);
}

.callout-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.callout ul { padding-left: 0; }
.callout p:first-of-type { margin-top: 0; }

/* In-article app CTA */
.article-cta {
  margin-top: var(--sp-16);
  background: linear-gradient(135deg, rgba(130, 52, 250, 0.12) 0%, rgba(130, 52, 250, 0.04) 100%);
  border: 1px solid rgba(130, 52, 250, 0.28);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  text-align: center;
}

.article-cta h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
}

.article-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
  max-width: 420px;
  margin-inline: auto;
}

/* Related articles */
.related {
  max-width: 720px;
  margin: var(--sp-16) auto 0;
  padding-top: var(--sp-10);
  border-top: 1px solid var(--hairline);
}

.related-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.related-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}

@media (min-width: 640px) { .related-list { grid-template-columns: repeat(3, 1fr); } }

.related-card {
  display: block;
  background: rgba(13, 14, 18, 0.9);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  transition: border-color 0.2s, transform 0.2s;
}

.related-card:hover {
  border-color: rgba(130, 52, 250, 0.4);
  transform: translateY(-2px);
}

.related-card .rc-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: var(--sp-2);
}

.related-card .rc-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
