/* ===== CrosspostHub — Static Marketing Site =====
   Design system aligned with the app UI (Next.js portal):
   - Font: Inter
   - Primary: #4f46e5 (indigo/violet)
   - Surfaces: #f8fafc (light slate), #0f172a / #020617 (dark slate)
   - Text: #0f172a, muted #64748b, light #94a3b8
   - Borders: #e2e8f0
   - Radius: cards 24px, buttons 16px, pills 100px
================================================= */

:root {
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Colors */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;

  --bg-main: #f5f7fb;
  --bg-surface: #ffffff;
  --bg-dark: #0f172a;
  --bg-darker: #020617;

  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --success: #10b981;
  --success-light: #d1fae5;
  --success-bg: #f0fdf4;

  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --amber-bg: #fffbeb;

  --danger: #ef4444;

  /* Accents (gradients used in feature cards) */
  --grad-indigo: linear-gradient(135deg, #4f46e5, #3b82f6);
  --grad-purple: linear-gradient(135deg, #8b5cf6, #ec4899);
  --grad-amber: linear-gradient(135deg, #f59e0b, #ea580c);
  --grad-emerald: linear-gradient(135deg, #10b981, #059669);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-card: 0 4px 20px rgba(15,23,42,0.04);
  --shadow-card-hover: 0 8px 30px rgba(15,23,42,0.08);
  --shadow-cta: 0 4px 14px rgba(79,70,229,0.25);

  /* Radius */
  --radius-card: 24px;
  --radius-card-lg: 28px;
  --radius-btn: 16px;
  --radius-pill: 100px;
  --radius-icon: 16px;
  --radius-icon-lg: 18px;
}

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #e0e7ff 0%, #f5f7fb 40%, #f5f7fb 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

input, button, select, textarea {
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: 'Courier New', monospace;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.section {
  padding: 60px 0;
}

/* ===== Header / Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grad-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
  flex-shrink: 0;
}

.brand-name span {
  color: var(--primary);
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-radius: 10px;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--bg-surface);
}

.mobile-menu.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-cta);
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.dark {
  background: var(--bg-dark);
  color: white;
  border: none;
}

.btn.dark:hover {
  background: #1e293b;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

/* ===== Background ambient glow ===== */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 10%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 30%, rgba(168,85,247,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 90%, rgba(59,130,246,0.05) 0%, transparent 60%);
}

main {
  position: relative;
  z-index: 1;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 80px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-surface);
  border: 1px solid var(--primary-light);
  box-shadow: 0 1px 4px rgba(79,70,229,0.06);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--primary);
}

.hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Section headings ===== */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Grids & Cards ===== */
.grid {
  display: grid;
  gap: 24px;
}

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

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

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

.grid-auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Features bento grid */
.grid-features {
  grid-template-columns: repeat(3, 1fr);
}

.span-2 {
  grid-column: span 2;
}

.card {
  background: var(--bg-surface);
  padding: 32px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: visible;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.card-icon.indigo { background: var(--grad-indigo); }
.card-icon.purple { background: var(--grad-purple); }
.card-icon.amber { background: var(--grad-amber); }
.card-icon.emerald { background: var(--grad-emerald); }

.card-icon-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon-lg);
  font-size: 22px;
}

.card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}

/* Feature block — larger card with heading + list */
.feature-block {
  background: var(--bg-surface);
  padding: 36px;
  border-radius: var(--radius-card-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.feature-block h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.feature-block p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}

/* Dark card variant */
.card-dark {
  background: var(--bg-dark);
  border-color: #1e293b;
  color: white;
}

.card-dark h3 { color: white; }
.card-dark p { color: var(--text-light); }

/* ===== Check list ===== */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
  margin-top: 1px;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.check-list-light li {
  color: #cbd5e1;
}

.check-list-light li::before {
  color: var(--success);
}

/* ===== Badge (small pill on cards) ===== */
.badge {
  display: inline-block;
  position: absolute;
  top: -12px;
  left: 32px;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}

.badge.indigo { background: var(--primary); box-shadow: 0 4px 10px rgba(79,70,229,0.3); }
.badge.emerald { background: var(--success); box-shadow: 0 4px 10px rgba(16,185,129,0.3); }
.badge.purple { background: #8b5cf6; box-shadow: 0 4px 10px rgba(139,92,246,0.3); }

/* ===== Flow Chain (icon → icon → icon for persona cards) ===== */
.flow-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 40px;
}

.flow-node {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.flow-node.muted {
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  background: #f8fafc;
}

.flow-node.accent {
  background: #3b82f6;
  color: white;
  box-shadow: 0 8px 16px rgba(59,130,246,0.3);
}

.flow-node.green-accent {
  background: #10b981;
  box-shadow: 0 8px 16px rgba(16,185,129,0.3);
}

.flow-node.purple-accent {
  background: #8b5cf6;
  box-shadow: 0 8px 16px rgba(139,92,246,0.3);
}

.flow-dash {
  width: 24px;
  height: 0;
  border-bottom: 2px dashed #cbd5e1;
  flex-shrink: 0;
}

/* ===== CTA section (dark) ===== */
.cta-section {
  background: var(--bg-dark);
  padding: 100px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section .glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,0.2) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-section h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 500;
}

.cta-section .free-tag {
  color: var(--success);
  font-weight: 700;
  background: rgba(52,211,153,0.1);
  padding: 2px 10px;
  border-radius: 8px;
  border: 1px solid rgba(52,211,153,0.15);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-buttons .btn.light {
  background: white;
  color: var(--text);
  border: none;
  box-shadow: 0 4px 20px rgba(255,255,255,0.1);
}

.cta-buttons .btn.outline-light {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ===== Pricing Accordion ===== */
.pricing-accordion {
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 24px;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.pricing-accordion-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 40px;
}

/* Big active card */
.pricing-active-card {
  margin-bottom: 24px;
}

.pricing-big {
  position: relative;
  background: white;
  padding: 40px;
  border-radius: 32px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.pricing-big.popular {
  border: 2px solid #4f46e5;
  box-shadow: 0 20px 60px rgba(79,70,229,0.15);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.pricing-popular-badge span,
.pricing-popular-badge {
  background: #4f46e5;
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  width: fit-content;
  margin: 0 auto;
}

.pricing-big-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.pricing-big-meta {
  flex: 1 1 300px;
}

.pricing-big-name {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.pricing-big-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.pricing-big-num {
  font-size: 48px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -2px;
}

.pricing-big-per {
  font-size: 16px;
  color: #64748b;
  font-weight: 500;
}

.pricing-big-desc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  font-weight: 500;
}

.pricing-big-features {
  flex: 1 1 300px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  align-content: start;
}

.pricing-feature-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pricing-feature-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pricing-feature-check i {
  color: #10b981;
  font-size: 12px;
}

.pricing-feature-item span {
  font-size: 14px;
  color: #334155;
  font-weight: 500;
}

.pricing-big-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: #4f46e5;
  color: white;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  margin-top: 32px;
  box-shadow: 0 8px 20px rgba(79,70,229,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-big-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(79,70,229,0.3);
}

/* Small inactive cards */
.pricing-small-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pricing-small-card {
  background: rgba(255,255,255,0.03);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.pricing-small-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

.pricing-small-name {
  font-size: 16px;
  font-weight: 700;
  color: #cbd5e1;
}

.pricing-small-price {
  font-size: 24px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
}

.pricing-small-desc {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Free tier note */
.pricing-free-note {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 28px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: 18px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.free-tag-big {
  color: #34d399;
  font-weight: 800;
  font-size: 15px;
  white-space: nowrap;
  background: rgba(52,211,153,0.12);
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(52,211,153,0.2);
}

.pricing-free-note .btn {
  flex-shrink: 0;
}

/* ===== Steps / How it works ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon-lg);
  background: var(--grad-indigo);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}

.step h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}

/* ── Onboarding 2-col layout ── */
.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.onboarding-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
}

.onboarding-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.onboarding-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
  font-weight: 500;
}

.steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: #fafbfc;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s;
  opacity: 0.7;
}

.step-card.active {
  background: white;
  border: 1px solid #c7d2fe;
  box-shadow: 0 4px 16px rgba(79,70,229,0.06);
  opacity: 1;
}

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

.step-num-sm {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex-shrink: 0;
  background: #f1f5f9;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
}

.step-card.active .step-num-sm {
  background: #eef2ff;
  color: #4f46e5;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 500;
}

/* ── Reliability card ── */
.reliability-card {
  background: white;
  border-radius: 32px;
  padding: 44px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.reliability-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #10b981, #0d9488);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(16,185,129,0.25);
  margin-bottom: 28px;
  flex-shrink: 0;
}

.reliability-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 36px;
  flex-shrink: 0;
}

.reliability-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  justify-content: space-between;
}

.reliability-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.reliability-row:last-child {
  border-bottom: none;
}

.reliability-row-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.reliability-row-icon.emerald {
  background: #f0fdf4; border: 1px solid #d1fae5; color: #10b981;
}

.reliability-row-icon.indigo {
  background: #eff6ff; border: 1px solid #dbeafe; color: #3b82f6;
}

.reliability-row-icon.amber {
  background: #fff7ed; border: 1px solid #ffedd5; color: #f97316;
}

.reliability-row-icon.purple {
  background: #fdf4ff; border: 1px solid #f3e8ff; color: #a855f7;
}

.reliability-row-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.reliability-row-label {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

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

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

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 28px 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-darker);
  padding: 64px 24px 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 24px;
}

.footer-col {
  flex: 1 1 200px;
}

.footer-col.brand-col {
  flex: 1 1 300px;
  max-width: 400px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-brand .brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 14px;
}

.footer-text {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  max-width: 280px;
}

.footer-title {
  color: white;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

/* ===== Misc helpers ===== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 32px; }
.mt-16 { margin-top: 64px; }

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 24px 0;
  border: none;
}

/* Stats row */
.stats-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-item {
  display: flex;
  gap: 18px;
  align-items: center;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon-lg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

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

.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== Legal / Article pages ===== */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.article h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.article h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
}

.article h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.article p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article ul, .article ol {
  margin: 0 0 16px 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.article li {
  margin-bottom: 8px;
}

.article a {
  color: var(--primary);
  font-weight: 600;
}

.article strong {
  color: var(--text);
  font-weight: 700;
}

/* ===== Hero Mockup ===== */
.hero-mockup {
  margin-top: 64px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.mockup-glow-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  overflow: hidden;
  background: #e2e8f0;
  box-shadow: 0 20px 60px rgba(15,23,42,0.08), 0 4px 16px rgba(15,23,42,0.04);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.mockup-glow-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250%;
  height: 250%;
  background: conic-gradient(
    from 0deg, 
    transparent 0deg, 
    transparent 40deg, 
    rgba(79, 70, 229, 0.2) 120deg, 
    #4f46e5 165deg, 
    #ec4899 180deg, 
    transparent 180deg, 
    transparent 220deg, 
    rgba(79, 70, 229, 0.2) 300deg, 
    #4f46e5 345deg, 
    #ec4899 360deg
  );
  animation: rotate-glow 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.mockup-glow-wrapper > * {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
}

.mockup-desktop {
  position: relative;
  z-index: 1;
  background: #f8fafc;
  border-radius: 21px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  display: flex;
}

.mockup-sidebar {
  background: white;
  border-right: 1px solid #f1f5f9;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 200px;
  flex-shrink: 0;
}

.mockup-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mockup-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #4f46e5;
}

.mockup-logo-text {
  width: 80px;
  height: 14px;
  border-radius: 7px;
  background: #e2e8f0;
}

.mockup-nav-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  opacity: 0.5;
}

.mockup-nav-item.active {
  background: #eef2ff;
  opacity: 1;
}

.mockup-nav-item i {
  font-size: 13px;
  width: 16px;
  color: #94a3b8;
}

.mockup-nav-item.active i {
  color: #4f46e5;
}

.mockup-nav-label {
  width: 64px;
  height: 10px;
  border-radius: 5px;
  background: #e2e8f0;
}

.mockup-nav-item.active .mockup-nav-label {
  background: #c7d2fe;
}

.mockup-main {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mockup-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-line-lg {
  width: 160px;
  height: 18px;
  border-radius: 9px;
  background: #1e293b;
  margin-bottom: 8px;
}

.mockup-line-sm {
  width: 220px;
  height: 10px;
  border-radius: 5px;
  background: #cbd5e1;
}

.mockup-circle {
  width: 36px;
  height: 36px;
  border-radius: 18px;
}

.mockup-circle.green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mockup-stat-card {
  background: white;
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.mockup-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.mockup-stat-value {
  font-size: 28px;
  font-weight: 900;
}

.mockup-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-field {
  height: 48px;
  border-radius: 14px;
  background: white;
  border: 1px solid #f1f5f9;
}

.mockup-mobile {
  display: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 21px;
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #f1f5f9;
  margin-top: 20px;
}

.mockup-mobile-item {
  background: white;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15,23,42,0.04);
  display: flex;
  align-items: center;
  gap: 14px;
}

.mockup-mobile-item i.fa-telegram {
  color: #229ED9;
  font-size: 32px;
}

.mockup-mobile-text {
  flex: 1;
}

.mockup-mobile-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.mockup-mobile-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.mockup-mobile i.fa-check-circle.green {
  color: #10b981;
  font-size: 20px;
}

.mockup-mobile-arrow {
  display: flex;
  justify-content: center;
}

.mockup-mobile-arrow::before {
  content: '';
  width: 3px;
  height: 24px;
  background: linear-gradient(to bottom, #4f46e5, #ec4899);
  border-radius: 2px;
}

.mockup-mobile-out {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mockup-mobile-platform {
  background: white;
  padding: 20px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15,23,42,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.mockup-mobile-platform i.fa-vk {
  color: #0077FF;
  font-size: 28px;
}

.mockup-mobile-max-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
}

.mockup-mobile-label {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

/* ===== Pain Points ===== */
.pain-points {
  padding-top: 20px;
  padding-bottom: 20px;
}

.pain-card {
  padding: 32px !important;
}

.pain-icon {
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 20px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.pain-icon.amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 10px rgba(245,158,11,0.2);
}

.pain-icon.red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 10px rgba(239,68,68,0.2);
}

.pain-icon.purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 4px 10px rgba(139,92,246,0.2);
}

.pain-card h3 {
  font-size: 18px;
  font-weight: 800;
  min-height: 46px;
}

.pain-card p {
  font-size: 15px;
}

/* ===== Why Cards (dark) ===== */
.why-card {
  position: relative;
  overflow: hidden;
  padding: 40px !important;
  border-radius: 32px !important;
}

.why-glow {
  position: absolute;
  top: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
}

.why-glow.blue {
  left: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
}

.why-glow.green {
  right: -100px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
}

.why-card h3 {
  font-size: 24px;
  position: relative;
}

.why-card p {
  position: relative;
  font-size: 16px;
  margin-bottom: 28px;
}

.why-card .check-list {
  position: relative;
}

.why-card .check-list-light li {
  color: #cbd5e1;
  font-size: 15px;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stats-card {
  text-align: center;
  padding: 24px;
  background: white;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.stats-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-icon-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  margin: 0 auto 16px;
}

.stats-icon.indigo { background: var(--grad-indigo); }
.stats-icon.emerald { background: var(--grad-emerald); }
.stats-icon.amber { background: var(--grad-amber); }
.stats-icon.purple { background: var(--grad-purple); }

.stats-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.stats-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .onboarding-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .mockup-desktop {
    display: none;
  }
  .mockup-mobile {
    display: flex;
  }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
  }
  .site-header .container > .btn.dark {
    display: inline-flex;
    margin-left: auto;
    margin-right: 8px;
  }
  .site-header .container {
    gap: 8px;
  }
  .brand {
    font-size: 18px;
    gap: 6px;
  }
  .brand-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 15px;
  }
  .span-2 {
    grid-column: span 1 !important;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-features,
  .grid-auto,
  .pricing-grid,
  .stats-grid,
  .onboarding-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 24px 64px;
  }
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }
  .footer-col,
  .footer-col.brand-col {
    flex: none;
    max-width: none;
  }
  .btn {
    width: 100%;
  }
  .hero-cta,
  .cta-buttons {
    flex-direction: column;
  }
  .pricing-big {
    padding: 24px;
    border-radius: 24px;
  }
  .pricing-big-body {
    flex-direction: column;
    gap: 20px;
  }
  .pricing-big-meta {
    flex: none;
  }
  .pricing-big-name {
    font-size: 20px;
  }
  .pricing-big-num {
    font-size: 36px;
  }
  .pricing-big-features {
    flex: none;
    grid-template-columns: 1fr;
  }
  .pricing-big-btn {
    font-size: 15px;
    padding: 14px;
  }
  .pricing-free-note {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .pricing-accordion {
    margin-top: 32px;
  }
}

/* ===== Animations & Effects ===== */

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  70%  { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

@keyframes rotate-glow {
  0%   { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes icon-glare {
  0%       { transform: translateX(-150%) skewX(-25deg); }
  25%, 100% { transform: translateX(200%) skewX(-25deg); }
}

/* ── Icon Glare Effect ── */
.icon-glare-effect {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.icon-glare-effect::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  z-index: 10;
  animation: icon-glare 3s infinite ease-in-out;
  transform-origin: center;
  pointer-events: none;
}

/* ── Pulse CTA ── */
.cta-pulse {
  animation: pulse 2s infinite;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Stagger children inside revealed container */
.reveal.revealed .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.revealed .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal.revealed .reveal-child:nth-child(2) { transition-delay: 0.12s; }
.reveal.revealed .reveal-child:nth-child(3) { transition-delay: 0.19s; }
.reveal.revealed .reveal-child:nth-child(4) { transition-delay: 0.26s; }
.reveal.revealed .reveal-child:nth-child(5) { transition-delay: 0.33s; }
.reveal.revealed .reveal-child:nth-child(6) { transition-delay: 0.40s; }
