/* ==========================================================================
   ТелекомЭксперт (telekomexpert.ru) — Design System & Styles
   Premium Managed Compliance Cockpit for Russian Telecom Operators
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & @font-face
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('./fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuOKfMZg.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfMZg.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fMZg.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf') format('truetype');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuGKYMZg.ttf') format('truetype');
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/Z9XUDmZRWg6M1LvRYsH-yA.ttf') format('truetype');
}

/* --------------------------------------------------------------------------
   2. Root Variables & Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Base Dark */
  --bg-body: #050a12;
  --bg-surface-1: #09111e;
  --bg-surface-2: #0e1a2d;
  --bg-surface-3: #14233c;
  
  --bg-card: rgba(14, 26, 45, 0.75);
  --bg-card-hover: rgba(20, 36, 62, 0.88);
  --bg-glass: rgba(9, 17, 30, 0.72);
  --bg-input: rgba(10, 20, 36, 0.85);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-gold: rgba(211, 169, 79, 0.38);
  --border-cyan: rgba(6, 182, 212, 0.32);
  --border-emerald: rgba(16, 185, 129, 0.32);

  /* Brand Accents - Gold & Bronze */
  --gold-primary: #d3a94f;
  --gold-light: #f1d8a0;
  --gold-dark: #a88133;
  --gold-gradient: linear-gradient(135deg, #d3a94f 0%, #f1d8a0 50%, #d3a94f 100%);
  --gold-glow: rgba(211, 169, 79, 0.25);

  /* Status Colors */
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --red-400: #f87171;
  --red-500: #ef4444;

  /* Typography */
  --font-heading: 'Russo One', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #070d17;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -16px rgba(0, 0, 0, 0.75);
  --shadow-gold: 0 12px 35px -10px rgba(211, 169, 79, 0.4);
  --shadow-cyan: 0 12px 35px -10px rgba(6, 182, 212, 0.35);

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 600ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Container */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
}

/* --------------------------------------------------------------------------
   3. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-body);
  color: var(--text-primary);
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Typography Utilities */
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

.text-gold {
  color: var(--gold-primary);
}

.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan {
  color: var(--cyan-400);
}

.text-emerald {
  color: var(--emerald-400);
}

.text-muted {
  color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   4. Shared UI Components
   -------------------------------------------------------------------------- */
/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  width: fit-content;
}

.badge-gold {
  border-color: var(--border-gold);
  background: rgba(211, 169, 79, 0.12);
  color: var(--gold-light);
}

.badge-cyan {
  border-color: var(--border-cyan);
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-400);
}

.badge-emerald {
  border-color: var(--border-emerald);
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-400);
}

.badge-danger {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.12);
  color: var(--red-400);
}

.badge-warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-400);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  pointer-events-none;
}

.glass-panel:hover {
  border-color: var(--border-medium);
}

.glass-panel-glow-gold:hover {
  border-color: var(--border-gold);
  box-shadow: 0 16px 45px -10px rgba(211, 169, 79, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--text-dark);
  box-shadow: var(--shadow-gold);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(211, 169, 79, 0.6);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
  color: #fff;
  transform: translateY(-2px);
}

.btn-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  color: #03141f;
  box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(6, 182, 212, 0.55);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
  max-width: 800px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
  .section-subtitle {
    font-size: 0.98rem;
  }
}

/* --------------------------------------------------------------------------
   5. Site Header & Nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.8rem;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-badge {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 8px 24px -6px rgba(211, 169, 79, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .nav-menu.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.8rem;
    left: 0;
    right: 0;
    background: var(--bg-surface-1);
    border-bottom: 1px solid var(--border-medium);
    padding: 1.5rem 2rem;
    gap: 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  .mobile-nav-toggle {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   6. Kinetic Hero Section (cleariqai kinematics model)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 4.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 0 3rem 0;
}

/* Kinetic Background Slides */
.hero-backdrop-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.hero-slide-bg.is-active {
  opacity: 0.42;
  transform: scale(1);
}

.hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 60% 40%, rgba(5, 10, 18, 0.4) 0%, rgba(5, 10, 18, 0.88) 70%, #050a12 100%),
              linear-gradient(180deg, rgba(5, 10, 18, 0.7) 0%, transparent 35%, rgba(5, 10, 18, 0.95) 90%, #050a12 100%);
  pointer-events-none;
}

.hero-cyber-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 75%);
  pointer-events-none;
}

/* Hero Content Grid */
.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Hero Left Column (Dynamic Text Switcher) */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-text-slider {
  min-height: 240px;
  position: relative;
}

.hero-text-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-text-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.hero-headline {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 1.1rem;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-text-slider {
    min-height: 280px;
  }
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* Hero Kinetic State Bars / Dots */
.hero-state-indicators {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.state-bar-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.state-bar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.state-bar-btn.is-active {
  background: rgba(211, 169, 79, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.state-progress-track {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.state-bar-btn.is-active .state-progress-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: var(--gold-primary);
  animation: barFill 5s linear infinite;
}

@keyframes barFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

@media (max-width: 640px) {
  .hero-state-indicators {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .state-bar-btn span.label-text {
    display: none;
  }
  .state-bar-btn {
    padding: 0.45rem 0.6rem;
  }
}

/* Hero Right Column: Cockpit Interactive Preview */
.hero-cockpit-card {
  background: rgba(9, 17, 30, 0.88);
  border: 1px solid rgba(211, 169, 79, 0.3);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px -10px rgba(211, 169, 79, 0.18);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
}

.hero-cockpit-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(211, 169, 79, 0.08) 0%, transparent 60%);
  pointer-events-none;
}

.cockpit-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.cockpit-operator-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.operator-avatar {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
}

.operator-details h4 {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-primary);
}

.operator-details p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cockpit-score-display {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-emerald);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
}

.score-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--emerald-400);
  line-height: 1;
}

.score-total {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Cockpit Metric Mini Tiles */
.cockpit-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.mini-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mini-tile-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.mini-tile-val {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.mini-tile-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Cockpit Live Alerts Feed inside Card */
.cockpit-live-feed {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  transition: all var(--transition-fast);
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
}

.feed-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feed-icon-box {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feed-item-title {
  font-weight: 500;
  color: var(--text-primary);
}

.feed-item-due {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Hero Stats Strip below */
.hero-stats-strip {
  position: relative;
  z-index: 10;
  margin-top: 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-card {
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--text-primary);
  line-height: 1.15;
}

.stat-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

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

/* --------------------------------------------------------------------------
   7. Problem & Risk Section (The Operator's Reality)
   -------------------------------------------------------------------------- */
.section-problem {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(180deg, #050a12 0%, #08111e 50%, #050a12 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.risk-matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.risk-matrix-table th,
.risk-matrix-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.risk-matrix-table th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.risk-matrix-table tr:last-child td {
  border-bottom: none;
}

.risk-matrix-table tr.highlight-row {
  background: rgba(211, 169, 79, 0.08);
}

.risk-matrix-table tr.highlight-row td {
  color: var(--gold-light);
  font-weight: 600;
}

.penalty-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.penalty-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.2);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition-fast);
}

.penalty-card:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
}

.penalty-icon-wrap {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--red-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.penalty-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.penalty-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.penalty-amount {
  display: inline-block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--red-400);
  background: rgba(239, 68, 68, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   8. System Cockpit & 6 Interactive Compliance Engines (Section 3 Brief)
   -------------------------------------------------------------------------- */
.section-cockpit-suite {
  padding: 6rem 0;
  position: relative;
}

.cockpit-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.cockpit-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.cockpit-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.cockpit-tab-btn.is-active {
  background: var(--gold-gradient);
  color: var(--text-dark);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-gold);
}

.cockpit-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.cockpit-tab-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 1: Comprehensive Cockpit & Readiness Navigator */
.cockpit-frame-view {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.cockpit-header-bar {
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cockpit-network-status {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.82rem;
}

.status-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--emerald-400);
  font-weight: 600;
}

.cockpit-body-grid {
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.8rem;
}

@media (max-width: 900px) {
  .cockpit-body-grid {
    grid-template-columns: 1fr;
  }
}

.radar-gauge-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.gauge-circle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem 0;
}

.gauge-svg-wrap {
  width: 170px;
  height: 170px;
  transform: rotate(-90deg);
}

.gauge-bg-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
}

.gauge-val-circle {
  fill: none;
  stroke: url(#goldGradient);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 440;
  stroke-dashoffset: 80; /* 82% */
  transition: stroke-dashoffset 1s ease;
}

.gauge-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-center-val {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--text-primary);
  line-height: 1;
}

.gauge-center-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.cockpit-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.task-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-medium);
}

.task-main-col {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.task-meta-col {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Tab 2: Live Regulatory Monitoring Feed (НПА) */
.npa-feed-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.npa-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.4rem;
  background: var(--bg-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.npa-filter-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.npa-filter-btn {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.npa-filter-btn:hover,
.npa-filter-btn.is-active {
  background: rgba(211, 169, 79, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.npa-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all var(--transition-fast);
}

.npa-card-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

.npa-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.npa-source-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-light);
}

.npa-law-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.npa-law-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.npa-action-box {
  background: rgba(211, 169, 79, 0.06);
  border-left: 3px solid var(--gold-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Tab 3: Document Base & Templates Generator */
.doc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

@media (max-width: 992px) {
  .doc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .doc-cards-grid {
    grid-template-columns: 1fr;
  }
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  transition: all var(--transition-fast);
}

.doc-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 16px 36px -12px rgba(211, 169, 79, 0.2);
}

.doc-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-icon-wrap {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  background: rgba(211, 169, 79, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.doc-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.doc-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

/* Tab 4: AI Regulatory Expert Dialog */
.ai-dialog-terminal {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 35px -10px rgba(6, 182, 212, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ai-terminal-header {
  background: var(--bg-surface-2);
  padding: 1rem 1.6rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-messages-pane {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 480px;
  overflow-y: auto;
}

.ai-msg {
  display: flex;
  gap: 1rem;
  max-width: 85%;
}

.ai-msg.msg-user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.ai-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-avatar-bot {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}

.ai-avatar-user {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.ai-bubble {
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius-lg);
  font-size: 0.92rem;
  line-height: 1.6;
}

.msg-bot .ai-bubble {
  background: rgba(14, 26, 45, 0.85);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.msg-user .ai-bubble {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--border-cyan);
  color: #fff;
  border-top-right-radius: 4px;
}

.ai-citation-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: rgba(211, 169, 79, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.ai-prompt-pills {
  padding: 1rem 1.6rem;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
}

.prompt-pill-btn {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.prompt-pill-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--border-cyan);
  color: #fff;
}

/* Tab 5: Regulatory Deadlines Calendar */
.calendar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calendar-timeline-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

@media (max-width: 900px) {
  .calendar-timeline-list {
    grid-template-columns: 1fr;
  }
}

.calendar-card {
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cal-date-badge {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-primary);
}

/* Tab 6: RKN Inspection Checklist */
.checklist-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checklist-items-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.check-item-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.check-item-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
}

.custom-checkbox {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 6px;
  border: 2px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: all var(--transition-fast);
}

.check-item-row.is-checked .custom-checkbox {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. How It Works Section (4 Steps)
   -------------------------------------------------------------------------- */
.section-steps {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(180deg, #050a12 0%, #081220 50%, #050a12 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

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

.step-card {
  padding: 2rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: rgba(211, 169, 79, 0.4);
  line-height: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. Pricing Matrix (plans.json & pricing/page.tsx strict sync)
   -------------------------------------------------------------------------- */
.section-pricing {
  padding: 6rem 0;
  position: relative;
}

.pricing-billing-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.switch-pill-container {
  display: flex;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
}

.switch-btn {
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.switch-btn.is-active {
  background: var(--gold-primary);
  color: var(--text-dark);
}

.discount-tag {
  font-size: 0.72rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald-400);
  border: 1px solid var(--border-emerald);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.8rem;
  position: relative;
  transition: all var(--transition-normal);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

/* Featured Card: Профи (Якорь) */
.price-card.is-featured {
  background: linear-gradient(180deg, rgba(20, 36, 62, 0.92) 0%, rgba(14, 25, 42, 0.95) 100%);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 20px 50px -15px rgba(211, 169, 79, 0.35);
  transform: scale(1.03);
  z-index: 2;
}

.price-card.is-featured:hover {
  transform: scale(1.05) translateY(-4px);
}

@media (max-width: 992px) {
  .price-card.is-featured {
    transform: none;
  }
  .price-card.is-featured:hover {
    transform: translateY(-4px);
  }
}

.price-badge-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-gradient);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.3rem 1.1rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 15px rgba(211, 169, 79, 0.5);
  white-space: nowrap;
}

.price-header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plan-name {
  font-size: 1.35rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.plan-price-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--text-primary);
  line-height: 1;
}

.plan-price-period {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.plan-note {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 42px;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin-top: 0.5rem;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.feature-icon-check {
  color: var(--gold-primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   11. FAQ Section (Searchable, Accordion, exact from faq/page.tsx)
   -------------------------------------------------------------------------- */
.section-faq {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(180deg, #050a12 0%, #08111e 50%, #050a12 100%);
}

.faq-search-box {
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.faq-search-input {
  width: 100%;
  height: 3.4rem;
  padding: 0 1.5rem 0 3.2rem;
  border-radius: var(--radius-pill);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.faq-search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 25px rgba(211, 169, 79, 0.25);
  background: var(--bg-surface-3);
}

.faq-search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.faq-categories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.faq-cat-btn {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.faq-cat-btn:hover,
.faq-cat-btn.is-active {
  background: rgba(211, 169, 79, 0.15);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.faq-accordion-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-item.is-open {
  border-color: var(--border-gold);
}

.faq-question-btn {
  width: 100%;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-chevron {
  color: var(--text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold-primary);
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.6rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.is-open .faq-answer-pane {
  max-height: 400px;
  padding-bottom: 1.4rem;
}

/* --------------------------------------------------------------------------
   12. Final CTA & 14-Day Pilot Form
   -------------------------------------------------------------------------- */
.section-final-cta {
  padding: 6rem 0;
  position: relative;
}

.pilot-card-wrapper {
  background: linear-gradient(135deg, rgba(14, 26, 45, 0.95) 0%, rgba(9, 17, 30, 0.95) 100%);
  border: 1px solid rgba(211, 169, 79, 0.35);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 50px -10px rgba(211, 169, 79, 0.2);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 992px) {
  .pilot-card-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.form-input {
  width: 100%;
  height: 3rem;
  padding: 0 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(211, 169, 79, 0.25);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  list-style: none;
}

.footer-link {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--gold-light);
}

.footer-bottom-bar {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   14. Scroll Reveal Animations (Native JS IntersectionObserver)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   15. Prefers-Reduced-Motion Handling (Mandatory Requirement)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-slide-bg {
    transition: none !important;
  }

  .hero-slide-bg:first-child {
    opacity: 0.42 !important;
    transform: none !important;
  }

  .hero-slide-bg:not(:first-child) {
    display: none !important;
  }

  .hero-text-slide {
    transition: none !important;
  }

  .hero-text-slide:first-child {
    opacity: 1 !important;
    transform: none !important;
    position: relative !important;
  }

  .hero-text-slide:not(:first-child) {
    display: none !important;
  }

  .state-progress-track::after {
    animation: none !important;
    width: 100% !important;
  }

  .badge-dot {
    animation: none !important;
  }
}
