/* ================================================================
   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: #8a8a9a;
  --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;
}

/* Landing mode — dark override */
.landing {
  --bg-deep: #0b0a14;
  --bg-primary: #110f1f;
  --bg-card: #1a1535;
  --bg-card-hover: #221c4a;
  --bg-secondary: #16161f;
  --border: rgba(139, 92, 246, 0.18);
  --border-hover: rgba(139, 92, 246, 0.35);
  --text-primary: #f5f5fa;
  --text-secondary: #b8b3d0;
  --text-muted: #7d78a0;
  --font-heading: 'Inter', -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);
}

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

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

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(7, 6, 14, 0.85);
}

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

.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-muted);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

.header-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 30px var(--glow);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.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: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.landing .mobile-nav {
  background: rgba(7, 6, 14, 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 — Dark theme sections
   ================================================================ */

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 90%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-planet {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(192, 132, 252, 0.12) 0%,
    rgba(124, 58, 237, 0.06) 40%,
    rgba(76, 29, 149, 0.03) 70%,
    transparent 100%);
  box-shadow:
    inset -40px -40px 80px rgba(0, 0, 0, 0.3),
    0 0 120px rgba(124, 58, 237, 0.08);
  pointer-events: none;
}

.hero-planet::after {
  content: '';
  position: absolute;
  top: -20%;
  left: -30%;
  right: -30%;
  bottom: -20%;
  border: 1px solid rgba(124, 58, 237, 0.06);
  border-radius: 50%;
  transform: rotate(-15deg);
}

#stars-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--purple-400);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--purple-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--purple-400), var(--purple-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  background-size: 200% 200%;
  animation: btn-shimmer 3s ease infinite;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

@keyframes btn-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--glow-strong);
  color: #fff;
}

.btn-primary:hover::after {
  animation: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--purple-400);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: var(--purple-500);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-400), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ====== LANDING SECTIONS ====== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--purple-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* Problem section */
.problem {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-header {
  text-align: center;
  margin-bottom: 60px;
}

.problem-header .section-subtitle {
  margin: 0 auto;
}

.problem-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.problem-stat .big-number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.problem-stat .big-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.4;
}

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s;
}

.problem-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.problem-conclusion {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple-700), var(--purple-500));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.service-illustration {
  height: 120px;
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-illustration svg {
  width: 100%;
  height: 100%;
}

.service-card-wide {
  grid-column: 1 / -1;
}

.service-card-wide .service-illustration {
  height: 100px;
}

/* SVG draw-on animations */
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes dot-appear {
  to { opacity: 0.8; }
}

.anim-draw,
.anim-draw-delay1,
.anim-draw-delay2,
.anim-draw-delay3,
.anim-dot-delay2,
.anim-dot-delay3 {
  animation: none;
}

.in-view .anim-draw { animation: draw-line 2s ease-out forwards; }
.in-view .anim-draw-delay1 { animation: draw-line 2s 0.3s ease-out forwards; }
.in-view .anim-draw-delay2 { animation: draw-line 2s 0.6s ease-out forwards; }
.in-view .anim-draw-delay3 { animation: draw-line 2s 0.9s ease-out forwards; }
.in-view .anim-dot-delay2 { animation: dot-appear 0.5s 1.5s ease-out forwards; }
.in-view .anim-dot-delay3 { animation: dot-appear 0.5s 2s ease-out forwards; }

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple-400);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* Why Us */
.why-us {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.why-card {
  text-align: center;
  padding: 40px 24px;
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border);
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Cases */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.case-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-400);
  margin-bottom: 12px;
}

.case-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-mechanics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-mechanic {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* CTA Section (landing) */
.cta-section {
  padding: 100px 0;
}

.cta-block {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(76, 29, 149, 0.08) 100%);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-block h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-block .section-subtitle {
  margin: 0 auto 40px;
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  position: relative;
}

.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
}

.cta-contacts a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.cta-contacts a:hover {
  color: var(--purple-400);
}

/* Interviews carousel */
.interviews {
  padding: 80px 0;
}

.interviews-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.interviews-header .section-title { margin-bottom: 0; }

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.carousel-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.interview-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.interview-track::-webkit-scrollbar { display: none; }

.interview-card {
  flex: 0 0 calc(33.333% - 11px);
  scroll-snap-align: start;
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.interview-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.interview-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.interview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.interview-card:hover .play-icon {
  opacity: 1;
}

.interview-info {
  padding: 12px 16px;
}

.interview-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--text-primary);
}

.interview-channel {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================================================================
   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, 2.8rem);
  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.55rem;
  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.08rem;
  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);
}

/* 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;
}

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: var(--font-heading);
  font-size: 0.88rem;
}

.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.72rem;
  font-weight: 500;
  padding: 4px 12px;
  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: flex;
  flex-direction: column;
  gap: 16px;
}

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

/* ====== 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;
}

/* ====== 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.7rem;
  font-weight: 500;
  color: #8a8aaa;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

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

.landing .footer {
  background: var(--bg-deep);
}

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

.footer-left .logo-text {
  font-size: 0.9rem;
}

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

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

.footer-nav 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);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* Type 1: gnts-check — фирменный ромб (bonding curve shape) */
.gnts-check {
  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 — растущая кривая (мини bonding curve) */
.gnts-check-curve {
  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: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 20px;
  height: 16px;
  background: none;
  border-bottom: 2.5px solid var(--purple-600);
  border-right: 2.5px solid var(--purple-600);
  border-radius: 0 0 12px 0;
  transform: scaleX(0.8);
}

.gnts-check-curve li::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 3px;
  width: 5px;
  height: 5px;
  background: var(--purple-500);
  border-radius: 50%;
}

/* Type 3: gnts-check-step — нумерованные шаги с акцентной линией */
.gnts-check-step {
  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) {
  .hero-planet { width: 400px; height: 400px; right: -10%; }
  .problem-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .interview-card { flex: 0 0 calc(50% - 8px); }
}

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

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero-planet { display: none; }
  .hero-stats { gap: 24px; }
  .hero-stat .number { font-size: 1.4rem; }

  .section { padding: 60px 0; }

  .problem-stat { flex-direction: column; text-align: center; }
  .problem-stat .big-number { font-size: 3rem; }

  .interview-card { flex: 0 0 calc(80% - 8px); }
  .cta-block { padding: 48px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* 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; }
}

/* ====== 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;
}
