/* ==========================================================================
   LaunchPage.ru - Master Design System & Stylesheet
   Dark Luxury / High-Tech Studio Aesthetic
   ========================================================================== */

@import url('./fonts/fonts.css');

:root {
  /* Color Palette */
  --bg-main: #07070c;
  --bg-subtle: #0d0d15;
  --bg-surface: #13131e;
  --bg-surface-elevated: #1a1a29;
  --bg-glass: rgba(19, 19, 30, 0.72);
  --bg-glass-strong: rgba(13, 13, 21, 0.88);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.22);
  --border-accent: rgba(124, 92, 255, 0.45);
  
  --text-primary: #f6f6f9;
  --text-secondary: rgba(246, 246, 249, 0.72);
  --text-muted: rgba(246, 246, 249, 0.46);
  --text-faint: rgba(246, 246, 249, 0.28);
  
  --accent-primary: #7c5cff;
  --accent-light: #9d85ff;
  --accent-glow: rgba(124, 92, 255, 0.45);
  --accent-subtle: rgba(124, 92, 255, 0.14);
  --accent-gradient: linear-gradient(135deg, #7c5cff 0%, #a855f7 50%, #38bdf8 100%);
  
  --success: #34d399;
  --success-glow: rgba(52, 211, 153, 0.35);
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.35);
  --danger: #f43f5e;
  --cyan: #38bdf8;
  
  /* Typography */
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'IBM Plex Serif', Georgia, serif;
  
  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(255, 255, 255, 0.05);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(255, 255, 255, 0.08);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.6), 0 0 45px rgba(124, 92, 255, 0.35);
  --shadow-glow-cyan: 0 0 0 1px rgba(56, 189, 248, 0.6), 0 0 45px rgba(56, 189, 248, 0.3);
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.35s;
  --duration-slow: 0.7s;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Global Ambient Background Grid & Glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 90% 40%, rgba(56, 189, 248, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  pointer-events: none;
  z-index: 0;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 960px;
}

.container-tight {
  max-width: 820px;
}

.section {
  padding-block: 120px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .section {
    padding-block: 72px;
  }
  .container {
    padding-inline: 16px;
  }
}

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

.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-italic {
  font-style: italic;
  font-family: var(--font-display);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 56px;
  position: relative;
  z-index: 40;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.15);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
}

/* Buttons & Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-spring),
              background var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast) var(--ease-spring);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: #8b6dff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.55);
}

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

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-ltd {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-ltd:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 18px 38px;
  font-size: 17px;
}

/* ==========================================================================
   Navigation Bar - Guaranteed Single Line on All Widths
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background var(--duration-base) var(--ease-smooth),
              backdrop-filter var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth),
              padding var(--duration-base) var(--ease-smooth);
  padding-block: 16px;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border-subtle);
  padding-block: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap; /* Strictly single line */
  white-space: nowrap;
}

/* Master Vector Brand Logo */
.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.master-vector-logo {
  height: 52px;
  width: auto;
  display: block;
  transition: transform var(--duration-fast), filter var(--duration-fast);
}

.brand-logo-link:hover .master-vector-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 16px rgba(124, 92, 255, 0.45));
}

@media (max-width: 480px) {
  .master-vector-logo {
    height: 34px;
  }
}

/* Nav Links Group */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 1;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: color var(--duration-fast), background var(--duration-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-login {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  transition: color var(--duration-fast);
}

.nav-login:hover {
  color: #ffffff;
}

/* Burger Toggle Button */
.burger-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.burger-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Responsive Nav Breakpoint */
@media (max-width: 1080px) {
  .nav-links, .nav-login {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
}

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 12, 0.94);
  backdrop-filter: blur(24px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity var(--duration-base) var(--ease-spring),
              transform var(--duration-base) var(--ease-spring);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-link {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.drawer-link:hover {
  color: var(--accent-light);
}

/* ==========================================================================
   Hero Section & Kinematics Multi-State Stage
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 80px;
  overflow: hidden;
}

/* Background Scene Crossfade Container */
.hero-scene-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #090912;
}

.hero-scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
  will-change: opacity, transform;
}

.hero-scene-layer.active {
  opacity: 1;
  transform: scale(1);
}

/* Атмосферная сцена состояния: изометрическая плоскость и свечения бренда.
   Растровых кадров нет — четыре состояния различаются цветом и композицией. */
.hero-scene-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 1400px;
  transform-style: preserve-3d;
  background-color: #090912;
  background-repeat: no-repeat;
}

/* Плоскость под сценой — тот же приём, что в .isometric-scene */
.hero-scene-art::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 74%;
  width: 220vw;
  height: 220vw;
  transform: translate(-50%, -50%) rotateX(66deg) rotateZ(-28deg);
  background-image:
    linear-gradient(var(--scene-grid, rgba(124, 92, 255, 0.20)) 1px, transparent 1px),
    linear-gradient(90deg, var(--scene-grid, rgba(124, 92, 255, 0.20)) 1px, transparent 1px);
  background-size: 112px 112px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 22%, transparent 74%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 22%, transparent 74%);
}

/* Верхний слой свечений, задаётся вариантом состояния */
.hero-scene-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--scene-glow);
  background-repeat: no-repeat;
}

/* 01 — входной бриф: сдержанный фиолет, свет слева */
.hero-scene-art--1 {
  --scene-grid: rgba(124, 92, 255, 0.30);
  --scene-glow:
    radial-gradient(60% 70% at 22% 34%, rgba(124, 92, 255, 0.85) 0%, transparent 70%),
    radial-gradient(50% 60% at 78% 78%, rgba(168, 85, 247, 0.45) 0%, transparent 72%);
}

/* 02 — AI-генерация: яркое ядро в центре, сетка плотнее */
.hero-scene-art--2 {
  --scene-grid: rgba(124, 92, 255, 0.52);
  --scene-glow:
    radial-gradient(55% 65% at 52% 42%, rgba(139, 108, 255, 1) 0%, transparent 68%),
    radial-gradient(45% 55% at 18% 82%, rgba(168, 85, 247, 0.62) 0%, transparent 70%);
}

/* 03 — эфир и интеграции: голубой ключевой свет */
.hero-scene-art--3 {
  --scene-grid: rgba(56, 189, 248, 0.42);
  --scene-glow:
    radial-gradient(58% 68% at 72% 38%, rgba(56, 189, 248, 0.88) 0%, transparent 70%),
    radial-gradient(50% 60% at 24% 76%, rgba(124, 92, 255, 0.60) 0%, transparent 72%);
}

/* 04 — публикация: зелёный подтверждающий акцент */
.hero-scene-art--4 {
  --scene-grid: rgba(52, 211, 153, 0.36);
  --scene-glow:
    radial-gradient(52% 62% at 46% 68%, rgba(52, 211, 153, 0.70) 0%, transparent 70%),
    radial-gradient(56% 66% at 66% 26%, rgba(124, 92, 255, 0.78) 0%, transparent 72%);
}

/* Gradient Vignette over Hero */
.hero-vignette {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, rgba(7,7,12,0.85) 0%, rgba(7,7,12,0.4) 40%, rgba(7,7,12,0.92) 85%, var(--bg-main) 100%),
    radial-gradient(circle at 50% 30%, transparent 20%, rgba(7,7,12,0.85) 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

/* Dynamic State Text Block */
.hero-text-block {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-spring);
}

.hero-text-block.reloading {
  opacity: 0;
  transform: translateY(18px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.24; /* Generous line-height prevents descender clipping (e.g. 'у' in 'секунд') */
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
  overflow: visible;
}

.hero-title em {
  display: inline-block;
  padding-bottom: 6px;
  line-height: 1.22;
}

.hero-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

.hero-features-strip {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-feat-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Kinematics State Selector Pills */
.hero-state-bar {
  margin-top: 48px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.state-pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--duration-fast);
  position: relative;
  overflow: hidden;
}

.state-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--border-strong);
}

.state-pill-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.3);
}

.state-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent-primary);
}

.state-pill-btn.active .state-progress-track {
  width: 100%;
  transition: width 5s linear;
}

/* ==========================================================================
   Hero Interactive Live Funnel Builder Mockup (No macOS dots)
   ========================================================================== */
.hero-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated), 0 0 50px rgba(124, 92, 255, 0.15);
  overflow: hidden;
  position: relative;
}

.hero-preview-topbar {
  background: #0d0d16;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

/* Authentic product status badge replacing macOS dots */
.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: statusPulse 2s infinite ease-in-out;
}

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

.status-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  text-transform: uppercase;
}

.topbar-tabs {
  display: flex;
  gap: 4px;
}

.preview-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.preview-tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.hero-preview-body {
  padding: 24px;
  background: radial-gradient(circle at 80% 20%, rgba(124, 92, 255, 0.08), transparent 70%), var(--bg-surface);
}

.brief-input-box {
  background: #0a0a10;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.brief-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-light);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.brief-prompt-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

.generated-pipeline-view {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pipeline-node-card {
  background: #11111a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  transition: all var(--duration-fast);
  position: relative;
  overflow: hidden;
}

.pipeline-node-card:hover, .pipeline-node-card.highlight {
  border-color: var(--accent-primary);
  background: #161624;
  box-shadow: 0 0 16px rgba(124, 92, 255, 0.25);
}

.node-step-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.node-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.node-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-live-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
}

/* ==========================================================================
   SIGNATURE FEATURE: 3D Isometric CSS Scene
   Volumetric Pipeline Layering (Text Strictly Above & In Front)
   ========================================================================== */
.isometric-section {
  padding-block: 130px;
  background: linear-gradient(to bottom, var(--bg-main) 0%, #0a0a14 50%, var(--bg-main) 100%);
  position: relative;
  overflow: hidden;
}

/* Solid layer depth shield behind header so text is 100% visible and in front */
.iso-header-shield {
  position: relative;
  z-index: 50;
  padding-bottom: 10px;
}

.isometric-wrapper {
  perspective: 1500px;
  perspective-origin: 50% 15%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
  margin-top: 75px;
  padding-bottom: 30px;
  position: relative;
  z-index: 10;
}

.isometric-scene {
  position: relative;
  width: 620px;
  height: 440px;
  transform-style: preserve-3d;
  transform: rotateX(48deg) rotateZ(-28deg) rotateY(2deg);
  transition: transform 0.15s ease-out;
  transform-origin: center center;
}

/* Isometric Layers Floating in 3D Space (Downwards-offset Z scale to prevent text overlap) */
.iso-layer {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  transform-style: preserve-3d;
  transition: transform var(--duration-slow) var(--ease-spring),
              box-shadow var(--duration-slow) var(--ease-spring),
              border-color var(--duration-fast);
  backdrop-filter: blur(14px);
}

/* Layer 1 (Base): Input Brief Plane */
.iso-layer-1 {
  transform: translateZ(-90px);
  background: rgba(16, 16, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
  padding: 30px;
}

/* Layer 2: AI Neural Engine Processor */
.iso-layer-2 {
  transform: translateZ(-10px);
  background: rgba(26, 20, 48, 0.86);
  border: 1px solid rgba(124, 92, 255, 0.45);
  box-shadow: 0 20px 50px rgba(124, 92, 255, 0.25);
  padding: 26px;
}

/* Layer 3: 3-in-1 Connected Funnel Pages */
.iso-layer-3 {
  transform: translateZ(70px);
  background: rgba(20, 26, 45, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.48);
  box-shadow: 0 25px 60px rgba(56, 189, 248, 0.25);
  padding: 24px;
}

/* Layer 4 (Top): Live Leads & Integrations Stream */
.iso-layer-4 {
  transform: translateZ(150px);
  background: rgba(30, 24, 52, 0.95);
  border: 1px solid rgba(168, 85, 247, 0.65);
  box-shadow: 0 30px 70px rgba(168, 85, 247, 0.35);
  padding: 24px;
}

/* Content inside Isometric Planes */
.iso-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.iso-card-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.iso-badge-1 { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.iso-badge-2 { background: var(--accent-subtle); color: var(--accent-light); }
.iso-badge-3 { background: rgba(56, 189, 248, 0.15); color: var(--cyan); }
.iso-badge-4 { background: rgba(52, 211, 153, 0.15); color: var(--success); }

.iso-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.iso-subcard {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.iso-subcard-title {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.iso-subcard-desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* Connecting Light Beams Between Layers */
.iso-beam {
  position: absolute;
  width: 2px;
  height: 240px;
  background: linear-gradient(to top, var(--accent-primary), var(--cyan));
  transform-style: preserve-3d;
  transform: rotateX(-90deg);
  box-shadow: 0 0 10px var(--accent-primary);
  opacity: 0.5;
}

.beam-1 { top: 20%; left: 20%; }
.beam-2 { top: 20%; right: 20%; }
.beam-3 { bottom: 20%; left: 50%; }

/* Interactive Controls for 3D Scene */
.iso-controls-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  position: relative;
  z-index: 40;
}

.iso-control-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 10px 22px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.iso-control-btn:hover, .iso-control-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: #ffffff;
}

/* ==========================================================================
   How It Works Section (4 Steps)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), 0 0 30px rgba(124, 92, 255, 0.15);
}

.step-num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 300;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-primary), #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Proof Showcase: 12-Card Grid (4x3) with 3:2 Live Previews
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

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

.proof-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.proof-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-elevated), 0 0 35px rgba(124, 92, 255, 0.2);
}

/* 3:2 Aspect Ratio Preview Window */
.proof-preview-window {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0e0e16;
}

.proof-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-smooth);
}

.proof-card:hover .proof-preview-img {
  transform: scale(1.05);
}

.preview-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 12, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.proof-card:hover .preview-hover-overlay {
  opacity: 1;
}

.preview-open-btn {
  background: #ffffff;
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Bottom Metadata Strip Outside the 3:2 View */
.proof-meta-strip {
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proof-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.proof-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.proof-speed-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: rgba(52, 211, 153, 0.12);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.proof-niche {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   Three Modes Section
   ========================================================================== */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
}

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

.mode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast);
}

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

.mode-card-featured {
  background: linear-gradient(180deg, #18152b 0%, var(--bg-surface) 100%);
  border: 1px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.mode-card-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--accent-primary), 0 0 60px rgba(124, 92, 255, 0.45);
}

.mode-badge {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.mode-title {
  font-family: var(--font-display);
  font-size: 30px;
  color: #ffffff;
  margin-bottom: 14px;
}

.mode-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 28px;
}

/* ==========================================================================
   Anti-Tilda Comparison Section (Только факты. Без громких слов.)
   ========================================================================== */
.comparison-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 18px 24px;
  background: #0a0a12;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
  align-items: center;
  transition: background var(--duration-fast);
}

.comparison-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.comparison-row:hover {
  background: rgba(124, 92, 255, 0.04);
}

.comp-param {
  color: #ffffff;
  font-weight: 600;
}

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

.comp-lp {
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-check-icon {
  color: var(--accent-light);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .comparison-header, .comparison-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
  }
  .comparison-header {
    display: none;
  }
  .comp-param {
    font-size: 16px;
    color: var(--accent-light);
  }
}

.comparison-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 760px;
  margin-inline: auto;
}

/* ==========================================================================
   Pricing Section & LTD Founder Deal
   ========================================================================== */
.trial-banner {
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ltd-box {
  background: linear-gradient(120deg, rgba(245, 158, 11, 0.12), rgba(124, 92, 255, 0.12));
  border: 1px solid var(--warning);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.15);
}

.ltd-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--warning);
  margin-bottom: 4px;
}

.ltd-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: #ffffff;
}

.ltd-slots-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ltd-slot-counter {
  color: var(--warning);
  font-weight: 700;
}

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

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

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast);
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
}

.price-card-popular {
  background: linear-gradient(180deg, #18152b 0%, var(--bg-surface) 100%);
  border: 1px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

.price-card-popular:hover {
  box-shadow: 0 0 0 1px var(--accent-primary), 0 0 50px rgba(124, 92, 255, 0.45);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.price-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 8px;
}

.price-period {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.price-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}

.price-feature-item {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.price-check-svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast);
}

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

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon-cross {
  font-size: 24px;
  line-height: 1;
  color: var(--accent-light);
  transition: transform var(--duration-fast) var(--ease-spring);
}

.faq-item.active .faq-icon-cross {
  transform: rotate(45deg);
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-smooth);
}

.faq-answer-content {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.final-cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.22), transparent 70%), var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 56px);
  color: #ffffff;
  margin-bottom: 20px;
}

.final-cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  padding-block: 80px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

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

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

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 18px;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--duration-fast);
}

.footer-link:hover {
  color: #ffffff;
}

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

/* ==========================================================================
   DYNAMIC RETURN TO TOP BUTTON WITH PROGRESS RING
   ========================================================================== */
.back-to-top-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: opacity var(--duration-base) var(--ease-spring),
              transform var(--duration-base) var(--ease-spring);
}

.back-to-top-container.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-elevated), 0 0 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-spring),
              border-color var(--duration-fast);
}

.back-to-top-btn:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--accent-primary);
}

.progress-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-ring-circle-bg {
  stroke: rgba(255, 255, 255, 0.08);
  fill: transparent;
  stroke-width: 3;
}

.progress-ring-circle-val {
  stroke: var(--accent-primary);
  fill: transparent;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top-arrow-svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
  position: relative;
  z-index: 2;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.back-to-top-btn:hover .back-to-top-arrow-svg {
  transform: translateY(-2px);
}

/* ==========================================================================
   Interactive Modal for Proof Previews
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-smooth);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.94);
  transition: transform var(--duration-base) var(--ease-spring);
}

.modal-backdrop.open .modal-window {
  transform: scale(1);
}

.modal-header {
  padding: 16px 24px;
  background: #0d0d16;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color var(--duration-fast);
}

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

.modal-body-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Scroll-Triggered Reveals via IntersectionObserver
   ========================================================================== */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-spring),
              transform var(--duration-slow) var(--ease-spring);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Accessibility: prefers-reduced-motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-scene-layer {
    transition: none !important;
    transform: none !important;
  }
  
  .hero-scene-layer:not(:first-child) {
    display: none !important;
  }
  
  .hero-scene-layer:first-child {
    opacity: 1 !important;
  }
  
  .isometric-scene {
    transform: rotateX(45deg) rotateZ(-25deg) !important;
    transition: none !important;
  }
  
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
