/* ============================================================
   Федерация беспилотного спорта — Brand CSS Tokens
   Generated from docs/brand/brandbook.md v1.0 Final
   Theme: digital_bionic (primary) + holo_bio (promo layer)
   Вид спорта «Беспилотный спорт»
   ============================================================ */

/* --- CSS Custom Properties: digital_bionic (default theme) --- */
:root,
[data-theme="digital_bionic"] {
  /* Backgrounds */
  --bg: #0A1F3A;
  --bg-alt: #111111;
  --panel: #111A23;
  --elevated: #152234;

  /* Text */
  --text: #E6F1FF;
  --text-secondary: #B8C7E3;
  --text-muted: #8FA3C2;
  --text-on-accent: #001417;

  /* Brand Accents (НЕ МЕНЯТЬ) */
  --brand-blue: #1F55A9;
  --accent-cyan: #00F5D4;
  --accent-cyan-strong: #4DFFFF;
  --accent-lime: #ADFF2F;
  --accent-info: #67D1FF;

  /* Holo / Promo Accents (НЕ МЕНЯТЬ) */
  --violet-core: #6A00FF;
  --holo-pink: #FF6AD5;
  --neon-blue: #09D7EF;
  --bio-green: #4CAF50;

  /* Borders */
  --border-soft: #1E2C3A;
  --border-hard: #2B3B4C;

  /* Semantic */
  --success: #77F2B1;
  --warning: #FFD166;
  --danger: #FF6B81;
  --info: #67D1FF;

  /* Shadows & Glow */
  --shadow-1: 0 1px 2px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.02) inset;
  --shadow-2: 0 4px 14px rgba(0,0,0,.35);
  --glow-bionic: 0 0 24px rgba(0,245,212,.35);
  --glow-violet: 0 0 28px rgba(106,0,255,.30);
  --glow-holo: 0 0 20px rgba(9,215,239,.20);

  /* Gradients */
  --hero-gradient: linear-gradient(180deg, #0A1F3A 0%, #111111 40%, #152234 100%);
  --hero-glow: radial-gradient(60% 60% at 50% 50%, rgba(0,245,212,0.35) 0%, rgba(77,255,255,0.15) 40%, rgba(0,0,0,0) 70%);
  --holo-gradient: linear-gradient(90deg, #09D7EF 0%, #6A00FF 38%, #4CAF50 68%, #FF6AD5 100%);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing (8px baseline) */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 80px;
  --space-9: 96px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;

  /* Breakpoints (reference) */
  /* xs: 360, sm: 640, md: 768, lg: 1024, xl: 1280, xxl: 1536 */

  /* Grid */
  --grid-columns: 12;
  --grid-gutter: 24px;
  --container-max: 1280px;

  /* Motion */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in: cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 120ms;
  --duration-base: 160ms;
  --duration-slow: 200ms;
  --duration-modal: 240ms;
}

/* --- Light Theme Variant — brightened brand-dark, accent colors unchanged --- */
[data-theme="light"] {
  /* Backgrounds — slightly lighter, still within brand palette */
  --bg: #111A23;
  --bg-alt: #152234;
  --panel: #152234;
  --elevated: #1C2D40;

  /* Text — slightly brighter for readability on lighter bg */
  --text: #F0F6FF;
  --text-secondary: #C4D1E5;
  --text-muted: #95A8C0;

  /* Brand Accents — НЕИЗМЕННЫ (100% как в default) */
  /* --accent-cyan, --violet-core, --holo-pink etc. — inherited from :root */

  /* Borders — more visible on lighter bg */
  --border-soft: #243447;
  --border-hard: #2F4256;

  /* Shadows — deeper for lighter bg contrast */
  --shadow-1: 0 1px 3px rgba(0,0,0,.12), 0 0 0 1px rgba(255,255,255,.03) inset;
  --shadow-2: 0 4px 16px rgba(0,0,0,.25);

  /* Gradients */
  --hero-gradient: linear-gradient(180deg, #111A23 0%, #111111 40%, #152234 100%);
  --hero-glow: radial-gradient(60% 60% at 50% 50%, rgba(0,245,212,0.25) 0%, rgba(77,255,255,0.10) 40%, rgba(0,0,0,0) 70%);
}

/* --- Theme Toggle Button --- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1rem;
  padding: 6px 10px;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text-secondary);
  line-height: 1;
}
.theme-toggle:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.06);
}
.theme-toggle .icon-light,
.theme-toggle .icon-dark { transition: opacity 0.2s; }
[data-theme="digital_bionic"] .theme-toggle .icon-light,
:root:not([data-theme="light"]) .theme-toggle .icon-light { display: none; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }

/* --- Image brightness for light theme --- */
[data-theme="light"] img:not([src*=".svg"]) {
  filter: brightness(0.95) contrast(1.02);
}

/* --- Accessibility: версия для слабовидящих --- */
[data-a11y="true"] {
  --text: #FFFFFF;
  --text-secondary: #E0E0E0;
  --text-muted: #B0B0B0;
  font-size: 115%;
}
[data-a11y="true"] h1 { font-size: clamp(3rem, 6vw, 5rem) !important; }
[data-a11y="true"] h2 { font-size: clamp(2.5rem, 5vw, 3.5rem) !important; }
[data-a11y="true"] h3 { font-size: clamp(1.8rem, 3vw, 2.5rem) !important; }
[data-a11y="true"] p, [data-a11y="true"] li { line-height: 1.8 !important; }
[data-a11y="true"] .btn { min-height: 56px; font-size: 1.1rem; padding: 14px 28px; }
[data-a11y="true"] input, [data-a11y="true"] textarea, [data-a11y="true"] select { font-size: 1.1rem; padding: 14px 18px; }
[data-a11y="true"] .card, [data-a11y="true"] .glass-card { border-width: 2px; }
[data-a11y="true"] a { text-decoration: underline; }
[data-a11y="true"] *:focus-visible { outline: 3px solid var(--accent-cyan) !important; outline-offset: 3px !important; }

/* --- Resets & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }        /* 64/72 */
h2 { font-size: clamp(2rem, 4vw, 3rem); }            /* 48/56 */
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }          /* 32/40 */
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }       /* 24/32 */

p {
  font-size: 1rem;         /* 16/24 */
  line-height: 1.6;
  color: var(--text-secondary);
}

.text-large {
  font-size: 1.125rem;     /* 18/28 */
  line-height: 1.55;
}

.caption {
  font-size: 0.8125rem;    /* 13/18 */
  color: var(--text-muted);
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  min-height: 48px;
  min-width: 44px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* Primary */
.btn-primary {
  background: var(--accent-cyan);
  color: var(--text-on-accent);
  box-shadow: var(--glow-bionic);
}
.btn-primary:hover {
  background: var(--accent-cyan-strong);
  box-shadow: 0 0 32px rgba(0,245,212,.45);
  transform: translateY(-1px);
}

/* Secondary */
.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-hard);
}
.btn-secondary:hover {
  background: var(--elevated);
  border-color: var(--accent-cyan);
}

/* Quiet */
.btn-quiet {
  background: transparent;
  color: var(--text-secondary);
}
.btn-quiet:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

/* Promo */
.btn-promo {
  background: var(--violet-core);
  color: #F0F6FF;
  box-shadow: var(--glow-violet);
}
.btn-promo:hover {
  background: #5500D5;
  box-shadow: 0 0 36px rgba(106,0,255,.40);
}

/* Sizes */
.btn-sm { padding: 10px 20px; font-size: 0.875rem; min-height: 44px; }
.btn-lg { padding: 18px 36px; font-size: 1.125rem; }

/* --- Cards --- */
.card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition:
    border-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}
.card:hover {
  border-color: var(--border-hard);
  box-shadow: var(--shadow-2), 0 0 20px rgba(0,245,212,.08);
  transform: translateY(-2px);
}

/* --- Inputs --- */
input, textarea, select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-hard);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 1rem;
  transition: border-color var(--duration-fast) var(--ease-out);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0,245,212,.15);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  background: rgba(10,31,58,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--duration-base) var(--ease-out);
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,245,212,0.5) 30%, rgba(106,0,255,0.5) 50%, rgba(0,245,212,0.5) 70%, transparent);
  background-size: 200% 100%;
  animation: shimmerBorder 4s ease-in-out infinite;
}
.site-header.scrolled {
  background: rgba(10,31,58,0.95);
}

/* --- Sections --- */
.section {
  padding: var(--space-8) 0;
}

.section-dark {
  background: var(--bg);
}

.section-alt {
  background: var(--bg-alt);
}

.section-panel {
  background: var(--panel);
}

/* --- Deep page hero padding + video support --- */
.journey-hero, .about-hero, .faq-hero {
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: 2;
}

/* --- Hero Video Background (poster-led progressive) --- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-video.loaded { opacity: 0.35; }
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 31, 58, 0.72);
  pointer-events: none;
}
/* Header shimmer border (replaces hero-bottom-strip) */
@keyframes shimmerBorder {
  0%,100% { background-position: 0% 50%; }
  50%    { background-position: 100% 50%; }
}
@keyframes shimmerText {
  0%,100% { background-position: 0% 50%; }
  50%    { background-position: 100% 50%; }
}
@keyframes shimmerCyan {
  0%,100% { text-shadow: 0 0 8px rgba(0,245,212,0.3); }
  50%    { text-shadow: 0 0 20px rgba(0,245,212,0.6), 0 0 40px rgba(0,245,212,0.2); }
}
@keyframes shimmerViolet {
  0%,100% { text-shadow: 0 0 8px rgba(106,0,255,0.3); }
  50%    { text-shadow: 0 0 20px rgba(106,0,255,0.5), 0 0 40px rgba(106,0,255,0.15); }
}
.shimmer-cyan  { animation: shimmerCyan 3s ease-in-out infinite; }
.shimmer-violet { animation: shimmerViolet 3s ease-in-out infinite 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .shimmer-cyan, .shimmer-violet { animation: none; }
}

/* Shimmer heading — animated gradient text for centered section titles */
.shimmer-heading {
  background: linear-gradient(90deg, var(--text-muted), var(--text), var(--text-muted));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .shimmer-heading {
    animation: none;
    -webkit-text-fill-color: var(--text);
  }
}

/* Video fallback */
@media (max-width: 768px) {
  .hero-video { display: none; }
  .hero-video-overlay { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

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

/* --- Glow accents --- */
.glow-cyan {
  box-shadow: var(--glow-bionic);
}
.glow-violet {
  box-shadow: var(--glow-violet);
}

/* --- Utility --- */
.text-cyan { color: var(--accent-cyan); }
.text-cyan-strong { color: var(--accent-cyan-strong); }
.text-lime { color: var(--accent-lime); }
.text-muted { color: var(--text-muted); }
.text-on-accent { color: var(--text-on-accent); }

.bg-panel { background: var(--panel); }
.bg-elevated { background: var(--elevated); }

.border-soft { border: 1px solid var(--border-soft); }
.border-hard { border: 1px solid var(--border-hard); }

/* --- Animations & Micro-interactions --- */

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(0,245,212,.25); }
  50% { box-shadow: 0 0 32px rgba(0,245,212,.45); }
}
@keyframes glowPulseViolet {
  0%, 100% { box-shadow: 0 0 16px rgba(106,0,255,.20); }
  50% { box-shadow: 0 0 32px rgba(106,0,255,.40); }
}
@keyframes glowPulseLime {
  0%, 100% { box-shadow: 0 0 12px rgba(173,255,47,.15); }
  50% { box-shadow: 0 0 28px rgba(173,255,47,.35); }
}

/* Gradient flow */
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Fade up reveal */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scale in */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Line draw */
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* Particle drift */
@keyframes particleDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(20px, -15px) scale(1.2); opacity: 0.6; }
  50% { transform: translate(-10px, -30px) scale(0.8); opacity: 0.4; }
  75% { transform: translate(-25px, -10px) scale(1.1); opacity: 0.5; }
  100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}

/* Utility classes */
.animate-glow { animation: glowPulse 3s ease-in-out infinite; }
.animate-glow-violet { animation: glowPulseViolet 3s ease-in-out infinite; }
.animate-glow-lime { animation: glowPulseLime 3s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-gradient { background-size: 200% 200%; animation: gradientFlow 4s ease infinite; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.30s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* Hover lift */
.hover-lift {
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2), 0 0 20px rgba(0,245,212,.10);
}

/* Hover glow border */
.hover-glow {
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.hover-glow:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0,245,212,.15), inset 0 0 16px rgba(0,245,212,.03);
}

/* Counter animation helper */
.counter {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* Formula display */
.formula-display {
  font-family: var(--font-mono);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  color: var(--accent-cyan);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* Value prop tag */
.value-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid;
}
.value-tag-cyan { background: rgba(0,245,212,.08); border-color: rgba(0,245,212,.25); color: var(--accent-cyan); }
.value-tag-violet { background: rgba(106,0,255,.08); border-color: rgba(106,0,255,.25); color: var(--violet-core); }
.value-tag-lime { background: rgba(173,255,47,.08); border-color: rgba(173,255,47,.25); color: var(--accent-lime); }

/* ============================================================
   GLASS MORPHISM + HOLOGRAPHIC + INTERACTIVE EFFECTS
   ============================================================ */

/* --- Glass Morphism --- */
.glass {
  background: rgba(17, 26, 35, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.glass:hover {
  border-color: rgba(0, 245, 212, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 0 0 24px rgba(0, 245, 212, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.glass-strong {
  background: rgba(10, 31, 58, 0.7);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(0, 245, 212, 0.08);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.glass-violet {
  background: rgba(17, 26, 35, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(106, 0, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(106, 0, 255, 0.03);
}
.glass-violet:hover {
  border-color: rgba(106, 0, 255, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 0 0 24px rgba(106, 0, 255, 0.08);
}

/* ============================================================
   GLASSMORPHISM 2.0 — аддитивное усиление поверх существующего
   ============================================================ */

/* --- Frosted Header (навигационная шапка) --- */
.site-header.glass-strong {
  background: rgba(10, 31, 58, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 245, 212, 0.12);
}

/* --- Card Hover Glass (только hover-состояние) --- */
.card:hover, .glass-card:hover {
  background: rgba(17, 26, 35, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* --- Modal / Popup Glass --- */
.glass-modal {
  background: rgba(10, 31, 58, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* --- @supports fallback for browsers without backdrop-filter --- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.glass-strong {
    background: rgba(10, 31, 58, 0.92);
  }
  .card:hover, .glass-card:hover {
    background: rgba(17, 26, 35, 0.92);
  }
  .glass-modal {
    background: rgba(10, 31, 58, 0.95);
  }
  .glass, .glass-strong, .glass-violet {
    background: rgba(17, 26, 35, 0.85);
  }
}

/* --- Mobile optimization (reduced blur for performance) --- */
@media (max-width: 768px) {
  .site-header.glass-strong {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
  .card:hover, .glass-card:hover {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .glass-modal {
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
  }
  .glass, .glass-violet {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .glass-strong {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* --- Iridescent / Animated Gradient Borders --- */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(0, 245, 212, 0.15); }
  33% { border-color: rgba(106, 0, 255, 0.2); }
  66% { border-color: rgba(255, 106, 213, 0.15); }
}
@keyframes borderGlowFast {
  0% { border-color: rgba(0, 245, 212, 0.1); }
  25% { border-color: rgba(77, 255, 255, 0.15); }
  50% { border-color: rgba(106, 0, 255, 0.15); }
  75% { border-color: rgba(255, 106, 213, 0.12); }
  100% { border-color: rgba(0, 245, 212, 0.1); }
}
.iridescent-border {
  border: 1px solid rgba(0, 245, 212, 0.12);
  animation: borderGlow 6s ease-in-out infinite;
}
.iridescent-border-fast {
  border: 1px solid rgba(0, 245, 212, 0.1);
  animation: borderGlowFast 3s ease-in-out infinite;
}

/* --- Holo Shimmer Overlay --- */
@keyframes shimmerSweep {
  0% { transform: translateX(-100%) skewX(-15deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateX(200%) skewX(-15deg); opacity: 0; }
}
@keyframes holoShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.holo-shimmer {
  position: relative;
  overflow: hidden;
}
.holo-shimmer::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(0, 245, 212, 0.04) 37%,
    rgba(77, 255, 255, 0.06) 40%,
    rgba(106, 0, 255, 0.04) 43%,
    transparent 50%
  );
  background-size: 200% 100%;
  animation: shimmerSweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.holo-shimmer > * { position: relative; z-index: 2; }

/* --- Scanline / Tech Grid Overlay --- */
.tech-grid {
  position: relative;
}
.tech-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.tech-grid > * { position: relative; z-index: 1; }

/* --- Subtle Scanline Overlay --- */
.scanline-overlay {
  position: relative;
}
.scanline-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 999;
  opacity: 0.3;
}

/* --- Particle Canvas --- */
.particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle-container {
  position: relative;
  /* overflow: hidden moved to .particle-canvas to prevent diagonal video clip */
}
  overflow: hidden;
}

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }

/* --- Orbital Ring Effect --- */
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes orbitPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.orbital-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 212, 0.08);
  animation: orbitSpin 20s linear infinite, orbitPulse 4s ease-in-out infinite;
  pointer-events: none;
}

/* --- Glow Text --- */
.glow-text {
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.3), 0 0 40px rgba(0, 245, 212, 0.1);
}
.glow-text-violet {
  text-shadow: 0 0 20px rgba(106, 0, 255, 0.3), 0 0 40px rgba(106, 0, 255, 0.1);
}

/* --- Data Stream Lines --- */
@keyframes dataFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 0% 100%; }
}
.data-stream {
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0, 245, 212, 0.08) 20%,
    rgba(0, 245, 212, 0.15) 50%,
    rgba(0, 245, 212, 0.08) 80%,
    transparent
  );
  animation: dataFlow 3s linear infinite;
  pointer-events: none;
}

/* --- Card Lift on Hover with Glass --- */
.glass-card {
  background: rgba(17, 26, 35, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  transition: all 0.35s var(--ease-out);
}
.glass-card:hover {
  background: rgba(17, 26, 35, 0.65);
  border-color: rgba(0, 245, 212, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 245, 212, 0.05);
}

/* --- Ambient Light Blobs --- */
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-15px, -40px) scale(0.95); }
  75% { transform: translate(-25px, -10px) scale(1.02); }
}
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  pointer-events: none;
}
.ambient-blob-cyan {
  background: var(--accent-cyan);
  animation: blobFloat 12s ease-in-out infinite;
}
.ambient-blob-violet {
  background: var(--violet-core);
  animation: blobFloat 15s ease-in-out infinite reverse;
}

/* --- Section Divider with Glow --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.15) 30%, rgba(0, 245, 212, 0.25) 50%, rgba(0, 245, 212, 0.15) 70%, transparent);
  margin: 0;
  border: none;
}

/* --- Parallax Layer --- */
.parallax-layer {
  will-change: transform;
}

/* --- Floating Tech Dots Background (CSS only) --- */
@keyframes techDrift1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(40px, -30px); }
  50% { transform: translate(10px, -60px); }
  75% { transform: translate(-30px, -20px); }
}
@keyframes techDrift2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-35px, -25px); }
  50% { transform: translate(-15px, -55px); }
  75% { transform: translate(25px, -15px); }
}
.tech-dots-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.tech-dots-bg .dot {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.3);
}
.tech-dots-bg .dot:nth-child(odd) { animation: techDrift1 8s ease-in-out infinite; }
.tech-dots-bg .dot:nth-child(even) { animation: techDrift2 10s ease-in-out infinite; }

/* ============================================================
   KINETIC TYPOGRAPHY — аддитивно, поверх существующего
   ============================================================ */

/* --- H1 Headline Reveal (page load) --- */
@keyframes headlineReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
h1 {
  animation: headlineReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- H2/H3 Scroll Reveal (JS-driven via IntersectionObserver) --- */
h2.heading-hidden, h3.heading-hidden {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
h2.visible, h3.visible,
h2:not(.heading-hidden), h3:not(.heading-hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* --- Variable Font Weight Hover (Inter supports wght axis) --- */
h2:hover, h3:hover {
  font-variation-settings: 'wght' 750;
  transition: font-variation-settings 0.3s ease;
}

/* --- Split-text Reveal Words (hero headline, JS-driven) --- */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: wordReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Kinetic Stat (numeric blocks, already in place with .kinetic-stat) --- */
.kinetic-stat {
  font-family: var(--font-mono);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: text-shadow 0.8s ease-out;
}
.kinetic-stat.pulse {
  text-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  h1 { animation: none; opacity: 1; transform: none; }
  h2, h3 { opacity: 1; transform: none; }
  .split-word { animation: none; opacity: 1; transform: none; }
}

/* ============================================================
   COMPREHENSIVE INTERACTIVE STATE SYSTEM
   Buttons · Cards · Tabs · Filters · Forms · Nav · Empty States
   ============================================================ */

/* --- Button State System --- */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  top: 50%; left: 50%;
  margin-left: -9px; margin-top: -9px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-success {
  background: var(--success) !important;
  color: #001417 !important;
  transition: background 0.3s;
}

/* --- Card State System --- */
.card, .glass-card {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-interactive {
  cursor: pointer;
}
.card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 245, 212, 0.06);
  border-color: rgba(0, 245, 212, 0.2);
}
.card-interactive:active {
  transform: translateY(-1px) scale(0.99);
}
.card-selected {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.1), inset 0 0 20px rgba(0, 245, 212, 0.03) !important;
  background: rgba(0, 245, 212, 0.05) !important;
}

/* --- Tab State System --- */
.tab {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab:hover { color: var(--text); border-color: rgba(0, 245, 212, 0.15); }
.tab:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
.tab.active {
  color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.25);
}

/* --- Chip / Filter State System --- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: var(--panel);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.chip:hover { border-color: var(--accent-cyan); color: var(--text); }
.chip.active { background: rgba(0, 245, 212, 0.1); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.chip .chip-remove { cursor: pointer; opacity: 0.5; transition: opacity 0.2s; }
.chip .chip-remove:hover { opacity: 1; color: var(--danger); }

/* --- Form State System --- */
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 1px;
}
input:disabled, textarea:disabled, select:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.input-success { border-color: var(--success) !important; }
.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.1); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 4px; }

/* --- Navigation State System --- */
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-weight: 500; font-size: 0.9375rem;
  transition: color 0.2s; position: relative;
}
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--accent-cyan);
}
.nav-link.active::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 1px;
}

/* --- Empty State System --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-xl);
  background: rgba(17, 26, 35, 0.3);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state-title { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state-text { color: var(--text-muted); max-width: 400px; margin: 0 auto 20px; font-size: 0.9375rem; }

/* --- Status / Notice Blocks --- */
.notice {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid;
  font-size: 0.875rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.notice-info { background: rgba(0, 245, 212, 0.05); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.notice-success { background: rgba(119, 242, 177, 0.05); border-color: var(--success); color: var(--success); }
.notice-warning { background: rgba(255, 209, 102, 0.05); border-color: var(--warning); color: var(--warning); }
.notice-danger { background: rgba(255, 107, 129, 0.05); border-color: var(--danger); color: var(--danger); }

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 8000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: var(--text-on-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 12px rgba(0,245,212,0.2);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35), 0 0 20px rgba(0,245,212,0.3);
}
@media (max-width: 768px) {
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

/* --- Bento Grid System --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
.bento-grid.bento-3col {
  grid-template-columns: repeat(3, 1fr);
}
.bento-grid.bento-auto {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Bento card base */
.bento-card {
  border-radius: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 245, 212, 0.12);
}

/* Bento sizing via nth-child for 3-card layouts */
.bento-3col > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-3col > *:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.bento-3col > *:nth-child(3) { grid-column: span 1; grid-row: span 1; }

/* Bento sizing via nth-child for 4-card layouts */
.bento-grid:not(.bento-3col):not(.bento-auto) > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-grid:not(.bento-3col):not(.bento-auto) > *:nth-child(2) { grid-column: span 2; grid-row: span 1; }
.bento-grid:not(.bento-3col):not(.bento-auto) > *:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.bento-grid:not(.bento-3col):not(.bento-auto) > *:nth-child(4) { grid-column: span 1; grid-row: span 1; }

/* Large bento card — bigger title */
.bento-card-large {
  grid-column: span 2;
}
.bento-card-tall {
  grid-row: span 2;
}
.bento-card-large h4, .bento-card-large h3,
.bento-grid > *:nth-child(1) h4,
.bento-grid > *:nth-child(1) h3 {
  font-size: 1.15em;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid, .bento-3col {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-grid > *, .bento-3col > * {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
  .bento-card-large, .bento-card-tall {
    grid-column: span 1; grid-row: span 1;
  }
}
@media (max-width: 640px) {
  .bento-grid, .bento-3col {
    grid-template-columns: 1fr;
  }
}

/* --- Kinetic Typography --- */
.kinetic-hero {
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.kinetic-section-title {
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.kinetic-stat {
  font-family: var(--font-mono);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* --- Scroll-triggered micro-reveal --- */
.micro-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.micro-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Organic section transition (subtle background gradient shift) --- */
.section-transition {
  position: relative;
}
.section-transition::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 212, 0.1) 50%, transparent);
}

/* ============================================================
   CINEMATIC SCROLLYTELLING — hero entrance + scroll narrative
   ============================================================ */

/* --- Hero entrance: subtitle stagger --- */
.hero-entrance-subtitle {
  opacity: 0;
  transform: translateY(32px);
  animation: heroElementReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}
/* --- Hero entrance: CTA scale --- */
.hero-entrance-cta {
  opacity: 0;
  transform: scale(0.95);
  animation: heroCTAReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}
@keyframes heroElementReveal {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroCTAReveal {
  to { opacity: 1; transform: scale(1); }
}

/* --- Scroll-driven narrative reveal with stagger --- */
.scroll-hidden {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-hidden.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger delays via nth-child */
.scroll-hidden:nth-child(1) { transition-delay: 0s; }
.scroll-hidden:nth-child(2) { transition-delay: 0.1s; }
.scroll-hidden:nth-child(3) { transition-delay: 0.2s; }
.scroll-hidden:nth-child(4) { transition-delay: 0.3s; }
.scroll-hidden:nth-child(5) { transition-delay: 0.4s; }
.scroll-hidden:nth-child(6) { transition-delay: 0.5s; }

/* --- Parallax background layer --- */
.parallax-bg {
  will-change: transform;
}

/* ============================================================
   IMMERSIVE 3D HERO DECOR — CSS-only floating shapes + 3D tilt
   ============================================================ */

/* --- 3D floating shapes (brand colors, low opacity) --- */
.shape-3d {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.10;
  animation: float3d 6s ease-in-out infinite;
}
.shape-3d-cyan  { background: var(--accent-cyan); }
.shape-3d-violet { background: var(--violet-core); }
.shape-3d-pink  { background: var(--holo-pink); }
.shape-3d-blue  { background: var(--accent-cyan-strong); }

.shape-3d:nth-child(odd)  { animation-duration: 7s; animation-delay: -2s; }
.shape-3d:nth-child(even) { animation-duration: 5s; animation-delay: -4s; }

@keyframes float3d {
  0%, 100% { transform: translateY(0) rotateZ(0deg) scale(1); }
  25%      { transform: translateY(-15px) rotateZ(3deg) scale(1.05); }
  50%      { transform: translateY(-25px) rotateZ(-2deg) scale(0.95); }
  75%      { transform: translateY(-10px) rotateZ(5deg) scale(1.02); }
}

/* --- 3D Tilt Card for hero content --- */
.hero-3d-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* --- Fallback: mobile and reduced motion --- */
@media (max-width: 768px) {
  .shape-3d { display: none; }
  .hero-3d-card { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .shape-3d { animation: none; opacity: 0.05; }
  .hero-3d-card { transform: none !important; transition: none !important; }
}

/* --- Reduced Motion: disable all scrollytelling --- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hidden {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .parallax-bg {
    transform: none !important;
  }
  .hero-entrance-subtitle, .hero-entrance-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   RESPONSIVE SYSTEM — 10 breakpoints (320→1920)
   ============================================================ */

/* --- ENHANCEMENT: min-width 1440px (large screens) --- */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero-content { max-width: 700px; }
}

/* --- ENHANCEMENT: min-width 1920px (full HD+) --- */
@media (min-width: 1920px) {
  .container { max-width: 1400px; }
  .hero-content { max-width: 800px; }
}

/* --- BASE FLUID FIXES (all screens) --- */
img, svg, video, canvas, iframe, table {
  max-width: 100%;
}

/* --- BREAKPOINT: max-width 1280px (small laptops) --- */
@media (max-width: 1280px) {
  .container { max-width: 960px; }
}

/* --- BREAKPOINT: max-width 1024px (tablets landscape) --- */
@media (max-width: 1024px) {
  .container { max-width: 900px; }
  h1 { font-size: clamp(1.75rem, 4vw, 2.5rem) !important; }
  h2 { font-size: clamp(1.5rem, 3.5vw, 2rem) !important; }
  .section { padding: 48px 0; }
  .hero { min-height: auto; padding: 100px 0 40px; }
  .hero-content { max-width: 100%; }
}

/* --- BREAKPOINT: max-width 768px (tablets) --- */
@media (max-width: 768px) {
  /* --- Navigation --- */
  .site-header { height: auto; min-height: 56px; padding: 8px 0; }
  .site-header .container { flex-wrap: wrap; gap: 8px; }
  .site-header nav {
    flex-wrap: wrap;
    gap: 6px !important;
    width: 100%;
    justify-content: flex-start;
    padding-top: 6px;
    border-top: 1px solid var(--border-soft);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-header nav a { font-size: 0.75rem !important; padding: 4px 6px; white-space: nowrap; }
  /* Hide theme/a11y toggles from nav wrap on very small screens */
  @media (max-width: 400px) {
    .site-header nav .theme-toggle { display: none; }
  }

  /* --- Hero --- */
  .hero { min-height: 100svh; padding: 80px 0 16px; }
  .hero-content { max-width: 100%; text-align: center; }
  h1 { font-size: 2rem !important; text-align: center; }
  .hero .text-large { font-size: 0.9375rem !important; }
  .hero p { font-size: 0.875rem !important; }
  .hero .hero-entrance-subtitle { text-align: center; max-width: 100% !important; }
  .hero-entrance-cta { flex-direction: column; gap: 10px !important; }
  .hero-entrance-cta .btn { width: 100%; text-align: center; }

  /* --- Sections --- */
  .section { padding: 40px 0; }
  h2 { font-size: 1.5rem !important; }
  h3 { font-size: 1.15rem !important; }

  /* --- Cards --- */
  .card, .glass-card, .bento-card { padding: 16px !important; }

  /* --- Grids — single column (class-based, not wildcard) --- */
  .bento-grid,
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns:repeat"],
  [style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* --- Tables — horizontal scroll --- */
  table { display: block; overflow-x: auto; font-size: 0.6875rem !important; }
  th, td { padding: 6px 8px !important; white-space: nowrap; }
  tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
  tbody tr:nth-child(odd) { background: rgba(0,0,0,0.08); }
  thead th { position: sticky; top: 0; background: var(--panel); z-index: 1; }

  /* --- Value proposition --- */
  .bento-grid.bento-3col { grid-template-columns: 1fr !important; }

  /* --- Discipline cards — keep larger gap for readability --- */
  [style*="grid-template-columns:1fr 1fr"] {
    gap: 24px !important;
  }

  /* --- Deep page heroes --- */
  .journey-hero, .about-hero, .faq-hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 32px;
  }
  .journey-hero h1, .about-hero h1, .faq-hero h1 {
    font-size: 1.75rem !important;
  }

  /* --- FAQ tabs --- */
  .status-tabs { gap: 6px; }
  .status-tab { padding: 8px 10px; font-size: 0.6875rem; min-width: auto; }
  .status-tab .tab-icon { font-size: 1rem; }

  /* --- Footer --- */
  footer .container > div {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  /* --- Chat --- */
  .chat-panel { width: calc(100vw - 32px); right: 0; bottom: 70px; }

  /* --- 3D shapes --- */
  .shape-3d { display: none; }

  /* --- Containers --- */
  .container { padding: 0 16px; }

  /* --- Buttons --- */
  .btn-lg { padding: 14px 24px; font-size: 0.9375rem; }

  /* --- Forms --- */
  input, textarea, select { font-size: 1rem; }

  /* --- Journey timeline --- */
  .timeline { flex-direction: column; gap: 16px; }
  .timeline::before { left: 27px; width: 2px; height: auto; top: 0; bottom: 0; }
  .timeline-step { flex-direction: row; text-align: left; gap: 12px; }
  .timeline-node { width: 40px; height: 40px; font-size: 0.875rem; }

  /* --- About org chart --- */
  .org-row { flex-direction: column; }
}

/* --- BREAKPOINT: max-width 640px (small tablets / large phones) --- */
@media (max-width: 640px) {
  h1 { font-size: 1.6rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.05rem !important; }
  .section { padding: 32px 0; }
  .hero { padding: 70px 0 12px; min-height: auto; }
  .container { padding: 0 12px; }
  .card, .glass-card, .bento-card { padding: 14px !important; }
  footer .container > div { grid-template-columns: 1fr !important; }
  .site-header .container { padding: 0 8px; }
  .site-header nav a { font-size: 0.6875rem !important; padding: 3px 5px; }
  /* Fix inline fixed-width blocks */
  [style*="width:680px"], [style*="width:700px"], [style*="width:720px"],
  [style*="width:760px"], [style*="width:780px"], [style*="width:800px"],
  [style*="width:820px"], [style*="width:860px"], [style*="width:900px"],
  [style*="width:960px"] {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* --- BREAKPOINT: max-width 480px (large phones) --- */
@media (max-width: 480px) {
  .hero { padding: 60px 0 10px; }
  .hero h1 { font-size: 1.5rem !important; }
  .hero .text-large { font-size: 0.8125rem !important; }
  .hero p { font-size: 0.75rem !important; }
  h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.15rem !important; }
  h3 { font-size: 1rem !important; }
  h4 { font-size: 0.875rem !important; }
  .btn { padding: 10px 18px; font-size: 0.8125rem; min-height: 40px; }
  .btn-lg { padding: 12px 20px; font-size: 0.875rem; }
  .section { padding: 28px 0; }
  .card, .glass-card, .bento-card { padding: 12px !important; }
  table { font-size: 0.625rem !important; }
  th, td { padding: 4px 6px !important; }
  .status-tab { padding: 6px 8px; font-size: 0.625rem; }
  .status-tabs { gap: 4px; }
  /* Hide decorative elements on small screens */
  .shape-3d, .tech-dots-bg { display: none; }
  .particle-canvas { opacity: 0.3; }
  /* Single column all grids */
  [style*="grid-template-columns:"] {
    grid-template-columns: 1fr !important;
  }
}

/* --- BREAKPOINT: max-width 400px (small phones) --- */
@media (max-width: 400px) {
  .hero { padding: 50px 0 8px; }
  .hero h1 { font-size: 1.35rem !important; }
  .hero-entrance-cta { gap: 8px !important; }
  .hero-entrance-cta .btn { padding: 10px 14px; font-size: 0.75rem; }
  .site-header nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .site-header nav a { white-space: nowrap; }
  .site-header .theme-toggle { display: none; }
  .site-header .a11y-toggle { display: none; }
  .container { padding: 0 10px; }
  .back-to-top { bottom: 12px; right: 12px; width: 36px; height: 36px; }
}
