/* ============================================
   OFM SITE — Полный дизайн (8 секций)
   Концепция B — Interactive Reveal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Bebas+Neue&family=Space+Grotesk:wght@400;500;700&family=Space+Mono:wght@400;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #F5F0EB;
  --bg-dark: #1A1A1A;
  --bg-darker: #111111;
  --accent-red: #E63946;
  --accent-red-glow: rgba(230, 57, 70, 0.25);
  --accent-red-soft: rgba(230, 57, 70, 0.08);
  --text-main: #1A1A1A;
  --text-light: #F5F5F5;
  --text-muted: #6B7280;
  --grid-line: #D4D0CB;

  --font-display: 'Bebas Neue', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Source Sans 3', 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --container-max: 1440px;
  --section-padding: clamp(16px, 4vw, 60px);
  --grid-gap: 2px;

  /* Brutalist overrides */
  --border-radius: 0px;
  --border-width: 2px;
  --neo-shadow: 4px 4px 0 var(--accent-red);
  --neo-shadow-dark: 4px 4px 0 rgba(230, 57, 70, 0.5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.5s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-primary);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Текстура */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Утилиты */
.text-red {
  color: var(--accent-red);
}

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

/* --- Light Paper Theme & Neo-Brutalism --- */
.hero-nav--light {
  background: rgba(245, 240, 235, 0.8) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.hero-nav--light .hero-nav__logo,
.hero-nav--light .hero-nav__icon {
  color: var(--text-main) !important;
  border-color: rgba(26, 26, 26, 0.1) !important;
}

.hero-nav--light .hero-nav__links a {
  color: rgba(26, 26, 26, 0.6) !important;
}

.hero-nav--light .hero-nav__links a:hover {
  color: var(--text-main) !important;
}

.hero-nav--light .hero-nav__tg-btn {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.paper-card {
  background: #FFFFFF;
  border: 2px solid var(--text-main);
  box-shadow: 4px 4px 0 var(--text-main);
  padding: clamp(20px, 4vw, 32px);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  position: relative;
}

.paper-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--text-main);
}

/* HUD Decor Helpers */
.hud-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--text-main);
  pointer-events: none;
}

.hud-corner--tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-corner--tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.hud-corner--bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.hud-corner--br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hud-marker-red {
  border-color: var(--accent-red);
}

.tech-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-subpage {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px;
  padding: 100px var(--section-padding) 60px;
  border-bottom: var(--grid-gap) solid var(--grid-line);
}

/* ============================================
   СЕКЦИЯ 1 — HERO
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: -1px -1px;
  border-bottom: var(--grid-gap) solid var(--grid-line);
  overflow-x: hidden;
}

/* --- Navigation (Mobile-First) --- */
.hero-nav {
  /* CSS Grid 2-col on mobile: logo | actions */
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px var(--section-padding);
  border-top: 4px solid var(--accent-red);
  border-bottom: none; /* Removed black border under header */
  /* Transparent — inherits grid background from .hero section */
  background: transparent;
  position: relative;
  z-index: 100;
}

.hero-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.05) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-nav__logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--duration-fast) var(--ease-smooth);
  justify-self: start; /* Pin logo to the left */
}

.hero-nav__logo:hover {
  color: var(--accent-red);
}

/* Оверрайд для темной навигации на светлом фоне (Sub-pages) */
.hero-nav--subpage .hero-nav__logo,
.hero .hero-nav__logo {
  color: var(--text-main);
}

.hero-nav--subpage .hero-nav__links a {
  color: rgba(26, 26, 26, 0.6);
}

.hero-nav--subpage .hero-nav__links a:hover,
.hero .hero-nav__logo:hover {
  color: var(--accent-red);
}

.hero-nav--subpage .hero-nav__tg-btn {
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-main);
}

.hero-nav--subpage .hero-nav__icon {
  color: var(--text-main);
}

.hero-nav__logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red-glow), 0 0 20px var(--accent-red-glow);
}

.hero-nav__links {
  display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
  .hero-nav {
    grid-template-columns: 1fr auto 1fr;
  }
  
  .hero-nav__links {
    display: flex;
    /* No position:absolute — grid column 2 handles centering perfectly */
    gap: 32px;
    list-style: none;
    justify-self: center;
    align-items: center;
  }
}

.hero-nav__links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245, 245, 245, 0.6);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.hero-nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-red);
  transition: width var(--duration-normal) var(--ease-out);
}

.hero-nav__links a:hover {
  color: var(--text-light);
}

.hero-nav__links a:hover::after {
  width: 100%;
}

/* Оверрайд для главной страницы (светлый фон) */
.hero .hero-nav__links a {
  color: rgba(26, 26, 26, 0.6);
}

.hero .hero-nav__links a:hover {
  color: var(--text-main);
}

.hero-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end; /* Pin actions to the right */
}

.hero-nav__tg-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: var(--border-width) solid var(--accent-red);
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-red);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.hero-nav__tg-btn:hover {
  background: var(--accent-red);
  color: #fff;
  box-shadow: var(--neo-shadow);
}

.hero-nav__tg-btn iconify-icon {
  font-size: 1rem;
}

.hero-nav__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all var(--duration-fast) var(--ease-smooth);
  cursor: pointer;
  background: transparent;
}

.hero-nav__icon:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* Оверрайд для главной страницы (светлый фон) */
.hero .hero-nav__icon {
  border: var(--grid-gap) solid var(--grid-line);
  color: var(--text-main);
}

.hero .hero-nav__icon:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* --- Hero Body (Mobile-First) --- */
.hero-main {
  /* Mobile: vertical stack */
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px var(--section-padding) 80px;
  border-bottom: none; /* Removed black border above the ticker */
}

/* Desktop: two-column left=text, right=GUI */
@media (min-width: 1024px) {
  .hero-main {
    display: grid;
    grid-template-columns: 55% 45%;
    grid-template-rows: 1fr;
    align-items: center;
    column-gap: 0;
    row-gap: 0;
    min-height: calc(100vh - 74px);
    padding: 0;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  position: relative;
  padding: 40px 40px 40px 80px; /* Red line channel: 80px left padding */
  min-width: 0;
}

/* Desktop — explicitly column 1, full height */
@media (min-width: 1024px) {
  .hero-content {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    justify-self: stretch;
    padding: 80px 60px 80px 80px;
  }
}

/* Red accent line - bold brutal center, soft fade */
.hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px; /* Align with left border of hero-content on mobile */
  width: 3px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent-red) 25%,
    var(--accent-red) 75%,
    transparent 100%
  );
  filter: drop-shadow(0 0 2px rgba(230, 57, 70, 0.5));
  opacity: 0.8;
  display: block;
}

.hero-title {
  /* Bebas Neue — оригинальный шрифт первой версии.
     UI/UX Pro Max: condensed display font идеален для Neo-Brutalist Agency header */
  font-family: var(--font-display); /* 'Bebas Neue' */
  font-weight: 400; /* Bebas Neue не имеет жирных вариантов, 400 = максимальный */
  font-size: clamp(6rem, 16vw, 20rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-main);
  user-select: none;
  /* Neo-Brutalist solid offset shadow */
  text-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
}

.hero-title__dot {
  display: inline-block;
  width: 0.11em;
  height: 0.11em;
  background-color: var(--accent-red);
  border-radius: 50%;
  margin-right: 0.04em;
  /* Centered perfectly relative to the 'O' */
  transform: translateY(-38%);
}

@keyframes glossy-shift {
  0% {
    transform: translateX(-30%) skewX(-5deg);
  }

  100% {
    transform: translateX(30%) skewX(5deg);
  }
}

.hero-subtitle {
  /* Source Sans 3 — оригинальный body шрифт первой версии.
     UI/UX Pro Max: body text должен контрастировать с display-шрифтом заголовка */
  font-family: var(--font-body); /* 'Source Sans 3', 'Inter' */
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 440px;
}

/* Divider */
.hero-divider {
  display: none;
}

.hero-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 100%;
  background: var(--accent-red);
  opacity: 0.2;
  filter: blur(10px);
}

.hero-divider::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.15) 0%, transparent 70%);
}

/* ============================================
   HERO INTERACTIVE CONFIGURATOR (Replaces Data Dash)
   ============================================ */
.hero-gui {
  position: relative;
  display: flex !important; /* Force Grid child visibility */
  opacity: 1 !important;
  visibility: visible !important;
  flex-direction: column;
  width: 100%;
  max-width: 620px;
  min-height: 480px; /* Prevent collapse */
  background: var(--bg-primary);
  border: 4px solid var(--text-main);
  box-shadow: 8px 8px 0 var(--text-main);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

@media (min-width: 1024px) {
  .hero-gui {
    grid-column: 2;
    grid-row: 1;
    /* Fill the right column, centered vertically */
    align-self: center;
    justify-self: center;
    margin: 0 auto;
    max-width: none;
    width: calc(100% - 80px); /* Give breathing room */
  }
}

.hero-gui__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 4px solid var(--text-main);
  background: var(--text-main);
  color: var(--bg-primary);
}

.hero-gui__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-gui__title .text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.hero-gui__status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 2px solid var(--text-main);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 2px 2px 0 var(--text-main);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 6px #2ecc71;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 1;
  }
}

.hero-gui__workspace {
  display: flex;
  flex-direction: row;
  min-height: 420px;
}

/* System Physics Bar - Horizontal strip below workspace */
.hero-gui__physics-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--bg-primary);
  border-top: var(--border-width) solid var(--text-main);
}

/* Parameters Column (Left) */
.hero-gui__params {
  flex: 1;
  /* Less priority */
  border-right: var(--border-width) solid var(--text-main);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  overflow-y: auto;
}

.gui-param-group {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Tighter gap (was 10px) */
}

.gui-param-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 0.05em;
}

.gui-param-tags {
  display: grid;
  grid-template-columns: 1fr; /* Switched to 1 column so text doesn't truncate */
  gap: 4px; /* More compact gap (was 8px) */
}

.gui-tag {
  background: var(--bg-primary);
  border: 1px solid var(--text-main); /* Thinner border for small UI */
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.65rem; /* Smaller text (was 0.7rem) */
  font-weight: 700;
  padding: 6px 8px; /* Tighter padding (was 8px 12px) */
  cursor: pointer;
  transition: all 0.1s linear;
  user-select: none;
  text-align: left;
  box-shadow: 2px 2px 0 var(--text-main);
  /* Truncate text if it overflows */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gui-tag:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--text-main);
  background: rgba(0, 0, 0, 0.05);
}

.gui-tag.is-active {
  background: var(--text-main);
  color: var(--bg-primary);
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* Toggle Switch Brutal */
.gui-toggle-group {
  margin-top: 5px;
}
.gui-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 12px;
}
.gui-toggle input {
  display: none;
}
.gui-toggle-slider {
  width: 44px;
  height: 24px;
  background: var(--bg-primary);
  border: 2px solid var(--text-main);
  position: relative;
  transition: all 0.2s;
  box-shadow: 3px 3px 0 var(--accent-red);
}
.gui-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--text-main);
  transition: all 0.2s;
}
.gui-toggle input:checked + .gui-toggle-slider {
  background: var(--accent-red);
  box-shadow: 3px 3px 0 var(--text-main);
}
.gui-toggle input:checked + .gui-toggle-slider::before {
  transform: translateX(20px);
  background: var(--text-main);
}
.gui-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Preview & Forecast Column (Right) */
.hero-gui__preview {
  flex: 1.5;
  /* Larger image */
  display: flex;
  flex-direction: column;
  background: transparent;
}

.gui-preview-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.gui-preview-visual img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

.gui-preview-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--text-main);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 2px 6px;
  z-index: 10;
  font-weight: 700;
}

.gui-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.05) 2px, rgba(0, 0, 0, 0.05) 4px);
  z-index: 2;
  pointer-events: none;
}

.gui-scanning-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: rgba(230, 57, 70, 0.3);
  filter: blur(4px);
  z-index: 3;
  animation: scan 4s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% {
    top: -10%;
  }

  100% {
    top: 110%;
  }
}

.hero-gui__corners {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  pointer-events: none;
  z-index: 4;
}

.hero-gui__corners::before,
.hero-gui__corners::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.hero-gui__corners::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.hero-gui__corners::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* Forecast Tablo Horizontal (replaces old .gui-forecast) */
.gui-forecast-tablo {
  border-top: var(--border-width) solid var(--text-main);
  background: #EBEBEB;
  /* Subtle grey contrast */
  background-image:
    linear-gradient(#e0e0e0 1px, transparent 1px),
    linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
  background-size: 10px 10px;
  border-bottom: var(--border-width) solid var(--text-main);
}

.gui-forecast-tablo__inner {
  display: block;
}

.gui-forecast-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px dotted var(--text-muted);
  text-transform: uppercase;
}

.gui-forecast-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 24px;
  background: var(--text-main);
  color: var(--bg-primary);
  border-bottom: 4px solid var(--text-main);
}

.gui-forecast-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
}

.gui-forecast-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.6);
}

.gui-forecast-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.gui-forecast-val.text-red {
  color: var(--accent-red);
}

.hero-gui__footer {
  display: flex;
  padding: 16px;
  background: var(--bg-primary);
}

.gui-btn-invest {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  padding: 16px;
  background: var(--accent-red);
  color: #fff;
  border: 4px solid var(--text-main);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--text-main);
  transition: all 0.1s linear;
}

.gui-btn-invest:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--text-main);
}

.hero-bottom--redesigned {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-width: 0;
}

.hero-ticker {
  width: 100%;
  overflow: hidden;
  background: var(--accent-red);
  color: #fff;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 0;
}

.hero-ticker__track {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-ticker__track span {
  padding: 0 20px;
}

.hero-cta-group {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  background: #050505;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Trust Indicators */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
}

.hero-trust__avatars {
  display: flex;
  padding-left: 8px;
  /* account for negative margin on children */
}

.hero-trust__avatars img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #050505;
  margin-left: -8px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.hero-trust:hover .hero-trust__avatars img {
  filter: grayscale(0%);
}

.hero-trust__text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  /* max-width removed to allow full inline text width */
}

.hero-trust__text strong {
  color: #fff;
}

.hero-trust__text strong.text-red {
  color: var(--accent-red);
  font-size: 0.85rem;
}

.hero-trust__main {
  display: block;
}

.hero-trust__sub {
  font-size: 0.65rem; 
  color: var(--text-muted); 
  opacity: 0.8;
  display: block; /* New line on mobile */
  margin-top: 4px;
}

.hero-trust__break {
  display: block;
}

@media (min-width: 1024px) {
  .hero-trust__main {
    display: inline;
  }
  .hero-trust__break {
    display: none;
  }
  .hero-trust__sub {
    display: inline; /* Keep in line on desktop */
    margin-left: 8px; /* space when inline */
    margin-top: 0;
  }
  .hero-trust__sub::before {
    content: '| ';
    padding-right: 4px;
  }
}

/* --- Custom Cursor --- */
.hero-main {
  /* Only hide standard cursor over the main content (so it comes back on nav) */
  cursor: none;
}

.custom-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-color: var(--accent-red);
  border-radius: 50%;
  pointer-events: none; /* Passes clicks through */
  /* Remove mix-blend-mode to keep it solid red */
  z-index: 9999;
  transform: translate(-50%, -50%); /* Centered on the pointer */
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  display: none; /* Hidden by default until JS kicks in */
}

/* When hovering over clickable items */
.custom-cursor.hovering {
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: 2px solid var(--accent-red);
}

@media (min-width: 1024px) {
  .custom-cursor {
    display: block; /* Only show custom cursor on desktop */
  }
}

/* Call to action button */
.hero-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  /* FIXED: Was 0 40px, causing it to collapse and be invisible */
  background: #fff;
  color: #111;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.hero-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-red);
  transition: left var(--duration-normal) var(--ease-out);
  z-index: 0;
}

.hero-cta-btn:hover::before {
  left: 0;
}

.hero-cta-btn:hover {
  color: #fff;
}

.hero-cta-btn span,
.hero-cta-btn iconify-icon {
  position: relative;
  z-index: 1;
  transition: color 0.3s;
}

.hero-cta-btn__gloss {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  transition: left 0.6s var(--ease-out);
}

.hero-cta-btn:hover .hero-cta-btn__gloss {
  left: 120%;
}

/* ============================================
   БЛОК 18+ — HEART GATE
   ============================================ */
.heart-gate {
  position: relative;
  /* Premium Horizontal Banner Constraints */
  height: 400px;
  /* Lock height absolutely on desktop */
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Force clipping so diagonal lines do not force vertical expansion */
  cursor: pointer;
  user-select: none;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* X-крест из двух диагональных линий */
.heart-gate__x-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  /* Линии внутри обрезаются, но коннекторы снаружи нет */
}

.heart-gate__line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 141%;
  height: 60px;
  background: rgba(230, 57, 70, 0.15);
  transform-origin: center center;
}

.heart-gate__line--1 {
  transform: translate(-50%, -50%) rotate(25deg);
}

.heart-gate__line--2 {
  transform: translate(-50%, -50%) rotate(-25deg);
}

/* Центральный элемент */
.heart-gate__center {
  position: absolute;
  top: 48%;
  /* Visually adjusted for the 'bottom heavy' heart */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: transform var(--duration-normal) var(--ease-elastic);
  display: flex;
  align-items: center;
  justify-content: center;
}

.heart-gate:hover .heart-gate__center {
  transform: translate(-50%, -50%) scale(1.05);
}

.heart-gate__svg {
  width: clamp(200px, 30vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.4));
}

.heart-gate__fill {
  transition: fill var(--duration-normal);
}

.heart-gate.is-clicked .heart-gate__fill {
  fill: #333;
  /* Разбитое сердце */
}

.heart-gate__crack {
  opacity: 0;
  transition: opacity 0.1s;
}

.heart-gate.is-clicked .heart-gate__crack {
  opacity: 1;
}

.heart-gate__label {
  position: absolute;
  top: 60%;
  left: 55%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  /* Shrunk slightly */
  font-weight: 700;
  padding: 3px 10px;
  /* Reduced padding */
  border: 2px solid #fff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.heart-gate__footnote {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  z-index: 2;
  white-space: nowrap; /* Forces footnote to a single line */
}

.heart-gate__hint {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.1em;
  z-index: 10;
  animation: float-hint 2s ease-in-out infinite;
  pointer-events: none;
  background: rgba(26, 26, 26, 0.8);
  padding: 4px 12px;
  border: 1px solid var(--accent-red);
  backdrop-filter: blur(4px);
}

@keyframes float-hint {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

/* Соединительные линии (Connectors) */
.heart-gate__connectors {
  position: absolute;
  bottom: -60px;
  /* Заходят на следующую секцию */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 120px;
  z-index: 5;
}

.heart-gate__connector {
  width: 4px;
  height: 120px;
  background: var(--accent-red);
  position: relative;
}

.heart-gate__connector::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -6px;
  width: 16px;
  height: 4px;
  background: var(--accent-red);
}

/* ============================================
   СЕКЦИЯ 2 — МАНИФЕСТ (Digital Architect Box)
   ============================================ */
.manifesto {
  padding: clamp(80px, 10vw, 120px) var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.manifesto__box {
  border: 4px solid var(--text-light);
  background: var(--bg-darker);
  display: flex;
  flex-direction: column;
  position: relative;
  /* Двойная подложка: белая + красная (вариант А) */
  box-shadow: 6px 6px 0 #ffffff, 13px 13px 0 rgba(230, 57, 70, 0.5);
}

/* Header */
.manifesto__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 4px solid #111;
  /* Changed border to dark solid to separate from red */
  background: var(--accent-red);
}

.manifesto__icons,
.manifesto__actions {
  display: flex;
  gap: 16px;
  font-size: 1.5rem;
  /* High contrast black on red */
  color: #111;
}

.manifesto__brand {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #111;
}

/* ============================================
   РАЗДЕЛИТЕЛЬ-MARQUEE (Heart Gate → Manifesto)
   ============================================ */
.section-marquee {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.section-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: sectionMarquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.section-marquee__track span {
  padding: 0 18px;
}

.section-marquee__dot {
  color: var(--accent-red);
  opacity: 0.5;
  font-size: 8px;
  padding: 0 4px !important;
}

@keyframes sectionMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   МАНИФЕСТ — 9:16 ВИДЕО
   ============================================ */

/* Левая часть — Video Stack (белый фон, видео как фото на бумаге) */
.manifesto__left-col {
  border-right: 4px solid var(--text-light);
  /* Белый фон — чистый, без бежевого */
  background: #ffffff;
  /* Светлый фон — тёмные видео контрастируют */
  position: relative;
  /* overflow: visible — нижние карточки торчат за пределы стека */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Смещаем влево чтобы справа было место для peek */
  padding: 32px 40px 60px 28px;
  /* Снизу и справа — пространство для peek */
  clip-path: none;
  /* Не обрезаем */
}

/* SVG grain / шум бумаги поверх фона */
.manifesto__left-col::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  mix-blend-mode: multiply;
}

/* Тиндер-стек карточек */
.manifesto__video-stack {
  position: relative;
  /* Стек занимает 78% ширины колонки — остаток справа/снизу для peek нижних карточек */
  width: 78%;
  aspect-ratio: 9 / 16;
  max-height: 62vh;
  cursor: pointer;
  flex-shrink: 0;
}

.manifesto__video-card {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  overflow: hidden;
  /* Плавность: will-change + длиннее переход */
  will-change: transform, opacity;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease;
}

/* Тёмный оверлей на нижних карточках — затемняем их через ::after */
.manifesto__video-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.75s ease;
  pointer-events: none;
  z-index: 2;
}

/* Карточка data-index="2" — самая нижняя: смещена вниз-вправо, сильно затемнена */
.manifesto__video-card[data-index="2"] {
  transform: scale(0.86) translate(18px, 12%) rotate(3deg);
  z-index: 1;
}

.manifesto__video-card[data-index="2"]::after {
  background: rgba(0, 0, 0, 0.55);
}

/* Карточка data-index="1" — средняя: небольшое смещение вправо и вниз */
.manifesto__video-card[data-index="1"] {
  transform: scale(0.93) translate(9px, 6%) rotate(1.5deg);
  z-index: 2;
}

.manifesto__video-card[data-index="1"]::after {
  background: rgba(0, 0, 0, 0.28);
}

/* Верхняя (активная) карточка — никакого смещения, никакого затемнения */
.manifesto__video-card.is-active,
.manifesto__video-card[data-index="0"] {
  transform: scale(1) translate(0, 0) rotate(0deg);
  opacity: 1;
  z-index: 3;
}

.manifesto__video-card[data-index="0"]::after,
.manifesto__video-card.is-active::after {
  background: rgba(0, 0, 0, 0) !important;
}

/* Анимация ухода верхней карточки (быстро, свайп вправо) */
.manifesto__video-card.is-leaving {
  transform: translateX(115%) scale(0.9) rotate(5deg);
  opacity: 0;
  z-index: 4;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Курсор-подсказка: стек кликабелен */
.manifesto__video-stack {
  cursor: pointer;
}

.manifesto__video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Метрики-пилюли поверх видео */
.manifesto__video-metrics {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 3;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(230, 57, 70, 0.5);
  border-left: 3px solid var(--accent-red);
  align-self: flex-start;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
}

.metric-pill:nth-child(1) {
  animation-delay: 1.2s;
}

.metric-pill:nth-child(2) {
  animation-delay: 1.5s;
}

.metric-pill:nth-child(3) {
  animation-delay: 1.8s;
}

.metric-pill__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-red);
}

.metric-pill__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Content Grid — асимметричный: видео | текст */
.manifesto__content {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: stretch;
  /* Уменьшаем высоту блока в 1.5× — убираем min-height */
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Правая часть — Текст + Шаги */
.manifesto__right-col {
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  background: transparent;
  /* Changed from var(--bg-darker) so elements float */
  overflow: hidden;
}

/* Зона A — Terminal Style */
.manifesto__terminal {
  background: #0a0a0a;
  /* Very deep dark for terminal */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Terminal Header Bar */
.manifesto__terminal-header {
  background: #1a1a1a;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* macOS like dots */
.manifesto__terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.manifesto__terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.manifesto__terminal-dots span:nth-child(1) {
  background: #ff5f56;
}

/* Close red */
.manifesto__terminal-dots span:nth-child(2) {
  background: #ffbd2e;
}

/* Min yellow */
.manifesto__terminal-dots span:nth-child(3) {
  background: #27c93f;
}

/* Max green */

/* Terminal Path */
.manifesto__terminal-path {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #666;
  letter-spacing: 0.05em;
  user-select: none;
}

/* Terminal body padding & active line effect */
.manifesto__text-zone {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-left: 3px solid var(--accent-red);
  /* Active line indicator */
}

/* Blinking Cursor */
.terminal-cursor {
  color: var(--accent-red);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Prompt chevron */
.manifesto__desc-prompt {
  color: var(--accent-red);
  font-family: var(--font-mono);
  margin-right: 6px;
  opacity: 0.8;
}

.manifesto__text-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

/* Обёртка заголовка — нейтральная, без акцентов */
.manifesto__title-wrap {
  padding: 0;
}

.manifesto__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 0;
  color: var(--text-light);
}

.manifesto__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  /* max-width убран — текст занимает всю ширину, фраза помещается в одну строку */
  max-width: none;
  margin-bottom: 0;
}

.manifesto__desc strong {
  color: var(--accent-red);
  font-weight: 600;
}

.manifesto__cta-box {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  padding: 16px 24px; /* Slightly taller for mobile touch target */
  border: none;
  background: var(--accent-red);
  cursor: pointer;
  transition: all var(--duration-fast);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.manifesto__cta-box:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
  background: #c8303e;
}

.manifesto__cta-box:hover .manifesto__cta-text,
.manifesto__cta-box:hover iconify-icon {
  color: #ffffff;
}

/* FIX: START NOW всегда белый (раньше сливался с чёрным фоном) */
.manifesto__cta-text {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

/* ============================================
   MANIFESTO STEPS — Горизонтальные табы
   ============================================ */
.manifesto-steps {
  /* flex: 1 убран — блок больше не растягивается, высота = контент */
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Softer border */
  border-radius: 6px;
  /* Match terminal rounding */
  background: #0a0a0a;
  /* Add dark background for standalone widget */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  min-height: 0;
  margin-top: 12px;
  /* Pull tighter to terminal */
}

/* Таб-бар */
.manifesto-steps__tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow-x: auto;
  scrollbar-width: none;
}

.manifesto-steps__tabs::-webkit-scrollbar {
  display: none;
}

.manifesto-steps__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  background: none;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  min-width: 60px;
}

.manifesto-steps__tab:last-child {
  border-right: none;
}

.manifesto-steps__tab:hover {
  background: rgba(255, 255, 255, 0.05);
}

.manifesto-steps__tab.is-active {
  border-bottom-color: var(--accent-red);
  background: rgba(230, 57, 70, 0.06);
}

.manifesto-steps__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.05em;
}

.manifesto-steps__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.2s ease;
  display: none; /* Hidden on mobile */
}

.manifesto-steps__tab.is-active .manifesto-steps__label {
  color: rgba(255, 255, 255, 0.85);
}

/* Контент-панели — высота по содержимому, не растягиваем */
.manifesto-steps__panels {
  position: relative;
  overflow: hidden;
}

.manifesto-steps__panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 20px 24px;
  animation: fadeUp 0.3s ease;
}

.manifesto-steps__panel.is-active {
  display: flex;
}

.manifesto-steps__panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.manifesto-steps__icon {
  font-size: 1.2rem;
  color: var(--accent-red);
}

.manifesto-steps__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-left: auto;
}

/* --- Media Queries Desktop Restoration --- */
@media (min-width: 1024px) {
  .manifesto__text-zone-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    gap: 16px;
  }
  
  .manifesto__cta-box {
    width: auto;
    justify-content: flex-start;
    align-self: flex-start;
    padding: 12px 20px;
  }
  
  .manifesto-steps__label {
    display: inline;
  }
}

.manifesto-steps__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-light);
  margin: 0;
}

.manifesto-steps__text {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.manifesto-steps__text strong {
  color: var(--text-light);
}

.manifesto-steps__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.manifesto-steps__badges span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 3px 8px;
  border: 1px solid rgba(230, 57, 70, 0.35);
  color: rgba(230, 57, 70, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 1px;
}

/* Marquee */
.manifesto__marquee {
  border-top: 4px solid var(--text-light);
  padding: 12px 0;
  background: var(--accent-red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
}

.marquee-content span {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 16px;
  vertical-align: middle;
}

.marquee-content iconify-icon {
  font-size: 0.6rem;
  vertical-align: middle;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ========================================= */
/* NEO-BRUTALISM GLOBAL OVERRIDES (SUB-PAGES)*/
/* ========================================= */
.hero-subpage {
  background-color: transparent !important;
  border-bottom: 2px solid var(--text-main) !important;
  position: relative;
}
.hero-subpage::before {
  display: none !important;
}

.paper-card, .bento-card, .terminal-widget, .ticker-board, .feat-card, .stack-card, .partner-card, .investor-card {
  background: var(--bg-primary) !important;
  border: 2px solid var(--text-main) !important;
  box-shadow: 6px 6px 0 var(--text-main) !important;
  color: var(--text-main) !important;
  border-radius: 0 !important;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.paper-card:hover, .bento-card:hover, .terminal-widget:hover, .ticker-board:hover, .feat-card:hover, .stack-card:hover, .partner-card:hover, .investor-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--text-main) !important;
}

.paper-card p, .bento-card p, .terminal-widget p, .ticker-board span, .ticker-board div {
  color: var(--text-main) !important;
}

.paper-card h1, .paper-card h2, .paper-card h3,
.bento-card h1, .bento-card h2, .bento-card h3,
.terminal-widget h1, .terminal-widget h2, .terminal-widget h3 {
  color: var(--text-main) !important;
}

.text-red, .accent-red, .terminal-data-val--red, .ticker-val--up {
  color: var(--accent-red) !important;
}
.text-muted {
  color: var(--text-muted) !important;
}

/* ----------------------------------------- */
/* DOSSIER (MAGAZINE) NEO-BRUTALISM          */
/* ----------------------------------------- */
.dossier__id-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-main);
  padding: 8px 15px;
  border-bottom: 2px solid var(--text-main);
  display: flex;
  justify-content: space-between;
  background: var(--grid-line);
  font-weight: 700;
  text-transform: uppercase;
}
.dossier__id-badge--featured {
  margin: -60px -60px 40px -60px;
}
@media (max-width: 768px) {
  .dossier__id-badge--featured {
    margin: -40px -40px 30px -40px;
  }
}
.dossier__img {
  transition: filter 0.2s steps(3);
  filter: contrast(100%) grayscale(20%);
}
.dossier-article:hover .dossier__img {
  /* Glitch-like effect on hover */
  filter: contrast(120%) sepia(100%) hue-rotate(300deg) saturate(300%);
}

/* Responsive Manifesto */
@media (max-width: 1024px) {
  .manifesto__content {
    grid-template-columns: 1fr;
  }

  .manifesto__left-col {
    border-right: none;
    border-bottom: 4px solid var(--text-light);
    padding: 20px;
    /* allow it to grow naturally */
  }

  .manifesto__video-wrap {
    /* remove aggressive constraints that break ratio */
    max-height: 80vh;
    aspect-ratio: 9/16;
  }

  .manifesto__video-stack {
    /* Base this on width so we preserve height proportionally (9:16) */
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/16;
    height: auto;
    max-height: none;
    /* remove 60vw squashing */
    margin: 0 auto;
  }

  /* Tabs: горизонтальный скролл на мобиле уже работает через overflow-x: auto */
  .manifesto__right-col {
    padding: 24px 20px;
  }
}

/* ============================================
   СЕКЦИЯ 3 — ДОСЬЕ (Dossier Cards)
   ============================================ */
.dossier {
  padding: clamp(60px, 10vw, 120px) var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Фоновая текстура-сетка */
.dossier::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.dossier__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Eyebrow */
.dossier__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dossier__eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-red);
  white-space: nowrap;
}

.dossier__eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-red) 0%, transparent 100%);
  opacity: 0.4;
}

/* Headline */
.dossier__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--text-main);
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* Cards grid */
.dossier__cards {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
}

/* === ДОСЬЕ-КАРТОЧКА === */
.dossier-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

/* КАРТОЧКА КОНКУРЕНТОВ */
.dossier-card--them {
  background: #F0EDE8;
  border: 2px solid #C8C3BC;
  border-right: none;
  padding: 32px;
  cursor: default;
  filter: saturate(0.7);
}

.dossier-card--them:hover {
  transform: scale(0.98) translateX(-4px);
  filter: saturate(0.5) brightness(0.9);
}

/* Диагональный штамп УСТАРЕЛО */
.dossier-card__stamp {
  position: absolute;
  top: 38px;
  right: -40px;
  width: 200px;
  text-align: center;
  background: #999;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 0;
  transform: rotate(35deg);
  transform-origin: center;
  z-index: 10;
  opacity: 0.85;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* НАША КАРТОЧКА */
.dossier-card--us {
  background: var(--bg-darker);
  border: 2px solid var(--accent-red);
  border-left: none;
  padding: 32px;
  cursor: default;
}

.dossier-card--us:hover {
  transform: scale(1.02) translateX(4px);
  box-shadow: 8px 8px 0 var(--accent-red), 0 0 40px var(--accent-red-glow);
}

/* Красное свечение у нашей карточки */
.dossier-card__glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: dossier-glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes dossier-glow-pulse {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Header строка FILE # + STATUS */
.dossier-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dossier-card__id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
}

.dossier-card--them .dossier-card__id {
  color: var(--text-main);
}

.dossier-card--us .dossier-card__id {
  color: var(--text-light);
}

.dossier-card__status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.dossier-card__status--bad {
  color: #999;
}

.dossier-card__status--good {
  color: var(--accent-red);
}

/* Название карточки */
.dossier-card__title-block {
  margin-bottom: 20px;
}

.dossier-card__type {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.dossier-card--them .dossier-card__type {
  color: #555;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.dossier-card--us .dossier-card__type {
  color: var(--text-light);
}

.dossier-card__subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.5;
}

.dossier-card--them .dossier-card__subtitle {
  color: var(--text-main);
}

.dossier-card--us .dossier-card__subtitle {
  color: var(--text-light);
}

/* Divider */
.dossier-card__divider {
  height: 2px;
  margin-bottom: 20px;
}

.dossier-card--them .dossier-card__divider {
  background: #C8C3BC;
}

.dossier-card--us .dossier-card__divider {
  background: linear-gradient(90deg, var(--accent-red) 0%, transparent 100%);
}

/* Строки характеристик */
.dossier-card__rows {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dossier-card__rows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed;
}

.dossier-card--them .dossier-card__rows li {
  border-color: rgba(0, 0, 0, 0.1);
}

.dossier-card--us .dossier-card__rows li {
  border-color: rgba(255, 255, 255, 0.07);
}

.dossier-card__rows li:last-child {
  border-bottom: none;
}

.dossier-card__field {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

.dossier-card--them .dossier-card__field {
  color: #888;
}

.dossier-card--us .dossier-card__field {
  color: rgba(255, 255, 255, 0.3);
}

.dossier-card__val {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}

.dossier-card__val--bad {
  color: #888;
}

.dossier-card__val--good {
  color: rgba(255, 255, 255, 0.8);
}

/* Героическая строка НОЛЬ */
.dossier-card__val--hero {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-red) !important;
  letter-spacing: 0.05em;
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-red-glow);
}

/* Footer */
.dossier-card__footer {
  margin-top: 20px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}

.dossier-card__footer--bad {
  background: rgba(0, 0, 0, 0.08);
  color: #999;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dossier-card__footer--good {
  background: var(--accent-red);
  color: #fff;
  letter-spacing: 0.12em;
}

/* === VS разделитель === */
.dossier__vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 5;
}

.dossier__vs-text {
  width: 44px;
  height: 44px;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1rem;
  border: 2px solid var(--accent-red);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  box-shadow: 0 0 16px var(--accent-red-glow);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.dossier__vs-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, transparent 0%, var(--accent-red) 20%, var(--accent-red) 80%, transparent 100%);
  opacity: 0.3;
}

/* === Слоган-вердикт === */
.dossier__verdict {
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 2px solid var(--text-main);
  position: relative;
}

.dossier__verdict-inner {
  padding-top: clamp(32px, 5vw, 56px);
}

.dossier__verdict-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 20px;
}

.dossier__verdict-stat {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em;
  margin-bottom: 24px;
}

.dossier__vs-stat {
  /* анимируемая цифра */
  color: var(--text-main);
}

.dossier__vs-unit {
  font-size: 0.45em;
  letter-spacing: 0.08em;
  opacity: 0.6;
  text-transform: uppercase;
  font-family: var(--font-heading);
  font-weight: 700;
}

.dossier__vs-sep {
  color: var(--accent-red);
  opacity: 0.5;
  font-size: 0.5em;
}

.dossier__vs-zero {
  color: var(--accent-red);
  position: relative;
}

.dossier__vs-zero::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-red);
  opacity: 0.4;
}

.dossier__verdict-sub {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 768px) {
  .dossier__cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .dossier-card--them {
    border-right: 2px solid #C8C3BC;
    border-bottom: none;
  }

  .dossier-card--us {
    border-left: 2px solid var(--accent-red);
    border-top: none;
  }

  .dossier__vs {
    flex-direction: row;
    height: 44px;
    background: var(--bg-primary);
    position: relative;
    z-index: 5;
  }

  .dossier__vs-line {
    flex: 1;
    width: auto;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--accent-red) 20%, var(--accent-red) 80%, transparent 100%);
  }

  .dossier__vs-text {
    flex-shrink: 0;
  }

  .dossier__verdict-stat {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
}





/* ============================================
   СЕКЦИЯ 4 — СИСТЕМА
   ============================================ */
.system {
  padding: clamp(60px, 10vw, 120px) var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* Establishes stacking context so ::before doesn't hide behind body bg */
}

.system::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  opacity: 0.6;
  /* Stronger opacity for texture */
  mix-blend-mode: multiply;
  /* Helps the texture "stain" the background properly */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='5' result='noise' /%3E%3CfeDiffuseLighting in='noise' lighting-color='%23fff' surfaceScale='2.5'%3E%3CfeDistantLight azimuth='45' elevation='60' /%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' /%3E%3C/svg%3E");
  pointer-events: none;
}

.system__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.system__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 16px;
}

.system__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.5rem); /* Lowered minimum size to prevent overflow */
  line-height: 1.1;
  margin-bottom: 8px;
  word-wrap: break-word; /* Ensure long words break safely */
}

.system__subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ============================================
   7. SECTION 4 — VISUAL CASCADE
   ============================================ */
.system__cascade-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  /* More space for visuals */
  gap: 60px;
  /* Increased gap */
  position: relative;
  min-height: 100vh;
  margin-bottom: 100px;
}

/* --- LEFT COLUMN: VISUALS --- */
.cascade__visuals {
  position: relative;
  height: 250vh;
  /* Extended to allow a long scroll track for the sticky element */
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  /* Divider Line */
  margin-right: -30px;
  /* Pull divider into gap */
  padding-right: 30px;
}

.cascade__img-wrap {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  z-index: 1;
  /* Default shadow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* --- Varied Sizes & Positions (Organic Feel) --- */

/* --- Varied Sizes & Positions (Organic Feel) --- */

/* 1. LoRA (Narrower & Higher - Requested) */
.cascade__img-wrap[data-step="0"] {
  width: 34%;
  /* Narrower (was 40%) */
  aspect-ratio: 4/5;
  top: 5%;
  /* Lowered from -5% */
  left: 15%;
  /* Shifted slightly to center */
  z-index: 5;
}

/* 2. Content (Wide Landscape - Lifted) */
.cascade__img-wrap[data-step="1"] {
  width: 60%;
  aspect-ratio: 16/8;
  top: 25%;
  /* Lowered to group closer and overlap LoRA */
  left: 35%;
  /* Shifted right so it overlaps but doesn't completely block */
  z-index: 4;
}

/* 3. Traffic (Small Square - Lifted) */
.cascade__img-wrap[data-step="2"] {
  width: 35%;
  aspect-ratio: 1/1;
  top: 42%;
  /* Brought closer to Content block */
  left: 10%;
  /* Shifted left to overlap Content */
  z-index: 6;
}

/* 4. Platforms (Large Portrait - Lifted) */
.cascade__img-wrap[data-step="3"] {
  width: 50%;
  aspect-ratio: 3/4;
  top: 52%;
  /* Brought closer to Traffic block */
  left: 45%;
  /* Shifted right for dynamic overlap */
  z-index: 3;
}

/* 5. Security (3x Larger & Lifted) */
.cascade__img-wrap[data-step="4"] {
  width: 36%;
  /* 12% * 3 = 36% */
  aspect-ratio: 4/3;
  /* Standard landscape again */
  top: 72%;
  /* Lifted to overlap Platforms */
  left: 20%;
  /* Moved to balance visually */
  z-index: 7;
}

.cascade__img-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  filter: grayscale(100%) contrast(1.1) brightness(0.9);
  transition: all 0.5s ease;
  background: #111;
}

.cascade__img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

/* Hover / Active State */
.cascade__img-wrap:hover,
.cascade__img-wrap.is-active {
  z-index: 20 !important;
  /* Highest priority */
  transform: scale(1.05);
  /* Subtle scale */
}

.cascade__img-wrap:hover .cascade__img-inner,
.cascade__img-wrap.is-active .cascade__img-inner {
  filter: grayscale(0%) contrast(1) brightness(1);
  box-shadow: 0 30px 60px rgba(236, 72, 153, 0.2);
  border: 1px solid var(--accent-red);
}

.cascade__img-wrap:hover img,
.cascade__img-wrap.is-active img {
  transform: scale(1.1);
}

/* Overlay Label on Image (Smaller & Neat) */
.cascade__overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: auto;
  /* Allow outline to shrink to content */
  padding: 6px 10px;
  /* Compact padding */
  background: rgba(0, 0, 0, 0.9);
  /* Solid dark box */
  backdrop-filter: blur(5px);
  border-left: 2px solid var(--accent-red);
  display: flex;
  gap: 8px;
  align-items: center;
  transform: translateY(0);
  max-width: 80%;
  /* Prevent it from being too wide */
}

/* Specific Override for Image 4 (Private Platforms) - Top Right */
.cascade__img-wrap[data-step="3"] .cascade__overlay {
  bottom: auto;
  left: auto;
  top: 15px;
  right: 15px;
  border-left: none;
  border-right: 2px solid var(--accent-red);
  /* Switch border side */
  flex-direction: row-reverse;
  /* Flip text/number order for right alignment */
}

.cascade__num {
  font-family: var(--font-mono);
  color: var(--accent-red);
  font-weight: bold;
  font-size: 0.8rem;
  /* Compact font */
}

.cascade__label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.7rem;
  /* Compact font */
  letter-spacing: 0.05em;
  color: #fff;
}

/* Explicit white */

/* --- RIGHT COLUMN: STICKY CONTENT --- */
.cascade__content {
  position: relative;
  padding-top: 5vh;
  padding-left: 40px;
  z-index: 10;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: -1px;
  padding-bottom: 20vh;
}

/* MONOLITHIC WRAPPER (Solid Red Volume Base) */
.cascade__text-wrapper {
  position: sticky;
  top: 5vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  background-color: var(--accent-red);
  background-image:
    radial-gradient(circle at top right, rgba(0, 0, 0, 0.1) 0%, transparent 60%),
    linear-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  overflow: hidden;

  /* Padding handles the structure */
  padding-right: 16px;
  padding-bottom: 16px;

  padding-right: 16px;
  /* Reveals red/tape on the right of the text plaque */
  padding-bottom: 16px;
  /* Reveals red/tape on the bottom of the text plaque */

  /* 2. Chamfered Cut on the overall wrapper */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);

  /* 3. Gray underlay (solid shadow) and soft ambient shadow */
  filter: drop-shadow(-8px 8px 0 #2a2a2a) drop-shadow(-4px 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.cascade__text-wrapper:hover {
  transform: translate(4px, -4px);
  filter: drop-shadow(-12px 12px 0 #2a2a2a) drop-shadow(-6px 6px 15px rgba(0, 0, 0, 0.5));
}

/* WATERMARK */
.cascade__watermark {
  position: absolute;
  top: 30px;
  right: -20px;
  font-family: var(--font-heading);
  font-size: 25rem;
  color: rgba(0, 0, 0, 0.03);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* HARDWARE TOP BAR */
.cascade__hardware-bar {
  width: calc(100% + 16px);
  /* account for the right wrapper padding */
  height: 24px;
  background: #111;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  z-index: 10;
}

.hardware-barcode {
  width: 100px;
  height: 10px;
  background: repeating-linear-gradient(90deg,
      #555,
      #555 2px,
      transparent 2px,
      transparent 4px,
      #555 4px,
      #555 5px,
      transparent 5px,
      transparent 8px);
  opacity: 0.5;
}

.hardware-specs {
  display: flex;
  gap: 15px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #666;
  letter-spacing: 0.1em;
}

.hardware-specs span:first-child {
  color: #4ade80;
  /* Green LED OK */
}

/* UI DECALS */
.cascade__decal {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.5);
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cascade__decal--top {
  top: 40px;
  /* Offset below hardware bar */
  right: 25px;
}

.cascade__decal--left {
  top: 90px;
  left: -40px;
  transform: rotate(-90deg);
  transform-origin: top right;
}

@media (max-width: 1600px) {
  .cascade__decal--left {
    left: -25px;
    /* closer to the edge on smaller screens */
  }
}

.rec-dot {
  width: 6px;
  height: 6px;
  background-color: #ff0000;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #ff0000;
  animation: recBlink 1.5s infinite;
}

@keyframes recBlink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 8px #ff0000;
  }

  50% {
    opacity: 0.3;
    box-shadow: 0 0 2px #ff0000;
  }
}

/* 1. Header Group (The exclusively red part) */
.cascade__header-group {
  padding: 40px 40px 10px 40px;
  margin-right: -16px;
  background: transparent;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.cascade__header-group .system__title {
  color: #111;
  /* Deep black on pure red */
  text-shadow: none;
}

.cascade__header-group .system__eyebrow {
  color: #111;
  font-weight: 800;
  opacity: 0.8;
}

/* 2. Text Box Group (The black plaque) */
.cascade__text-group {
  display: grid;
  grid-template-areas: "stack";
  padding: 40px;
  background: #111;
  /* The black layer drops down */
  border-top: 1px solid rgba(255, 255, 255, 0.05);

  position: relative;
  z-index: 2;
  /* Sits above the tape */
  /* Must match the wrapper's clip-path angle exactly to keep the red/tape border uniform */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);

  box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.5);
  /* subtle inner depth */
}

.cascade__text-item {
  grid-area: stack;
  /* All items in same cell */
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

/* Hide mobile accordion elements on desktop */
.cascade__mobile-header,
.desktop-only {
  display: none;
}

.cascade__text-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
  /* Ensure it takes space? Actually grid items take space by default */
  z-index: 2;
}

/* Interaction Hint */
.cascade__hint {
  position: absolute;
  top: -30px;
  right: 10%;
  /* Moved to right side */
  left: auto;
  /* Reset left */
  z-index: 20;
  pointer-events: none;
  animation: pulseHint 2s infinite ease-in-out;
}

.cascade__hint span {
  font-family: var(--font-mono);
  color: var(--accent-red);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border: 1px solid var(--accent-red);
}

@keyframes pulseHint {

  0%,
  100% {
    opacity: 0.7;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.cascade__item-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.cascade__item-subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-red);
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-block;
}

.cascade__list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
}

.cascade__list li {
  margin-bottom: 20px;
  padding-left: 25px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.cascade__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-red);
}

.cascade__list strong {
  color: #fff;
  font-weight: 600;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
  .system__cascade-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    height: auto;
    min-height: auto;
    margin-bottom: 60px;
  }

  /* Hide the horizontal photo swiper completely on mobile */
  .cascade__visuals {
    display: none;
  }

  /* Kills the giant invisible watermark dragging out the screen boundary */
  .cascade__watermark {
    display: none;
  }
  
  /* Hard cut to eliminate all Safari layout calculation bugs */
  .system {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .cascade__content {
    padding-top: 0;
    padding-left: 0;
  }

  .cascade__text-wrapper {
    position: relative;
    top: 0;
    padding: 24px 20px;
    width: 100%;
    box-sizing: border-box; /* Force padding inside width */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%); /* Scaled cut for mobile */
  }

  .cascade__item-title {
    font-size: 1.8rem;
  }

  .cascade__decal--left {
    left: -15px;
    /* Pull it inwards on mobile to avoid bleed */
    top: 70px;
    /* Move slightly up */
  }

  .cascade__header-group {
    padding: 30px 20px 10px 20px;
  }

  /* ACCORDION MOBILE REWRITE */
  .desktop-only {
    display: block !important;
  }

  .cascade__text-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: transparent;
    box-shadow: none;
    clip-path: none;
    border-top: none;
  }

  .cascade__text-item {
    grid-area: auto;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: perspective(1px) scale(1) translateZ(0);
    pointer-events: auto;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .cascade__text-item.is-active {
    border-color: rgba(217, 32, 39, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(217, 32, 39, 0.2);
    transform: none; /* User explicitly requested disabling scale effect on mobile due to strict iOS Safari container overflow bugs */
    z-index: 10;
  }

  .cascade__mobile-header {
    display: block !important;
    position: relative;
    padding: 15px;
    cursor: pointer;
    background: transparent;
  }

  .cascade__text-item.is-active .cascade__mobile-header {
    background: transparent;
  }

  .cascade__mobile-img {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .cascade__text-item.is-active .cascade__mobile-img {
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    border-radius: 12px 12px 0 0;
  }

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

  /* WRAPPER FOR TEXT + ICON TO AVOID IMAGE OVERLAP */
  .cascade__mobile-content-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-left: 75px;
    /* 60px image + 15px space */
    min-height: 60px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .cascade__text-item.is-active .cascade__mobile-content-row {
    margin-left: 0;
    margin-top: 185px;
    /* pushes down below 200px absolute image */
  }

  .cascade__mobile-title {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .cascade__mobile-title .cascade__num {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2px;
  }

  .cascade__text-item.is-active .cascade__mobile-title .cascade__num {
    color: rgba(255, 255, 255, 0.9);
  }

  .cascade__mobile-title h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
  }

  .cascade__mobile-icon {
    font-size: 1.5rem;
    color: #fff;
    transition: transform 0.3s ease;
  }

  .cascade__text-item.is-active .cascade__mobile-icon {
    transform: rotate(180deg);
  }

  /* Accordion Content Area / Fluid grid animation */
  .cascade__accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 0.5;
    background: #111;
  }

  .cascade__text-item.is-active .cascade__accordion-body {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .cascade__text-content {
    overflow: hidden;
    padding: 0 15px;
  }

  .cascade__text-item.is-active .cascade__text-content {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  /* Within the traditional non-mobile HTML structure we had duplicate H3s */
  .cascade__text-item>h3.cascade__item-title {
    display: none;
  }

  /* We also hide the original static subtitles and list logic if they weren't wrapped */
  .cascade__text-item>.cascade__item-subtitle,
  .cascade__text-item>.cascade__list {
    display: none;
  }

  .cascade__text-content .cascade__item-title.desktop-only {
    display: none !important;
    /* Hide the big title in the content block on mobile */
  }

  .cascade__item-subtitle {
    margin-bottom: 20px;
  }
}


/* ============================================
   СЕКЦИЯ 5 — ПЛАТФОРМЫ (CORE PIPELINE)
   ============================================ */
.platforms {
  background-color: #050505;
  background-image:
    radial-gradient(ellipse at center, rgba(230, 57, 70, 0.15) 0%, transparent 60%),
    linear-gradient(45deg, rgba(20, 20, 20, 0.8) 25%, transparent 25%, transparent 50%, rgba(20, 20, 20, 0.8) 50%, rgba(20, 20, 20, 0.8) 75%, transparent 75%, transparent),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 6px 6px, 20px 20px;
  color: var(--text-light);
  /* Off-white text */
  padding: clamp(60px, 10vw, 120px) var(--section-padding);
  position: relative;
  overflow: hidden;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.1);
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
}

.platforms__photo-bg {
  /* Hide the old photo background */
  display: none;
}

.platforms__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Titles */
.platforms__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 24px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  display: inline-block;
}

.platforms__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 80px;
  letter-spacing: -0.02em;
}

.platforms__label {
  display: none;
  /* Hide old label */
}

/* --- Motherboard Wrapper HUD --- */
.pipeline-schema-wrapper {
  position: relative;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background-color: #050505;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 40px 30px 30px;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Subtle corner accents for hardware feel */
.pipeline-schema-wrapper::before,
.pipeline-schema-wrapper::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pipeline-schema-wrapper::before {
  top: 15px;
  left: 15px;
  border-right: none;
  border-bottom: none;
}

.pipeline-schema-wrapper::after {
  bottom: 15px;
  right: 15px;
  border-left: none;
  border-top: none;
}

.pipeline-schema {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

/* Columns */
.pipeline__column {
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2;
  flex: 0 0 auto;
  position: relative;
}

.pipeline__column--public {
  align-items: flex-end;
}

.pipeline__column--private {
  align-items: flex-start;
}

.pipeline__column-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  display: inline-block;
}

.pipeline__column--private .pipeline__column-title {
  color: var(--accent-red);
  border-bottom-color: rgba(217, 32, 39, 0.3);
}

/* Central CPU Column */
.pipeline__column--center {
  align-items: center;
  flex: 0 0 auto;
  min-width: 140px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* NODES */
.pipeline-node {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(40, 40, 40, 0.5);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  width: max-content;
}

.pipeline__column--public .pipeline-node {
  flex-direction: row-reverse;
}

.pipeline-node:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.pipeline-node--red:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 0 20px var(--accent-red-glow);
}

.pipeline-node:hover .pipeline-node__icon {
  color: inherit !important;
}

.pipeline-node__icon {
  font-size: 1.2rem;
  color: #fff;
  display: flex;
}

.pipeline-node__name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
}

/* HOVER TOOLTIPS (Glassmorphism) */
.pipeline-node__tooltip {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: calc(100% + 15px);
  transform: translateX(-50%) translateY(10px);
  width: 240px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.4;
  color: #ddd;
  z-index: 20;
}

.pipeline-node__tooltip strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 5px;
}

/* Tooltip Positioning */
.pipeline__column--public .pipeline-node__tooltip {
  border-bottom: 2px solid #fff;
}

.pipeline__column--private .pipeline-node__tooltip {
  border-bottom: 2px solid var(--accent-red);
}

.pipeline-node:hover .pipeline-node__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}


/* Output Dashboard (Server Blade Style) */
.pipeline-output-dashboard {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
}

.pipeline-output-dashboard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 25px;
  background: linear-gradient(to bottom, var(--accent-red), transparent);
}

.output-dashboard__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.output-dashboard__grid {
  display: flex;
  width: 100%;
  background: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 15px 30px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: space-between;
}

.output-metric {
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Add vertical separators between metrics instead of boxes */
.output-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.output-metric__value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-red);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.output-metric__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .output-dashboard__grid {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .output-metric:not(:last-child)::after {
    right: auto;
    bottom: -10px;
    top: auto;
    width: 60%;
    height: 1px;
  }
}

.pipeline-core {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.pipeline-core__inner {
  background: var(--accent-red);
  border-radius: 50%;
  width: 140px;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  color: #111;
  text-align: center;
  box-shadow: 0 0 30px var(--accent-red-glow);
}

.pipeline-core__id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.pipeline-core__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.pipeline-core__status {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  background: #111;
  color: var(--accent-red);
  padding: 2px 6px;
}

.pipeline-core__ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-top: 2px solid var(--accent-red);
  border-bottom: 2px solid var(--accent-red);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
  animation: spinRing 20s linear infinite;
  z-index: 1;
}

.pipeline-core__ring--2 {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
  border-radius: 50%;
  border: 1px dashed rgba(230, 57, 70, 0.2);
  border-left: 2px solid #fff;
  border-right: 2px solid #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  animation: spinRing 15s linear infinite reverse;
}

@keyframes spinRing {
  100% {
    transform: rotate(360deg);
  }
}

/* DATA STREAMS (Desktop Only Connections) */
@media (min-width: 1025px) {
  .pipeline-node::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
  }

  /* Public feeds data inwards to the right */
  .pipeline__column--public .pipeline-node::after {
    right: -40px;
  }

  /* Private draws data from the core to the right */
  .pipeline__column--private .pipeline-node::after {
    left: -40px;
    background: rgba(217, 32, 39, 0.2);
  }

  /* Hover particles */
  .pipeline-node::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 2px;
    background: #fff;
    opacity: 0;
    z-index: 0;
  }

  .pipeline__column--public .pipeline-node:hover::before {
    animation: streamFlowRight 1s infinite linear;
    right: -40px;
    background: #fff;
    box-shadow: 0 0 8px #fff;
  }

  .pipeline__column--private .pipeline-node:hover::before {
    animation: streamFlowLeft 1s infinite linear;
    left: -40px;
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
  }

  @keyframes streamFlowRight {
    0% {
      opacity: 0;
      transform: translateX(-5px);
    }

    10% {
      opacity: 1;
    }

    90% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      transform: translateX(40px);
    }
  }

  @keyframes streamFlowLeft {
    0% {
      opacity: 0;
      transform: translateX(-40px);
    }

    10% {
      opacity: 1;
    }

    90% {
      opacity: 1;
    }

    100% {
      opacity: 0;
      transform: translateX(5px);
    }
  }
}

/* ============================================
   MOBILE NEURAL CORE (ORBITAL VARIANT)
   ============================================ */
@media (max-width: 1024px) {

  .platforms {
    background-position: center 390px, center 390px, center, center;
  }

  .pipeline-schema-wrapper {
    position: relative !important;
    padding: 30px 15px 20px !important;
    min-height: auto !important;
    overflow: visible !important;
    background: radial-gradient(circle at center, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
  }

  .platforms__inner {
    padding-bottom: 0 !important;
  }

  .pipeline-schema {
    height: 280px !important;
    display: block !important;
    /* Switch from flex to absolute coordinate space */
    position: relative !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* RESET COLUMNS */
  .pipeline__column {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Force the core to the absolute center */
  .pipeline__column--center {
    z-index: 10 !important;
  }

  .pipeline-core {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 140px !important;
    height: 140px !important;
    margin: 0 !important;
    pointer-events: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .pipeline-core__inner {
    width: 115px !important;
    height: 115px !important;
  }

  .pipeline-core__title {
    font-size: 0.95rem !important;
  }

  .pipeline-core__status {
    font-size: 0.45rem !important;
  }

  .pipeline__column-title {
    display: none !important;
  }

  /* ORBITING NODES (ORBS) */
  .pipeline-node {
    position: absolute !important;
    pointer-events: auto !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: rgba(20, 20, 20, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 50% !important;
    left: 50% !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
  }

  .pipeline-node__name,
  .pipeline-node__tooltip {
    display: none !important;
  }

  .pipeline-node__icon {
    font-size: 1.3rem !important;
    margin: 0 !important;
    color: #fff !important;
  }

  /* Re-calculate angle based on 11 items + Bumble added in HTML */
  /* Public list has 7 nodes now (6 + Bumble) */
  .pipeline__column--public .pipeline-node:nth-child(2) {
    --angle: 0deg;
  }

  .pipeline__column--public .pipeline-node:nth-child(3) {
    --angle: 32.7deg;
  }

  .pipeline__column--public .pipeline-node:nth-child(4) {
    --angle: 65.4deg;
  }

  .pipeline__column--public .pipeline-node:nth-child(5) {
    --angle: 98.1deg;
  }

  .pipeline__column--public .pipeline-node:nth-child(6) {
    --angle: 130.8deg;
  }

  .pipeline__column--public .pipeline-node:nth-child(7) {
    --angle: 163.5deg;
  }

  .pipeline__column--public .pipeline-node:nth-child(8) {
    --angle: 196.2deg;
  }

  /* Private list starts at nth-child(2) too */
  .pipeline__column--private .pipeline-node:nth-child(2) {
    --angle: 228.9deg;
  }

  .pipeline__column--private .pipeline-node:nth-child(3) {
    --angle: 261.6deg;
  }

  .pipeline__column--private .pipeline-node:nth-child(4) {
    --angle: 294.3deg;
  }

  .pipeline__column--private .pipeline-node:nth-child(5) {
    --angle: 327deg;
  }

  /* Apply the orbit transform to platforms */
  .pipeline-node {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-100px) rotate(calc(-1*var(--angle))) !important;
  }

  /* Active Orb State */
  .pipeline-node.is-active {
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-110px) rotate(calc(-1*var(--angle))) scale(1.25) !important;
    z-index: 15 !important;
  }

  .pipeline-node--red.is-active {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 20px var(--accent-red-glow) !important;
  }

  .pipeline-node.is-active .pipeline-node__icon {
    filter: invert(1) !important;
  }

  .pipeline-node--red.is-active .pipeline-node__icon {
    filter: none !important;
    color: #fff !important;
  }

  /* INFO BOX STYLING */
  .pipeline-info-box {
    margin: 20px !important;
    background: rgba(10, 10, 10, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left: 4px solid var(--accent-red) !important;
    padding: 20px !important;
    border-radius: 4px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    animation: slideUpInfo 0.5s ease-out !important;
    position: relative !important;
    z-index: 20 !important;
  }

  .pipeline-info-box__status {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--accent-red);
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .pipeline-info-box__title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
  }

  .pipeline-info-box__desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
  }

  @keyframes slideUpInfo {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================
   СЕКЦИЯ 6 — ПРОЦЕСС (Sidebar Split-View)
   ============================================ */
.process {
  padding: clamp(60px, 10vw, 120px) var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.process__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Floating photo (scroll-triggered) */
.process__floating-photo {
  position: absolute;
  top: 20%;
  right: -40%;
  width: 35%;
  height: 60%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  box-shadow: -20px 10px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
}

.process__floating-photo.is-visible {
  opacity: 0.6;
  right: 2%;
  transform: translateX(0);
}

.process__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 16px;
}

.process__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 48px;
}

/* Split layout: sidebar + content */
.process__split {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0;
  border: 3px solid var(--grid-line);
  min-height: 500px;
}

/* Sidebar левый */
.process__sidebar {
  background: var(--bg-dark);
  border-right: 3px solid var(--grid-line);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
}

/* Линия прогресса в sidebar */
.process__sidebar-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--accent-red);
  transition: height 1.5s var(--ease-out);
  z-index: 2;
}

/* Навигационные элементы */
.process__nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.35);
  transition: all var(--duration-fast) var(--ease-smooth);
  position: relative;
}

.process__nav-item:last-child {
  border-bottom: none;
}

.process__nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-red);
  transform: scaleY(0);
  transition: transform var(--duration-fast) var(--ease-out);
}

.process__nav-item.is-active::before,
.process__nav-item:hover::before {
  transform: scaleY(1);
}

.process__nav-item.is-active {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.05);
}

.process__nav-item:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.03);
}

.process__nav-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  min-width: 24px;
}

.process__nav-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Контент правый */
.process__content {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.process__step {
  padding: 32px 28px;
  border-bottom: 1px solid var(--grid-line);
  transition: background var(--duration-fast);
}

.process__step:last-child {
  border-bottom: none;
}

.process__step:hover {
  background: rgba(0, 0, 0, 0.02);
}

.process__step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.process__step-icon {
  font-size: 1.5rem;
  color: var(--accent-red);
}

.process__step-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-red);
  padding: 3px 8px;
  border: 1px solid var(--accent-red);
}

.process__step-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.process__step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.process__step-text strong {
  color: var(--accent-red);
}

/* Meta badges */
.process__step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.process__meta-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--grid-line);
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.process__step:hover .process__meta-badge {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ============================================
   СЕКЦИЯ 7 — ЦЕНА + ROI
   ============================================ */
.pricing {
  background: var(--bg-dark);
  /* Keep the outer container dark */
  color: var(--text-light);
  /* Assuming this is a white-ish color */
  padding: clamp(60px, 10vw, 120px) var(--section-padding);
}

.pricing__inner {
  max-width: 900px;
  margin: 0 auto;
}

/* --- THE CONTRACT BLOCK --- */
.pricing-contract {
  background: #0f0f0f;
  border: var(--border-width) solid #333;
  box-shadow: 16px 16px 0 #000;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Header */
.pricing-contract__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(90deg, #1a1a1a, #000);
  border-bottom: 2px solid #333;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #888;
}

.pricing-contract__status .blink {
  color: var(--accent-red);
  font-weight: 700;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Body */
.pricing-contract__body {
  padding: 40px;
}

.pricing-contract__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  color: #fff;
  margin-bottom: 8px;
}

.pricing-contract__subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  margin-bottom: 30px;
}

.pricing-contract__divider {
  height: 2px;
  width: 100%;
  background: repeating-linear-gradient(90deg, #333 0, #333 10px, transparent 10px, transparent 20px);
  margin: 24px 0;
}

/* Feature List (Terminal Style) */
.pricing-contract__features {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: #ccc;
  display: grid;
  gap: 12px;
}

.sys-check {
  color: var(--accent-red);
  font-weight: 700;
  margin-right: 8px;
}

/* Finance / Values */
.pricing-contract__finance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 10px 0;
}

.finance-block {
  display: flex;
  flex-direction: column;
}

.finance-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #666;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.finance-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

.finance-val--strike {
  color: #444;
  text-decoration: line-through;
  text-decoration-color: var(--accent-red);
}

.finance-val--active {
  color: #fff;
}

/* ROI / Attention */
.pricing-contract__roi {
  margin-top: 30px;
  padding: 20px;
  background: rgba(230, 57, 70, 0.05);
  /* very faint red */
  border-left: 4px solid var(--accent-red);
}

.warning-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-contract__roi p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}

.pricing-contract__roi strong {
  color: #fff;
}

/* Footer / CTA Area */
.pricing-contract__footer {
  background: #111;
  padding: 30px 40px;
  border-top: 2px solid #333;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.strict-countdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  border: 1px solid #333;
  padding: 12px 20px;
}

.strict-countdown__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #666;
  letter-spacing: 0.05em;
}

.strict-countdown__timer {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-red);
  font-weight: 700;
  text-shadow: 0 0 10px var(--accent-red-glow);
}

.brutal-btn.w-full {
  width: 100%;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {

  .pricing-contract__body,
  .pricing-contract__footer {
    padding: 24px;
  }

  .pricing-contract__finance {
    grid-template-columns: 1fr;
  }

  .strict-countdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ============================================
   БЛОК — ERROR 404: DEAD END (Холодный душ)
   ============================================ */
.dead-end {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  border-top: 10px solid var(--accent-red);
}

/* Background elements */
.dead-end__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  filter: grayscale(100%);
  opacity: 0.15;
  /* keeping it dark and subtle */
}

.dead-end__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dead-end__glitch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.4) 2px,
      rgba(0, 0, 0, 0.4) 4px);
  pointer-events: none;
}

/* Content */
.dead-end__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.dead-end__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  line-height: 0.8;
  color: #fff;
  letter-spacing: -0.05em;
  text-shadow:
    -4px 0 var(--accent-red),
    4px 0 rgba(0, 255, 255, 0.5);
  /* Anaglyph glitch effect */
  margin-bottom: 20px;
}

.dead-end__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 40px;
}

.dead-end__divider {
  width: 100px;
  height: 4px;
  background-color: var(--accent-red);
  margin: 0 auto 40px auto;
}

.dead-end__text {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #aaa;
  letter-spacing: 0.05em;
}

.dead-end__text strong {
  color: #fff;
}

/* ============================================
   СЕКЦИЯ 8 — CTA ФИНАЛЬНЫЙ: ACCESS GRANTED
   ============================================ */
.access-granted {
  background-color: var(--accent-red);
  /* Entire section is blinding red */
  color: var(--bg-dark);
  /* Dark text on red bg */
  padding: clamp(60px, 10vw, 120px) var(--section-padding);
}

.access-granted__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  border: 4px solid var(--bg-dark);
  padding: 40px;
}

.access-granted__header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--bg-dark);
  padding-bottom: 20px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg-dark);
}

/* MASSIVE BUTTON */
.access-granted__massive-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-dark);
  color: #fff;
  padding: 40px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin-bottom: 60px;
}

.access-granted__massive-btn:hover {
  transform: translateY(-8px);
  background-color: #000;
  box-shadow: 0 20px 0 rgba(0, 0, 0, 0.3);
}

.btn-text-group {
  display: flex;
  flex-direction: column;
}

.btn-line-1 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--accent-red);
  margin-bottom: 10px;
}

.btn-line-2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 8vw, 6rem); /* Reduced minimum font size for mobile fit */
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance; /* Guarantees aesthetic wrapping */
}

.btn-icon {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--accent-red);
}

/* FOOTER / TEAM REFRAME */
.access-granted__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.access-granted__units {
  display: flex;
  gap: 40px;
}

.unit-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unit-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.unit-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 800;
}

.access-granted__contact {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-handle {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

/* Responsive constraints */
@media (max-width: 1024px) {
  .access-granted__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .access-granted__units {
    flex-direction: column;
    gap: 20px;
  }

  .access-granted__contact {
    text-align: left;
    margin-top: 20px;
    border-top: 2px solid var(--bg-dark);
    padding-top: 20px;
    width: 100%;
  }

  .access-granted__massive-btn {
    padding: 24px 16px;
    gap: 12px;
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal,
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible,
.scroll-reveal.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;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-eyebrow {
    background: var(--accent-red);
    color: #fff;
    padding: 4px 12px;
    margin-left: -12px;
    display: inline-block;
  }

  .hero-title {
    margin-left: -2px;
    /* Optical alignment */
    text-align: left;
  }

  .hero-body {
    padding-left: 16px;
    border-left: 1px dashed rgba(255, 255, 255, 0.3);
    margin-left: 4px;
    text-align: left;
  }

  /* 404 (Dead End) Mobile Left Alignment */
  .dead-end__content {
    text-align: left;
    align-items: flex-start;
    padding: 40px 20px 40px 30px;
    border-left: 8px solid var(--accent-red);
    margin-left: 10px;
  }

  .dead-end__code {
    text-align: left;
    margin-left: -14px;
    font-size: clamp(5rem, 20vw, 8rem);
  }

  .dead-end__title {
    text-align: left;
    margin-left: -2px;
  }

  .dead-end__divider {
    margin: 20px 0 30px 4px;
    width: 80px;
  }

  .dead-end__text {
    text-align: left;
    padding-left: 16px;
    border-left: 1px dashed rgba(255, 255, 255, 0.3);
    margin-left: 4px;
  }

  .hero-divider {
    width: 100%;
    height: 3px;
  }

  .hero-divider::before {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
  }

  .hero-divider::after {
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    width: 80%;
    height: 40px;
  }

  .hero-gallery {
    height: 60vh;
    min-height: 400px;
  }

  .hero-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-feature:nth-child(2) {
    border-right: none;
  }

  .hero-feature:nth-child(3) {
    border-right: none;
    border-top: var(--grid-gap) solid var(--grid-line);
  }

  .hero-cta {
    grid-column: 1 / -1;
    justify-content: center;
    border-top: var(--grid-gap) solid var(--grid-line);
  }

  .manifesto__content {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 40px;
  }

  .manifesto__left {
    text-align: left;
  }

  .manifesto__right {
    text-align: left;
  }

  .manifesto__hook {
    justify-content: center;
  }

  .manifesto__center {
    flex-direction: row;
    gap: 32px;
  }

  .manifesto__metric-divider {
    width: 1px;
    height: 40px;
    margin: 0;
  }

  .comparator {
    flex-direction: column;
    min-height: auto;
  }

  .comparator__side--bad,
  .comparator__side--good {
    flex: none;
  }

  .comparator__handle {
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    height: 44px;
    position: relative;
    transform: none;
    flex-direction: row;
  }

  .comparator__handle-line {
    height: 2px;
    width: auto;
  }

  .comparator__photo {
    width: 100%;
    height: 30%;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  }

  /* Mobile Hero Overrides Handled by Mobile-First Approach */
  .hero-gui {
    max-width: 100%;
    margin-top: 20px;
    box-shadow: 4px 4px 0 var(--text-main);
  }

  .arch-cards {
    grid-template-columns: repeat(3, 1fr);
    border: 3px solid var(--grid-line);
  }

  .arch-card {
    border-bottom: 3px solid var(--grid-line);
  }

  .arch-card:nth-child(3) {
    border-right: none;
  }

  .process__split {
    grid-template-columns: 140px 1fr;
  }

  .process__nav-label {
    font-size: 0.65rem;
  }

  .pricing-card {
    grid-template-columns: 1fr;
  }

  .pricing-card__left {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .cta-final__right {
    min-height: 50vh;
  }

  .cta-final__photo {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0% 100%);
  }

  .cta-final__photo::after {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.6) 0%, transparent 30%);
  }
}

@media (max-width: 640px) {
  .hero-gallery {
    height: 55vh;
    min-height: 350px;
    padding: 16px;
  }

  .card-stack {
    max-width: 280px;
  }

  .heart-gate {
    min-height: 400px;
    height: auto;
    padding: 60px 0;
    overflow-x: hidden;
  }

  .heart-gate__center {
    width: 280px;
    height: 280px;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .nav-header {
    border-right: none;
    border-bottom: 2px solid var(--grid-line);
  }
}

  /* Legacy Hero adjustments removed in favor of Mobile-First base styles */


/* Мобильное меню */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.4rem;
  padding: 4px;
}

@media (max-width: 640px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--bg-primary);
  border-left: var(--grid-gap) solid var(--grid-line);
  z-index: 1000;
  padding: 80px var(--section-padding) 40px;
  transition: right var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav.is-open {
  right: 0;
}

.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.5rem;
}

.mobile-nav__link {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-main);
  padding: 16px 0;
  border-bottom: var(--grid-gap) solid var(--grid-line);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.mobile-nav__link:hover {
  color: var(--accent-red);
}

.mobile-nav__link--cta {
  color: var(--accent-red);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.mobile-nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   PHASE 8: GLOBAL UX/UI REDESIGN CORE
   ============================================ */

/* 1. Global Luxury Noise Overlay */
.global-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)"/%3E%3C/svg%3E');
  mix-blend-mode: overlay;
}

/* 2. System Boot Banner (Ticker) */
.system-boot-banner {
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1000;
  text-transform: uppercase;
}

.system-boot-banner__track {
  display: inline-block;
  white-space: nowrap;
  animation: bootTicker 20s linear infinite;
}

.system-boot-banner__track span {
  padding: 0 40px;
}

@keyframes bootTicker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* 3. Terminal Breadcrumbs (Replaces generic headers) */
.sub-page {
  position: relative;
  z-index: 2;
  /* above noise if needed, but noise is pointer-events none */
}

.sys-path {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: block;
}

.sys-path .highlight {
  color: var(--accent-red);
}

.sub-header--brutalist {
  border-left: none;
  padding-left: 0;
  margin-bottom: 80px;
  position: relative;
}

.sub-header--brutalist::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 10px;
  height: calc(100% - 10px);
  width: 2px;
  background: var(--accent-red);
}

.sub-header--brutalist .sub-header__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

/* ============================================
   PAGE: STACK (Server Rack UI)
   ============================================ */
.server-rack {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 80px;
  perspective: 1000px;
}

.server-blade {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid rgba(255, 255, 255, 0.1);
  padding: 30px 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.server-blade::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.server-blade:hover {
  transform: translateX(10px);
  border-left-color: var(--accent-red);
  background: rgba(15, 15, 15, 0.95);
  box-shadow: 0 10px 40px -10px rgba(230, 57, 70, 0.15), inset 0 0 0 1px rgba(230, 57, 70, 0.1);
}

.server-blade:hover::before {
  opacity: 1;
}

.server-blade__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.server-blade__led {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
}

.server-blade:hover .server-blade__led {
  background: #2ecc71;
  box-shadow: 0 0 10px #2ecc71, inset 0 0 5px rgba(255, 255, 255, 0.8);
}

.server-blade__id {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  writing-mode: vertical-rl;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.server-blade__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.server-blade__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

.server-blade__title iconify-icon {
  color: var(--accent-red);
}

.server-blade__specs {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.server-blade__specs li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.server-blade__specs li:last-child {
  border-bottom: none;
}

.server-blade__specs li::before {
  content: '>';
  color: var(--accent-red);
}

/* Roadmap Pipeline */
.pipeline-roadmap {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 80px 0;
  padding-top: 40px;
}

.pipeline-roadmap::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.pipeline-roadmap__fill {
  position: absolute;
  top: 15px;
  left: 0;
  height: 2px;
  background: var(--accent-red);
  z-index: 1;
  width: 25%;
  /* To be animated via JS or default */
  box-shadow: 0 0 10px var(--accent-red);
  transition: width 1s ease-out;
}

/* ============================================
   PIPELINE STEP: NEO-BRUTALIST CARD STYLE
   ============================================ */
.pipeline-step {
  background: var(--bg-primary) !important;
  border: 2px solid var(--text-main) !important;
  box-shadow: 4px 4px 0 var(--text-main) !important;
  border-radius: 0 !important;
  border-top: 4px solid var(--accent-red) !important;
  padding: 25px !important;
  
  /* GRID RESTRUCTURE */
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-areas: 
    "node title"
    "desc desc";
  gap: 15px 20px;
  align-items: center;
}

.pipeline-step.is-active {
  border-top-color: var(--accent-red) !important;
  box-shadow: 4px 4px 0 var(--accent-red) !important;
}

.pipeline-step__node { 
  grid-area: node; 
  margin: 0 !important; 
}

.pipeline-step__title {
  grid-area: title;
  color: var(--text-main) !important;
  text-align: left !important;
  margin: 0 !important;
  font-size: 1.1rem !important;
}

.pipeline-step__desc {
  grid-area: desc;
  color: var(--text-muted) !important;
  text-align: left !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

@media (max-width: 900px) {
  .pipeline-roadmap {
    flex-direction: column;
    gap: 40px;
  }
}

/* ============================================
   PAGE: BENCHMARKS (Trading Terminal UI)
   ============================================ */
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

/* Widget 1 — Тёмный терминал (Нейро-модель) */
.terminal-widget {
  background: var(--text-main) !important;
  border: 2px solid var(--text-main) !important;
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3) !important;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Widget 2 — Красный (Запуск контента) */
.terminal-widget:nth-child(2) {
  background: var(--accent-red) !important;
  border-color: var(--accent-red) !important;
  box-shadow: 6px 6px 0 rgba(230,57,70,0.35) !important;
}

.terminal-widget__header {
  border-bottom-color: rgba(255,255,255,0.15) !important;
}

.terminal-data-label {
  color: rgba(255,255,255,0.6) !important;
}

.terminal-data-val {
  color: #fff !important;
  font-weight: 700;
}

.terminal-bar-header span {
  color: rgba(255,255,255,0.7) !important;
}

.terminal-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-red);
  opacity: 0.8;
}

.terminal-widget--span-6 {
  grid-column: span 6;
}

.terminal-widget--span-4 {
  grid-column: span 4;
}

.terminal-widget--span-12 {
  grid-column: span 12;
}

@media (max-width: 900px) {

  .terminal-widget--span-6,
  .terminal-widget--span-4 {
    grid-column: span 12;
  }
}

.terminal-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.terminal-widget__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-widget__title iconify-icon {
  color: var(--accent-red);
}

.terminal-widget__status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #2ecc71;
  /* Green optimal */
  background: rgba(46, 204, 113, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.terminal-data-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
}

.terminal-data-row:last-child {
  margin-bottom: 0;
}

.terminal-data-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.terminal-data-val {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  line-height: 1;
}

.terminal-data-val--red {
  color: var(--accent-red);
}

/* Progress Bar Data */
.terminal-bar-group {
  margin-bottom: 20px;
}

.terminal-bar-group:last-child {
  margin-bottom: 0;
}

.terminal-bar-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.8);
}

.terminal-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.terminal-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-red);
  width: 0%;
  /* animate with JS */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Trading Ticker Roadmap */
.ticker-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  transition: background 0.3s;
}

.ticker-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.ticker-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 25%;
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

.ticker-val {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.ticker-val--up {
  color: #2ecc71;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ticker-val--up::before {
  content: '▲';
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .ticker-row {
    flex-wrap: wrap;
    gap: 20px;
  }

  .ticker-col {
    width: 45%;
  }
}

/* ============================================
   PAGE: SYSTEM (Blueprint UI)
   ============================================ */
.blueprint-wrap {
  position: relative;
  padding: 80px 0;
  margin-top: 40px;
  margin-bottom: 80px;
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(0, 100, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 100, 255, 0.05) 1px, transparent 1px);
}

.blueprint-pipe {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.blueprint-pipe__fill {
  width: 100%;
  background: var(--accent-red);
  height: 0%;
  /* JS scroll animated */
  box-shadow: 0 0 10px var(--accent-red);
  transition: height 0.1s linear;
}

.blueprint-node {
  position: relative;
  z-index: 2;
  width: 45%;
  margin-bottom: 80px;
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid rgba(0, 100, 255, 0.2);
  /* blueprint blue accent */
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.blueprint-node--left {
  margin-left: 0;
  margin-right: auto;
  border-right: 3px solid var(--accent-red);
}

.blueprint-node--right {
  margin-left: auto;
  margin-right: 0;
  border-left: 3px solid var(--accent-red);
}

.blueprint-node::before {
  content: '';
  position: absolute;
  top: 50px;
  width: calc(11.11% + 1vw);
  /* reaches the center pipe */
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
}

.blueprint-node--left::before {
  right: calc(-11.11% - 1vw);
}

.blueprint-node--right::before {
  left: calc(-11.11% - 1vw);
}

.blueprint-node__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #4d9aff;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.blueprint-node__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #fff; /* force white on dark node background */
}

.blueprint-node__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

@media (max-width: 900px) {

  .blueprint-pipe,
  .blueprint-node::before {
    display: none;
  }

  .blueprint-wrap {
    background-image: none;
    padding: 0;
  }

  .blueprint-node {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 40px;
  }
}

/* Blueprint Versus Table */
.blueprint-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 80px;
}

/* LEGACY NO-CODE column — угольно-чёрная, отражает устаревший подход */
.bp-col {
  padding: 40px;
  background: var(--text-main);
  border: 2px solid var(--text-main);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
  position: relative;
}

/* vidOFM ENGINE column — фирменной красный, живая и доминирует */
.bp-col--focus {
  background: var(--accent-red);
  border: 2px solid var(--accent-red);
  box-shadow: 6px 6px 0 rgba(230, 57, 70, 0.35);
}

.bp-col__title {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.bp-col--focus .bp-col__title {
  color: rgba(255, 255, 255, 0.9);
}

.bp-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.bp-col ul li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  padding-left: 20px;
  position: relative;
}

.bp-col--focus ul li {
  color: rgba(255, 255, 255, 0.9);
}

.bp-col ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: inherit;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .blueprint-vs {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PAGE: INVESTORS (Classified Vault UI)
   ============================================ */
.vault-wrap {
  margin-top: 60px;
}

.vault-stat-huge {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 15rem);
  line-height: 0.8;
  color: var(--text-main); /* was #fff — invisible on light bg */
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  margin-left: -2vw;
}

.vault-stat-huge span {
  color: var(--accent-red);
}

.vault-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--accent-red);
  border: 2px solid var(--accent-red);
  padding: 2px;
  margin-bottom: 80px;
}

.vault-card {
  background: #000;
  padding: 60px;
  position: relative;
}

.vault-card__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-red);
  margin-bottom: 40px;
  display: block;
  letter-spacing: 0.1em;
}

.vault-card__value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
}

.vault-card__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.vault-card__list li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
}

.vault-card__list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Redacted Effect */
.redacted {
  color: transparent;
  background-color: rgba(255, 255, 255, 0.05);
  /* Slight contrast from black */
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(230, 57, 70, 0.3);
  transition: all 0.3s ease;
  cursor: crosshair;
  position: relative;
  overflow: hidden;
}

.redacted::after {
  content: '[ DECRYPT ]';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.redacted:hover {
  color: #fff;
  background-color: transparent;
  border-color: transparent;
}

.redacted:hover::after {
  display: none;
}

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

  .vault-card {
    padding: 40px 20px;
  }

  .vault-stat-huge {
    margin-left: 0;
    font-size: clamp(3.5rem, 12vw, 8rem);
  }
}

/* ============================================
   PAGE: LORA DNA (AI Lab UI)
   ============================================ */
.lab-wrap {
  margin-bottom: 80px;
}

/* Before/After Slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 600px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  cursor: ew-resize;
  margin-bottom: 2px;
  user-select: none;
}

.ba-img-before,
.ba-img-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.ba-img-before {
  /* Using filter to simulate "raw" image if we use the same pic */
  filter: grayscale(80%) sepia(20%) brightness(0.9);
  z-index: 1;
}

.ba-img-after {
  z-index: 2;
  width: 50%;
  /* JS will update this */
  border-right: 1px solid var(--accent-red);
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  /* JS will update */
  width: 1px;
  background-color: var(--accent-red);
  z-index: 3;
  pointer-events: none;
}

.ba-slider-handle::after {
  content: '<>';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.ba-label {
  position: absolute;
  bottom: 20px;
  padding: 5px 15px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.8);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 4;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-label--before {
  left: 20px;
}

.ba-label--after {
  right: 20px;
}

/* Tech Logs Viewer */
.tech-logs {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 20px 20px 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #2ecc71;
  /* Hacker Green for logs */
  height: 300px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Mask fade for smooth scrolling effect */
.tech-logs::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, #050505 20%, transparent);
  pointer-events: none;
}

.tech-logs__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-logs__content {
  display: flex;
  flex-direction: column;
}

.log-line {
  margin-bottom: 4px;
  opacity: 0.8;
  white-space: nowrap;
}

.log-line.error {
  color: var(--accent-red);
}

.log-line.warn {
  color: #f1c40f;
}

.log-line.system {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .ba-slider {
    height: 400px;
  }

  .tech-logs {
    height: 250px;
  }
}

/* ============================================
   PAGE: PARTNERSHIP (API Protocol UI)
   ============================================ */
.api-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}

.api-sidebar {
  position: sticky;
  top: 100px;
  /* Offset from sticky header */
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 20px;
}

.api-index {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  padding: 0;
}

.api-index li {
  margin-bottom: 25px;
  cursor: pointer;
  transition: color 0.3s;
}

.api-index li:hover,
.api-index li.is-active {
  color: var(--accent-red);
}

.api-index li::before {
  content: '[';
  margin-right: 5px;
  opacity: 0.3;
}

.api-index li::after {
  content: ']';
  margin-left: 5px;
  opacity: 0.3;
}

.api-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.api-block {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  transition: border-color 0.3s ease;
}

.api-block:hover {
  border-color: rgba(230, 57, 70, 0.3);
}

.api-block::before {
  content: attr(data-endpoint);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(230, 57, 70, 0.05);
  border-bottom: 1px solid rgba(230, 57, 70, 0.1);
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-red);
  text-transform: uppercase;
  z-index: 2;
}

.api-block__body {
  padding: 60px 30px 40px;
  /* Space for the absolute header */
}

.api-block__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
}

.api-block__txt {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Fake JSON format */
.api-json {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #a0a0a0;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-left: 2px solid var(--accent-red);
  margin-top: 30px;
  white-space: pre-wrap;
  word-break: break-word;
}

.api-json .key {
  color: #ebb15b;
}

.api-json .string {
  color: #a3be8c;
}

.api-json .number {
  color: #d35400;
}

.api-json .boolean {
  color: #c678dd;
}

@media (max-width: 900px) {
  .api-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .api-sidebar {
    position: relative;
    top: 0;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-bottom: 20px;
  }

  .api-index {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .api-index li {
    margin-bottom: 0;
  }
}

/* ============================================
   INNER PAGE HERO (Universal Sub-Page Hero)
   ============================================ */
.inner-hero {
  position: relative;
  min-height: 40vh;
  padding: calc(120px + var(--section-padding)) var(--section-padding) var(--section-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.inner-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at top right, rgba(230, 57, 70, 0.1) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.15;
  pointer-events: none;
}

.inner-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.inner-hero__sys-path {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--accent-red-glow);
  background: rgba(230, 57, 70, 0.05);
}

.inner-hero__title {
  font-family: var(--font-heading);
  /* Text is now strictly controlled to be smaller and elegant */
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text-main);
  margin: 0;
}

.inner-hero__desc {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
}

.inner-hero__visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.inner-hero__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border: var(--border-width) solid var(--text-main);
  background: var(--bg-primary);
  box-shadow: 8px 8px 0 var(--text-main);
}

.inner-hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: luminosity;
  transition: opacity var(--duration-normal), transform var(--duration-slow);
}

/* --- BRUTALIST UTILITIES --- */
.brutalist-card {
  background: #fff;
  border: var(--border-width) solid var(--text-main);
  box-shadow: 6px 6px 0 var(--text-main);
  padding: 30px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brutalist-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--accent-red-soft);
}

.hud-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent-red);
  pointer-events: none;
  opacity: 0.5;
}

.hud-marker--tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hud-marker--tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.hud-marker--bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.hud-marker--br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

.technical-grid {
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 20px 20px;
}

.technical-dots {
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 15px 15px;
}

.inner-hero__image-wrapper:hover img {
  opacity: 1;
}

@media (max-width: 1024px) {
  .inner-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
    gap: 40px;
  }
}
/* Note: Action Hub refinement removed. Original styles at line 174-500 and 870-908 remain active. */
