/* Anyx Landing — Modern SaaS Design */
/* Шрифт Inter подключается в index.html с display=swap, без блокировки отрисовки */

/* ============================================
   CSS Variables & Reset
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #050b14;
  --bg-secondary: #0a1220;
  --bg-tertiary: #0f1825;
  
  --primary: #2f81f7;
  --primary-light: #4a94ff;
  --primary-dark: #1a6ae8;
  
  --accent: #00d1ff;
  --accent-light: #33ddff;
  
  --text: #ffffff;
  --text-secondary: #b8c5d6;
  --text-tertiary: #7a8a9e;
  
  --border: rgba(47, 129, 247, 0.15);
  --border-light: rgba(255, 255, 255, 0.08);
  
  --success: #00ff88;
  --warning: #ffaa00;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  
  /* Glow */
  --glow-primary: 0 0 40px rgba(47, 129, 247, 0.3);
  --glow-accent: 0 0 40px rgba(0, 209, 255, 0.3);
  
  --font-mono: 'SF Mono', 'Consolas', 'Monaco', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Background Glow Effects
   ============================================ */

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: float 20s infinite ease-in-out;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(47, 129, 247, 0.25) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 209, 255, 0.15) 0%, transparent 70%);
  top: 40%;
  right: -150px;
  animation-delay: -5s;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(47, 129, 247, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--spacing-lg) 0;
  background: rgba(5, 11, 20, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(47, 129, 247, 0.2) 0%, rgba(0, 209, 255, 0.1) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  box-shadow: var(--glow-primary);
  animation: pulse 2s infinite;
}

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

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   Buttons
   ============================================ */

/* Кнопки: без псевдоэлементов, чтобы при нажатии ничего не раздувалось */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Убрано ::before — из-за него кнопка визуально раздувалась при клике */

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(47, 129, 247, 0.3);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 129, 247, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(47, 129, 247, 0.35);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-4xl) var(--spacing-lg);
  padding-top: max(var(--spacing-4xl), 90px); /* чтобы бейдж не уходил под фиксированный header */
  position: relative;
  overflow: hidden;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 8px 16px;
  background: rgba(47, 129, 247, 0.1);
  border: 1px solid rgba(47, 129, 247, 0.3);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 0.8s ease;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-4xl);
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* Hero Floating Cards */
.hero-mockup {
  position: relative;
  height: 200px;
  margin-top: var(--spacing-3xl);
}

.floating-card {
  position: absolute;
  background: rgba(10, 18, 32, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-xl);
  animation: floatCard 6s infinite ease-in-out;
}

.floating-card-1 {
  left: 10%;
  top: 0;
  min-width: 200px;
  animation-delay: 0s;
}

.floating-card-2 {
  right: 15%;
  top: 20%;
  min-width: 180px;
  animation-delay: -2s;
}

.floating-card-3 {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  min-width: 160px;
  animation-delay: -4s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) translateX(-50%); }
  50% { transform: translateY(-20px) translateX(-50%); }
}

.floating-card-1, .floating-card-2 {
  animation-name: floatCardSide;
}

@keyframes floatCardSide {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
  font-size: 12px;
  color: var(--text-tertiary);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

.card-stats .stat {
  margin-top: var(--spacing-xs);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
}

.mini-chart .chart-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 3px;
  min-width: 8px;
  animation: growBar 1s ease-out;
}

@keyframes growBar {
  from { height: 0; }
}

.link-preview {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(47, 129, 247, 0.1);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--primary-light);
}

/* ============================================
   Animations
   ============================================ */

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: var(--spacing-4xl) var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.section-dark {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 18, 32, 0.5) 50%, transparent 100%);
}

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

.container-narrow {
  max-width: 600px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   Steps
   ============================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.step {
  position: relative;
  padding: var(--spacing-xl);
  background: rgba(10, 18, 32, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(47, 129, 247, 0.2);
}

.step:hover .step-glow {
  opacity: 1;
}

.step-number {
  position: relative;
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-light);
  background: linear-gradient(135deg, rgba(47, 129, 247, 0.2) 0%, rgba(0, 209, 255, 0.1) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
}

.step-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-md);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

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

.step-icon {
  position: absolute;
  top: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step:hover .step-icon {
  color: var(--primary-light);
  opacity: 1;
  transform: scale(1.1);
}

/* ============================================
   Features
   ============================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  padding: var(--spacing-xl);
  background: rgba(10, 18, 32, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(47, 129, 247, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 129, 247, 0.2) 0%, rgba(0, 209, 255, 0.1) 100%);
  border-radius: var(--radius-md);
  color: var(--primary-light);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: var(--glow-primary);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
}

.feature-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   Dashboard Preview
   ============================================ */

.dashboard-preview {
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-window {
  background: rgba(10, 18, 32, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.window-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(5, 11, 20, 0.6);
  border-bottom: 1px solid var(--border-light);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.3;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:nth-child(3) { background: #28ca42; }

.window-title {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.dashboard-content {
  display: flex;
  min-height: 400px;
}

.dashboard-sidebar {
  width: 200px;
  padding: var(--spacing-lg);
  background: rgba(5, 11, 20, 0.4);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-tertiary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-item.active {
  background: rgba(47, 129, 247, 0.15);
  color: var(--primary-light);
}

.sidebar-icon {
  width: 8px;
  height: 8px;
  background: var(--text-tertiary);
  border-radius: 2px;
}

.sidebar-item.active .sidebar-icon {
  background: var(--primary-light);
}

.dashboard-main {
  flex: 1;
  padding: var(--spacing-xl);
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.stat-card {
  padding: var(--spacing-md);
  background: rgba(47, 129, 247, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-change {
  font-size: 12px;
  font-weight: 600;
}

.stat-change.positive {
  color: var(--success);
}

.dashboard-chart {
  background: rgba(5, 11, 20, 0.4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
}

.chart-header {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-md);
  height: 150px;
}

.chart-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.chart-bar-wrapper .chart-bar {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
}

.chart-bar-wrapper:hover .chart-bar {
  background: linear-gradient(180deg, var(--accent) 0%, var(--primary) 100%);
}

.chart-label {
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ============================================
   Pricing
   ============================================ */

.pricing-card {
  padding: var(--spacing-2xl);
  background: rgba(10, 18, 32, 0.8);
  backdrop-filter: blur(20px);
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 60px rgba(47, 129, 247, 0.2);
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, var(--primary) 60deg, transparent 120deg);
  animation: rotateBorder 6s linear infinite;
  opacity: 0.1;
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 8px 16px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: var(--spacing-lg);
}

.pricing-header {
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--spacing-sm);
}

.price-currency {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-secondary);
}

.price-amount {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 18px;
  color: var(--text-tertiary);
}

.pricing-description {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-feature svg {
  color: var(--success);
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: var(--spacing-md);
  position: relative;
  z-index: 1;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: var(--spacing-3xl) var(--spacing-lg) var(--spacing-xl);
  background: rgba(5, 11, 20, 0.6);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: var(--spacing-sm);
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ============================================
   Demo panels (интерактивное демо на лендинге)
   ============================================ */

#landing-demo .dashboard-sidebar {
  flex-direction: column;
}

#landing-demo .dashboard-sidebar .sidebar-item {
  width: 100% !important;
  text-align: left !important;
  cursor: pointer !important;
  border: none !important;
  background: transparent !important;
  color: var(--text-tertiary) !important;
  font: inherit !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  display: flex !important;
  align-items: center !important;
  gap: var(--spacing-sm) !important;
  transition: all 0.2s ease !important;
}

#landing-demo .dashboard-sidebar .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text) !important;
}

#landing-demo .dashboard-sidebar .sidebar-item.active {
  background: rgba(47, 129, 247, 0.15) !important;
  color: var(--primary-light) !important;
}

#landing-demo .dashboard-sidebar .sidebar-item.active .sidebar-icon {
  background: var(--primary-light) !important;
}

#landing-demo .dashboard-sidebar .sidebar-item span {
  color: inherit !important;
}

.demo-panel {
  display: none;
  animation: demoPanelIn 0.35s ease;
}

.demo-panel.active {
  display: block;
}

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

.demo-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--spacing-lg);
}

.demo-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.demo-link-card {
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(47, 129, 247, 0.06);
  border: 1px solid rgba(47, 129, 247, 0.2);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.demo-link-card:hover {
  border-color: var(--primary);
  background: rgba(47, 129, 247, 0.1);
}

.demo-link-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 4px;
}

.demo-link-target {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.demo-link-meta {
  font-size: 12px;
  color: var(--text-tertiary);
}

.demo-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: var(--spacing-md);
}

.demo-regions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-xl);
}

.demo-region-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: var(--spacing-md);
}

.demo-region-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.demo-region-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.demo-region-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 999px;
  transition: width 0.6s ease;
}

.demo-region-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 3em;
  text-align: right;
}

.demo-chart-small .chart-bars {
  height: 120px;
}

.chart-bars-24 {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px;
}

.chart-bars-24 .chart-bar-wrapper {
  min-width: 0;
}

.chart-bars-24 .chart-label {
  font-size: 9px;
}

.demo-cta-wrap {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.demo-cta-wrap .btn {
  box-shadow: 0 4px 20px rgba(47, 129, 247, 0.35);
}

/* ============================================
   Responsive
   ============================================ */

.desktop-only {
  display: inline;
}

@media (max-width: 1024px) {
  .floating-card {
    display: none;
  }
  
  .hero-mockup {
    height: auto;
    margin-top: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .nav {
    gap: var(--spacing-xs);
  }
  
  .nav-link {
    display: none;
  }
  
  .hero {
    padding: var(--spacing-3xl) var(--spacing-lg);
    padding-top: 100px; /* на мобильных надпись «Новое поколение…» не уходит под header */
    min-height: auto;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .desktop-only {
    display: none;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .dashboard-content {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .pricing-card {
    padding: var(--spacing-xl);
  }
  
  .price-amount {
    font-size: 48px;
  }
}

/* ============================================
   Auth Drawer (Вход / Регистрация справа)
   ============================================ */

.auth-drawer {
  position: fixed;
  /* Для браузеров без поддержки inset явно задаём границы */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

.auth-drawer.open {
  visibility: visible;
  opacity: 1;
}

.auth-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 11, 20, 0.75);
  backdrop-filter: blur(8px);
}

.auth-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: var(--spacing-xl);
}

.auth-drawer.open .auth-drawer-panel {
  transform: translateX(0);
}

.auth-drawer-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.auth-drawer-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.auth-drawer-tabs {
  display: flex;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  margin-top: 44px;
}

.auth-drawer-tab {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-drawer-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.auth-drawer-tab.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: var(--text);
}

.auth-drawer-form .form-group {
  margin-bottom: var(--spacing-md);
}

.auth-drawer-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--spacing-xs);
}

.auth-drawer-form input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.auth-drawer-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.2);
}

.auth-drawer-other {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-light);
}

.auth-drawer-other-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.auth-drawer-other .auth-other-btn,
.telegram-custom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.auth-drawer-other-message {
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: var(--spacing-sm);
}

.auth-drawer-other-message.hidden {
  display: none;
}

.auth-drawer-telegram-wrap {
  /* Виджет Telegram должен быть в DOM, но не виден пользователю */
  display: none !important;
}
.auth-drawer-telegram-wrap.hidden {
  display: none !important;
}

.auth-drawer-form .message {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: var(--spacing-md);
}

.auth-drawer-form .message.hidden {
  display: none;
}

.auth-drawer-form .message.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.auth-drawer-form .message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #bbf7d0;
}

.auth-drawer-form.hidden {
  display: none;
}

.auth-drawer-form .hint {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: var(--spacing-sm);
}

.btn-link-inline {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--primary);
  cursor: pointer;
  text-decoration: underline;
}
