/* ============================================
   VEXDYN — Master Refinement
   Premium · Cinematic · Futuristic
   Flat structure · Obsidian / Aurora / Ice
   ============================================ */

:root {
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-h: 70px;

  /* VEXDYN FIXED IDENTITY — Dark Luxury Graphite + Metallic Silver (no blue/cyan) */
  --bg-deep: #0a0a0c;
  --bg-primary: #0a0a0c;
  --bg-secondary: #121316;
  --bg-elevated: #18191d;
  --bg-card: rgba(18, 19, 22, 0.72);
  --bg-glass: rgba(16, 17, 20, 0.62);
  --border: rgba(200, 202, 208, 0.10);
  --border-strong: rgba(200, 202, 208, 0.18);
  --border-metal: rgba(200, 202, 208, 0.24);
  --text-primary: #f2f2f0;
  --text-secondary: #c8cad0;
  --text-muted: #9a9da4;
  --accent: #c8cad0;
  --accent-soft: rgba(200, 202, 208, 0.12);
  --accent-glow: rgba(200, 202, 208, 0.18);
  --highlight: #f2f2f0;
  --silver: rgba(200, 202, 208, 0.55);
  --pearl: #f2f2f0;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
  --particle: rgba(200, 202, 208, 0.35);
  --loader-bg: #050506;
  --gradient-atm:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(180, 185, 195, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 75%, rgba(140, 145, 155, 0.05), transparent 50%),
    radial-gradient(ellipse 45% 30% at 5% 55%, rgba(160, 165, 175, 0.04), transparent 45%);
  --wave-dark-1: rgba(120, 125, 135, 0.32);
  --wave-dark-2: rgba(150, 155, 165, 0.12);
  --wave-bright-1: rgba(200, 202, 208, 0.26);
  --wave-bright-2: rgba(242, 242, 240, 0.10);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--gradient-atm);
  pointer-events: none;
  z-index: 0;
  transition: opacity var(--transition-slow);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .loader-overlay { display: none !important; }
}

/* ========== LOADER ========== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--loader-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
.loader-overlay.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-stage {
  position: relative;
  width: 200px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-symbol {
  position: absolute;
  width: 110px;
  height: 110px;
  opacity: 0;
  transform: scale(0.88);
  filter: blur(5px);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s ease;
}
.loader-symbol.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.loader-symbol.hide {
  opacity: 0;
  transform: scale(0.92);
  filter: blur(4px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
}
.loader-lockup {
  position: absolute;
  width: 200px;
  opacity: 0;
  transform: scale(0.9) translateY(8px);
  filter: blur(4px);
  transition: opacity 0.9s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
  pointer-events: none;
}
.loader-lockup.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}
.loader-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
}
.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-brand {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
  background: var(--accent-soft);
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn, .cmd-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: background var(--transition), border-color var(--transition), transform 0.2s;
}
.theme-btn:hover, .cmd-btn:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}
.theme-btn:focus-visible, .cmd-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Theme switcher removed from main VEXDYN site */
.theme-wrap, .theme-btn, .theme-panel { display: none !important; }
.cmd-wrap { position: relative; }
.theme-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 150px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 100;
}
.theme-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.theme-option:hover, .theme-option.active {
  background: var(--accent-soft);
  color: var(--text-primary);
}
.menu-toggle {
  width: 38px; height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 17px; height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.nav-mobile a:hover, .nav-mobile a.active {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: var(--border);
}

/* Command panel */
.cmd-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 90vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 110;
  overflow: hidden;
}
.cmd-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.cmd-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cmd-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.cmd-list a:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}
.cmd-list a span { font-size: 1.1rem; }

/* ========== BUTTONS — unified silver pill ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: none;
  background: #c8cad0;
  color: #0a0a0c;
  box-shadow: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: #d4d6db;
  color: #0a0a0c;
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.btn-primary,
.btn-secondary,
a.btn,
button.btn {
  background: #c8cad0;
  color: #0a0a0c;
  border: none;
  border-radius: 999px;
  box-shadow: none;
}
.btn-primary:hover,
.btn-secondary:hover,
a.btn:hover,
button.btn:hover {
  background: #d4d6db;
  color: #0a0a0c;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn-primary .arrow,
.btn-secondary .arrow {
  transition: transform 0.25s;
  color: inherit;
}
.btn-primary:hover .arrow,
.btn-secondary:hover .arrow {
  transform: translateX(4px);
}
.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-lg { padding: 15px 30px; font-size: 0.95rem; border-radius: 999px; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 999px; }

/* ========== LAYOUT ========== */
.main { position: relative; z-index: 1; padding-top: var(--header-h); }
.section {
  padding: 72px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-full { padding: 72px 20px; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.65rem, 3.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

/* ========== HERO ========== */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 20px 64px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  background: transparent;
  background-color: transparent;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(0.98rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero wordmark — larger premium brand statement, true transparent */
.hero-wordmark {
  display: block;
  width: auto;
  max-width: min(420px, 82vw);
  height: auto;
  margin: 0 auto 18px;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
}
@media (min-width: 900px) {
  .hero-wordmark {
    max-width: min(520px, 48vw);
  }
}
[data-theme="aurora"] .hero-wordmark {
  filter: brightness(0) saturate(100%);
  opacity: 0.88;
}
[data-theme="ice"] .hero-wordmark {
  filter: none;
  opacity: 1;
}
.hero-geo {
  position: absolute;
  right: -8%;
  top: 18%;
  width: 42%;
  max-width: 440px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  background: transparent !important;
}
[data-theme="aurora"] .hero-geo {
  opacity: 0.1;
  filter: brightness(0) saturate(100%);
}
[data-theme="ice"] .hero-geo {
  opacity: 0.14;
}

/* ========== HERO LIQUID-METAL WAVES (homepage only) ========== */
.hero-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  left: -50%;
  width: 200%;
  height: 70%;
  min-height: 280px;
  will-change: transform;
  pointer-events: none;
  filter: blur(2px);
}
/* Wave 1 dark — continuous FORWARD (left → right) */
.hero-wave-1 {
  bottom: -5%;
  animation: waveFlowForward 5.5s linear infinite;
  opacity: 0.85;
}
/* Wave 2 bright — continuous BACKWARD (right → left) */
.hero-wave-2 {
  bottom: 5%;
  height: 65%;
  animation: waveFlowBackward 7s linear infinite;
  opacity: 0.7;
}

/* Seamless continuous flow: translate by 50% of the doubled-width element */
@keyframes waveFlowForward {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(25%, 0, 0); }
}
@keyframes waveFlowBackward {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}

[data-theme="obsidian"] .hero-wave-1 { opacity: 0.9; }
[data-theme="obsidian"] .hero-wave-2 { opacity: 0.75; }
[data-theme="aurora"] .hero-wave-1 { opacity: 0.55; }
[data-theme="aurora"] .hero-wave-2 { opacity: 0.45; }
[data-theme="ice"] .hero-wave-1 { opacity: 0.85; }
[data-theme="ice"] .hero-wave-2 { opacity: 0.7; }

@media (prefers-reduced-motion: reduce) {
  .hero-wave {
    animation: none !important;
  }
}

@media (max-width: 700px) {
  .hero-wave {
    width: 220%;
    left: -55%;
    height: 55%;
  }
  .hero-wave-1 { bottom: -8%; opacity: 0.75; }
  .hero-wave-2 { bottom: 0; height: 50%; opacity: 0.6; }
}

/* ========== VEXDYN CARD SYSTEM ========== */
.v-card {
  background: var(--bg-card);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(227, 231, 236, 0.06);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.v-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(227, 231, 236, 0.05) 0%, transparent 48%, rgba(200, 202, 208, 0.04) 100%);
  opacity: 0.85;
}
.v-card:hover {
  border-color: rgba(200, 202, 208, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 28px var(--accent-glow);
}
.v-card-title {
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 8px;
  position: relative;
}
.v-card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
}

/* ========== GRIDS ========== */
.grid-2 { display: grid; gap: 18px; }
.grid-3 { display: grid; gap: 18px; }
.grid-4 { display: grid; gap: 16px; }
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ========== ECOSYSTEM ========== */
.eco-item {
  text-align: center;
  padding: 28px 18px;
}
.eco-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}
.eco-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.eco-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== SERVICE ========== */
.svc-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.v-card:hover .svc-icon {
  background: var(--accent);
  color: #fff;
}

/* ========== PROCESS ========== */
.process-grid {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
@media (min-width: 700px) {
  .process-grid { grid-template-columns: repeat(5, 1fr); }
}
.process-card {
  text-align: center;
  padding: 28px 14px;
}
.process-icon {
  width: 44px; height: 44px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-metal);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.v-card:hover .process-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}
.process-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ========== LEARN TEASER ========== */
.learn-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
.learn-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-metal);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 550;
}
.learn-chip .bar {
  width: 48px; height: 4px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.learn-chip .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 999px;
}

/* ========== LEARN CARDS ========== */
.learn-card { display: flex; flex-direction: column; gap: 14px; }
.learn-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.learn-tech { font-size: 1.3rem; font-weight: 700; }
.learn-diff {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text-secondary);
}
.learn-meta {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.progress-wrap {
  display: flex;
  align-items: center;
   gap: 10px;
}
.progress-bar {
  flex: 1;
  height: 5px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-num {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ========== PRICING ========== */
.pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin: 28px 0 36px;
}
.pricing-toggle {
  position: relative;
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.toggle-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.pricing-toggle.yearly .toggle-indicator {
  transform: translateX(100%);
}
.toggle-btn {
  position: relative;
  z-index: 1;
  padding: 9px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-secondary);
  transition: color 0.25s;
  min-width: 100px;
  text-align: center;
}
.toggle-btn.active { color: #fff; }

.price-cards {
  display: grid;
  gap: 18px;
  max-width: 700px;
  margin: 0 auto;
}
@media (min-width: 680px) {
  .price-cards { grid-template-columns: 1fr 1fr; }
}
.price-card { position: relative; }
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft), var(--shadow);
}
.plan-name {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.plan-concept {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.price-amount {
  font-size: 2.1rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s, transform 0.2s;
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.price-save {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 1.2em;
}
.price-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}
.price-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ========== BUILDER TEASER ========== */
.builder-preview {
  margin-top: 28px;
  height: 160px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-metal);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.builder-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, var(--accent-soft) 50%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 24px, var(--border) 24px, var(--border) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, var(--border) 24px, var(--border) 25px);
  opacity: 0.4;
  filter: blur(1px);
}
.builder-badge {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-secondary);
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 52px 20px 36px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.page-hero p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 500px;
}

/* ========== FORMS ========== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 550;
  margin-bottom: 5px;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.placeholder-notice {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(180, 140, 60, 0.12);
  color: #c9a227;
  margin-top: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 20px 32px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .logo-brand {
  height: 32px;
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.55;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 3px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }
.founder-card { display: flex; flex-direction: column; gap: 4px; }
.founder-name { font-size: 1.05rem; font-weight: 650; }
.founder-title { font-size: 0.85rem; color: var(--accent); }
.founder-contact { font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== CTA BANNER ========== */
.cta-banner {
  text-align: center;
  padding: 72px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
.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; }

/* ========== DESKTOP ========== */
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}

/* ========== UTILS ========== */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 28px; }
.mt-10 { margin-top: 36px; }
.mt-12 { margin-top: 44px; }
.mb-6 { margin-bottom: 20px; }
.band {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ========== PROCESS HORIZONTAL TRACK ========== */
.process-section { overflow: hidden; }
.process-track {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.process-track::-webkit-scrollbar { display: none; }

.process-card {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  padding: 24px 14px;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1), border-color var(--transition), box-shadow var(--transition);
  will-change: opacity, transform;
}
.process-card.stagger-in {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 800px) {
  .process-track {
    overflow: visible;
    justify-content: center;
    gap: 12px;
  }
  .process-card {
    width: 150px;
    flex: 1 1 0;
    max-width: 170px;
  }
  .process-arrow {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.5;
    flex-shrink: 0;
  }
}

@media (max-width: 799px) {
  .process-arrow { display: none; }
  .process-track {
    padding-left: 4px;
    padding-right: 20px;
  }
}

.process-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-metal);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.process-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v-card:hover .process-icon,
.process-card:hover .process-icon {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}
.process-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
/* Service icons */
.svc-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.svc-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.v-card:hover .svc-icon {
  background: var(--accent);
  color: #fff;
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s, visibility 0.28s;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
}
.search-panel {
  width: 100%;
  max-width: 440px;
  margin-top: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-12px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.search-overlay.open .search-panel {
  transform: translateY(0) scale(1);
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.search-close:hover { color: var(--text-primary); }
.search-results {
  max-height: min(360px, 55vh);
  overflow-y: auto;
  padding: 8px;
}
.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}
.search-result:hover {
  background: var(--accent-soft);
}
.search-result-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.search-result-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== LOADER / INTRO ========== */
.loader-stage {
  position: relative;
  width: 220px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-symbol {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0;
  transform: scale(0.88);
  filter: blur(5px);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(0.16,1,0.3,1), filter 1.1s ease;
}
.loader-symbol.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.loader-symbol.hide {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(3px);
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}
.loader-lockup {
  position: absolute;
  width: 200px;
  opacity: 0;
  transform: scale(0.92) translateY(6px);
  filter: blur(3px);
  transition: opacity 0.85s ease, transform 0.95s cubic-bezier(0.16,1,0.3,1), filter 0.85s ease;
  pointer-events: none;
}
.loader-lockup.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}
.loader-lockup.dim {
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.loader-lockup.hide {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(2px);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

/* Metallic silver sweep */
.loader-sweep {
  position: absolute;
  top: 0;
  left: -40%;
  width: 35%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.02) 20%,
    rgba(220,230,255,0.55) 45%,
    rgba(180,200,255,0.35) 55%,
    rgba(255,255,255,0.02) 80%,
    transparent 100%
  );
  pointer-events: none;
  opacity: 0;
  transform: skewX(-12deg);
}
.loader-sweep.active {
  animation: metallicSweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes metallicSweep {
  0% { left: -40%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* System init */
.loader-system {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.loader-system.visible { opacity: 1; }
.loader-system.hide { opacity: 0; transition: opacity 0.4s ease; }
.loader-sys-label {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.loader-sys-msg {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  min-height: 1.4em;
  transition: opacity 0.18s ease;
  margin-bottom: 12px;
}
.loader-progress {
  height: 2px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* Final message */
.loader-final {
  position: absolute;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.loader-final.visible { opacity: 1; }
.loader-line {
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.loader-line.visible {
  opacity: 1;
  transform: translateY(0);
}
.loader-line + .loader-line {
  margin-top: 6px;
  color: var(--highlight);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

/* ========== CODE TRANSFORM ANIMATION ========== */
.code-transform {
  margin: 10px auto 0;
  min-height: 1.7em;
  font-family: "SF Mono", "Fira Code", "Consolas", "Courier New", monospace;
  font-size: clamp(0.85rem, 2.6vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.07em;
  line-height: 1.55;
  text-align: center;
  color: rgba(230, 235, 250, 0.92);
  overflow: hidden;
  max-width: min(100%, 560px);
  width: 100%;
  padding: 0 12px;
  word-break: break-word;
  white-space: normal;
  text-shadow: 0 0 14px rgba(200, 210, 255, 0.22);
}
[data-theme="aurora"] .code-transform {
  color: rgba(30, 35, 50, 0.9);
  text-shadow: none;
}
[data-theme="ice"] .code-transform {
  color: rgba(190, 235, 255, 0.95);
  text-shadow: 0 0 14px rgba(100, 200, 255, 0.28);
}
.code-transform.resolved {
  letter-spacing: 0.04em;
  font-weight: 600;
  color: rgba(250, 252, 255, 0.98);
}
[data-theme="aurora"] .code-transform.resolved {
  color: rgba(15, 18, 28, 0.98);
}
[data-theme="ice"] .code-transform.resolved {
  color: #a5f3fc;
}

/* Single logo swap target — true alpha PNG assets */
.logo-swap {
  height: 36px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: transparent !important;
  background-color: transparent !important;
  display: block;
}
.footer-brand .logo-swap {
  height: 32px;
  margin-bottom: 14px;
}
[data-theme="aurora"] .logo-swap {
  filter: brightness(0) saturate(100%);
  opacity: 0.9;
}

/* ========== STATEMENT SECTION (below Hero) ========== */
.statement-section {
  padding-top: 56px;
  padding-bottom: 56px;
}
.statement-inner {
  max-width: 560px;
}
.statement-title {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.statement-light {
  font-weight: 400;
  display: block;
}
.statement-bold {
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.statement-sub {
  font-size: 1.02rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
  margin-bottom: 28px;
}

/* ========== WHATSAPP FLOAT ========== */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: waPulse 2.8s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(37, 211, 102, 0.18);
  animation: none;
}
.wa-float:active {
  transform: scale(0.96);
}
.wa-float svg {
  display: block;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}
@media (max-width: 700px) {
  .wa-float {
    bottom: 18px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
}

/* ========== DESKTOP OPTIMIZATION (additive) ========== */
@media (min-width: 1024px) {
  :root {
    --max-width: 1120px;
  }

  .section {
    padding: 96px 32px;
  }
  .section-full {
    padding: 96px 32px;
  }
  .section-title {
    font-size: clamp(1.85rem, 2.4vw, 2.65rem);
  }
  .section-sub {
    font-size: 1.06rem;
    max-width: 540px;
  }

  /* Grids — comfortable spacing */
  .grid-2 { gap: 24px; }
  .grid-3 { gap: 24px; }
  .grid-4 { gap: 22px; }

  .v-card {
    padding: 30px;
  }
  .eco-item {
    padding: 36px 24px;
  }

  /* Process — spacious horizontal sequence */
  .process-track {
    gap: 16px;
    margin-top: 48px;
  }
  .process-card {
    width: 160px;
    max-width: 180px;
    padding: 28px 16px;
  }
  .process-arrow {
    font-size: 1.25rem;
    padding: 0 4px;
  }

  /* Pricing */
  .price-cards {
    max-width: 780px;
    gap: 24px;
  }

  /* Statement below hero */
  .statement-section {
    padding-top: 72px;
    padding-bottom: 80px;
  }
  .statement-inner {
    max-width: 600px;
  }
  .statement-title {
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    margin-bottom: 18px;
  }
  .statement-sub {
    font-size: 1.06rem;
    margin-bottom: 32px;
  }

  /* CTA banner */
  .cta-banner {
    padding: 96px 32px;
  }

  /* Footer */
  .site-footer {
    padding: 72px 32px 40px;
  }
}

@media (min-width: 1440px) {
  :root {
    --max-width: 1200px;
  }
  .section {
    padding: 110px 40px;
  }
  .section-full {
    padding: 110px 40px;
  }
  .grid-2, .grid-3 { gap: 28px; }
  .grid-4 { gap: 24px; }
  .process-track { gap: 20px; }
  .price-cards { max-width: 840px; gap: 28px; }
}

/* Reduced motion — keep site usable, cut non-essential motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
  .process-card {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* ========== VEXDYN LEARN — BUILD 1 ========== */
.learn-hero {
  min-height: min(70vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 20px 48px;
  text-align: center;
  position: relative;
}
.learn-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}
.learn-hero-title {
  font-size: clamp(1.85rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.learn-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Journey overview */
.journey-stats {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 700px) {
  .journey-stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.journey-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
}
.journey-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.journey-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.journey-bar {
  margin-top: 12px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.journey-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Learning path */
.path-track {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.path-track::-webkit-scrollbar { display: none; }
.path-node {
  flex: 0 0 auto;
  text-align: center;
  min-width: 88px;
}
.path-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-metal);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.path-logo svg { width: 28px; height: 28px; }
.path-node:hover .path-logo {
  border-color: var(--tech-color, var(--accent));
  box-shadow: 0 0 16px color-mix(in srgb, var(--tech-color, var(--accent)) 35%, transparent);
}
.path-name {
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 2px;
}
.path-pct {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.path-arrow {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 1.1rem;
  flex-shrink: 0;
}
@media (min-width: 800px) {
  .path-track {
    justify-content: center;
    overflow: visible;
    gap: 14px;
  }
  .path-node { min-width: 100px; }
  .path-logo { width: 58px; height: 58px; }
}

/* Course toolbar */
.course-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 28px 0 24px;
}
.course-search {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.25s;
}
.course-search:focus { border-color: var(--accent); }
.course-search::placeholder { color: var(--text-muted); }
.course-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.course-filter {
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.course-filter:hover,
.course-filter.active {
  background: var(--accent-soft);
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Course grid + cards */
.course-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 600px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 1200px) {
  .course-grid { grid-template-columns: repeat(4, 1fr); }
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.course-card-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tech-color, var(--accent));
  opacity: 0.85;
}
.course-card:hover {
  border-color: color-mix(in srgb, var(--tech-color, var(--accent)) 50%, var(--border-strong));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 28px color-mix(in srgb, var(--tech-color, var(--accent)) 22%, transparent);
}
.course-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--tech-soft, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--tech-color, var(--accent)) 25%, transparent);
  transition: box-shadow 0.3s, background 0.3s;
}
.course-logo svg { width: 28px; height: 28px; }
.course-card:hover .course-logo {
  box-shadow: 0 0 18px color-mix(in srgb, var(--tech-color, var(--accent)) 40%, transparent);
}
.course-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.course-fullname {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}
.course-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.course-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.course-diff {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--tech-soft, var(--accent-soft));
  color: var(--tech-color, var(--accent));
}
.course-lessons {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.course-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}
.course-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}
.course-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--tech-color, var(--accent));
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.course-progress-num {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted);
  min-width: 2.4em;
  text-align: right;
}
.course-status {
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.course-cta {
  width: 100%;
  margin-top: 4px;
}
.course-notice {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
}
.course-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 16px;
  font-size: 0.95rem;
}

@media (min-width: 1024px) {
  .learn-hero {
    min-height: min(65vh, 520px);
    padding: 80px 32px 56px;
  }
  .course-grid { gap: 24px; }
}


/* ========== HTML COURSE VIEW ========== */
.course-view,
.lesson-view {
  animation: courseFadeIn 0.4s ease;
}
@keyframes courseFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.course-back {
  margin-bottom: 20px;
}
.course-view-header {
  padding-bottom: 24px;
}
.course-view-tech {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.course-view-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  margin: 6px 0 8px;
}
.course-view-sub {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 20px;
}
.course-view-progress {
  max-width: 360px;
}
.course-view-pct {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.course-view-bar {
  margin-bottom: 8px;
  height: 6px;
}
.course-view-status {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.course-complete-banner {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(227, 79, 38, 0.12);
  border: 1px solid rgba(227, 79, 38, 0.35);
  color: #e34f26;
  font-weight: 650;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.lesson-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Lesson cards — must override global button { background:none; border:none } */
button.lesson-item,
.lesson-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
  padding: 18px 18px 16px !important;
  margin: 0 !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-metal) !important;
  border-radius: var(--radius-lg) !important;
  color: var(--text-primary) !important;
  cursor: pointer !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: var(--shadow) !important;
  transition: border-color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease !important;
  font-family: inherit !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
button.lesson-item:hover,
.lesson-item:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border-strong)) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-lg), 0 0 24px var(--accent-soft) !important;
}
button.lesson-item:active,
.lesson-item:active {
  transform: translateY(0) scale(0.995) !important;
}
button.lesson-item:focus-visible,
.lesson-item:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}
button.lesson-item.is-complete,
.lesson-item.is-complete {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-metal)) !important;
}

.lesson-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.lesson-item-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  flex-shrink: 0;
}
.lesson-item-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text-primary);
}
.lesson-item-mission {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Status badges — pills, not plain text */
.lesson-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
}
.lesson-badge-open {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-color: var(--border);
}
.lesson-badge-done {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.lesson-badge-icon {
  font-size: 0.72rem;
  line-height: 1;
}

/* Theme polish — Aurora needs stronger glass contrast */
[data-theme="aurora"] button.lesson-item,
[data-theme="aurora"] .lesson-item {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="aurora"] button.lesson-item:hover,
[data-theme="aurora"] .lesson-item:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, rgba(0,0,0,0.12)) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 0 20px var(--accent-soft) !important;
}
[data-theme="ice"] button.lesson-item,
[data-theme="ice"] .lesson-item {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border-metal)) !important;
}
[data-theme="ice"] button.lesson-item:hover,
[data-theme="ice"] .lesson-item:hover {
  box-shadow: var(--shadow-lg), 0 0 28px rgba(56, 189, 248, 0.18) !important;
}

/* Subtle per-lesson ambient identity on lesson page */
.lesson-view {
  position: relative;
}
.lesson-view::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  transition: background 0.5s ease;
}
.lesson-view > * { position: relative; z-index: 1; }
.lesson-view[data-lesson-ambient="1"]::before {
  background: radial-gradient(ellipse 60% 40% at 15% 10%, var(--accent-soft), transparent 70%);
}
.lesson-view[data-lesson-ambient="2"]::before {
  background: radial-gradient(ellipse 55% 38% at 85% 12%, var(--accent-soft), transparent 70%);
}
.lesson-view[data-lesson-ambient="3"]::before {
  background: radial-gradient(ellipse 50% 42% at 50% 18%, var(--accent-soft), transparent 72%);
}
.lesson-view[data-lesson-ambient="4"]::before {
  background: radial-gradient(ellipse 58% 36% at 80% 70%, var(--accent-soft), transparent 70%);
}
.lesson-view[data-lesson-ambient="5"]::before {
  background: radial-gradient(ellipse 52% 40% at 20% 75%, var(--accent-soft), transparent 70%);
}
.lesson-view[data-lesson-ambient="6"]::before {
  background: radial-gradient(ellipse 48% 44% at 70% 40%, var(--accent-soft), transparent 72%);
}
.lesson-view[data-lesson-ambient="7"]::before {
  background: radial-gradient(ellipse 56% 34% at 30% 50%, var(--accent-soft), transparent 70%);
}
.lesson-view[data-lesson-ambient="8"]::before {
  background: radial-gradient(ellipse 60% 38% at 55% 85%, var(--accent-soft), transparent 70%);
}

@media (max-width: 600px) {
  button.lesson-item,
  .lesson-item {
    padding: 16px 14px 14px !important;
  }
  .lesson-item-title {
    font-size: 0.95rem;
  }
  .lesson-item-mission {
    font-size: 0.82rem;
  }
}

/* Lesson detail */
.lesson-view-inner {
  max-width: 720px;
}
.lesson-header {
  margin-bottom: 28px;
}
.lesson-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #e34f26;
}
.lesson-title {
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.lesson-mission {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.6;
}
.lesson-block {
  margin-bottom: 24px;
}
.lesson-block-title {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.lesson-def {
  margin-bottom: 14px;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.lesson-def-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e34f26;
  margin-bottom: 6px;
}
.lesson-def p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.lesson-code {
  margin: 0;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-metal);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: "SF Mono", "Fira Code", "Consolas", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}
.lesson-challenge {
  margin: 0;
  padding: 16px 18px;
  background: rgba(227, 79, 38, 0.08);
  border: 1px solid rgba(227, 79, 38, 0.22);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.lesson-actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
}
@media (max-width: 600px) {
  .lesson-actions .btn {
    width: 100%;
  }
}/* JavaScript course accent */
.js-code {
  border-color: rgba(247, 223, 30, 0.35) !important;
  box-shadow: 0 0 20px rgba(247, 223, 30, 0.08);
}
[data-theme="aurora"] .js-code {
  border-color: rgba(180, 140, 0, 0.35) !important;
}
#jsCourseView .lesson-item:hover {
  border-color: rgba(247, 223, 30, 0.5) !important;
  box-shadow: var(--shadow-lg), 0 0 24px rgba(247, 223, 30, 0.15) !important;
}
#jsCourseView .lesson-badge-done {
  color: #c4a000;
  border-color: rgba(247, 223, 30, 0.4);
  background: rgba(247, 223, 30, 0.12);
}
[data-theme="aurora"] #jsCourseView .lesson-badge-done {
  color: #8a7000;
}


/* React course accent */
.react-code {
  border-color: rgba(97, 218, 251, 0.4) !important;
  box-shadow: 0 0 20px rgba(97, 218, 251, 0.1);
}
#reactCourseView .lesson-item:hover {
  border-color: rgba(97, 218, 251, 0.55) !important;
  box-shadow: var(--shadow-lg), 0 0 24px rgba(97, 218, 251, 0.18) !important;
}
#reactCourseView .lesson-badge-done {
  color: #149ECA;
  border-color: rgba(97, 218, 251, 0.4);
  background: rgba(97, 218, 251, 0.12);
}


/* ========== AURORA GLASS DEPTH ========== */
[data-theme="aurora"] .course-card,
[data-theme="aurora"] .lesson-item,
[data-theme="aurora"] .stat-card,
[data-theme="aurora"] .path-node,
[data-theme="aurora"] .journey-card,
[data-theme="aurora"] .course-view-header,
[data-theme="aurora"] .lesson-block,
[data-theme="aurora"] .learn-hero-inner {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(40, 35, 50, 0.12) !important;
  box-shadow:
    0 8px 28px rgba(30, 25, 40, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}
[data-theme="aurora"] .course-card:hover,
[data-theme="aurora"] .lesson-item:hover {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(40, 35, 50, 0.18) !important;
  box-shadow:
    0 14px 36px rgba(30, 25, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}
[data-theme="aurora"] .course-progress-bar,
[data-theme="aurora"] .course-view-bar {
  background: rgba(40, 35, 50, 0.08) !important;
}
[data-theme="aurora"] body {
  background-color: var(--bg-primary);
}


/* ========== Aurora glass depth + brightness control ========== */
[data-theme="aurora"] .course-card,
[data-theme="aurora"] .lesson-item,
[data-theme="aurora"] .path-card,
[data-theme="aurora"] .journey-stat,
[data-theme="aurora"] .learn-hero-inner,
[data-theme="aurora"] .course-view-header,
[data-theme="aurora"] .lesson-view-inner,
[data-theme="aurora"] .site-header {
  background: var(--bg-card);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

[data-theme="aurora"] .course-card:hover,
[data-theme="aurora"] .lesson-item:hover {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border-color: var(--border-metal);
}

[data-theme="aurora"] .lesson-code,
[data-theme="aurora"] .js-code,
[data-theme="aurora"] .react-code {
  background: rgba(35, 34, 42, 0.92);
  border-color: rgba(40, 35, 50, 0.2);
}

[data-theme="aurora"] .btn-primary {
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.18);
}



/* Soften aggressive glows in Aurora */
[data-theme="aurora"] .course-card-accent,
[data-theme="aurora"] .hero-wave-1,
[data-theme="aurora"] .hero-wave-2 {
  opacity: 0.55;
}

[data-theme="aurora"] .course-progress-fill {
  box-shadow: none;
}


/* ========== CRITICAL AURORA GLASS (final override) ========== */
[data-theme="aurora"] body {
  background-color: #e6e2da !important;
}
[data-theme="aurora"] .course-card,
[data-theme="aurora"] .lesson-item,
[data-theme="aurora"] .stat-card,
[data-theme="aurora"] .path-node,
[data-theme="aurora"] .journey-stat,
[data-theme="aurora"] .journey-card,
[data-theme="aurora"] .course-view-header,
[data-theme="aurora"] .lesson-block,
[data-theme="aurora"] .lesson-view-inner,
[data-theme="aurora"] .learn-hero-inner,
[data-theme="aurora"] .course-toolbar,
[data-theme="aurora"] .site-header {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(35, 30, 45, 0.22) !important;
  box-shadow:
    0 10px 32px rgba(30, 25, 40, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset !important;
  backdrop-filter: blur(16px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.08) !important;
}
[data-theme="aurora"] .course-card:hover,
[data-theme="aurora"] .lesson-item:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(35, 30, 45, 0.32) !important;
  box-shadow:
    0 16px 40px rgba(30, 25, 40, 0.14),
    0 1px 0 rgba(255, 255, 255, 1) inset !important;
}
[data-theme="aurora"] .course-progress-bar,
[data-theme="aurora"] .course-view-bar {
  background: rgba(35, 30, 45, 0.12) !important;
  border: 1px solid rgba(35, 30, 45, 0.08);
}
[data-theme="aurora"] .section-label,
[data-theme="aurora"] .text-muted {
  color: #5c5966 !important;
}


/* ========== LEARN ENTRY LOADER (FIXED) ========== */





/* Aurora: invert wordmark for light bg — crisp, no pixelation filters */



[data-theme="aurora"] .learn-hero-wordmark {
  filter: brightness(0) saturate(100%) !important;
  opacity: 0.9;
  image-rendering: auto;
}

/* Aurora course logos — full brand color, no grayscale */
[data-theme="aurora"] .course-logo svg,
[data-theme="aurora"] .course-logo svg *,
[data-theme="aurora"] .path-logo svg,
[data-theme="aurora"] .path-logo svg *,
[data-theme="aurora"] .course-view-logo svg,
[data-theme="aurora"] .course-view-logo svg * {
  filter: none !important;
  opacity: 1 !important;
}
[data-theme="aurora"] .course-card,
[data-theme="aurora"] .lesson-item,
[data-theme="aurora"] .stat-card,
[data-theme="aurora"] .path-node,
[data-theme="aurora"] .journey-stat,
[data-theme="aurora"] .course-view-header,
[data-theme="aurora"] .lesson-block,
[data-theme="aurora"] .lesson-view-inner,
[data-theme="aurora"] .learn-hero-inner,
[data-theme="aurora"] .course-toolbar {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(30, 28, 40, 0.18) !important;
  box-shadow: 0 12px 36px rgba(30, 25, 40, 0.09), inset 0 1px 0 rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}
[data-theme="aurora"] body {
  background-color: #f4f2ec !important;
}


/* Course logos: full brand color in all themes */
.course-logo svg,
.course-view-logo svg,
.path-logo svg {
  filter: none !important;
  opacity: 1 !important;
}
[data-theme="aurora"] .course-logo svg,
[data-theme="aurora"] .course-view-logo svg,
[data-theme="aurora"] .path-logo svg {
  filter: none !important;
  opacity: 1 !important;
}

/* Aurora: bright pearl, stronger glass separation */
[data-theme="aurora"] {
  --bg-deep: #f2f0ea !important;
  --bg-primary: #f7f5f0 !important;
  --bg-secondary: #efece6 !important;
  --bg-elevated: #e8e4dc !important;
  --bg-card: rgba(255, 255, 255, 0.88) !important;
  --bg-glass: rgba(255, 255, 255, 0.78) !important;
  --border: rgba(30, 28, 40, 0.16) !important;
  --border-strong: rgba(30, 28, 40, 0.26) !important;
  --border-metal: rgba(45, 42, 60, 0.32) !important;
  --shadow: 0 10px 32px rgba(30, 25, 40, 0.09) !important;
  --shadow-lg: 0 20px 48px rgba(30, 25, 40, 0.13) !important;
}
[data-theme="aurora"] body {
  background-color: #f7f5f0 !important;
}
[data-theme="aurora"] .course-card,
[data-theme="aurora"] .lesson-item,
[data-theme="aurora"] .stat-card,
[data-theme="aurora"] .path-node,
[data-theme="aurora"] .journey-stat,
[data-theme="aurora"] .course-view-header,
[data-theme="aurora"] .lesson-block,
[data-theme="aurora"] .lesson-view-inner,
[data-theme="aurora"] .learn-hero-inner,
[data-theme="aurora"] .course-toolbar,
[data-theme="aurora"] .site-header {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(30, 28, 40, 0.2) !important;
  box-shadow: 0 12px 36px rgba(30, 25, 40, 0.1), inset 0 1px 0 rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* ========== VEXDYN BUILD ========== */
.build-main { padding-bottom: 80px; }
.build-hero-inner { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.build-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 16px;
}
.build-hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.55;
}
.build-path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .build-path-grid { grid-template-columns: 1fr 1fr; }
}
.build-path-card {
  text-align: left;
  padding: 28px 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-primary);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.build-path-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-metal);
  box-shadow: var(--shadow-lg);
}
.build-path-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.path-for-me .build-path-icon { color: #c4a35a; background: rgba(196, 163, 90, 0.12); }
.path-yourself .build-path-icon { color: #61dafb; background: rgba(97, 218, 251, 0.1); }
.build-path-title { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; }
.build-path-desc { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.45; }
.build-path-cta { margin-top: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; color: var(--accent); }

.build-stage-head { text-align: center; max-width: 640px; margin: 0 auto 28px; }
.build-stage-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin: 8px 0 10px; }
.build-stage-sub { color: var(--text-secondary); }
.build-back { margin-bottom: 20px; }
.build-selected-count {
  margin-top: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Animated category lanes */
.build-lanes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.build-lane {
  overflow: hidden;
  width: 100%;
}
.build-lane-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.build-lane-left .build-lane-track {
  animation: buildLaneLeft 48s linear infinite;
}
.build-lane-right .build-lane-track {
  animation: buildLaneRight 52s linear infinite;
}
.build-lanes.is-paused .build-lane-track {
  animation-play-state: paused;
}
@keyframes buildLaneLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes buildLaneRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .build-lane-left .build-lane-track,
  .build-lane-right .build-lane-track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
}

.build-cat-card {
  flex: 0 0 auto;
  width: min(220px, 70vw);
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.build-cat-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--border-metal);
  box-shadow: var(--shadow-lg);
}
.build-cat-card.is-selected {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
  transform: translateY(-3px) scale(1.03);
}
.build-cat-icon { font-size: 1.5rem; line-height: 1; }
.build-cat-name { font-weight: 800; font-size: 0.95rem; letter-spacing: 0.03em; }
.build-cat-desc { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.35; }
.build-cat-check {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.build-stage-actions { text-align: center; margin-top: 28px; }

/* Form */
.build-form-layout {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .build-form-layout { grid-template-columns: 240px 1fr; align-items: start; }
}
.build-form-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.build-progress-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.build-step {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.build-step span {
  display: inline-block;
  min-width: 1.5em;
  color: var(--text-muted);
  margin-right: 6px;
}
.build-step.is-active {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--accent-soft);
}
.build-step.is-active span { color: var(--accent); }
.build-step.is-done { color: var(--text-primary); opacity: 0.85; }
.build-summary-panel {
  padding: 16px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.build-summary-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.build-summary-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.build-summary-chip {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.build-form-main {
  padding: 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.build-panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.build-panel-title span { color: var(--accent); margin-right: 8px; }
.build-panel-sub { color: var(--text-secondary); margin-bottom: 22px; }
.build-field { display: block; margin-bottom: 16px; }
.build-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.build-field input,
.build-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.build-field input:focus,
.build-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.build-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #e34f26;
}
.build-chip-select, .build-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.build-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.build-chip.is-selected,
button.build-chip.is-selected {
  border-color: var(--accent);
  color: var(--text-primary);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.build-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.build-review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.build-review-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.build-review-value {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: pre-wrap;
}
.build-confirm { text-align: center; padding: 20px 8px; }
.build-confirm-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-strong);
}
.build-confirm-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.build-confirm-sub { color: var(--text-secondary); margin-bottom: 12px; }
.build-confirm-id { margin-bottom: 8px; }
.build-confirm-note { font-size: 0.85rem; color: var(--text-muted); max-width: 420px; margin: 0 auto 20px; }

.build-yourself { text-align: center; max-width: 640px; margin: 0 auto; }
.build-coming-soon {
  margin-top: 28px;
  padding: 32px 24px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.build-coming-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.build-coming-status {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 10px 0 14px;
}

[data-theme="aurora"] .build-path-card,
[data-theme="aurora"] .build-cat-card,
[data-theme="aurora"] .build-form-main,
[data-theme="aurora"] .build-progress-steps,
[data-theme="aurora"] .build-summary-panel,
[data-theme="aurora"] .build-coming-soon {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(30, 28, 40, 0.2) !important;
}


/* ============================================================
   AUTHORITATIVE LEARN ENTRY LOADER + AURORA FIX (do not duplicate)
   ============================================================ */
.learn-entry-loader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  z-index: 2147483000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0a0a0f !important;
  background-image: none !important;
  overflow: hidden !important;
  transition: opacity 0.5s ease, visibility 0.5s ease !important;
}
.learn-entry-loader .learn-entry-wordmark,
.learn-entry-loader img {
  display: block !important;
  width: min(320px, 70vw) !important;
  max-width: min(320px, 70vw) !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  object-fit: contain !important;
  opacity: 0;
  transform: scale(0.97);
  filter: none !important;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.learn-entry-loader.is-visible .learn-entry-wordmark,
.learn-entry-loader.is-visible img {
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: none !important;
}
.learn-entry-loader.is-done {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
html.learn-entry-pending,
html.learn-entry-pending body {
  overflow: hidden !important;
}

/* Aurora loader: light full-screen, dark crisp wordmark */
[data-theme="aurora"] .learn-entry-loader {
  background: #f7f5f0 !important;
}
[data-theme="aurora"] .learn-entry-loader .learn-entry-wordmark,
[data-theme="aurora"] .learn-entry-loader.is-visible .learn-entry-wordmark,
[data-theme="aurora"] .learn-entry-loader img,
[data-theme="aurora"] .learn-entry-loader.is-visible img {
  filter: brightness(0) saturate(100%) !important;
}
[data-theme="aurora"] .learn-entry-loader.is-visible .learn-entry-wordmark,
[data-theme="aurora"] .learn-entry-loader.is-visible img {
  opacity: 0.92 !important;
}

/* Aurora page: bright pearl + real glass */
html[data-theme="aurora"],
html[data-theme="aurora"] body {
  background: #f7f5f0 !important;
  background-color: #f7f5f0 !important;
}
html[data-theme="aurora"] {
  --bg-deep: #f0eee8 !important;
  --bg-primary: #f7f5f0 !important;
  --bg-secondary: #efece5 !important;
  --bg-elevated: #e9e5dd !important;
  --bg-card: rgba(255, 255, 255, 0.92) !important;
  --bg-glass: rgba(255, 255, 255, 0.82) !important;
  --border: rgba(25, 22, 35, 0.14) !important;
  --border-strong: rgba(25, 22, 35, 0.24) !important;
  --border-metal: rgba(40, 36, 55, 0.3) !important;
  --text-primary: #1a1820 !important;
  --text-secondary: #4a4754 !important;
  --text-muted: #6a6774 !important;
  --shadow: 0 10px 32px rgba(25, 22, 35, 0.08) !important;
  --shadow-lg: 0 20px 48px rgba(25, 22, 35, 0.12) !important;
}
html[data-theme="aurora"] .course-card,
html[data-theme="aurora"] .lesson-item,
html[data-theme="aurora"] .stat-card,
html[data-theme="aurora"] .path-node,
html[data-theme="aurora"] .journey-stat,
html[data-theme="aurora"] .course-view-header,
html[data-theme="aurora"] .lesson-block,
html[data-theme="aurora"] .lesson-view-inner,
html[data-theme="aurora"] .learn-hero-inner,
html[data-theme="aurora"] .course-toolbar,
html[data-theme="aurora"] .site-header,
html[data-theme="aurora"] .build-path-card,
html[data-theme="aurora"] .build-cat-card,
html[data-theme="aurora"] .build-form-main {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(25, 22, 35, 0.2) !important;
  box-shadow: 0 12px 36px rgba(25, 22, 35, 0.09), inset 0 1px 0 #fff !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

/* Course brand icons — never gray in Aurora */
html[data-theme="aurora"] .course-logo,
html[data-theme="aurora"] .course-logo svg,
html[data-theme="aurora"] .course-logo svg *,
html[data-theme="aurora"] .path-logo,
html[data-theme="aurora"] .path-logo svg,
html[data-theme="aurora"] .path-logo svg *,
html[data-theme="aurora"] .course-view-logo,
html[data-theme="aurora"] .course-view-logo svg,
html[data-theme="aurora"] .course-view-logo svg * {
  filter: none !important;
  opacity: 1 !important;
  -webkit-filter: none !important;
}

/* Hero/learn wordmarks in Aurora: dark crisp, no pixelation filters beyond invert */
html[data-theme="aurora"] .learn-hero-wordmark {
  filter: brightness(0) saturate(100%) !important;
  opacity: 0.9 !important;
  image-rendering: auto !important;
}

/* ===== FINAL AURORA + LOADER HARD FIX ===== */
html[data-theme="aurora"] {
  --bg-deep: #f3f1eb !important;
  --bg-primary: #f7f5f0 !important;
  --bg-secondary: #f0ede6 !important;
  --bg-elevated: #ebe7e0 !important;
  --bg-card: rgba(255, 255, 255, 0.92) !important;
  --bg-glass: rgba(255, 255, 255, 0.85) !important;
  --border: rgba(28, 26, 36, 0.18) !important;
  --border-strong: rgba(28, 26, 36, 0.28) !important;
  --border-metal: rgba(40, 38, 55, 0.34) !important;
}
html[data-theme="aurora"] body {
  background: #f7f5f0 !important;
  background-color: #f7f5f0 !important;
}
html[data-theme="aurora"] .course-card,
html[data-theme="aurora"] .lesson-item,
html[data-theme="aurora"] .stat-card,
html[data-theme="aurora"] .path-node,
html[data-theme="aurora"] .build-path-card,
html[data-theme="aurora"] .build-cat-card,
html[data-theme="aurora"] .build-form-main {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(28, 26, 36, 0.24) !important;
  box-shadow: 0 12px 40px rgba(30, 25, 40, 0.1), inset 0 1px 0 #fff !important;
}
html[data-theme="aurora"] .course-logo,
html[data-theme="aurora"] .course-logo svg,
html[data-theme="aurora"] .course-view-logo,
html[data-theme="aurora"] .course-view-logo svg,
html[data-theme="aurora"] .path-logo svg {
  filter: none !important;
  opacity: 1 !important;
  -webkit-filter: none !important;
}
/* Prevent any parent grayscale */
html[data-theme="aurora"] .course-card {
  filter: none !important;
}

/* Build lanes — manual scroll + auto */
.build-lane.is-scroll-mode {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.build-lane.is-scroll-mode::-webkit-scrollbar { display: none; }
.build-lane.is-scroll-mode .build-lane-track {
  animation: none !important;
  transform: none !important;
  width: max-content;
}
.build-lanes {
  mask-image: none;
  -webkit-mask-image: none;
}
/* Selecting a card must not lock lanes */
.build-cat-card {
  touch-action: pan-x pan-y;
}


/* Build marquee — continuous, never paused */
.build-lane.is-marquee {
  overflow: hidden !important;
  cursor: grab;
  touch-action: pan-y;
}
.build-lane.is-marquee:active { cursor: grabbing; }
.build-lane.is-marquee .build-lane-track {
  animation: none !important;
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}
.build-lanes.is-paused .build-lane-track {
  animation-play-state: running !important;
}


/* LEARN WORDMARK ALIGN — desktop straight, mobile unchanged */
.learn-hero {
  text-align: center;
}
.learn-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.learn-hero-wordmark {
  display: block;
  width: auto !important;
  max-width: min(360px, 80vw) !important;
  height: auto !important;
  margin: 0 auto 16px !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  image-rendering: auto;
}
@media (min-width: 900px) {
  .learn-hero-wordmark {
    max-width: 420px !important;
  }
}

/* ============================================================
   VEXDYN UPGRADE — Prompt 1–4 foundation extensions
   Graphite / Silver / Pearl / Electric Blue
   ============================================================ */

html { color-scheme: dark; }

.statement-title {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.statement-light {
  display: block;
  color: var(--text-secondary);
  font-weight: 500;
}
.statement-bold {
  display: block;
  color: var(--pearl);
  font-weight: 800;
  background: linear-gradient(135deg, #F5F7FA 0%, #C7CBD1 45%, #f2f2f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Create Something */
.create-section {
  text-align: center;
  position: relative;
}
.create-section .section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
}
.create-glass {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 28px 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-glass);
  border: 1px solid var(--border-metal);
  backdrop-filter: blur(16px);
}

/* Ecosystem products */
.eco-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}
@media (min-width: 720px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .eco-grid { grid-template-columns: repeat(4, 1fr); }
}
.eco-product {
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.eco-product:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 202, 208, 0.35);
}
.eco-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.eco-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.eco-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.eco-cta {
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--highlight);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eco-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 28px 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.eco-flow span { color: var(--text-secondary); }
.eco-flow .arrow-flow { color: var(--accent); opacity: 0.7; }

/* NYVEN special */
.nyven-section {
  position: relative;
  overflow: hidden;
}
.nyven-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(8, 18, 28, 0.9), rgba(6, 12, 20, 0.85));
  border: 1px solid rgba(200, 202, 208, 0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(200, 202, 208, 0.08);
  text-align: center;
  position: relative;
}
.nyven-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.nyven-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #E8F4F8;
  margin-bottom: 10px;
}
.nyven-tagline {
  font-size: 1rem;
  color: rgba(200, 230, 240, 0.75);
  margin-bottom: 24px;
}
.nyven-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.nyven-dot {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.35;
  animation: nyvenTwinkle 4s ease-in-out infinite;
}
@keyframes nyvenTwinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.55; }
}

/* Future Vision */
.vision-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.vision-chip {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-metal);
  background: var(--bg-glass);
  color: var(--text-secondary);
}

/* Globe */
.globe-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}
.globe-wrap {
  position: relative;
  width: min(560px, 94vw);
  height: min(560px, 94vw);
  margin: 36px auto 0;
}
#vexdynGlobe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
.globe-stars {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}
.globe-star {
  position: absolute;
  width: 1.5px; height: 1.5px;
  background: #E3E7EC;
  border-radius: 50%;
  opacity: 0.35;
}
.globe-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Final CTA / Contact */
.final-cta-section {
  text-align: center;
  padding: 72px 20px;
}
.contact-cards {
  display: grid;
  gap: 16px;
  max-width: 640px;
  margin: 32px auto 0;
}
@media (min-width: 560px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-metal);
  transition: border-color 0.3s, transform 0.3s;
}
.contact-card:hover {
  border-color: rgba(200, 202, 208, 0.35);
  transform: translateY(-2px);
}
.contact-card.wa:hover { border-color: rgba(37, 211, 102, 0.45); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.contact-card.email .contact-icon {
  background: rgba(200, 202, 208, 0.12);
  color: var(--accent);
}
.contact-card.wa .contact-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}
.contact-card-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.contact-card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pearl);
  word-break: break-all;
}

/* Build type carousel (used on build page & home teaser) */
.build-types-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.build-type-card {
  flex: 0 0 auto;
  width: 140px;
  scroll-snap-align: start;
  padding: 18px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-metal);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s;
}
.build-type-card:hover,
.build-type-card.selected {
  border-color: rgba(200, 202, 208, 0.4);
  transform: translateY(-2px);
}
.build-type-card.selected {
  box-shadow: 0 0 0 1px rgba(200, 202, 208, 0.35);
}
.build-type-icon { font-size: 1.5rem; margin-bottom: 8px; }
.build-type-name { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; }
/* Form polish */
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-metal);
  background: rgba(8, 10, 13, 0.65);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(200, 202, 208, 0.45);
  box-shadow: 0 0 0 3px rgba(200, 202, 208, 0.10);
}
.phone-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.phone-code {
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-metal);
  background: rgba(8, 10, 13, 0.65);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--highlight);
}

/* Footer upgrade */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .tech-badge { animation: none !important; }
  .nyven-dot { animation: none !important; }
}


/* ============================================================
   Targeted visual upgrade — Website Creation + 3D layers
   Graphite / Silver only
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
}
.liquid-canvas { display: none !important; }
.hero-waves {
  z-index: 1;
}
.hero-geo {
  position: relative;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
}

/* Website Creation section */
.website-creation {
  position: relative;
}
.wc-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 8px;
}
.wc-section-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 19, 22, 0.85);
  border: 1px solid rgba(200, 202, 208, 0.28);
  box-shadow: inset 0 1px 0 rgba(242, 242, 240, 0.06), 0 8px 24px rgba(0,0,0,0.35);
}
.wc-section-icon svg {
  width: 24px;
  height: 24px;
  stroke: #c8cad0;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wc-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
@media (min-width: 600px) {
  .wc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .wc-grid { grid-template-columns: repeat(4, 1fr); }
}
.wc-card {
  background: rgba(18, 19, 22, 0.72);
  border: 1px solid rgba(200, 202, 208, 0.22);
  border-radius: 16px;
  padding: 24px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(242, 242, 240, 0.05);
  transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.wc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(242, 242, 240, 0.05) 0%, transparent 45%);
}
.wc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 202, 208, 0.4);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 24px rgba(200, 202, 208, 0.08);
}
.wc-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: rgba(12, 12, 14, 0.9);
  border: 1px solid rgba(200, 202, 208, 0.28);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wc-card:hover .wc-icon {
  border-color: rgba(242, 242, 240, 0.35);
  box-shadow: 0 0 16px rgba(200, 202, 208, 0.12);
}
.wc-icon svg {
  width: 20px;
  height: 20px;
  stroke: #c8cad0;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.wc-card:hover .wc-icon svg {
  stroke: #f2f2f0;
}
.wc-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f2f2f0;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.wc-card-desc {
  font-size: 0.88rem;
  color: #9a9da4;
  line-height: 1.55;
}

/* Globe Three.js canvas */
.globe-wrap {
  position: relative;
}
#vexdynGlobe,
#vexdynGlobe3d {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
  border-radius: 50%;
}
.globe-wrap canvas {
  pointer-events: none;
}

/* NYVEN panel — silver only (no cyan) */
.nyven-panel {
  border: 1px solid rgba(200, 202, 208, 0.22) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(242, 242, 240, 0.06) !important;
  background: linear-gradient(160deg, rgba(18, 19, 22, 0.92), rgba(10, 10, 12, 0.9)) !important;
}
.nyven-label {
  color: #c8cad0 !important;
}
.nyven-title {
  color: #f2f2f0 !important;
}
.nyven-tagline {
  color: rgba(200, 202, 208, 0.75) !important;
}
.nyven-dot {
  background: #c8cad0 !important;
}

.statement-bold {
  background: linear-gradient(135deg, #f2f2f0 0%, #c8cad0 50%, #9a9da4 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.contact-card.email .contact-icon {
  background: rgba(200, 202, 208, 0.12) !important;
  color: #c8cad0 !important;
}


/* Globe stage + annotation callouts */
.globe-stage {
  position: relative;
  width: min(720px, 100%);
  max-width: 100%;
  margin: 36px auto 0;
  padding: 0 8px;
  box-sizing: border-box;
}
.globe-stage .globe-wrap {
  width: min(520px, 88vw);
  height: min(520px, 88vw);
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: visible;
}
.globe-stage .globe-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  max-width: 100%;
}
.globe-anno {
  position: absolute;
  max-width: 180px;
  padding: 12px 14px;
  border: 1px dashed rgba(200, 202, 208, 0.35);
  border-radius: 10px;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 2;
}
.globe-anno-stat {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f2f2f0;
  margin-bottom: 4px;
}
.globe-anno-text {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #9a9da4;
}
.globe-anno-1 { top: 8%; left: 0; }
.globe-anno-2 { top: 42%; right: 0; }
.globe-anno-3 { bottom: 10%; left: 4%; }
@media (max-width: 700px) {
  .globe-anno {
    position: static;
    max-width: none;
    margin: 10px 0 0;
  }
  .globe-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
  }
}

/* globe-wrap mobile hard */
@media (max-width: 700px) {
  .globe-stage {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px !important;
    min-height: 0 !important;
  }
  .globe-stage .globe-wrap {
    width: min(100%, 340px) !important;
    height: min(100vw - 24px, 340px) !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #vexdynGlobe3d {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
  }
}


/* ============================================================
   HERO REFINEMENT — two-column + geometric silver lines
   (no waves, black + silver only)
   ============================================================ */

.hero-waves,
.hero-wave,
.hero-geo,
.liquid-canvas {
  display: none !important;
  animation: none !important;
  visibility: hidden !important;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 48px;
  background: transparent;
}

.hero-geo-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-geo-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-geo-lines path {
  stroke-linecap: square;
  stroke-linejoin: miter;
}
/* subtle traveling opacity on nodes */
.hero-geo-lines circle {
  animation: geoNodePulse 5.5s ease-in-out infinite;
}
.hero-geo-lines circle:nth-child(odd) { animation-delay: -1.8s; }
.hero-geo-lines circle:nth-child(3n) { animation-delay: -3.2s; }
@keyframes geoNodePulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  align-items: end;
}

/* Headline left + slightly lower */
.hero-col-headline {
  text-align: left;
  padding-top: 48px;
  padding-bottom: 4px;
  justify-self: start;
}

/* Wordmark right + slightly higher */
.hero-col-mark {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 56px;
  justify-self: end;
}

.hero-wordmark {
  width: min(100%, 400px);
  height: auto;
  display: block;
  margin: 0;
}

.hero-headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 22ch;
}
.hero-headline-light {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #c8cad0);
  line-height: 1.25;
}
.hero-headline-bold {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary, #f2f2f0);
  line-height: 1.2;
}

/* Introduction under hero — plain text, no card */
.vexdyn-intro {
  margin: 0 0 1.1em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary, #c8cad0);
  max-width: 42rem;
}
.vexdyn-intro:last-of-type {
  margin-bottom: 0;
}
.statement-inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.statement-section .hero-ctas {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-code-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-code-wrap .code-transform {
  text-align: center;
  max-width: 100%;
}

/* Laptop-friendly heights */
@media (min-width: 1024px) {
  .hero {
    padding: 64px 40px 56px;
    min-height: min(58vh, 520px);
  }
  .hero-wordmark { width: min(100%, 420px); }
  .hero-col-headline { padding-top: 56px; }
  .hero-col-mark { padding-bottom: 64px; }
}

@media (min-width: 1280px) {
  .hero-shell { max-width: 1120px; }
  .hero-grid { gap: 40px 64px; }
}

@media (max-width: 900px) {
  .hero {
    padding: 36px 20px 40px;
    min-height: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
    align-items: center;
  }
  /* Mobile order: VEXDYN first, then headline */
  .hero-col-mark {
    order: -1;
    justify-content: center;
    justify-self: center;
    padding-bottom: 0;
    padding-top: 0;
  }
  .hero-col-headline {
    text-align: center;
    padding-top: 0;
    justify-self: center;
  }
  .hero-wordmark {
    width: min(82%, 300px);
    margin: 0 auto;
  }
  .hero-headline {
    align-items: center;
    max-width: none;
  }
  .hero-headline-light {
    font-size: 1.2rem;
  }
  .hero-headline-bold {
    font-size: 1.4rem;
  }
  .hero-code-wrap {
    margin-top: 24px;
  }
  .hero-geo-lines {
    opacity: 0.38;
  }
  .hero-geo-svg {
    transform: scale(1.15);
    transform-origin: center top;
  }
  .statement-inner {
    text-align: left;
  }
  .statement-section .hero-ctas {
    justify-content: center;
  }
  .vexdyn-intro {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-geo-lines circle {
    animation: none !important;
  }
}


/* ============================================================
   FINAL HERO LAYOUT — diagonal desktop / stacked mobile
   ============================================================ */

.hero-waves,
.hero-wave,
.hero-geo,
.liquid-canvas {
  display: none !important;
  animation: none !important;
  visibility: hidden !important;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 40px;
  background: transparent;
}

.hero-geo-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-geo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

/* Desktop diagonal: wordmark upper-left, headline lower-right */
.hero-grid {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(220px, 32vh, 320px);
  gap: 24px;
}

.hero-col-mark {
  align-self: flex-start;
  display: flex;
  justify-content: flex-start;
  padding: 0;
}

.hero-wordmark {
  width: min(100%, 440px);
  height: auto;
  display: block;
  margin: 0;
}

.hero-col-headline {
  align-self: flex-end;
  text-align: right;
  margin-top: auto;
}

.hero-headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 18ch;
}
.hero-headline-light {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary, #c8cad0);
  line-height: 1.25;
}
.hero-headline-bold {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary, #f2f2f0);
  line-height: 1.2;
}

.hero-code-wrap {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  width: 100%;
  grid-column: 1 / -1;
}
.hero-code-wrap .code-transform {
  text-align: center;
}

/* Mobile-only headline section: hidden on desktop */
.hero-headline-mobile-section {
  display: none;
}

/* ABOUT intro */
.statement-inner {
  max-width: 42rem;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}
.statement-section .section-label {
  display: block;
  margin-bottom: 16px;
}
.vexdyn-intro {
  margin: 0 0 1.1em;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary, #c8cad0);
  max-width: 42rem;
  text-align: left;
}
.vexdyn-intro:last-of-type { margin-bottom: 0; }
.statement-section .hero-ctas {
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .hero {
    padding: 56px 40px 48px;
    min-height: min(56vh, 500px);
  }
  .hero-wordmark { width: min(100%, 460px); }
  .hero-col-headline { padding-top: 64px; }
  .hero-code-wrap { margin-top: 48px; }
}

@media (min-width: 1280px) {
  .hero-shell { max-width: 1160px; }
  .hero-wordmark { width: min(100%, 480px); }
}

/* Mobile: hero = wordmark + code only; headline in separate section */
@media (max-width: 900px) {
  .hero {
    padding: 40px 20px 36px;
    min-height: 0;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 0;
  }
  .hero-col-mark {
    align-self: center;
    justify-content: center;
    width: 100%;
  }
  .hero-wordmark {
    width: min(86%, 320px);
    margin: 0 auto;
  }
  /* hide desktop headline inside hero */
  .hero-headline-desktop {
    display: none !important;
  }
  .hero-code-wrap {
    margin-top: 28px;
  }
  .hero-geo-lines { opacity: 0.4; }

  /* show mobile headline section after hero */
  .hero-headline-mobile-section {
    display: block;
    padding-top: 24px;
    padding-bottom: 8px;
  }
  .hero-headline-mobile {
    margin: 0 auto;
    text-align: center;
    max-width: none;
    align-items: center;
  }
  .hero-headline-mobile .hero-headline-light {
    font-size: 1.25rem;
  }
  .hero-headline-mobile .hero-headline-bold {
    font-size: 1.45rem;
  }

  .statement-inner {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }
  .statement-section .hero-ctas {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-geo-lines circle { animation: none !important; }
}

@media (min-width: 901px) {
  .hero-headline-desktop {
    display: block !important;
  }
  .hero-headline-mobile-section {
    display: none !important;
  }
  .hero-col-mark {
    align-self: flex-start;
  }
  .hero-col-headline {
    align-self: flex-end;
    text-align: right;
  }
}


/* ============================================================
   Mobile hero: first viewport = logo + code only
   Headline left-aligned on scroll (desktop untouched)
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    min-height: calc(100svh - var(--header-h, 70px));
    min-height: calc(100vh - var(--header-h, 70px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 40px;
  }
  .hero-shell {
    width: 100%;
  }
  .hero-grid {
    min-height: 0 !important;
  }
  .hero-col-mark {
    align-self: center !important;
  }
  .hero-wordmark {
    width: min(88%, 300px) !important;
    margin: 0 auto !important;
  }
  .hero-headline-desktop {
    display: none !important;
  }
  .hero-code-wrap {
    margin-top: 28px !important;
  }

  /* Headline section after scroll — LEFT aligned (not centered) */
  .hero-headline-mobile-section {
    display: block !important;
    padding: 48px 20px 16px;
  }
  .hero-headline-mobile-section .reveal {
    max-width: 100%;
  }
  .hero-headline-mobile {
    text-align: left !important;
    align-items: flex-start !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .hero-headline-mobile .hero-headline-light,
  .hero-headline-mobile .hero-headline-bold {
    text-align: left !important;
  }

  .statement-section {
    padding-top: 24px;
  }
}

@media (min-width: 901px) {
  .hero-headline-mobile-section {
    display: none !important;
  }
  .hero-headline-desktop {
    display: block !important;
  }
}


/* ============================================================
   VEXDYN SYSTEM — entry + status lights (green indicator only)
   ============================================================ */
.vexdyn-layers {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  max-width: 640px;
}
.vexdyn-layers li {
  color: var(--text-secondary, #c8cad0);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 8px;
  padding-left: 0;
}
.vexdyn-layers strong {
  color: var(--text-primary, #f2f2f0);
  font-weight: 650;
}

.status-light {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 6px rgba(61, 214, 140, 0.85), 0 0 14px rgba(61, 214, 140, 0.35);
  vertical-align: middle;
  margin-right: 8px;
  animation: statusPulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(61, 214, 140, 0.85), 0 0 14px rgba(61, 214, 140, 0.35); }
  50% { opacity: 0.7; box-shadow: 0 0 4px rgba(61, 214, 140, 0.55), 0 0 10px rgba(61, 214, 140, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
  .status-light { animation: none; }
}

.sys-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #c8cad0);
  margin: 6px 0 12px;
}

.system-entry {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 6, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.system-entry[hidden] { display: none !important; }
.system-entry-inner {
  text-align: center;
}
.system-entry-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary, #f2f2f0);
  margin-bottom: 18px;
}
.system-entry-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--text-secondary, #c8cad0);
}
.system-entry-status .status-light {
  width: 10px;
  height: 10px;
}

.system-interface[hidden] { display: none !important; }
.system-interface {
  margin-top: 8px;
}
.system-interface-header {
  text-align: center;
  margin-bottom: 28px;
}
.system-online-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}
.system-online-badge {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.1em;
  font-weight: 650;
  color: var(--text-secondary, #c8cad0);
}


/* ============================================================
   Hero CTAs + Create/What two-column timeline
   ============================================================ */
.hero-cta-section {
  padding-top: 8px;
  padding-bottom: 8px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}
@media (max-width: 560px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
}

.create-what-section {
  background: #08090b;
}
.create-what-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1.15fr);
  gap: 40px 48px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.create-sticky-col {
  position: sticky;
  top: calc(var(--header-h, 70px) + 24px);
}
.create-card {
  background: rgba(12, 13, 16, 0.92);
  border: 1px solid rgba(200, 202, 208, 0.14);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.create-card .section-title {
  margin-bottom: 14px;
}
.create-card-text {
  margin: 0 0 12px;
  color: #9a9da4;
  font-size: 0.98rem;
  line-height: 1.7;
}
.create-card-text:last-child { margin-bottom: 0; }

.what-timeline-col .section-sub {
  color: #9a9da4;
}
.vexdyn-timeline {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 18px;
  margin-top: 28px;
}
.timeline-track {
  grid-row: 1 / -1;
  grid-column: 1;
  position: relative;
  width: 2px;
  margin: 8px auto;
  background: rgba(200, 202, 208, 0.15);
  border-radius: 2px;
  justify-self: center;
}
.timeline-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #5eead4 0%, #22d3ee 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.45);
  transition: height 0.15s linear;
}
.timeline-steps {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline-step {
  position: relative;
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.timeline-step.is-active {
  opacity: 1;
  transform: translateY(0);
}
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3d44;
  border: 2px solid rgba(200, 202, 208, 0.35);
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.timeline-step.is-active .timeline-dot {
  background: #22d3ee;
  border-color: #5eead4;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.75), 0 0 20px rgba(34, 211, 238, 0.35);
}
.timeline-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #7a7e88;
  margin-bottom: 4px;
  font-weight: 650;
}
.timeline-heading {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f2f0;
}
.timeline-desc {
  margin: 0;
  color: #9a9da4;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .create-what-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .create-sticky-col {
    position: static;
  }
}


/* ============================================================
   Dedicated VEXDYN SYSTEM page
   ============================================================ */
.system-page {
  background: #030305;
  min-height: 100vh;
}
.system-main {
  position: relative;
  padding-bottom: 64px;
}
.system-geo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background:
    linear-gradient(rgba(200,202,208,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,202,208,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.system-page-section {
  position: relative;
  z-index: 1;
  padding-top: 48px;
}
.system-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 920px;
  margin: 36px auto 0;
}
.system-card {
  background: rgba(12, 13, 16, 0.72);
  border: 1px solid rgba(200, 202, 208, 0.14);
  border-radius: 16px;
  padding: 26px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.system-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 202, 208, 0.32);
  background: rgba(18, 19, 22, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(242, 242, 240, 0.04);
}
.system-card-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f2f2f0;
}
.system-card-desc {
  margin: 0 0 20px;
  color: #9a9da4;
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}
.system-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: #c8cad0;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}
.system-card-cta .arrow {
  transition: transform 0.25s ease;
}
.system-card:hover .system-card-cta {
  color: #f2f2f0;
}
.system-card:hover .system-card-cta .arrow {
  transform: translateX(4px);
}
.system-card:hover .status-light {
  box-shadow: 0 0 8px rgba(61, 214, 140, 1), 0 0 18px rgba(61, 214, 140, 0.45);
}

@media (max-width: 700px) {
  .system-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }
  .system-card {
    min-height: 0;
    padding: 22px 20px;
  }
  .system-page-section {
    padding-top: 28px;
  }
}

/* Entry overlay on system page sits above everything until dismissed */
.system-page .system-entry {
  position: fixed;
  inset: 0;
  z-index: 3000;
     }
/* ========== VEXDYN LEARN — PROFILE (Step 4) ========== */
.learn-profile-section { position: relative; }
.learn-profile-state {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 28px;
  text-align: center;
}
.learn-profile-state:not(.v-card) {
  color: var(--text-muted);
}
.learn-profile-state-title,
.learn-profile-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.learn-profile-state p {
  max-width: 620px;
  margin: 10px auto 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.learn-profile-error {
  border-color: rgba(210, 150, 70, 0.3);
}
.learn-profile-identity {
  max-width: 820px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.learn-profile-avatar {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-metal);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 800;
}
.learn-profile-identity-copy h3 {
  margin: 3px 0 3px;
  font-size: 1.25rem;
}
.learn-profile-identity-copy p {
  margin: 2px 0;
  color: var(--text-secondary);
  font-size: 0.86rem;
}
.learn-profile-overview,
.learn-profile-panel {
  max-width: 820px;
  margin: 18px auto 0;
}
.learn-profile-section-head,
.learn-profile-panel-head,
.learn-profile-course-top,
.learn-profile-course-meta,
.learn-profile-overall-meta,
.learn-profile-completed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.learn-profile-section-head h3,
.learn-profile-panel-head h3,
.learn-profile-course-top h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}
.learn-profile-section-head > strong,
.learn-profile-course-top > strong {
  font-size: 1.3rem;
  white-space: nowrap;
}
.learn-profile-overall-bar,
.learn-profile-course-bar {
  height: 7px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.learn-profile-overall-bar > div,
.learn-profile-course-bar > div {
  height: 100%;
  border-radius: inherit;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}
.learn-profile-overall-bar > div {
  background: linear-gradient(90deg, var(--accent), var(--highlight));
}
.learn-profile-overall-meta,
.learn-profile-course-meta {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.learn-profile-courses {
  max-width: 820px;
  margin: 18px auto 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .learn-profile-courses { grid-template-columns: repeat(2, 1fr); }
}
.learn-profile-course {
  padding: 22px;
}
.learn-profile-course-top h3 { color: var(--text-primary); }
.learn-profile-continue-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.learn-profile-continue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.learn-profile-continue-card h4 {
  margin: 4px 0 3px;
  font-size: 0.98rem;
}
.learn-profile-continue-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.learn-profile-continue-card.is-complete { opacity: 0.78; }
.learn-profile-complete-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.learn-profile-completed { margin-top: 16px; }
.learn-profile-completed-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.learn-profile-completed-item:last-child { border-bottom: 0; }
.learn-profile-completed-item strong {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  white-space: nowrap;
}
.learn-profile-empty,
.learn-profile-placeholder {
  margin: 16px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.86rem;
}
@media (max-width: 560px) {
  .learn-profile-identity { align-items: flex-start; }
  .learn-profile-section-head,
  .learn-profile-course-top,
  .learn-profile-overall-meta,
  .learn-profile-course-meta,
  .learn-profile-continue-card,
  .learn-profile-completed-item { align-items: flex-start; }
  .learn-profile-continue-card { flex-direction: column; }
  .learn-profile-completed-item { flex-direction: column; gap: 5px; }
}




                    
  
