/* public/css/welcome.css
   Стили стартовой страницы-визитки.
   Используется на /welcome.html (или на / для неавторизованных).
   6.73: мобильная оптимизация — компактный навбар, hero, мокап, секции.
   Новый breakpoint 400px для очень узких экранов.
   6.74: гибридная защита навбара от «кукоживания» при зуме и узких экранах.
   CSS nowrap + промежуточный breakpoint 1100px + JS-наблюдатель.
   7.as: InterVariable вместо Google Fonts. */

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

:root {
  --bg-base: #f4fbf7;
  --bg-surface: rgba(255, 255, 255, 0.72);
  --bg-surface-solid: #ffffff;
  --bg-elevated: #ffffff;
  --border-soft: rgba(16, 24, 40, 0.06);
  --border-strong: rgba(16, 24, 40, 0.12);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-mint: #34d399;
  --accent-teal: #14b8a6;
  --accent-lime: #84cc16;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --gradient-main: linear-gradient(135deg, #10b981 0%, #34d399 50%, #14b8a6 100%);
  --gradient-soft: linear-gradient(135deg, #d1fae5 0%, #ccfbf1 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 30px 80px rgba(16, 185, 129, 0.12), 0 8px 24px rgba(15, 23, 42, 0.06);
}

html { scroll-behavior: smooth; }

body {
  /* 7.as: InterVariable первым; 'Inter' оставлен для совместимости. */
  font-family: 'InterVariable', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  letter-spacing: -0.01em;
}

/* ========== BACKGROUND ========== */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top left, #d1fae5 0%, transparent 50%),
    radial-gradient(ellipse at top right, #ccfbf1 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, #ecfccb 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #cffafe 0%, transparent 50%),
    linear-gradient(180deg, #f4fbf7 0%, #f0fdf9 100%);
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  animation: float 25s ease-in-out infinite;
  will-change: transform;
}
.bg-blob-1 {
  width: 600px; height: 600px;
  background: #a7f3d0;
  top: -200px; left: -150px;
}
.bg-blob-2 {
  width: 500px; height: 500px;
  background: #99f6e4;
  top: 40%; right: -150px;
  animation-delay: -8s;
}
.bg-blob-3 {
  width: 550px; height: 550px;
  background: #bef264;
  bottom: -200px; left: 20%;
  opacity: 0.35;
  animation-delay: -16s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.08); }
  66% { transform: translate(-40px, -60px) scale(0.95); }
}

/* ========== NAV ========== */
nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-md);
  transition: background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

nav.nav--compact .nav-links {
  display: none;
}
nav.nav--compact {
  gap: 12px;
  padding: 6px 6px 6px 14px;
}
nav.nav--compact .logo {
  font-size: 14px;
}
nav.nav--compact .logo-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 13px;
}

.scroll-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--gradient-main);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 0 100px 100px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  min-width: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(16, 185, 129, 0.08);
}
.nav-cta {
  background: var(--text-primary);
  color: white;
  padding: 8px 18px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--accent-emerald-dark);
  transform: translateY(-1px);
}

/* ========== LAYOUT ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.8s ease-out;
  letter-spacing: -0.01em;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1); }
}

.hero h1 {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--text-primary);
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #34d399 25%, #14b8a6 50%, #34d399 75%, #10b981 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: gradientShift 8s ease-in-out infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.3s, background 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--text-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.btn-primary:hover {
  background: var(--accent-emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}
.btn-secondary {
  background: var(--bg-surface-solid);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* ========== MOCKUP ========== */
.mockup-wrapper {
  margin-top: 72px;
  position: relative;
  width: 100%;
  max-width: 1080px;
  animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
  transform-style: preserve-3d;
  perspective: 1200px;
  will-change: transform;
}
.mockup-glow {
  position: absolute;
  inset: -20px;
  background: var(--gradient-main);
  opacity: 0.15;
  filter: blur(60px);
  border-radius: 40px;
  z-index: -1;
}
.mockup {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  transition: transform 0.15s ease-out, box-shadow 0.3s;
  transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) {
  .mockup-wrapper:hover .mockup {
    box-shadow: 0 40px 100px rgba(16, 185, 129, 0.18), 0 10px 30px rgba(15, 23, 42, 0.08);
  }
}

.mockup::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  pointer-events: none;
  animation: shimmer 10s ease-in-out infinite;
  animation-delay: 3s;
}
@keyframes shimmer {
  0%, 90%, 100% { left: -60%; opacity: 0; }
  92% { opacity: 0.6; }
  97% { left: 120%; opacity: 0; }
}

.mockup-header {
  padding: 14px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #f43f5e; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }
.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'SF Mono', ui-monospace, monospace;
  background: rgba(0,0,0,0.03);
  padding: 4px 12px;
  border-radius: 6px;
  margin: 0 40px;
}

.mockup-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 540px;
}
.mockup-sidebar {
  background: #f8fafc;
  border-right: 1px solid var(--border-soft);
  padding: 20px 14px;
}
.sidebar-item {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.01em;
}
.sidebar-item:hover {
  background: rgba(16, 185, 129, 0.06);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}
.sidebar-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.25);
  color: inherit;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}
.sidebar-item:not(.active) .sidebar-badge {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald-dark);
}

.mockup-content { padding: 22px; background: white; }
.task-card {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.task-card:hover {
  border-color: var(--accent-emerald);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
  transform: translateY(-1px);
}
.task-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.task-priority {
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.priority-high { background: #fee2e2; color: #dc2626; }
.priority-med { background: #fef3c7; color: #d97706; }
.priority-low { background: #d1fae5; color: #059669; }
.task-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.stat-card {
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.02em;
}
.stat-value .unit {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.stat-trend {
  font-size: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.trend-up { color: var(--accent-emerald-dark); }
.trend-down { color: var(--accent-rose); }

/* ========== SECTIONS ========== */
section {
  padding: 120px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald-dark);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.section-header h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.section-header p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* ========== FEATURES ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(16, 185, 129, 0.10),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature:hover::before {
  opacity: 1;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gradient-soft);
  border: 1px solid rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature:hover .feature-icon {
  transform: rotate(-8deg) scale(1.12);
}

.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.feature p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ========== STEPS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.step {
  text-align: center;
  position: relative;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.3);
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 18px;
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
  letter-spacing: -0.02em;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step:hover .step-num {
  transform: scale(1.1) rotate(-4deg);
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.step p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

/* ========== ANALYTICS ========== */
.analytics-showcase {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.analytics-title {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.analytics-title::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.analytics-table {
  width: 100%;
  border-collapse: collapse;
}
.analytics-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1px solid var(--border-soft);
}
.analytics-table td {
  padding: 18px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.analytics-table tbody tr {
  transition: background 0.2s;
}
.analytics-table tbody tr:hover {
  background: #f0fdf9;
}
.analytics-table tbody tr:last-child td {
  border-bottom: none;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-main);
  transition: width 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}
.delta {
  font-weight: 700;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  letter-spacing: -0.01em;
}
.delta.positive {
  background: #d1fae5;
  color: var(--accent-emerald-dark);
}
.delta.negative {
  background: #fee2e2;
  color: #dc2626;
}

/* ========== CTA ========== */
.cta-section {
  padding: 120px 0;
  text-align: center;
}
.cta-box {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0.5;
}
.cta-box::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.cta-box p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

/* ========== FOOTER ========== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
}

/* ========== REVEAL + STAGGER ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i, 0) * 80ms),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1) calc(var(--i, 0) * 80ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE: ПРОМЕЖУТОЧНЫЙ 1100px ========== */
@media (max-width: 1100px) {
  nav { gap: 14px; }
  .nav-links a {
    padding: 8px 10px;
    font-size: 13.5px;
  }
}

/* ========== RESPONSIVE 900px ========== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .mockup-body { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-showcase { padding: 24px; overflow-x: auto; }

  nav {
    top: 12px;
    padding: 6px 6px 6px 14px;
    gap: 12px;
    max-width: calc(100vw - 24px);
  }
  .logo {
    font-size: 14px;
    gap: 8px;
  }
  .logo-icon {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 13px;
  }
  .nav-cta {
    padding: 7px 16px;
    font-size: 13px;
  }
}

/* ========== RESPONSIVE 600px ========== */
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  section { padding: 72px 0; }

  .hero {
    padding: 108px 0 56px;
    min-height: auto;
  }

  .badge {
    font-size: 12px;
    padding: 6px 12px;
    margin-bottom: 20px;
    max-width: calc(100vw - 32px);
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(30px, 8.5vw, 42px);
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 100%;
  }
  .hero-subtitle br { display: none; }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    gap: 10px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
    font-size: 15px;
  }

  .mockup-wrapper {
    margin-top: 44px;
  }
  .mockup {
    border-radius: 18px;
  }
  .mockup-header {
    padding: 10px 14px;
    gap: 6px;
  }
  .mockup-dots span {
    width: 10px; height: 10px;
  }
  .mockup-url {
    font-size: 10.5px;
    margin: 0 8px;
    padding: 3px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mockup-content { padding: 16px; }
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 10px; }
  .task-card { padding: 12px 14px; border-radius: 12px; }
  .task-title { font-size: 13.5px; flex-wrap: wrap; }
  .task-desc { font-size: 12px; }

  .section-header { margin-bottom: 44px; }
  .section-header h2 { font-size: clamp(26px, 7vw, 34px); }
  .section-header p { font-size: 15px; }

  .feature { padding: 22px; border-radius: 18px; }
  .feature-icon { width: 46px; height: 46px; font-size: 22px; margin-bottom: 14px; border-radius: 12px; }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 14px; }

  .step { padding: 22px 18px; border-radius: 18px; }
  .step-num {
    width: 48px; height: 48px;
    font-size: 20px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  .analytics-showcase { padding: 18px; border-radius: 18px; }
  .analytics-table th { padding: 8px 6px; font-size: 10px; }
  .analytics-table td { padding: 12px 6px; font-size: 12.5px; }
  .delta { font-size: 12px; padding: 3px 8px; }

  .cta-section { padding: 72px 0; }
  .cta-box { padding: 48px 24px; border-radius: 24px; }
  .cta-box h2 { font-size: clamp(26px, 7vw, 34px); }
  .cta-box p { font-size: 15px; }

  footer { font-size: 12px; padding: 32px 0; }
}

/* ========== RESPONSIVE 400px (iPhone SE) ========== */
@media (max-width: 400px) {
  .container { padding: 0 16px; }

  nav {
    top: 10px;
    padding: 5px 5px 5px 12px;
    gap: 8px;
  }
  .logo { font-size: 13px; gap: 6px; }
  .logo-icon { width: 24px; height: 24px; border-radius: 7px; font-size: 12px; }
  .nav-cta { padding: 6px 14px; font-size: 12px; }

  .hero {
    padding: 96px 0 48px;
  }
  .hero h1 {
    font-size: clamp(26px, 8vw, 34px);
  }
  .hero-subtitle {
    font-size: 14px;
  }
  .hero-cta .btn {
    padding: 14px 18px;
    font-size: 14px;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .stat-value { font-size: 18px; }

  .mockup-content { padding: 12px; }
  .task-card { padding: 10px 12px; }
  .task-title { font-size: 13px; }
  .task-desc { font-size: 11.5px; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .bg-blob { animation: none; }
  .mockup::after { display: none; }
}