/* ================================================================
   GNTS Theme — Dual mode: Light articles + Dark landing
   ================================================================ */

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

:root {
  /* Article / default mode — light */
  --bg-deep: #f8f7f4;
  --bg-primary: #f8f7f4;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0eeea;
  --bg-surface: rgba(139, 92, 246, 0.05);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(139, 92, 246, 0.25);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a5a;
  --text-muted: #6b6b7b;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-muted: rgba(124, 58, 237, 0.1);
  --accent-bg: rgba(124, 58, 237, 0.05);
  --glow: rgba(124, 58, 237, 0.15);
  --glow-strong: rgba(124, 58, 237, 0.3);
  --green: #059669;
  --orange: #d97706;
  --red: #dc2626;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --purple-800: #6d28d9;
  --purple-900: #4c1d95;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Lora', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --nav-height: 64px;
  --max-width: 1200px;
  --article-width: 1060px;
}

/* Landing mode — dark override */
.landing {
  --bg-deep: #06030f;
  --bg-primary: #06030f;
  --bg-card: rgba(15, 10, 35, 0.55);
  --bg-card-hover: rgba(30, 20, 60, 0.6);
  --bg-secondary: #16161f;
  --border: rgba(124, 58, 237, 0.12);
  --border-hover: rgba(124, 58, 237, 0.35);
  --text-primary: #f0ecff;
  --text-secondary: #d0c9e6;
  --text-muted: #8b82a8;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

/* Viewport scaling is applied via JS in baseof.html */

/* Focus indicators (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.landing a:focus-visible,
.landing button:focus-visible {
  outline-color: #a78bfa;
}

body {
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.landing body, body.landing {
  font-family: var(--font-sans);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.landing .container {
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text-primary);
}

/* ====== HEADER ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(248, 247, 244, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background 0.3s;
}

.landing .header {
  background: rgba(6, 3, 15, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(124,58,237,0.15);
}

.header-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
}

/* Logo images: dark for light pages, light for landing */
.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.logo-img--light { display: none; }
.logo-img--dark { display: block; }

.landing .logo-img--light { display: block; }
.landing .logo-img--dark { display: none; }

/* Hide old text/icon if still in markup */
.logo-icon { display: none; }
.logo-text { display: none; }

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

.nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

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

.landing .nav a {
  color: #a59cc4;
}

.landing .nav a:hover {
  color: #f0ecff;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #4f46e5 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 4s ease-in-out infinite;
}

.header-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4), 0 0 50px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ====== MOBILE NAV ====== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(248, 247, 244, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-top: var(--nav-height);
}

.landing .mobile-nav {
  background: rgba(6, 3, 15, 0.95);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--accent);
}


/* ================================================================
   LANDING PAGE — V3 Dark cosmic theme
   ================================================================ */

/* ====== NEBULA BACKGROUND ====== */
.nebula-bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.nebula-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.35;
  animation: floatOrb 20s ease-in-out infinite alternate;
}
.nebula-bg .orb-1 { width: 700px; height: 700px; top: -15%; left: -10%; background: radial-gradient(circle, #6b21a8 0%, transparent 70%); animation-duration: 25s; }
.nebula-bg .orb-2 { width: 600px; height: 600px; top: 20%; right: -12%; background: radial-gradient(circle, #1e3a5f 0%, transparent 70%); animation-duration: 30s; animation-delay: -5s; }
.nebula-bg .orb-3 { width: 800px; height: 800px; top: 55%; left: 15%; background: radial-gradient(circle, #4c1d95 0%, transparent 70%); animation-duration: 22s; animation-delay: -10s; }
.nebula-bg .orb-4 { width: 500px; height: 500px; top: 75%; right: 5%; background: radial-gradient(circle, #0e7490 0%, transparent 70%); animation-duration: 28s; animation-delay: -3s; }
.nebula-bg .orb-5 { width: 450px; height: 450px; top: 10%; left: 45%; background: radial-gradient(circle, #7e22ce 0%, transparent 70%); animation-duration: 35s; animation-delay: -8s; }

/* ====== MILKY WAY BAND ====== */
.milky-way {
  position: absolute;
  top: 0; left: 0; width: 200%; height: 200%;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(180, 170, 220, 0.03) 40%,
    rgba(200, 190, 240, 0.05) 45%,
    rgba(220, 210, 255, 0.06) 50%,
    rgba(200, 190, 240, 0.05) 55%,
    rgba(180, 170, 220, 0.03) 60%,
    transparent 70%
  );
  transform: translate(-25%, -25%);
  pointer-events: none;
}

@keyframes floatOrb {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-20px, 25px) scale(0.95); }
  100% { transform: translate(15px, -15px) scale(1.04); }
}

/* ====== PARTICLE CANVAS ====== */
#nebula-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ====== AURORA DIVIDERS ====== */
.aurora-divider {
  position: relative; height: 2px; margin: 0 auto; max-width: 900px;
  background: linear-gradient(90deg, transparent, #7c3aed, #06b6d4, #7c3aed, transparent);
  opacity: 0.5;
}
.aurora-divider::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 26px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), rgba(6,182,212,0.15), rgba(124,58,237,0.2), transparent);
  filter: blur(8px);
}

/* ====== LANDING SECTIONS (shared) ====== */
.landing section {
  position: relative;
  padding: 120px 0;
  z-index: 1;
  overflow-x: clip;
}

/* ====== BUTTONS ====== */
.landing .btn-primary,
.landing .btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  font-size: 0.9rem; padding: 10px 24px; border-radius: 10px;
  transition: all 0.3s ease; cursor: pointer; border: none;
}
.landing .btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124,58,237,0.35), 0 0 40px rgba(124,58,237,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  text-decoration: none;
}
.landing .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
}
.landing .btn-outline {
  background: transparent; color: #c4b5fd;
  border: 1px solid rgba(124,58,237,0.4);
  box-shadow: 0 0 12px rgba(124,58,237,0.1);
  text-decoration: none;
}
.landing .btn-outline:hover {
  border-color: #7c3aed; color: #f0ecff;
  box-shadow: 0 0 24px rgba(124,58,237,0.25);
  transform: translateY(-2px);
}
.landing .btn-large { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }

/* ====== HERO ====== */
.landing .hero {
  padding-top: 180px; padding-bottom: 100px; text-align: center;
  position: relative; z-index: 1;
}
.landing .hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  max-width: 800px; margin: 0 auto 24px;
}
.landing .hero h1 .accent {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-shadow: 0 0 30px rgba(255,255,255,0.15);
}
.landing .hero .subtitle {
  font-size: 1.15rem; color: #a59cc4; max-width: 620px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

/* ====== SATURN ====== */
.saturn-wrapper {
  position: absolute;
  top: 50%;
  right: -160px;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  z-index: 0;
  pointer-events: none;
}

.saturn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, rgba(124,58,237,0.08) 35%, transparent 65%);
  filter: blur(50px);
}

.saturn-body {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 65% 35%,
    #6d5a8a 0%,
    #5b4578 8%,
    #4a3668 18%,
    #3d2a5c 30%,
    #2e1f4d 45%,
    #1e1240 65%,
    #0d0828 85%,
    #050312 100%
  );
  box-shadow:
    inset -50px -30px 80px rgba(0,0,0,0.7),
    inset 30px 20px 60px rgba(167,139,250,0.08),
    0 0 100px rgba(124,58,237,0.12);
  overflow: hidden;
  z-index: 3;
}

.saturn-bands {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  overflow: hidden;
}
.saturn-bands::before {
  content: '';
  position: absolute;
  top: 0; left: -10%; width: 120%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    rgba(167,139,250,0.04) 12px,
    transparent 14px,
    transparent 22px,
    rgba(200,180,240,0.06) 24px,
    transparent 27px,
    transparent 36px,
    rgba(140,120,200,0.05) 38px,
    transparent 40px,
    transparent 52px,
    rgba(180,160,220,0.04) 54px,
    transparent 56px,
    transparent 68px
  );
}

.saturn-rim {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 80% 25%,
    rgba(220,210,255,0.25) 0%,
    rgba(180,160,240,0.08) 15%,
    transparent 40%
  );
}

.saturn-shadow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(0,0,0,0.4) 0%,
    rgba(0,0,0,0.15) 30%,
    transparent 55%
  );
}

.saturn-rings-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 280px;
  transform: translate(-50%, -50%);
}

.saturn-rings-back { z-index: 1; }
.saturn-rings-front { z-index: 5; }

@keyframes saturnFloat {
  0%, 100% { transform: translateY(-50%) rotate(-2deg); }
  50% { transform: translateY(-52%) rotate(1deg); }
}

/* ====== STATS ROW ====== */
.stats-row {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.stat-card {
  background: rgba(15, 10, 35, 0.5);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 16px;
  padding: 28px 36px;
  text-align: center;
  min-width: 180px;
  transition: all 0.35s ease;
}
.stat-card:hover {
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 8px 40px rgba(124,58,237,0.12);
  transform: translateY(-4px);
}
.stat-value {
  font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700;
  background: linear-gradient(135deg, #c4b5fd, #7c3aed, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1; margin-bottom: 8px;
}
.stat-label { font-size: 0.88rem; color: #8b82a8; line-height: 1.4; }

/* ====== GLASS CARDS ====== */
.landing .glass {
  background: rgba(15, 10, 35, 0.55);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 16px;
  transition: all 0.35s ease;
}
.landing .glass:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 40px rgba(124,58,237,0.12), 0 0 60px rgba(6,182,212,0.05);
  transform: translateY(-4px);
}

/* ====== PROBLEM SECTION ====== */
.problem-section { position: relative; z-index: 1; padding: 80px 0; }
.problem-card {
  border-left: 3px solid #7c3aed;
  padding: 40px 48px;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(15, 10, 35, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 0 16px 16px 0;
  border-top: 1px solid rgba(124,58,237,0.1);
  border-right: 1px solid rgba(124,58,237,0.1);
  border-bottom: 1px solid rgba(124,58,237,0.1);
}
.problem-card h2 {
  font-size: 1.6rem; margin-bottom: 16px;
  text-shadow: 0 0 30px rgba(124,58,237,0.3);
}
.problem-card p { font-size: 1.05rem; color: #b0a7cc; line-height: 1.8; }
.problem-card p strong { color: #f0ecff; font-weight: 600; }

/* ====== SECTION TITLES (landing) ====== */
.landing .section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; margin-bottom: 12px;
  text-shadow: 0 0 40px rgba(124,58,237,0.25);
}
.landing .section-subtitle { text-align: center; color: #8b82a8; font-size: 1.05rem; margin-bottom: 56px; }

/* ====== SERVICES — VERTICAL TIMELINE ====== */
.services-section { position: relative; z-index: 1; }

.timeline-wrapper {
  position: relative;
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
  gap: 48px;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.35) 10%, rgba(124,58,237,0.35) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-col-left,
.timeline-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-col-right {
  margin-top: 160px;
}

.timeline-step {
  position: relative;
}

.timeline-content {
  padding: 28px;
  background: rgba(15, 10, 35, 0.55);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 16px;
  transition: all 0.35s ease;
}
.timeline-content:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 40px rgba(124,58,237,0.12), 0 0 60px rgba(6,182,212,0.05);
  transform: translateY(-4px);
}

.timeline-svg-inline {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
}
.timeline-svg-inline svg {
  width: 240px;
  height: auto;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #06b6d4;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.8;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #8b82a8;
  line-height: 1.7;
  margin-bottom: 12px;
}

.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  background: rgba(124,58,237,0.12); color: #a78bfa; border: 1px solid rgba(124,58,237,0.15);
  letter-spacing: 0.02em;
}

/* ====== SVG DRAW ANIMATIONS ====== */
@keyframes drawLoop {
  0%   { stroke-dashoffset: var(--dash-len); opacity: 0.3; }
  15%  { opacity: 1; }
  40%  { stroke-dashoffset: 0; opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { opacity: 0.3; }
  100% { stroke-dashoffset: var(--dash-len); opacity: 0.3; }
}

.anim-draw        { animation: drawLoop 4s ease infinite; }
.anim-draw-delay1 { animation: drawLoop 4s ease 0.3s infinite; }
.anim-draw-delay2 { animation: drawLoop 4s ease 0.6s infinite; }
.anim-draw-delay3 { animation: drawLoop 4s ease 0.9s infinite; }

/* ====== KNOWLEDGE BASE (landing) ====== */
.landing .knowledge-section { position: relative; z-index: 1; }
.landing .articles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px;
}
.landing .article-card {
  padding: 32px; cursor: pointer;
  display: block; text-decoration: none;
  color: inherit;
}
.landing .article-card .card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.category-pill {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(6,182,212,0.1); color: #22d3ee; border: 1px solid rgba(6,182,212,0.15);
}
.category-pill.methods { background: rgba(124,58,237,0.1); color: #a78bfa; border-color: rgba(124,58,237,0.15); }
.category-pill.strategy { background: rgba(244,114,182,0.1); color: #f472b6; border-color: rgba(244,114,182,0.15); }
.category-pill.advanced { background: rgba(251,191,36,0.1); color: #fbbf24; border-color: rgba(251,191,36,0.15); }
.read-time { font-size: 0.8rem; color: #6b6189; }
.landing .article-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.landing .article-card p { font-size: 0.9rem; color: #8b82a8; line-height: 1.6; }

/* ====== YOUTUBE INTERVIEWS (landing) ====== */
.youtube-section { position: relative; z-index: 1; }
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.video-card {
  flex: 0 0 300px;
  background: rgba(15, 10, 35, 0.55);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  border: 1px solid rgba(124,58,237,0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.video-card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 40px rgba(124,58,237,0.12);
  transform: translateY(-4px);
}
.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0618;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.video-card:hover .video-thumb img { opacity: 1; }
.landing .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(124,58,237,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(124,58,237,0.5);
  transition: all 0.3s;
}
.video-card:hover .play-icon {
  background: rgba(124,58,237,1);
  box-shadow: 0 0 36px rgba(124,58,237,0.7);
  transform: translate(-50%, -50%) scale(1.1);
}
.landing .play-icon svg { width: 22px; height: 22px; margin-left: 2px; }
.video-info {
  padding: 16px 20px;
}
.video-info h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #f0ecff;
  line-height: 1.3;
}
.video-channel {
  font-size: 0.8rem;
  color: #6b6189;
}

/* Carousel arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 10, 35, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(124,58,237,0.25);
  color: #c4b5fd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s;
}
.carousel-arrow:hover {
  border-color: #7c3aed;
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
  color: #f0ecff;
}
.carousel-arrow svg { width: 20px; height: 20px; }
.carousel-arrow.left { left: -8px; }
.carousel-arrow.right { right: -8px; }

/* ====== CTA SECTION (landing) ====== */
.landing .cta-section { position: relative; z-index: 1; text-align: center; padding: 100px 0 120px; }
.landing .cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 16px;
  text-shadow: 0 0 50px rgba(124,58,237,0.3);
}
.landing .cta-section .subtitle { color: #8b82a8; font-size: 1.1rem; margin-bottom: 40px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ====== SCROLL ANIMATIONS ====== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== FOOTER (landing override) ====== */
.landing .footer {
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

@keyframes btn-shine {
  0% { left: -60%; }
  30%, 100% { left: 120%; }
}


/* ================================================================
   LANDING MOBILE RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .landing .container { padding: 0 20px; }
  .landing section { padding: 80px 0; }
  .landing .hero { padding-top: 140px; padding-bottom: 60px; }
  .landing .hero .subtitle { font-size: 1rem; }
  .stats-row { gap: 16px; }
  .stat-card { padding: 20px 24px; min-width: 140px; }
  .stat-value { font-size: 2rem; }
  .problem-card { padding: 28px 24px; }
  .landing .articles-grid { grid-template-columns: 1fr; }

  /* Timeline mobile: single column stack */
  .timeline-wrapper {
    flex-direction: column;
    gap: 24px;
  }
  .timeline-wrapper::before { display: none; }
  .timeline-col-right { margin-top: 0; }
  .timeline-svg-inline svg { width: 160px; }

  .video-card { flex: 0 0 260px; }
  .carousel-arrow { display: none; }

  /* Saturn: hide on small screens */
  .saturn-wrapper { display: none; }
}
@media (max-width: 480px) {
  .stats-row { flex-direction: column; align-items: center; }
  .stat-card { width: 100%; max-width: 280px; }
}


/* ================================================================
   ARTICLE / SECTION PAGES — Light theme
   ================================================================ */

/* Page layout */
.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 32px 80px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 64px;
  align-items: start;
}

.page-full {
  max-width: 1060px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 48px) 32px 80px;
}

.main { min-width: 0; }

/* Sidebar TOC */
.sidebar-toc {
  position: sticky;
  top: calc(var(--nav-height) + 48px);
}

.sidebar-toc-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.sidebar-toc nav ul {
  list-style: none;
}

.sidebar-toc nav li {
  margin-bottom: 8px;
}

.sidebar-toc nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
  padding: 2px 0 2px 12px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-toc nav a:hover,
.sidebar-toc nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* Breadcrumbs */
.breadcrumbs {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  margin-bottom: 32px;
}

.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: 0.3; }

/* Article header */
.article-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-header .lead {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Content typography */
.content h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 56px 0 20px;
  letter-spacing: -0.01em;
}

.content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 14px;
}

.content p {
  font-size: 1.12rem;
  margin-bottom: 24px;
  line-height: 1.85;
}

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

.content ul, .content ol {
  margin: 0 0 24px 24px;
  font-size: 1.05rem;
}

.content li { margin-bottom: 10px; line-height: 1.7; }

.content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(168, 85, 247, 0.3);
}

.content a:hover {
  text-decoration-color: var(--accent);
}

/* Code */
.content code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: rgba(124, 58, 237, 0.07);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 4px;
}

.content pre {
  background: #1a1a2e;
  border: none;
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 28px 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #e0e0ea;
}

.content pre code {
  background: none;
  padding: 0;
  color: #e0e0ea;
}

/* Callout */
.callout {
  padding: 24px 28px;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--accent-bg), transparent 70%);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.callout-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.callout p { margin-bottom: 8px; font-size: 1rem; }
.callout p:last-child { margin-bottom: 0; }

.callout.warning {
  border-left-color: var(--orange);
  background: linear-gradient(90deg, rgba(217, 119, 6, 0.06), transparent 70%);
}

.callout.green {
  border-left-color: var(--green);
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.06), transparent 70%);
}

/* Blockquote */
.content blockquote {
  border-left: 3px solid var(--border-hover);
  padding: 16px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* Collapsible code blocks */
.content details {
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.content details summary {
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--bg-secondary);
  transition: background 0.2s;
  list-style: none;
}

.content details summary::-webkit-details-marker {
  display: none;
}

.content details summary::before {
  content: "▸ ";
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
  transition: transform 0.2s;
  display: inline-block;
}

.content details[open] summary::before {
  content: "▾ ";
}

.content details summary:hover {
  background: var(--border);
}

.content details > .highlight,
.content details > pre {
  margin: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* Formula block */
.formula {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
}

.formula .math {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.formula .desc {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: left;
}

.formula .desc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.formula .desc ul li {
  padding-left: 1em;
  text-indent: -1em;
  margin-bottom: 2px;
}

.formula .desc ul li::before {
  content: "—  ";
  color: var(--text-muted);
}

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content th, .content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.content th {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content td { color: var(--text-secondary); }
.content td strong { color: var(--text-primary); }
.content tr:hover td { background: var(--accent-bg); }

.content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

/* Table yes/no markers */
.td-yes {
  color: #16a34a;
  font-weight: 700;
  font-size: 1.1em;
  margin-right: 3px;
}
.td-no {
  color: #dc2626;
  font-weight: 700;
  font-size: 1.1em;
}


/* Article CTA */
.article-cta {
  padding: 40px;
  margin: 56px 0;
  background: linear-gradient(135deg, var(--accent-bg), transparent 60%);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.article-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-cta p {
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Article tags */
.article-tags {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Related articles */
.related-articles {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.related-articles h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-articles ul {
  list-style: none;
}

.related-articles li {
  margin-bottom: 10px;
}

.related-articles a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  text-decoration: none;
}

/* Section list - article cards */
.section-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.section-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  display: block;
  text-decoration: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  transition: all 0.2s;
}

.article-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}

.article-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.article-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 8px;
  line-height: 1.6;
}

.article-card time {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Category colors */
.article-tag--basics {
  background: rgba(6, 182, 212, 0.1);
  color: #0891b2;
  border: 1px solid rgba(6, 182, 212, 0.15);
}
.article-tag--models {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.article-tag--governance {
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.15);
}
.article-tag--knowledge {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.15);
}
.article-tag--cases {
  background: rgba(139, 92, 246, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.15);
}
.article-tag--validators {
  background: rgba(236, 72, 153, 0.08);
  color: #db2777;
  border: 1px solid rgba(236, 72, 153, 0.15);
}
.article-tag--supply {
  background: rgba(124, 58, 237, 0.08);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.15);
}
.article-tag--utility {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.15);
}
.article-tag--tools {
  background: rgba(217, 119, 6, 0.08);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.15);
}
.article-tag--primitives {
  background: rgba(236, 72, 153, 0.08);
  color: #db2777;
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.article-readtime {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ====== KNOWLEDGE HUB ====== */
.knowledge-section {
  margin-bottom: 3rem;
}

.knowledge-section h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.knowledge-section-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.knowledge-subsection-title {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 32px 0 16px;
  font-weight: 600;
}

/* ====== SHORTCODE: CTA BLOCK ====== */
.shortcode-cta {
  background: linear-gradient(135deg, var(--accent-bg), transparent 60%);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.shortcode-cta h3 {
  margin: 0 0 0.5rem;
}

.shortcode-cta p {
  margin: 0 0 1rem;
}

/* ====== SHORTCODE: Case Card ====== */
.gnts-case {
  padding: 24px 28px;
  margin: 32px 0;
  background: linear-gradient(90deg, var(--accent-bg), transparent 70%);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.gnts-case-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.gnts-case h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gnts-case p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.gnts-case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.gnts-case-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 100px;
  background: var(--accent-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.gnts-case-link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.gnts-case-link:hover { color: var(--accent-hover); }
.gnts-case-link svg { transition: transform 0.2s; }
.gnts-case-link:hover svg { transform: translateX(3px); }

/* ====== SHORTCODE: Code block ====== */
.gnts-code {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.gnts-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #151525;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gnts-code-lang {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a8aaa;
}

.gnts-code-actions { display: flex; gap: 8px; }

.gnts-code-btn {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  color: #8a8aaa;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 36px;
}

.gnts-code-btn:hover { color: #c084fc; border-color: rgba(192, 132, 252, 0.3); }
.gnts-code-btn.copied { color: #34d399; border-color: rgba(52, 211, 153, 0.3); }

.gnts-code pre {
  background: #1a1a2e;
  margin: 0;
  padding: 20px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #e0e0ea;
  border: none;
  border-radius: 0;
}

.gnts-code pre code { background: none; padding: 0; color: inherit; }

.gnts-code .kw { color: #c084fc; }
.gnts-code .fn { color: #60a5fa; }
.gnts-code .str { color: #34d399; }
.gnts-code .num { color: #fbbf24; }
.gnts-code .cmt { color: #6b7280; font-style: italic; }
.gnts-code .op { color: #f87171; }

/* ====== SHORTCODE: Calculator ====== */
.gnts-calc {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 36px 0;
  font-family: var(--font-heading);
}

.gnts-calc-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
}

.gnts-calc-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.gnts-calc-param label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gnts-calc-param .val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.gnts-calc-param input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
}

.gnts-calc-param input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.gnts-calc-param input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.3);
}

.gnts-calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gnts-calc-result {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.gnts-calc-result.ok {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.gnts-calc-result.warn {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.gnts-calc-result.bad {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.gnts-calc-result strong.ok { color: var(--green, #059669); }
.gnts-calc-result strong.warn { color: var(--orange, #d97706); }
.gnts-calc-result strong.bad { color: var(--red, #dc2626); }

.gnts-calc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.gnts-calc-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.gnts-calc-card-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.gnts-calc-card-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
}

.gnts-calc-warning {
  display: none;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--red, #dc2626);
  font-weight: 500;
}

@media (max-width: 640px) {
  .gnts-calc { padding: 20px 16px; }
  .gnts-calc-row { grid-template-columns: 1fr; }
  .gnts-calc-cards { grid-template-columns: repeat(2, 1fr) !important; }
  .gnts-calc-cards[style*="repeat(5"] { grid-template-columns: repeat(2, 1fr) !important; }
}

.gnts-calc-chart {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.gnts-calc-chart svg {
  display: block;
  width: 100%;
  height: 280px;
}

.gnts-calc-table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.gnts-calc-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.gnts-calc-table td {
  padding: 5px 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ====== EMBEDS ====== */
.youtube-embed, .gsheet-embed {
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
}

.youtube-embed iframe, .gsheet-embed iframe {
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* ====== FOOTER ====== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

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

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

/* ====== CUSTOM CHECKMARKS — 3 types ====== */

/* Type 1: gnts-check */
.gnts-check,
.gnts-check ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.gnts-check li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.gnts-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Type 2: gnts-check-curve */
.gnts-check-curve,
.gnts-check-curve ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.gnts-check-curve li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.gnts-check-curve li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: auto;
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-600);
  line-height: 1.7;
}

/* Type 3: gnts-check-step */
.gnts-check-step,
.gnts-check-step ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  counter-reset: gnts-step;
}

.gnts-check-step li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 16px;
  line-height: 1.7;
  font-size: 1.05rem;
  counter-increment: gnts-step;
}

.gnts-check-step li::before {
  content: counter(gnts-step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Connecting line between steps */
.gnts-check-step li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 30px;
  width: 2px;
  bottom: -12px;
  background: linear-gradient(to bottom, var(--purple-600), transparent);
  opacity: 0.3;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .interview-card { flex: 0 0 calc(50% - 8px); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .header .header-cta { display: none; }
  .burger { display: flex; }

  /* Article layout */
  .page {
    grid-template-columns: 1fr;
    gap: 0;
    padding: calc(var(--nav-height) + 24px) 20px 60px;
  }

  .sidebar-toc { display: none; }

  .page-full {
    padding: calc(var(--nav-height) + 24px) 20px 60px;
  }

  .article-header h1 {
    font-size: 1.8rem;
  }

  .content h2 { font-size: 1.3rem; margin: 40px 0 16px; }
  .content p { font-size: 1rem; }

  .article-list {
    grid-template-columns: 1fr;
  }

  /* Tags mobile */
  .article-tag {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  .article-label {
    font-size: 0.72rem;
  }

  .tag {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-col { align-items: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ====== TABLET: collapsible TOC ====== */
@media (min-width: 769px) and (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sidebar-toc {
    position: relative;
    top: 0;
    order: -1;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 32px;
    max-height: 44px;
    overflow: hidden;
    cursor: pointer;
    transition: max-height 0.3s ease;
  }

  .sidebar-toc.toc-open {
    max-height: 600px;
  }

  .sidebar-toc-title::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: 8px;
    transition: transform 0.3s;
  }

  .sidebar-toc.toc-open .sidebar-toc-title::after {
    transform: rotate(180deg);
  }
}

/* ====== MOBILE: calculator grids ====== */
@media (max-width: 600px) {
  .gnts-calc [style*="grid-template-columns: 1fr 1fr"],
  .gnts-calc [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .gnts-calc [style*="repeat(3,1fr)"],
  .gnts-calc [style*="repeat(3, 1fr)"],
  .gnts-calc [style*="1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* ====== CHECKLIST WIDGET ====== */
.checklist-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin: 36px 0;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checklist-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.checklist-progress-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.checklist-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 28px;
  overflow: hidden;
}

.checklist-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s;
}
