/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
  --bg:            #FAFAF9;
  --bg-card:       #FFFFFF;
  --bg-subtle:     #EFF6FF;
  --bg-muted:      #F1F5F9;

  --text:          #0F172A;
  --text-secondary:#475569;
  --text-muted:    #94A3B8;

  --border:        #E2E8F0;
  --border-strong: #CBD5E1;
  --border-accent: #BFDBFE;

  --accent:        #2563EB;
  --accent-hover:  #1D4ED8;
  --accent-light:  #EFF6FF;
  --accent-grad:   linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);

  --success:       #16A34A;
  --success-light: #ECFDF5;
  --danger:        #EF4444;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 1px 2px rgba(15,23,42,0.04), 0 8px 24px rgba(15,23,42,0.06);
  --shadow-lg: 0 4px 8px rgba(15,23,42,0.05), 0 24px 48px rgba(15,23,42,0.08);
  --shadow-accent: 0 8px 24px rgba(37,99,235,0.25);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-full: 999px;

  --font: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
  --font-system: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1200px;
  --container-narrow: 820px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: 64px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: 44px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 700; }
p {  max-width: 65ch; }

.lead { font-size: 20px; line-height: 1.6; color: var(--text-secondary); margin-top: 20px; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); }
.section { padding: 96px 0; }
.section-muted { background: var(--bg-muted); }
.section-header { text-align: center; margin-bottom: 64px; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-header h2 { margin-top: 16px; }
.section-header p { margin: 16px auto 0; font-size: 18px; color: var(--text-secondary); }

/* ==========================================================================
   BADGE
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(15,23,42,0.15);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,23,42,0.2); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.logo svg { color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; color: var(--text-secondary); }
.nav a { transition: color 0.2s; }
.nav a:hover { color: var(--text); }

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border-radius: var(--r-full);
  padding: 3px;
}

.lang-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-full);
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-secondary);
}

.lang-btn.active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 80px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 64px; }
.hero-content h1 { margin-top: 20px; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta { margin-top: 20px; font-size: 14px; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   APP MOCKUP
   ========================================================================== */
.mockup {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.mockup-window {
  display: flex;
  font-family: var(--font-system);
  background: #f4f4f5;
  aspect-ratio: 5 / 3.6;
  min-height: 240px;
}

.hero-visual .mockup-window {
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.5s ease;
}
.hero-visual .mockup-window:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(0deg);
}

.app-sidebar {
  width: 38px;
  background: #ffffff;
  border-right: 1px solid #e4e4e7;
  display: flex;
  flex-direction: column;
  padding: 8px 5px;
  gap: 2px;
  flex-shrink: 0;
}

.app-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 8px;
  color: #2563eb;
  border-bottom: 1px solid #f4f4f5;
  margin-bottom: 4px;
}

.app-nav { display: flex; flex-direction: column; gap: 2px; }

.app-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: 5px;
  color: #a1a1aa;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.app-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
}

.app-main {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f4f4f5;
  min-width: 0;
  overflow: hidden;
}

.app-search { display: flex; gap: 4px; flex-shrink: 0; }

.app-search-input {
  flex: 1;
  background: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 8px;
  color: #a1a1aa;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid transparent;
}

.app-search-btn {
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 8px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.app-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 1;
  align-content: start;
  overflow: hidden;
}

.app-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
}

.app-photo.p1 { background: linear-gradient(135deg, #ddd6fe, #c7d2fe); }
.app-photo.p2 { background: linear-gradient(135deg, #fde68a, #fca5a5); }
.app-photo.p3 { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }
.app-photo.p4 { background: linear-gradient(135deg, #e9d5ff, #c4b5fd); }
.app-photo.p5 { background: linear-gradient(135deg, #fecaca, #fca5a5); }
.app-photo.p6 { background: linear-gradient(135deg, #bae6fd, #7dd3fc); }

.app-face {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 2px;
  box-sizing: border-box;
}

.face-green  { border-color: #4caf50; }
.face-yellow { border-color: #f5a623; }
.face-white  { border-color: #fff; }

.app-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 5px 3px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  color: #fff;
  font-size: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.app-modal {
  display: flex;
  width: 100%;
  background: #fff;
  min-height: 100%;
}

.app-modal-photo {
  flex: 1.4;
  position: relative;
  background: linear-gradient(135deg, #fde68a, #fca5a5);
  min-height: 100%;
}

.app-modal-panel {
  flex: 1;
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 1px solid #e4e4e7;
  background: #fff;
  min-width: 0;
}

.app-panel-section { display: flex; flex-direction: column; gap: 1px; }

.app-panel-label {
  font-size: 6.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.05em;
}

.app-panel-value {
  font-size: 7.5px;
  color: #52525b;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.app-panel-divider {
  height: 1px;
  background: #e4e4e7;
  margin: 2px 0;
}

.app-panel-meta {
  font-size: 7px;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-panel-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-btn {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 7px;
  text-align: center;
  color: #52525b;
  font-weight: 500;
}

.app-clusters {
  padding: 10px;
  background: #f4f4f5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 100%;
  width: 100%;
}

.app-clusters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 700;
  color: #09090b;
}

.app-clusters-stats {
  font-size: 7px;
  color: #a1a1aa;
  font-weight: 400;
}

.app-clusters-btn {
  background: #16a34a;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 7.5px;
  font-weight: 600;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.3);
}

.app-cluster-card {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.app-cluster-title {
  font-size: 8px;
  font-weight: 600;
  color: #09090b;
  padding-bottom: 5px;
  border-bottom: 1px solid #f1f5f9;
}

.app-cluster-faces {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.app-face-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ddd6fe, #c7d2fe);
  flex-shrink: 0;
}

.app-face-thumb:nth-child(2) { background: linear-gradient(135deg, #fde68a, #fca5a5); }
.app-face-thumb:nth-child(3) { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }
.app-face-thumb:nth-child(4) { background: linear-gradient(135deg, #e9d5ff, #c4b5fd); }
.app-face-thumb:nth-child(5) { background: linear-gradient(135deg, #bae6fd, #7dd3fc); }

.app-cluster-input {
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 7.5px;
  color: #a1a1aa;
}

.app-cluster-actions {
  display: flex;
  gap: 4px;
}

.app-cluster-btn {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 7px;
  font-weight: 600;
  text-align: center;
}

.app-cluster-btn-primary { background: #2563eb; color: #fff; }
.app-cluster-btn-secondary { background: #fff; color: #52525b; border: 1px solid #e4e4e7; }

/* ==========================================================================
   GRID & CARDS
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-accent); }
.card h3 { margin: 18px 0 8px; }
.card p { font-size: 15px; line-height: 1.65; }
.card-muted { background: var(--bg-card); opacity: 0.95; }
.card-muted:hover { transform: translateY(-3px); }

.feature-card { padding: 24px; }

.feature-accent {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, #fff 0%, var(--accent-light) 100%);
}

.icon-circle {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.icon-circle-muted { background: var(--bg-muted); color: var(--text-secondary); }

/* ==========================================================================
   PILLARS
   ========================================================================== */
.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.pillar-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { font-size: 16px; }

/* ==========================================================================
   STEPS
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }

.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 16%; right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
  z-index: 0;
}

.step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px; font-weight: 800;
  box-shadow: var(--shadow-accent);
  margin-bottom: 20px;
}

.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; margin: 0 auto; max-width: 280px; }

/* ==========================================================================
   SCENARIO
   ========================================================================== */
.scenario-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  text-align: center;
}
.scenario-card h2 { margin: 20px 0 40px; }

.scenario-flow { display: flex; align-items: stretch; justify-content: center; gap: 12px; flex-wrap: wrap; }

.scenario-step {
  flex: 1; min-width: 160px; max-width: 200px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 24px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.scenario-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.scenario-step strong { font-size: 15px; font-weight: 700; color: var(--text); }
.scenario-step span { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.scenario-arrow { display: flex; align-items: center; font-size: 24px; color: var(--accent); font-weight: 700; }

.scenario-checks {
  display: flex; justify-content: center; gap: 32px;
  margin-top: 40px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
}

/* ==========================================================================
   PRIVACY
   ========================================================================== */
.privacy-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.privacy-content h2 { margin: 20px 0 32px; }

.privacy-list { display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--text-secondary); font-weight: 500; }
.privacy-list li { display: flex; align-items: center; gap: 12px; }

.cross, .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}

.cross { background: #FEE2E2; color: var(--danger); }
.check { background: var(--success-light); color: var(--success); }

.privacy-visual { display: flex; justify-content: center; align-items: center; }
.privacy-shield { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.privacy-shield svg { width: 180px; height: 180px; filter: drop-shadow(0 12px 32px rgba(37,99,235,0.25)); }
.privacy-shield-label { font-size: 14px; font-weight: 700; color: var(--accent); line-height: 1.3; }

/* ==========================================================================
   DEMO
   ========================================================================== */
.demo-grid .mockup-window { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.demo-grid .mockup-window:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ==========================================================================
   COMPARE TABLE
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { font-weight: 700; font-size: 14px; color: var(--text-secondary); background: var(--bg-muted); }
.compare-table th.col-accent { background: var(--accent-light); color: var(--accent); }
.compare-table td:first-child { font-weight: 600; color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: rgba(241, 245, 249, 0.4); }
.compare-table .col-accent { background: rgba(239, 246, 255, 0.5); font-weight: 600; }

.yes   { color: var(--success); font-weight: 600; }
.no    { color: var(--danger); font-weight: 600; }
.warn  { color: #F59E0B; font-weight: 600; }

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] { border-color: var(--border-accent); box-shadow: var(--shadow-sm); }

.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 18px; font-weight: 700;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 20px; font-size: 15px; line-height: 1.7; max-width: none; color: var(--text-secondary); }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section { padding: 80px 0; }

.cta-inner {
  background: var(--accent-grad);
  border-radius: var(--r-xl);
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
  pointer-events: none;
}

.cta-inner h2 { color: #fff; margin-bottom: 28px; position: relative; }
.cta-inner .btn { position: relative; }
.cta-meta { margin-top: 20px; color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; position: relative; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--text-secondary); max-width: 320px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }

/* ==========================================================================
   REVEAL
   ========================================================================== */
.reveal { opacity: 0; }
.reveal.visible { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.grid > .reveal:nth-child(1) { --i: 0; }
.grid > .reveal:nth-child(2) { --i: 1; }
.grid > .reveal:nth-child(3) { --i: 2; }
.grid > .reveal:nth-child(4) { --i: 3; }
.grid > .reveal:nth-child(5) { --i: 4; }
.grid > .reveal:nth-child(6) { --i: 5; }
.grid > .reveal:nth-child(7) { --i: 6; }
.grid > .reveal:nth-child(8) { --i: 7; }

.reveal.visible { animation-delay: calc(var(--i, 0) * 60ms); }

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

/* ==========================================================================
   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;
  }
  .reveal { opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
  h1 { font-size: 52px; }
  h2 { font-size: 38px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 48px; }
}

@media (max-width: 1023px) {
  h1 { font-size: 44px; }
  h2 { font-size: 34px; }
  .section { padding: 72px 0; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-content .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual .mockup-window { transform: none; }
  .hero-visual .mockup-window:hover { transform: none; }

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

  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }

  .privacy-card { grid-template-columns: 1fr; padding: 40px 32px; text-align: center; }
  .privacy-list li { justify-content: flex-start; text-align: left; }

  .scenario-card { padding: 40px 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  
  .header-right { gap: 12px; }
}

@media (max-width: 767px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 18px; }

  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 64px; }
  .section-header { margin-bottom: 40px; }
  .hero-actions .btn { flex: 1; }
  .lead { font-size: 17px; }

  .grid-4, .grid-3 { grid-template-columns: 1fr; }

  .scenario-flow { flex-direction: column; align-items: center; }
  .scenario-arrow { transform: rotate(90deg); font-size: 20px; }
  .scenario-step { width: 100%; max-width: 260px; }
  .scenario-checks { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }

  .privacy-card { padding: 32px 20px; }
  .privacy-shield svg { width: 140px; height: 140px; }

  .cta-inner { padding: 48px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  
  .logo span { display: none; } /* Скрываем текст логотипа на мобильных, чтобы поместился переключатель */
  
  .cta-sub {
  max-width: 680px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.92;
}

/* на всякий случай — центрирование на мобильных, если .cta-inner не задаёт */
@media (max-width: 640px) {
  .cta-sub {
    font-size: 0.98rem;
    padding: 0 8px;
  }
}
}