/* ============================================================
   SmartOKS Landing — Design System v2
   Light-by-default · Dark via [data-theme="dark"]
   Accent: #4054b2 · Glassmorphism · Soft pastels
============================================================ */

/* ============================================================
   1. DESIGN TOKENS
============================================================ */
:root {
  /* Brand */
  --accent: #4054b2;
  --accent-hover: #5165c4;
  --accent-soft: rgba(64, 84, 178, 0.08);
  --accent-strong: rgba(64, 84, 178, 0.16);
  --accent-text: #4054b2;

  /* Surfaces (light default) */
  --bg: #f5f7fb;
  --bg-2: #ffffff;
  --bg-mesh-1: rgba(193, 210, 247, 0.45);
  --bg-mesh-2: rgba(218, 232, 215, 0.38);
  --bg-mesh-3: rgba(232, 222, 248, 0.32);

  --surface-card: rgba(255, 255, 255, 0.72);
  --surface-card-hover: rgba(255, 255, 255, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.5);
  --surface-elev: #ffffff;

  /* Borders */
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --border-accent: rgba(64, 84, 178, 0.35);

  /* Text */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Status colors */
  --c-green: #10b981;
  --c-amber: #f59e0b;
  --c-red: #ef4444;
  --c-blue: #3b82f6;
  --c-cyan: #06b6d4;
  --c-purple: #8b5cf6;
  --c-pink: #ec4899;

  /* Tag pastels (bg / text) */
  --tag-blue-bg: rgba(64, 84, 178, 0.1);     --tag-blue-text: #4054b2;
  --tag-green-bg: rgba(16, 185, 129, 0.1);   --tag-green-text: #059669;
  --tag-amber-bg: rgba(245, 158, 11, 0.12);  --tag-amber-text: #b45309;
  --tag-purple-bg: rgba(139, 92, 246, 0.1);  --tag-purple-text: #7c3aed;
  --tag-pink-bg: rgba(236, 72, 153, 0.1);    --tag-pink-text: #db2777;
  --tag-cyan-bg: rgba(6, 182, 212, 0.1);     --tag-cyan-text: #0891b2;
  --tag-red-bg: rgba(239, 68, 68, 0.1);      --tag-red-text: #dc2626;
  --tag-gray-bg: rgba(100, 116, 139, 0.1);   --tag-gray-text: #64748b;

  /* Module icon backdrops (gradient pairs) */
  --mod-blue: linear-gradient(135deg, #e0e8ff 0%, #c7d4ff 100%);
  --mod-green: linear-gradient(135deg, #d8f5e6 0%, #b8ebd0 100%);
  --mod-amber: linear-gradient(135deg, #fff0d4 0%, #ffe0a8 100%);
  --mod-purple: linear-gradient(135deg, #ebe1ff 0%, #d8c8ff 100%);
  --mod-pink: linear-gradient(135deg, #ffe0ee 0%, #ffc8dd 100%);
  --mod-cyan: linear-gradient(135deg, #d4f0f7 0%, #b3e5f0 100%);

  /* Card pastel washes (subtle bg behind text on featured cards) */
  --wash-blue: linear-gradient(180deg, rgba(64, 84, 178, 0.04), transparent);
  --wash-green: linear-gradient(180deg, rgba(16, 185, 129, 0.04), transparent);
  --wash-amber: linear-gradient(180deg, rgba(245, 158, 11, 0.04), transparent);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 2px 8px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 4px 16px rgba(15, 23, 42, 0.06), 0 24px 48px rgba(15, 23, 42, 0.08);
  --shadow-pop: 0 24px 64px rgba(64, 84, 178, 0.18);
  --shadow-nav: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);

  /* Geometry */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;
  --nav-h: 72px;
  --container: 1180px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.22s var(--ease);
  --t-slow: 0.35s var(--ease);
}

[data-theme="dark"] {
  --bg: #0b0e15;
  --bg-2: #0f131c;
  --bg-mesh-1: rgba(64, 84, 178, 0.18);
  --bg-mesh-2: rgba(16, 185, 129, 0.08);
  --bg-mesh-3: rgba(139, 92, 246, 0.1);

  --surface-card: rgba(255, 255, 255, 0.04);
  --surface-card-hover: rgba(255, 255, 255, 0.07);
  --surface-soft: rgba(255, 255, 255, 0.02);
  --surface-elev: #141925;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(110, 131, 212, 0.4);

  --text: #f1f3fa;
  --text-secondary: #9aa3b8;
  --text-muted: #5d667c;

  --accent-text: #8a9ce0;
  --accent-soft: rgba(64, 84, 178, 0.18);
  --accent-strong: rgba(64, 84, 178, 0.32);

  /* Tags slightly brighter on dark */
  --tag-blue-bg: rgba(110, 131, 212, 0.18);   --tag-blue-text: #a5b4e8;
  --tag-green-bg: rgba(16, 185, 129, 0.18);   --tag-green-text: #5eead4;
  --tag-amber-bg: rgba(245, 158, 11, 0.18);   --tag-amber-text: #fcd34d;
  --tag-purple-bg: rgba(139, 92, 246, 0.18);  --tag-purple-text: #c4b5fd;
  --tag-pink-bg: rgba(236, 72, 153, 0.18);    --tag-pink-text: #f9a8d4;
  --tag-cyan-bg: rgba(6, 182, 212, 0.18);     --tag-cyan-text: #67e8f9;
  --tag-red-bg: rgba(239, 68, 68, 0.18);      --tag-red-text: #fca5a5;
  --tag-gray-bg: rgba(148, 163, 184, 0.14);   --tag-gray-text: #cbd5e1;

  /* Module icon backdrops on dark — tinted glass */
  --mod-blue: linear-gradient(135deg, rgba(64, 84, 178, 0.25), rgba(64, 84, 178, 0.1));
  --mod-green: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.08));
  --mod-amber: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
  --mod-purple: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.08));
  --mod-pink: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0.08));
  --mod-cyan: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(6, 182, 212, 0.08));

  --wash-blue: linear-gradient(180deg, rgba(64, 84, 178, 0.06), transparent);
  --wash-green: linear-gradient(180deg, rgba(16, 185, 129, 0.06), transparent);
  --wash-amber: linear-gradient(180deg, rgba(245, 158, 11, 0.06), transparent);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.35), 0 24px 48px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 24px 64px rgba(64, 84, 178, 0.4);
  --shadow-nav: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   2. RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  position: relative;
  min-height: 100vh;
  transition: background var(--t), color var(--t);
}

/* Soft pastel mesh background — fixed, very subtle */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 8% -10%, var(--bg-mesh-1), transparent 60%),
    radial-gradient(700px 500px at 100% 12%, var(--bg-mesh-2), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, var(--bg-mesh-3), transparent 60%);
  opacity: 0.9;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: 0; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--accent-strong); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   3. LAYOUT
============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }

.section-header { text-align: center; margin-bottom: 56px; max-width: 720px; margin-inline: auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
  margin-inline: auto;
}

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

/* ============================================================
   4. NAVIGATION
============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), backdrop-filter var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 32px; width: auto; flex-shrink: 0; }
.nav-logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-actions { display: inline-flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--t);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 4px 14px rgba(64, 84, 178, 0.28);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(64, 84, 178, 0.34);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface-card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: all var(--t);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--border-accent);
  background: var(--surface-card-hover);
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border);
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--t);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--bg);
  z-index: 999;
  padding: 28px 24px;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.nav-mobile a:hover { color: var(--accent-text); }

/* ============================================================
   5. HERO
============================================================ */
.hero {
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 88px;
  position: relative;
  overflow: hidden;
}
.hero-glow { display: none; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(36px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-ctas .btn-primary,
.hero-ctas .btn-outline {
  padding: 14px 26px;
  font-size: 15px;
}

.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.hero-pill {
  padding: 7px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--t);
}
.hero-pill:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

/* ============================================================
   6. SOCIAL PROOF
============================================================ */
.social-proof {
  padding: 56px 0 8px;
}
.social-proof-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 56px;
  flex-wrap: wrap;
  padding: 28px 32px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  max-width: 880px;
  margin: 0 auto;
}
.sp-stat { text-align: center; }
.sp-stat-number {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.sp-stat-number span { color: var(--accent-text); }
.sp-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}
.sp-divider {
  width: 1px;
  background: var(--border);
}

@media (max-width: 640px) {
  .social-proof-stats { gap: 28px; padding: 24px; }
  .sp-divider { display: none; }
}

/* ============================================================
   7. TESTIMONIALS
============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.testimonial-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}
.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.testimonial-quote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 20px;
}
.testimonial-quote::before { content: '"'; }
.testimonial-quote::after { content: '"'; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--mod-blue);
  color: var(--accent-text);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ============================================================
   8. PROBLEM SECTION
============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.problem-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--t);
  box-shadow: var(--shadow-sm);
}
.problem-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--mod-amber);
  color: var(--c-amber);
}
.problem-card:nth-child(2) .problem-icon { background: var(--mod-pink); color: var(--c-pink); }
.problem-card:nth-child(3) .problem-icon { background: var(--mod-purple); color: var(--c-purple); }
.problem-icon svg { width: 24px; height: 24px; }

.problem-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.problem-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.problem-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.problem-arrow svg line { stroke: var(--accent); }

.problem-solution {
  text-align: center;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.problem-solution-text {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   9. MODULES GRID
============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.module-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--card-wash, transparent);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
  border-radius: inherit;
}
.module-card:hover::before { opacity: 1; }
.module-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.module-card > * { position: relative; z-index: 1; }

.module-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--mod-blue);
  color: var(--accent);
  transition: transform var(--t);
}
.module-card:hover .module-icon-wrap { transform: scale(1.06) rotate(-2deg); }
.module-icon-wrap svg { width: 26px; height: 26px; }

/* per-module color variants */
.module-card[data-color="blue"]   .module-icon-wrap { background: var(--mod-blue);   color: var(--accent); }
.module-card[data-color="green"]  .module-icon-wrap { background: var(--mod-green);  color: var(--c-green); }
.module-card[data-color="amber"]  .module-icon-wrap { background: var(--mod-amber);  color: var(--c-amber); }
.module-card[data-color="purple"] .module-icon-wrap { background: var(--mod-purple); color: var(--c-purple); }
.module-card[data-color="pink"]   .module-icon-wrap { background: var(--mod-pink);   color: var(--c-pink); }
.module-card[data-color="cyan"]   .module-icon-wrap { background: var(--mod-cyan);   color: var(--c-cyan); }

.module-card[data-color="green"]  { --card-wash: var(--wash-green); }
.module-card[data-color="amber"]  { --card-wash: var(--wash-amber); }

.module-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.module-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.module-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.module-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-all       { background: var(--tag-green-bg);  color: var(--tag-green-text); }
.badge-standard  { background: var(--tag-blue-bg);   color: var(--tag-blue-text); }
.badge-pro       { background: var(--tag-purple-bg); color: var(--tag-purple-text); }
.badge-new       { background: var(--tag-amber-bg);  color: var(--tag-amber-text); }

/* Wide / featured matrix module card */
.module-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-color: var(--border-accent);
}
.module-card-wide .module-desc { margin-bottom: 0; }
.module-card-wide .module-icon-wrap { margin-bottom: 0; }

/* Inline CTA after modules */
.inline-cta { text-align: center; padding: 48px 0 0; }
.inline-cta-text { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.inline-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   10. FEATURE HIGHLIGHT (AI / Telegram / Docs / Matrix)
============================================================ */
.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.feature-highlight.reverse { direction: rtl; }
.feature-highlight.reverse > * { direction: ltr; }

.feature-highlight-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.feature-highlight-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}

.feature-highlight-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}

.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.feature-list-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--tag-green-bg);
  color: var(--tag-green-text);
  font-weight: 700;
}

/* The visual mockup container */
.feature-visual {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.feature-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.fv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

/* Chat-style for AI/Telegram mockups */
.fv-row.fv-msg-user {
  margin-left: 36px;
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--text);
}
.fv-row.fv-msg-bot {
  margin-right: 36px;
}

.fv-row-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tag-blue-bg);
  color: var(--tag-blue-text);
}
.fv-row.fv-msg-bot .fv-row-icon { background: var(--mod-purple); color: var(--c-purple); }
.fv-row-icon svg { width: 14px; height: 14px; }

.fv-row-text { flex: 1; color: var(--text); line-height: 1.5; }
.fv-row-text-muted { color: var(--text-secondary); }

.fv-row-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}
.fv-badge-done { background: var(--tag-green-bg);  color: var(--tag-green-text); }
.fv-badge-ai   { background: var(--tag-purple-bg); color: var(--tag-purple-text); }
.fv-badge-new  { background: var(--tag-amber-bg);  color: var(--tag-amber-text); }
.fv-badge-info { background: var(--tag-blue-bg);   color: var(--tag-blue-text); }

/* Docs-tree variant */
.fv-tree-root {
  font-weight: 600;
  background: var(--accent-soft);
  border-color: var(--border-accent);
}
.fv-tree-child { margin-left: 26px; }

/* ============================================================
   11. ACCESS MATRIX MOCKUP
============================================================ */
.matrix-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}
.matrix-stat-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}

.matrix-mockup {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-elev);
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.matrix-row {
  display: grid;
  grid-template-columns: 130px repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.matrix-row:last-child { border-bottom: 0; }
.matrix-row.matrix-header-row {
  background: var(--bg);
  border-bottom-color: var(--border-strong);
}

.matrix-cell {
  padding: 10px 8px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.matrix-cell:last-child { border-right: 0; }
.matrix-cell.matrix-label {
  justify-content: flex-start;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-left: 14px;
}

.matrix-cell-stack { flex-direction: column; gap: 4px; }

.matrix-resource-name {
  justify-content: flex-start;
  padding-left: 14px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.matrix-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--mod-blue);
  color: var(--accent-text);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.matrix-name {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.3;
}

.matrix-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.matrix-badge.admin   { background: var(--tag-red-bg);    color: var(--tag-red-text); }
.matrix-badge.viewer  { background: var(--tag-green-bg);  color: var(--tag-green-text); }
.matrix-badge.manager { background: var(--tag-amber-bg);  color: var(--tag-amber-text); }
.matrix-badge.absent  { background: var(--tag-gray-bg);   color: var(--tag-gray-text); }

/* ============================================================
   12. FOR WHOM
============================================================ */
.forwhom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.forwhom-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all var(--t);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.forwhom-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.forwhom-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  background: var(--mod-blue);
  color: var(--accent);
}
.forwhom-card:nth-child(1) .forwhom-icon { background: var(--mod-blue);   color: var(--accent); }
.forwhom-card:nth-child(2) .forwhom-icon { background: var(--mod-amber);  color: var(--c-amber); }
.forwhom-card:nth-child(3) .forwhom-icon { background: var(--mod-purple); color: var(--c-purple); }
.forwhom-card:nth-child(4) .forwhom-icon { background: var(--mod-pink);   color: var(--c-pink); }
.forwhom-card:nth-child(5) .forwhom-icon { background: var(--mod-green);  color: var(--c-green); }
.forwhom-card:nth-child(6) .forwhom-icon { background: var(--mod-cyan);   color: var(--c-cyan); }
.forwhom-icon svg { width: 24px; height: 24px; }

.forwhom-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.forwhom-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   13. MICRO CTA BANNER
============================================================ */
.micro-cta-banner {
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.micro-cta-text { font-size: 17px; font-weight: 700; color: var(--text); }
.micro-cta-sub { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.micro-cta-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   14. DIFFERENCES TABLE
============================================================ */
.diff-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.diff-table th {
  padding: 16px 20px;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.diff-table th:first-child { width: 40%; }
.diff-table th:not(:first-child),
.diff-table td:not(:first-child) { text-align: center; }

.diff-table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.diff-table tr:last-child td { border-bottom: 0; }

.diff-table .diff-smart {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.diff-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--tag-green-bg);
  color: var(--tag-green-text);
  font-size: 14px;
  font-weight: 700;
}
.diff-no {
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================================
   15. PRICING
============================================================ */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.pricing-toggle-label {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--t);
}
.pricing-toggle-label.active { color: var(--text); font-weight: 600; }

.pricing-toggle-switch {
  position: relative;
  width: 46px;
  height: 26px;
  cursor: pointer;
}
.pricing-toggle-switch input { opacity: 0; width: 0; height: 0; }
.pricing-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: background var(--t);
}
.pricing-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--t);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.pricing-toggle-switch input:checked ~ .pricing-toggle-thumb { transform: translateX(20px); }

.pricing-save-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--tag-green-bg);
  color: var(--tag-green-text);
  letter-spacing: 0.02em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pricing-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}
.pricing-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.pricing-card.featured {
  background: linear-gradient(180deg, var(--accent-soft), var(--surface-card));
  border-color: var(--border-accent);
  box-shadow: var(--shadow-pop);
  transform: translateY(-6px);
}
.pricing-card.featured:hover { transform: translateY(-9px); }

.pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(64, 84, 178, 0.32);
}

.pricing-plan {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pricing-plan-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.45;
  min-height: 36px;
}

.pricing-price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--text);
}
.pricing-price-currency {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}
.pricing-price-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.pricing-card.enterprise .pricing-price { font-size: 26px; }
.pricing-annual-total {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pricing-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}
.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pricing-feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 5px;
  background: var(--tag-green-bg);
  color: var(--tag-green-text);
  font-size: 11px;
  font-weight: 700;
}
.pricing-feature-muted { color: var(--text-muted); }
.pricing-feature-cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 12px;
}

.pricing-cta {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: all var(--t);
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: var(--surface-card);
}
.pricing-cta:hover {
  border-color: var(--border-accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.pricing-card.featured .pricing-cta {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(64, 84, 178, 0.3);
}
.pricing-card.featured .pricing-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* monthly/annual price visibility */
.price-strike {
  display: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}
.price-annual { display: none; }
.price-monthly { display: inline; }
.price-note-annual { display: none; }
.price-note-monthly { display: block; }

body.annual-billing .price-strike { display: inline; }
body.annual-billing .price-annual { display: inline; }
body.annual-billing .price-monthly { display: none; }
body.annual-billing .price-note-annual { display: block; }
body.annual-billing .price-note-monthly { display: none; }
body.annual-billing .pricing-annual-total { display: block; }

.pricing-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px 28px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pg-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}
.pg-item-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
}
.pg-item strong { color: var(--text); }

/* ============================================================
   16. SECURITY
============================================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.security-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
}
.security-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.security-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--mod-blue);
  color: var(--accent);
}
.security-card:nth-child(2) .security-icon { background: var(--mod-purple); color: var(--c-purple); }
.security-card:nth-child(3) .security-icon { background: var(--mod-cyan); color: var(--c-cyan); }
.security-card:nth-child(4) .security-icon { background: var(--mod-green); color: var(--c-green); }
.security-icon svg { width: 22px; height: 22px; }

.security-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.security-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   17. FAQ
============================================================ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}
.faq-item.open {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--t);
}

.faq-chevron {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: transform var(--t), background var(--t), color var(--t);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--accent-text);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.faq-answer-inner a { color: var(--accent-text); font-weight: 500; }

/* ============================================================
   18. CONTACTS
============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.contact-info-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.contact-lines { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact-line-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-line-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--mod-blue);
  color: var(--accent);
}
.contact-line-item:nth-child(2) .contact-line-icon { background: var(--mod-green); color: var(--c-green); }
.contact-line-item:nth-child(3) .contact-line-icon { background: var(--mod-cyan); color: var(--c-cyan); }
.contact-line-item:nth-child(4) .contact-line-icon { background: var(--mod-amber); color: var(--c-amber); }
.contact-line-icon svg { width: 20px; height: 20px; }

.contact-line-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.contact-line-val a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--t);
}
.contact-line-val a:hover { color: var(--accent-text); }
.contact-line-val-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.contact-pilot {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.contact-pilot strong { color: var(--text); }

/* Form card */
.form-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
}
.form-title {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
  color: var(--text);
}
.form-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.form-row { margin-bottom: 14px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label span { color: var(--c-red); margin-left: 2px; }

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: all var(--t);
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--surface-elev);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-textarea { resize: vertical; min-height: 88px; }

.form-error {
  font-size: 12px;
  color: var(--c-red);
  margin-top: 4px;
  min-height: 16px;
}

.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--t);
  margin-top: 8px;
  box-shadow: 0 6px 16px rgba(64, 84, 178, 0.3);
}
.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(64, 84, 178, 0.36);
}

.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.form-privacy a { color: var(--text-secondary); text-decoration: underline; }

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--tag-green-bg);
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.form-success-icon svg { width: 32px; height: 32px; }
.form-success-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.form-success-text { font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   19. FOOTER
============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo-img { height: 26px; flex-shrink: 0; }
.footer-logo-text { font-size: 17px; font-weight: 800; color: var(--text); }

.footer-links-row { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links-row a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--t);
}
.footer-links-row a:hover { color: var(--accent-text); }

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer-legal a:hover { color: var(--text-secondary); }

/* ============================================================
   20. MODAL
============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.2s ease;
}
[data-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, 0.65); }
.modal-backdrop.open { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.18);
  animation: pop 0.25s var(--ease);
}
@keyframes pop { from { transform: translateY(12px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}
.modal-close:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.modal-plan-badge {
  display: inline-flex;
  padding: 5px 14px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   21. STICKY BAR / GDPR / EXIT POPUP
============================================================ */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--accent);
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform var(--t);
  box-shadow: 0 -8px 28px rgba(64, 84, 178, 0.28);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-text {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--t);
}
.sticky-bar-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }

.gdpr-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  width: calc(100% - 48px);
  max-width: 680px;
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
  transition: opacity 0.3s, transform 0.3s;
}
.gdpr-banner.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}
.gdpr-text { font-size: 13px; color: var(--text-secondary); flex: 1; line-height: 1.5; }
.gdpr-text a { color: var(--text); text-decoration: underline; }
.gdpr-btn {
  padding: 9px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--t);
}
.gdpr-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }

.exit-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade 0.2s ease;
}
[data-theme="dark"] .exit-popup-backdrop { background: rgba(0, 0, 0, 0.7); }
.exit-popup-backdrop.open { display: flex; }
.exit-popup {
  background: var(--surface-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 44px 36px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.24);
  animation: pop 0.25s var(--ease);
}
.exit-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.exit-popup-close:hover { color: var(--text); border-color: var(--border-strong); }
.exit-popup-emoji { font-size: 44px; margin-bottom: 12px; }
.exit-popup-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; line-height: 1.25; color: var(--text); }
.exit-popup-sub { font-size: 14.5px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.exit-popup-cta {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all var(--t);
  box-shadow: 0 8px 20px rgba(64, 84, 178, 0.32);
}
.exit-popup-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(64, 84, 178, 0.4);
}
.exit-popup-skip {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--t);
}
.exit-popup-skip:hover { color: var(--text-secondary); }

/* ============================================================
   22. SCROLL REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Restore featured pricing card lift after reveal */
.pricing-card.featured.reveal.visible { transform: translateY(-6px); }
.pricing-card.featured.reveal.visible:hover { transform: translateY(-9px); }
@media (max-width: 1024px) {
  .pricing-card.featured.reveal.visible { transform: translateY(0); }
  .pricing-card.featured.reveal.visible:hover { transform: translateY(-2px); }
}

/* ============================================================
   23. ICON SYSTEM
============================================================ */
.ico {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: 18px; height: 18px; }
.ico-md { width: 22px; height: 22px; }
.ico-lg { width: 28px; height: 28px; }
.ico-xl { width: 36px; height: 36px; }

/* ============================================================
   24. RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-highlight { grid-template-columns: 1fr; gap: 36px; }
  .feature-highlight.reverse { direction: ltr; }
  .module-card-wide { grid-template-columns: 1fr; text-align: left; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-2px); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .problem-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .forwhom-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-card { padding: 26px; }
  .modal { padding: 28px 22px; }
  .matrix-row { grid-template-columns: 100px repeat(4, 1fr); }
  .feature-visual { padding: 18px; }
  .fv-row.fv-msg-user { margin-left: 16px; }
  .fv-row.fv-msg-bot  { margin-right: 16px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { justify-content: center; }
  .pricing-card { padding: 24px 20px; }
  .micro-cta-banner { padding: 22px 24px; }
  .pricing-toggle-wrap { gap: 10px; }
  .pricing-save-badge { flex-basis: 100%; justify-content: center; margin-top: 4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
