/**
 * Lensvo Landing Shell & Interactive 3D Simulator Stylesheet
 * Aesthetic: nikitin.school standard (Pure Dark #000000 + Crisp White + Electric Violet #a855f7)
 * Pure CSS3, hardware-accelerated animations, responsive from 360px
 */

:root {
  color-scheme: dark;

  /* Theme Palette */
  --bg: #090b0e;
  --bg-subtle: #0d1015;
  --panel: #11151c;
  --panel-elevated: #161c26;
  --panel-glass: rgba(17, 21, 28, 0.72);
  --panel-glass-card: rgba(19, 24, 32, 0.65);

  /* Lines & Borders */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-glass: rgba(255, 255, 255, 0.1);

  /* Optical & Brand Accent: Electric Violet (#a855f7 - nikitin.school standard) */
  --violet: #a855f7;
    --violet-bright: #c084fc;
    --violet-deep: #9333ea;
    --violet-glow: rgba(168, 85, 247, 0.4);
    --violet-glow-strong: rgba(168, 85, 247, 0.65);
    --violet-glow-soft: rgba(168, 85, 247, 0.12);
    --violet-border: rgba(168, 85, 247, 0.35);
  
  /* Secondary Accents */
  --blue: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.3);
  --purple: #a855f7;
  --danger: #ef4444;

  /* Typography Colors */
  --text: #f8fafc;
  --text-bright: #ffffff;
  --muted: #94a3b8;
  --dim: #64748b;

  /* Primary Button: Pure White Pill (nikitin.school standard) */
  --accent: #ffffff;
  --accent-hover: #e2e8f0;
  --accent-text: #000000;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "JetBrains Mono", Menlo, monospace;

  /* Transitions & Radii */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   CSS Keyframe Animations & Micro-interactions
   ========================================================================== */
@keyframes violetBreath {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.3);
  }
  50% {
    box-shadow: 0 6px 30px rgba(168, 85, 247, 0.6), 0 0 16px rgba(168, 85, 247, 0.4);
  }
}

@keyframes ambientGlowPulse {
  0%, 100% {
    opacity: 0.16;
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    opacity: 0.26;
    transform: translate(-50%, 0) scale(1.06);
  }
}

@keyframes reticleRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Shared Typography & Buttons
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  color: var(--violet);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 8px 0 12px;
  color: var(--text-bright);
}

.section-intro {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}

/* Primary Button: Pure White Pill (nikitin.school standard) */
.primary-button {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.primary-button:hover {
  background: #e2e8f0;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.primary-button:active {
  transform: translateY(0) scale(0.98);
}

/* Breathing animation for hero CTA */
.primary-button.hero-cta {
  animation: violetBreath 3.5s infinite ease-in-out;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 48px;
  min-width: 44px;
  backdrop-filter: blur(8px);
  transition: background 0.2s var(--ease-spring), border-color 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
  cursor: pointer;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.secondary-button:active {
  transform: translateY(0);
}

/* ==========================================================================
   Site Header (Glassmorphic Minimalist)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 11, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  height: 72px;
  transition: border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-bright);
}

.brand-symbol {
  color: #c084fc;
  font-size: 1.6rem;
  line-height: 1;
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
  transition: transform 0.3s var(--ease-spring);
}

.brand-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #c084fc;
  letter-spacing: -0.01em;
  opacity: 0.9;
}

.brand:hover .brand-symbol {
  transform: rotate(90deg);
}

.brand-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dim);
  border-left: 1px solid var(--line-strong);
  padding-left: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

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

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--violet);
  transition: width 0.25s var(--ease-spring);
}

.nav-links a:hover::after {
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-selector select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text);
  min-height: 38px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.lang-selector select:hover {
  border-color: var(--violet);
}

.header-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-strong);
  color: #ffffff;
  transition: all 0.2s ease;
}

.header-tg-btn:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: #a855f7;
  color: #c084fc;
  transform: translateY(-1px);
}

.header-cabinet-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cabinet-link:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.header-cta {
  padding: 9px 20px;
  font-size: 0.88rem;
  min-height: 38px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 580px) {
  .header-cabinet-link {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .header-controls {
    gap: 8px;
  }
  .header-cta {
    padding: 8px 14px;
    font-size: 0.82rem;
    min-height: 44px;
  }
  .brand,
  .header-tg-btn,
  .lang-selector select {
    min-height: 44px;
  }
  .header-tg-btn {
    display: none;
  }
}

/* ==========================================================================
   Hero Section (MasterClass / Apple Cinematic Chiaroscuro)
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 88px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: min(1000px, 100vw);
  height: 520px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(168, 85, 247, 0.16) 0%, rgba(9, 11, 14, 0) 75%);
  pointer-events: none;
  z-index: 0;
  animation: ambientGlowPulse 6s infinite ease-in-out;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.7rem, 6.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 16px 0 20px;
  white-space: pre-line;
  color: var(--text-bright);
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 36px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.badge {
  font-size: 0.74rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.badge:hover {
  border-color: var(--violet);
  background: rgba(168, 85, 247, 0.06);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Academy Multi-Course Catalog Section
   ========================================================================== */
.courses-section {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 1100px) {
  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}

.course-card {
  background: #0f131a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
  position: relative;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px var(--violet);
}

.course-card-featured {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 10px 32px rgba(168, 85, 247, 0.12);
}

.course-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.course-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-spring);
}

.course-card:hover .course-cover {
  transform: scale(1.06);
}

.course-status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.badge-active {
  background: var(--violet);
  color: #08090b;
  box-shadow: 0 2px 10px var(--violet);
}

.badge-upcoming {
  background: rgba(9, 11, 14, 0.85);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.course-card-body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 20px;
  flex-grow: 1;
}

.course-card-actions {
  margin-top: auto;
}

.course-cta-btn {
  width: 100%;
  text-align: center;
  padding: 10px 18px;
  font-size: 0.88rem;
  min-height: 42px;
}

/* ==========================================================================
   Interactive 3D Stand (#a1-demo) — Leica & Teenage Engineering Hardware
   ========================================================================== */
.demo-section {
  padding: 64px 0 84px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 10%, rgba(20, 26, 36, 0.4) 0%, transparent 60%);
}

.demo-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.demo-stand {
  max-width: 1040px;
  margin: 0 auto;
  background: #0c0f14;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
}

.demo-viewports {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.stage-3d {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vh, 620px);
  min-height: 380px;
  background: #000000;
  overflow: hidden;
}

#portrait-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  cursor: grab;
}

#portrait-canvas:active {
  cursor: grabbing;
}

/* Signature Swiss/Leica Optical Protractor Overlay */
.optical-protractor-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.protractor-svg {
  width: min(340px, 78%);
  height: auto;
  aspect-ratio: 1 / 1;
  overflow: visible;
}

.protractor-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}

.protractor-tick {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
}

.protractor-deg {
  fill: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
  dominant-baseline: central;
}

.protractor-deg-active {
  fill: var(--violet);
  font-weight: 700;
}

#protractor-vector {
  transform-origin: 150px 150px;
  transform-box: view-box;
  transition: transform 0.5s var(--ease-spring);
}

.protractor-beam {
  stroke: var(--violet);
  stroke-width: 1.8;
  stroke-dasharray: 4 3;
  filter: drop-shadow(0 0 4px var(--violet));
}

.protractor-arrowhead {
  fill: var(--violet);
  filter: drop-shadow(0 0 8px var(--violet));
}

/* Vertical Elevation Gauge */
.elevation-gauge {
  position: absolute;
  top: 72px;
  bottom: 72px;
  right: 18px;
  width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.gauge-track {
  flex-grow: 1;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 8px 0;
  position: relative;
}

.gauge-pip {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}

/* Stage Top HUD */
.stage-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--violet);
  text-transform: uppercase;
  font-family: var(--font-mono);
  pointer-events: none;
  z-index: 5;
  background: rgba(9, 11, 14, 0.75);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}

.stage-gesture-hint {
  position: absolute;
  top: 48px;
  left: 18px;
  margin: 0;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--dim);
  pointer-events: none;
  z-index: 5;
}

.stage-series-bar {
  position: absolute;
  top: 16px;
  right: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.stage-series-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.stage-azimuth-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--violet);
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--violet);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Zoom Tools */
.stage-nav-tools {
  position: absolute;
  bottom: 60px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 5;
}

.stage-nav-tools button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(17, 21, 28, 0.75);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-spring);
}

.stage-nav-tools button:hover {
  border-color: var(--line-strong);
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.1);
}

/* View Mode Toggles (Wide / Close) */
.stage-view-toggles {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(transparent, rgba(9, 11, 14, 0.9) 50%);
  z-index: 5;
}

.stage-view-toggles button {
  min-height: 36px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease-spring);
}

.stage-view-toggles button:hover {
  border-color: var(--line-strong);
  color: var(--text-bright);
}

.stage-view-toggles button[aria-pressed="true"] {
  background: #ffffff;
  color: #08090b;
  border-color: #ffffff;
  font-weight: 700;
}

.stage-view-toggles span {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: var(--dim);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.stage-fallback-notice, .stage-loading-notice {
  position: absolute;
  inset: 20px;
  background: rgba(14, 18, 24, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.95rem;
  z-index: 10;
}

/* Fallback Diagram Styling */
.diagram-sidebar {
  margin-top: 18px;
  max-width: 320px;
  background: #141820;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.diagram-sidebar summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.diagram-sidebar svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Tactical Mode Control Bar */
.demo-controls-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 24px 20px 0;
  background: transparent;
}

.demo-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-main);
  min-height: 44px;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.demo-mode-btn::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.demo-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.demo-mode-btn[aria-pressed="true"] {
  background: var(--violet);
  color: #08090b;
  border-color: var(--violet);
  font-weight: 800;
  box-shadow: 0 4px 24px var(--violet);
  transform: translateY(-1px);
}

.demo-mode-btn[aria-pressed="true"]::before {
  background: #08090b;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

/* Concise Status Badge */
.demo-footer-info {
  padding: 18px 20px 28px;
  display: flex;
  justify-content: center;
}

.live-description {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.03em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  margin: 0;
  text-align: center;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Before / After Split Comparison Slider (3:4 Reels Vertical)
   ========================================================================== */
.comparison-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 18, 24, 0.5) 0%, rgba(9, 11, 14, 1) 100%);
}

.comparison-widget {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3 / 4;
  height: auto;
  max-height: 80vh;
  margin: 40px auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  background: #000;
}

.comparison-widget.comparison-wide {
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  max-height: 620px;
  border-radius: 24px;
}

.comparison-img-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.comparison-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.comparison-after {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  transition: none;
}

.comparison-badge {
  position: absolute;
  bottom: 20px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5;
  pointer-events: none;
}

.badge-before {
  left: 18px;
  background: rgba(22, 14, 14, 0.88);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.badge-after {
  right: 18px;
  background: rgba(12, 22, 28, 0.88);
  color: var(--violet);
  border: 1px solid var(--violet);
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.9), 0 0 4px #ffffff;
}

.handle-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(9, 11, 14, 0.88);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.7), 0 0 12px var(--violet);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: transform 0.18s var(--ease-spring), border-color 0.18s ease;
}

.comparison-widget:hover .handle-thumb,
.comparison-widget.is-dragging .handle-thumb {
  transform: scale(1.18);
  border-color: var(--violet);
  color: var(--violet);
}

@media (max-width: 640px) {
  .comparison-widget:not(.comparison-wide) {
    max-width: 320px;
  }
}

/* ==========================================================================
   Real-World Creator Use Cases (3 Glass Cards)
   ========================================================================== */
.use-cases-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 20%, rgba(24, 30, 42, 0.35) 0%, transparent 60%);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

@media (max-width: 960px) {
  .use-cases-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.use-case-card {
  background: var(--panel-glass-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-glass);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease-spring), transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.use-case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.use-case-card:hover {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px var(--violet);
}

.use-case-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.3s var(--ease-spring);
}

.use-case-card:hover .use-case-icon {
  transform: scale(1.08);
}

.use-case-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.use-case-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Visual Syllabus (8 Modular Blueprint Cards)
   ========================================================================== */
.syllabus-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.syllabus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

@media (max-width: 1100px) {
  .syllabus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .syllabus-grid {
    grid-template-columns: 1fr;
  }
}

.syllabus-card {
  background: #0f131a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease-spring), transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
  position: relative;
}

.syllabus-card:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.syllabus-card.is-active {
  border-color: rgba(168, 85, 247, 0.65);
  background: #121722;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.12);
}

.syllabus-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.syllabus-card-num {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.02em;
}

.syllabus-param-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.syllabus-diagram-box {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #090b0e;
}

.syllabus-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.syllabus-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Early Access (Waitlist Capsule Form)
   ========================================================================== */
.waitlist-section {
  padding: 84px 0;
  border-bottom: 1px solid var(--line);
}

.waitlist-card {
  max-width: 680px;
  margin: 0 auto;
  background: radial-gradient(circle at 50% 0%, #171c26 0%, #0c0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-xl);
  padding: 52px 36px;
  text-align: center;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.streamlined-waitlist-form {
  max-width: 520px;
  margin: 0 auto;
}

.streamlined-input-group {
  display: flex;
  align-items: center;
  background: #11151c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  transition: border-color 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
}

.streamlined-input-group:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.streamlined-input-group .form-input {
  background: transparent;
  border: none;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  color: #ffffff;
  font-size: 0.95rem;
  flex: 1;
  padding: 8px 6px;
  min-height: unset;
}

.streamlined-input-group .form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.streamlined-input-group .form-submit-btn {
  white-space: nowrap;
  background: var(--violet);
  color: #08090b;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--violet);
  transition: all 0.2s var(--ease-spring);
}

.streamlined-input-group .form-submit-btn:hover {
  background: var(--violet);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--violet);
}

@media (max-width: 560px) {
  .streamlined-input-group {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 12px;
  }
  .streamlined-input-group .form-input {
    width: 100%;
    text-align: center;
  }
  .streamlined-input-group .form-submit-btn {
    width: 100%;
  }
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--dim);
  text-align: center;
  margin-top: 18px;
  line-height: 1.4;
}

.form-status {
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: #07080b;
}

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

.pricing-honesty-notice {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--violet);
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid var(--violet);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--dim);
  line-height: 1.5;
}

/* ==========================================================================
   Pricing Section & Member Cabinet Links
   ========================================================================== */
.pricing-section {
  padding: 60px 0 40px;
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

.pricing-card {
  background: #0d1015;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.08) 0%, #111419 40%);
  border-color: var(--violet);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.12);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--violet);
  color: #08090b;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
}

.pricing-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 12px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--muted);
}

.pricing-card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 24px;
  flex-grow: 1;
}

.pricing-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}


/* ==========================================================================
   Nikitin.school-grade Visual Academy Components
   ========================================================================== */

/* Brand & Header enhancements */
.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-sub {
  color: var(--violet);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.header-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
  transition: all 0.2s ease;
}
.header-tg-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* ==========================================================================
   Showcase Hero & Stack (Nikitin.school Standard)
   ========================================================================== */
.showcase-section {
  padding: 32px 0 20px;
  position: relative;
}

.showcase-header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 48px;
}

.showcase-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #ffffff;
  margin: 16px 0 18px;
  text-transform: uppercase;
}

.showcase-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

.showcase-stack {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Showcase Cards */
.showcase-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d1015;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.showcase-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 32px rgba(168, 85, 247, 0.1);
}

.showcase-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.showcase-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-spring);
}

.showcase-card:hover .showcase-bg-img {
  transform: scale(1.03);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.94) 0%, rgba(5, 7, 10, 0.82) 42%, rgba(5, 7, 10, 0.35) 100%);
}

.showcase-card-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 780px;
}

.showcase-featured {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.course-pill-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.course-pill-tag.tag-new {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

.course-pill-tag.tag-featured {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #c084fc;
}

.course-pill-tag.tag-sim {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.course-pill-tag.tag-lessons {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
}

.course-pill-tag.tag-soon {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.showcase-course-title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.1;
}

.showcase-course-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: #e2e8f0;
  margin: 0 0 16px;
}

.showcase-course-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 24px;
}

.showcase-equipment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.eq-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* Secondary Grid for Compact Cards */
.showcase-grid-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card-compact {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-compact .showcase-overlay {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.3) 0%, rgba(5, 7, 10, 0.9) 65%, rgba(5, 7, 10, 0.98) 100%);
}

.card-compact .showcase-card-content {
  padding: 40px 32px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.card-compact .showcase-tags {
  margin-bottom: 14px;
}

.card-compact .showcase-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.2;
}

.card-compact .showcase-card-sub {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 24px;
  min-height: 46px; /* Exactly 2 lines to lock tags and titles on the same baseline */
}

.card-compact .showcase-actions {
  margin-top: auto;
}

/* Pill Buttons (Nikitin.school Standard) */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  text-decoration: none;
  border: 1px solid transparent;
}

.pill-btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.pill-btn-primary:hover {
  background: #e2e8f0;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.4);
}

.pill-btn-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.pill-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.pill-btn-accent {
  background: var(--violet);
  color: #08090b;
  border-color: var(--violet);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.pill-btn-accent:hover {
  background: var(--violet);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.5);
}

.pill-btn-secondary {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.pill-btn-secondary:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: #38bdf8;
  transform: translateY(-2px);
}

/* ==========================================================================
   Community & Club Section
   ========================================================================== */
.club-section {
  padding: 16px 0 30px;
}

.club-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 32px rgba(168, 85, 247, 0.08);
  min-height: 480px;
  display: flex;
  align-items: center;
}

.club-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.club-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.club-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 14, 0.95) 0%, rgba(8, 10, 14, 0.88) 45%, rgba(8, 10, 14, 0.4) 100%);
}

.club-card-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 740px;
}

.club-eyebrow {
  color: var(--violet);
  margin-bottom: 12px;
}

.club-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}

.club-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0 0 28px;
}

.club-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.club-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.98rem;
  color: #f1f5f9;
  font-weight: 500;
}

/* ==========================================================================
   Faculty & Founders Section
   ========================================================================== */
.faculty-section {
  padding: 16px 0 40px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 48px;
  align-items: center;
  background: #0d1015;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  padding: 48px;
}

.faculty-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.faculty-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-content {
  display: flex;
  flex-direction: column;
}

.faculty-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin: 12px 0 16px;
  text-transform: uppercase;
}

.faculty-bio {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 32px;
}

.faculty-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
}

.stat-val {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--violet);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* ==========================================================================
   FAQ Accordion (Nikitin.school Style)
   ========================================================================== */
.faq-section {
  padding: 50px 0 40px;
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 16px;
  background: #0d1015;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(168, 85, 247, 0.35);
}

.faq-question {
  padding: 22px 28px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  color: var(--violet);
  font-size: 1.2rem;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px 24px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #94a3b8;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   Support & Telegram Block
   ========================================================================== */
.support-section {
  padding: 50px 0 80px;
}

.support-box {
  background: linear-gradient(180deg, #11151c 0%, #0d1015 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.support-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin: 12px 0 14px;
  text-transform: uppercase;
}

.support-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.support-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Interactive Syllabus Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.modal-overlay[hidden] {
  display: none !important;
  opacity: 0;
}

.modal-card {
  background: #0d1015;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  width: 100%;
  max-width: 880px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.15);
}

.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.modal-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.modal-tab-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.25);
}

.modal-tab-content {
  padding: 24px 32px;
  overflow-y: auto;
  flex-grow: 1;
}

.syllabus-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chapter-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  transition: all 0.2s ease;
}

.chapter-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.ch-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  white-space: nowrap;
}

.ch-badge.highlight {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.ch-info {
  flex-grow: 1;
}

.ch-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.ch-info p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.ch-dur {
  font-size: 0.8rem;
  color: var(--dim);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  background: rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .faculty-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }
  .faculty-media {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .showcase-section {
    padding: 24px 0 14px;
  }
  .club-section {
    padding: 10px 0 24px;
  }
  .pricing-section,
  .faq-section,
  .support-section {
    padding: 48px 0;
  }
  .card-compact .showcase-card-sub {
    min-height: auto;
  }
  .showcase-header,
  .demo-header {
    margin-bottom: 32px;
  }
  .showcase-stack,
  .showcase-grid-duo,
  .pricing-grid {
    gap: 20px;
  }
  .showcase-grid-duo {
    grid-template-columns: 1fr;
  }
  .showcase-card-content,
  .club-card-content,
  .faculty-grid,
  .support-box {
    padding: 28px 20px;
  }
  .card-compact .showcase-card-content,
  .pricing-card {
    padding: 28px 20px;
  }
  .showcase-featured {
    min-height: 420px;
  }
  .showcase-overlay {
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.35) 0%, rgba(5, 7, 10, 0.92) 55%, rgba(5, 7, 10, 0.98) 100%);
  }
  .pill-btn {
    width: 100%;
    padding: 14px 20px;
  }
  .faculty-stats-grid {
    grid-template-columns: 1fr;
  }
.modal-card {
    max-height: 95vh;
  }
  .modal-header, .modal-tabs, .modal-tab-content, .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 580px) {
  .site-header .header-tg-btn {
    display: none;
  }
}
