/* CheckFlow — Design System
   Fonts: Bricolage Grotesque (headings) · DM Sans (body) · JetBrains Mono (code)
   Philosophy: no "AI slop" — distinctive typography, atmospheric depth, staggered motion
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: #1a1a2e;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ======================================================= VARIABLES */
:root {
  --primary:       #4F46E5;
  --primary-hover: #4338CA;
  --primary-light: #EEF2FF;
  --cyan:          #06B6D4;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --black:         #09090B;
  --dark:          #18181B;
  --dark-2:        #27272A;
  --gray:          #71717A;
  --gray-mid:      #A1A1AA;
  --gray-light:    #F4F4F5;
  --white:         #FFFFFF;
  --border:        #E4E4E7;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-xl:     20px;
  --shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.14);
  --transition:    0.25s ease;

  /* Gradient accent */
  --grad-accent: linear-gradient(135deg, #818CF8 0%, #06B6D4 100%);
}

/* ======================================================= HEADING FONT */
h1, h2, h3, h4, h5, h6,
.section-title,
.stat-value,
.pricing-price .amount,
.logo-text .name {
  font-family: 'Bricolage Grotesque', sans-serif;
}

/* ======================================================= TOPBAR */
.topbar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  font-size: clamp(11px, 2vw, 13px);
  padding: 9px 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.5;
}
.topbar strong { font-weight: 700; }
.topbar a { color: #fff; font-weight: 600; }

/* ======================================================= HEADER */
header {
  background: var(--black);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter: saturate(1.8) blur(20px);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px; gap: 16px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { color: #fff; }
.logo-text .name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 700; line-height: 1.1; letter-spacing: -0.3px;
}
.logo-text .sub {
  font-size: 10px; letter-spacing: 1.5px;
  color: var(--primary); text-transform: uppercase; opacity: 0.9;
}

/* Nav */
.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a {
  color: #A1A1AA; padding: 8px 14px;
  font-size: 14px; font-weight: 500; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.header-nav a.active { color: #fff; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  padding: 9px 18px; border-radius: 30px;
  font-size: 14px; font-weight: 500; color: #A1A1AA; transition: var(--transition);
}
.btn-ghost:hover { color: #fff; }
.btn-primary {
  padding: 9px 20px; border-radius: 30px;
  font-size: 14px; font-weight: 600;
  background: var(--primary); color: #fff;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-primary-lg {
  padding: 14px 32px; border-radius: 30px;
  font-size: 16px; font-weight: 600;
  background: var(--primary); color: #fff;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-lg:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,.4); }
.btn-outline-lg {
  padding: 13px 30px; border-radius: 30px;
  font-size: 16px; font-weight: 600;
  border: 2px solid rgba(255,255,255,.25); color: #fff;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-lg:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px; transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; bottom: 0;
  width: 300px; background: var(--dark); z-index: 2000;
  flex-direction: column; box-shadow: 4px 0 30px rgba(0,0,0,.4);
  transform: translateX(-100%); transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  background: var(--black); padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.close-menu { color: #fff; font-size: 24px; line-height: 1; }
.mobile-nav { flex: 1; overflow-y: auto; padding: 16px 0; }
.mobile-nav a {
  display: block; padding: 14px 24px;
  font-size: 15px; color: #A1A1AA;
  border-bottom: 1px solid rgba(255,255,255,.06); transition: var(--transition);
}
.mobile-nav a:hover { color: #fff; padding-left: 30px; }
.mobile-menu-footer { padding: 20px 24px; }
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 1999;
}
.mobile-overlay.open { display: block; }

/* ======================================================= HERO */
.hero {
  background: var(--black);
  padding: 90px 24px 80px;
  position: relative;
  overflow: hidden;
}
/* Atmospheric grid */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse at 60% -10%, rgba(79,70,229,.28) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(6,182,212,.1) 0%, transparent 50%),
    linear-gradient(rgba(99,102,241,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.055) 1px, transparent 1px);
  background-size: 100%, 100%, 64px 64px, 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,70,229,.15); color: #A5B4FC;
  padding: 6px 16px; border-radius: 30px;
  font-size: 13px; font-weight: 600;
  border: 1px solid rgba(79,70,229,.3);
  margin-bottom: 24px;
}
.hero-badge span {
  background: var(--primary); color: #fff;
  padding: 2px 8px; border-radius: 20px; font-size: 11px;
}
.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(42px, 6.5vw, 82px);
  font-weight: 800;
  line-height: 1.02;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(15px, 2vw, 18px); color: #A1A1AA;
  margin-bottom: 36px; line-height: 1.75; max-width: 480px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #71717A;
}
.hero-trust span { display: flex; align-items: center; gap: 5px; }
.hero-trust span::before { content: '✓'; color: var(--success); font-weight: 700; }

/* Hero mockup */
.hero-visual { position: relative; }
.mockup-card {
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.mockup-topbar {
  background: #09090B; padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #27272A;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #EF4444; }
.dot-y { background: #F59E0B; }
.dot-g { background: #10B981; }
.mockup-url {
  flex: 1; background: #27272A; border-radius: 6px;
  padding: 4px 12px; margin: 0 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #71717A;
}
.mockup-body { padding: 20px; }
.mockup-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px;
}
.mockup-metric {
  background: #09090B; border-radius: 10px; padding: 14px;
  border: 1px solid #27272A;
}
.mockup-metric .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #71717A; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.mockup-metric .value { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; color: #fff; line-height: 1; }
.mockup-metric .value.green { color: var(--success); }
.mockup-metric .value.red { color: var(--danger); }
.mockup-metric .delta { font-size: 11px; color: var(--success); margin-top: 4px; }
.mockup-metric .delta.neg { color: var(--danger); }
.mockup-chart-area {
  background: #09090B; border-radius: 10px; padding: 14px;
  border: 1px solid #27272A; margin-bottom: 12px;
}
.mockup-chart-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #71717A; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.mockup-bars { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.mockup-bar {
  flex: 1; background: linear-gradient(to top, var(--primary), #818CF8);
  border-radius: 3px 3px 0 0; opacity: .85; transition: opacity .2s;
}
.mockup-bar:hover { opacity: 1; }
.mockup-funnel { background: #09090B; border-radius: 10px; padding: 14px; border: 1px solid #27272A; }
.mockup-funnel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #71717A; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px;
}
.funnel-step { margin-bottom: 8px; }
.funnel-step-label { display: flex; justify-content: space-between; font-size: 11px; color: #A1A1AA; margin-bottom: 3px; }
.funnel-step-bar { height: 6px; background: #27272A; border-radius: 3px; overflow: hidden; }
.funnel-step-fill { height: 100%; border-radius: 3px; }

/* Floating badges */
.float-badge {
  position: absolute;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: #18181B;
  animation: float 3s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,.6);
}
.float-badge-1 { top: -16px; right: -16px; animation-delay: 0s; }
.float-badge-2 { bottom: 30px; left: -20px; animation-delay: 1.5s; }
.float-badge .badge-icon { font-size: 18px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ======================================================= STATS BAR */
.stats-bar {
  background: var(--dark);
  border-top: 1px solid #27272A; border-bottom: 1px solid #27272A;
  padding: 32px 24px;
  position: relative; overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,70,229,.6), transparent);
}
.stats-bar-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  gap: 60px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 36px; font-weight: 800; color: #fff; line-height: 1;
  margin-bottom: 4px; letter-spacing: -1.5px;
}
.stat-value span { color: var(--primary); }
.stat-label { font-size: 13px; color: var(--gray); }

/* ======================================================= SECTION HEADER */
.section-tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  padding: 5px 16px; border-radius: 30px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 14px;
}
.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(26px, 4vw, 46px); font-weight: 800;
  color: var(--black); line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-title.light { color: #fff; }
.section-desc { font-size: 17px; color: var(--gray); max-width: 560px; line-height: 1.7; }
.section-desc.center { margin: 0 auto; text-align: center; }

/* ======================================================= SCROLL REVEAL */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }
.delay-6 { transition-delay: .48s; }

/* ======================================================= FEATURES */
.features { padding: 90px 24px; background: #fff; position: relative; }
.features-inner { max-width: 1280px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 64px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--gray-light); border-radius: 16px; padding: 32px;
  transition: var(--transition);
  border: 1.5px solid transparent;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(79,70,229,.04) 0%, rgba(6,182,212,.04) 100%);
  transition: opacity .3s;
}
.feature-card:hover {
  background: #fff;
  border-color: rgba(79,70,229,.3);
  box-shadow: 0 0 0 1px rgba(79,70,229,.15), 0 20px 60px rgba(79,70,229,.1), var(--shadow-lg);
  transform: translateY(-4px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(79,70,229,.18), rgba(6,182,212,.12));
  border: 1px solid rgba(79,70,229,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--black);
}
.feature-card p { font-size: 14px; color: var(--gray); line-height: 1.75; }

/* ======================================================= HOW IT WORKS */
.how-it-works {
  padding: 90px 24px;
  background: var(--black);
  position: relative; overflow: hidden;
}
.how-it-works::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(79,70,229,.2) 0%, transparent 60%);
  pointer-events: none;
}
.how-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.how-header { text-align: center; margin-bottom: 64px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute; top: 40px;
  left: calc(16.66% + 20px); right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, rgba(79,70,229,.5), rgba(6,182,212,.5));
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(79,70,229,.12);
  border: 2px solid rgba(79,70,229,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px; font-weight: 800; color: #818CF8;
  margin: 0 auto 24px;
  box-shadow: 0 0 40px rgba(79,70,229,.2);
}
.step h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 12px;
}
.step p { font-size: 14px; color: #71717A; line-height: 1.75; }
.step .code-snippet {
  background: var(--dark-2); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #A5B4FC;
  text-align: left; border: 1px solid #3F3F46;
  word-break: break-all; white-space: pre-wrap; overflow-wrap: anywhere;
}

/* ======================================================= DASHBOARD PREVIEW */
.preview-section { padding: 90px 24px; background: var(--gray-light); }
.preview-inner { max-width: 1200px; margin: 0 auto; }
.preview-header { text-align: center; margin-bottom: 48px; }
.preview-window {
  background: var(--dark); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid #27272A;
}
.preview-titlebar {
  background: var(--black); padding: 14px 20px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #27272A;
}
.preview-titlebar .preview-dots { display: flex; gap: 6px; }
.preview-titlebar .title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #71717A; margin-left: 8px;
}
.preview-content { padding: 24px; }
.preview-metrics-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px;
}
.preview-metric { background: var(--black); border-radius: 10px; padding: 16px; border: 1px solid #27272A; }
.preview-metric .pm-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #52525B; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px;
}
.preview-metric .pm-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px; font-weight: 800; color: #fff; line-height: 1;
}
.preview-metric .pm-delta { font-size: 11px; margin-top: 4px; }
.pm-delta.up { color: var(--success); }
.pm-delta.down { color: var(--danger); }
.preview-charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.preview-chart-box { background: var(--black); border-radius: 10px; padding: 16px; border: 1px solid #27272A; }
.preview-chart-box .box-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: #52525B; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}

/* ======================================================= TESTIMONIALS */
.testimonials { padding: 90px 24px; background: #fff; }
.testimonials-inner { max-width: 1100px; margin: 0 auto; }
.testimonials-header { text-align: center; margin-bottom: 56px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--gray-light); border-radius: 16px; padding: 28px;
  border: 1.5px solid transparent; transition: var(--transition);
}
.testimonial-card:hover {
  border-color: rgba(79,70,229,.25); background: #fff;
  box-shadow: 0 0 0 1px rgba(79,70,229,.1), var(--shadow-md);
}
.testimonial-stars { color: #FBBF24; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; color: #3F3F46; line-height: 1.8; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,70,229,.2), rgba(6,182,212,.2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--primary); flex-shrink: 0;
  border: 1px solid rgba(79,70,229,.2);
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--black); }
.testimonial-role { font-size: 12px; color: var(--gray); }

/* ======================================================= PRICING */
.pricing {
  padding: 90px 24px;
  background: var(--black);
  position: relative; overflow: hidden;
}
.pricing::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(79,70,229,.15) 0%, transparent 60%);
  pointer-events: none;
}
.pricing-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.pricing-header { text-align: center; margin-bottom: 56px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pricing-card {
  background: var(--dark); border-radius: 20px; padding: 36px;
  border: 1.5px solid #27272A; transition: var(--transition); position: relative;
}
.pricing-card:hover { border-color: rgba(79,70,229,.4); transform: translateY(-4px); }
.pricing-card.featured {
  background: linear-gradient(135deg, rgba(79,70,229,.18) 0%, rgba(79,70,229,.05) 100%);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(79,70,229,.3), 0 32px 80px rgba(79,70,229,.2);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-accent); color: #fff;
  padding: 5px 18px; border-radius: 30px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.pricing-name { font-size: 16px; font-weight: 600; color: #A1A1AA; margin-bottom: 12px; }
.pricing-price { margin-bottom: 6px; }
.pricing-price .amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 48px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -2px;
}
.pricing-price .currency { font-size: 22px; font-weight: 600; color: #71717A; vertical-align: super; }
.pricing-price .period { font-size: 14px; color: #71717A; }
.pricing-trial { font-size: 12px; color: var(--success); margin-bottom: 24px; font-weight: 600; }
.pricing-divider { height: 1px; background: #27272A; margin-bottom: 24px; }
.pricing-features { margin-bottom: 28px; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: #A1A1AA; padding: 7px 0;
}
.pricing-feature .check { color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-feature .cross { color: #3F3F46; font-weight: 700; flex-shrink: 0; }
.btn-pricing {
  width: 100%; padding: 13px; border-radius: 30px;
  font-size: 15px; font-weight: 600; text-align: center;
  transition: var(--transition); display: block;
}
.btn-pricing-primary { background: var(--primary); color: #fff; }
.btn-pricing-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }
.btn-pricing-ghost { background: transparent; color: #A1A1AA; border: 1.5px solid #3F3F46; }
.btn-pricing-ghost:hover { border-color: var(--primary); color: #fff; }

/* ======================================================= FAQ */
.faq { padding: 90px 24px; background: #fff; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--black);
  cursor: pointer; text-align: left; gap: 16px;
  transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-question .arrow {
  font-size: 20px; color: var(--gray); transition: var(--transition); flex-shrink: 0;
}
.faq-item.open .arrow { transform: rotate(45deg); color: var(--primary); }
.faq-answer {
  font-size: 15px; color: var(--gray); line-height: 1.75;
  padding-bottom: 20px; display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ======================================================= FINAL CTA */
.final-cta {
  padding: 90px 24px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #0f4c3a 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.final-cta-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.final-cta h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(28px, 5vw, 52px); font-weight: 800;
  color: #fff; margin-bottom: 14px; letter-spacing: -0.5px; line-height: 1.1;
}
.final-cta p { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 40px; line-height: 1.7; }
.final-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-white {
  padding: 14px 32px; border-radius: 30px;
  font-size: 16px; font-weight: 700;
  background: #fff; color: var(--primary);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-white-ghost {
  padding: 13px 28px; border-radius: 30px;
  font-size: 16px; font-weight: 600;
  border: 2px solid rgba(255,255,255,.4); color: #fff;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-white-ghost:hover { background: rgba(255,255,255,.12); }
.final-trust { margin-top: 28px; font-size: 13px; color: rgba(255,255,255,.55); }

/* ======================================================= FOOTER */
footer {
  background: var(--black); color: #71717A;
  padding: 64px 24px 28px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-about { font-size: 14px; line-height: 1.8; margin: 14px 0 24px; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px;
  background: #18181B; color: #71717A;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; transition: var(--transition);
}
.footer-social a:hover { background: #25D366; color: #fff; }
.footer-col h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 18px; letter-spacing: -0.2px;
}
.footer-col ul li { margin-bottom: 10px; }
/* Footer links are non-clickable spans */
.footer-col ul li span {
  font-size: 14px; color: #71717A; cursor: default;
  display: inline-block;
}
.footer-col ul li a {
  font-size: 14px; color: #71717A; transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #18181B; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
}

/* ======================================================= AUTH PAGES */
.auth-page {
  min-height: 100vh; background: var(--black);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--dark); border-radius: 20px;
  padding: clamp(20px, 5vw, 40px);
  width: 100%; max-width: 440px;
  border: 1px solid #27272A;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo-icon { margin: 0 auto 10px; }
.auth-title { text-align: center; margin-bottom: 28px; }
.auth-title h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.auth-title p { font-size: 14px; color: #71717A; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #A1A1AA; margin-bottom: 7px; }
.form-group input, .form-group select {
  width: 100%; padding: 12px 16px;
  background: var(--black); border: 1.5px solid #27272A;
  border-radius: var(--radius-sm); color: #fff;
  font-size: 15px; font-family: inherit; outline: none;
  transition: var(--transition);
}
.form-group input::placeholder { color: #52525B; }
.form-group input:focus, .form-group select:focus { border-color: var(--primary); }
.form-group select { color: #A1A1AA; }
.form-group select option { background: var(--dark); }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--primary); color: #fff;
  border-radius: 30px; font-size: 16px; font-weight: 600;
  transition: var(--transition); margin-top: 4px;
}
.form-submit:hover { background: var(--primary-hover); }
.form-link { text-align: center; margin-top: 18px; font-size: 14px; color: #71717A; }
.form-link a { color: var(--primary); font-weight: 600; }
.trial-badge {
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 24px; text-align: center;
}
.trial-badge p { font-size: 13px; color: #6EE7B7; }
.trial-badge strong { font-size: 15px; color: var(--success); display: block; margin-bottom: 4px; }

/* ======================================================= DASHBOARD */
.dash-wrapper { display: flex; min-height: 100vh; background: #0A0A10; }
.sidebar {
  width: 240px; background: var(--black); flex-shrink: 0;
  border-right: 1px solid #18181B;
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 100;
}
.sidebar-logo { padding: 20px; border-bottom: 1px solid #18181B; }
.sidebar-nav { flex: 1; padding: 12px; overflow-y: auto; }
.sidebar-nav-section { margin-bottom: 24px; }
.sidebar-nav-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: #3F3F46; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 0 12px; margin-bottom: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: #71717A; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
}
.sidebar-link:hover { background: #18181B; color: #fff; }
.sidebar-link.active { background: rgba(79,70,229,.15); color: var(--primary); }
.sidebar-link .icon { font-size: 17px; width: 22px; text-align: center; }
.sidebar-link .badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 10px; padding: 2px 7px; border-radius: 30px;
}
.sidebar-footer { padding: 16px; border-top: 1px solid #18181B; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: #18181B; }
.sidebar-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--primary); flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-plan { font-size: 11px; color: #52525B; }
.main-content { margin-left: 240px; flex: 1; padding: 0; }
.dash-header {
  background: var(--black); border-bottom: 1px solid #18181B;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.dash-header-left h1 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }
.dash-header-left p { font-size: 12px; color: #52525B; margin-top: 2px; }
.dash-header-right { display: flex; align-items: center; gap: 10px; }
.date-filter { display: flex; background: var(--dark); border-radius: 30px; border: 1px solid #27272A; overflow: hidden; }
.date-btn { padding: 7px 14px; font-size: 13px; color: #71717A; transition: var(--transition); cursor: pointer; }
.date-btn:hover { color: #fff; }
.date-btn.active { background: var(--primary); color: #fff; }
.dash-body { padding: 28px; }
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.metric-card {
  background: var(--dark); border-radius: 14px; padding: 20px;
  border: 1px solid #18181B; transition: var(--transition);
}
.metric-card:hover { border-color: #27272A; }
.metric-card .mc-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #52525B; font-weight: 500; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.metric-card .mc-icon { font-size: 16px; }
.metric-card .mc-value { font-family: 'Bricolage Grotesque', sans-serif; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1; margin-bottom: 6px; }
.metric-card .mc-delta { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.mc-delta.up { color: var(--success); }
.mc-delta.down { color: var(--danger); }
.mc-delta.neutral { color: var(--gray); }
.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }
.chart-card { background: var(--dark); border-radius: 14px; padding: 20px; border: 1px solid #18181B; }
.chart-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-card-header h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; color: #fff; }
.chart-card-header .sub { font-size: 12px; color: #52525B; }
.funnel-card { background: var(--dark); border-radius: 14px; padding: 20px; border: 1px solid #18181B; }
.funnel-step-row { margin-bottom: 14px; }
.funnel-step-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.funnel-step-name { font-size: 13px; color: #A1A1AA; }
.funnel-step-stats { display: flex; gap: 14px; }
.funnel-step-count { font-size: 13px; font-weight: 700; color: #fff; }
.funnel-step-pct { font-size: 12px; color: #52525B; }
.funnel-bar-bg { height: 8px; background: #18181B; border-radius: 4px; overflow: hidden; }
.funnel-bar-fill { height: 100%; border-radius: 4px; background: var(--primary); transition: width .8s ease; }
.funnel-bar-fill.danger { background: var(--danger); }
.funnel-drop { font-size: 11px; color: var(--danger); margin-top: 3px; }
.table-card { background: var(--dark); border-radius: 14px; border: 1px solid #18181B; overflow: hidden; margin-bottom: 24px; }
.table-header { padding: 16px 20px; border-bottom: 1px solid #18181B; display: flex; align-items: center; justify-content: space-between; }
.table-header h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; color: #fff; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { font-family: 'JetBrains Mono', monospace; padding: 10px 20px; font-size: 11px; color: #52525B; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; border-bottom: 1px solid #18181B; }
.dash-table td { padding: 12px 20px; font-size: 14px; color: #A1A1AA; border-bottom: 1px solid #0F0F18; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: rgba(255,255,255,.02); color: #fff; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 30px; font-size: 11px; font-weight: 700; }
.status-badge.active { background: rgba(16,185,129,.15); color: var(--success); }
.status-badge.inactive { background: rgba(113,113,122,.15); color: #71717A; }
.status-badge.trial { background: rgba(245,158,11,.15); color: var(--warning); }

/* ======================================================= INSTALL PAGE */
.install-page { min-height: 100vh; background: var(--black); padding: 40px 24px; }
.install-card {
  background: var(--dark); border-radius: 16px;
  padding: clamp(20px, 5vw, 36px);
  max-width: 640px; margin: 0 auto; border: 1px solid #27272A;
}
.install-step { margin-bottom: 28px; }
.install-step-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.install-step-num {
  width: 26px; height: 26px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ======================================================= RESPONSIVE */
*, *::before, *::after { max-width: 100%; }
img, canvas, video, iframe { max-width: 100%; }

.hero h1          { font-size: clamp(36px, 6.5vw, 82px); }
.hero p           { font-size: clamp(15px, 2vw, 18px); }
.section-title    { font-size: clamp(24px, 4vw, 46px); }
.final-cta h2     { font-size: clamp(26px, 5vw, 52px); }
.stat-value       { font-size: clamp(26px, 3.5vw, 36px); }
.pricing-price .amount { font-size: clamp(34px, 5vw, 48px); }

.hero             { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
.features         { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
.how-it-works     { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
.preview-section  { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
.testimonials     { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
.pricing          { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
.faq              { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
.final-cta        { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 24px); }
footer            { padding: clamp(40px, 6vw, 64px) clamp(16px, 4vw, 24px) 28px; }

@media (max-width: 1024px) {
  .hero-inner              { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p                  { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-ctas               { justify-content: center; }
  .hero-trust              { justify-content: center; flex-wrap: wrap; }
  .hero-visual             { display: none; }
  .features-grid           { grid-template-columns: repeat(2, 1fr); }
  .steps-grid              { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .steps-grid::before      { display: none; }
  .pricing-grid            { grid-template-columns: 1fr 1fr; gap: 20px; }
  .testimonials-grid       { grid-template-columns: 1fr 1fr; }
  .footer-grid             { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-bar-inner         { gap: 40px; }
  .metrics-row             { grid-template-columns: repeat(2, 1fr); }
  .charts-row              { grid-template-columns: 1fr; }
  .preview-metrics-row     { grid-template-columns: repeat(2, 1fr); }
  .preview-charts-row      { grid-template-columns: 1fr; }
  .sidebar                 { width: 220px; }
  .main-content            { margin-left: 220px; }
}

@media (max-width: 768px) {
  .header-nav              { display: none; }
  .header-actions          { display: none; }
  .hamburger               { display: flex; }
  .mobile-menu             { display: flex; }
  .header-inner            { padding: 0 16px; }
  .topbar                  { font-size: 12px; padding: 8px 12px; }
  .hero-badge              { font-size: 12px; padding: 5px 12px; }
  .hero-trust              { gap: 8px; font-size: 12px; }
  .hero-trust span         { white-space: nowrap; }
  .hero-ctas               { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-primary-lg          { justify-content: center; padding: 14px 24px; }
  .btn-outline-lg          { justify-content: center; padding: 13px 24px; }
  .stats-bar               { padding: 24px 16px; }
  .stats-bar-inner         { gap: 0; display: grid; grid-template-columns: 1fr 1fr; row-gap: 24px; column-gap: 16px; }
  .features-grid           { grid-template-columns: 1fr; gap: 16px; }
  .feature-card            { padding: 24px 20px; }
  .step .code-snippet      { font-size: 11px; padding: 10px 12px; }
  .preview-window          { border-radius: 12px; }
  .preview-content         { padding: 16px; }
  .preview-metrics-row     { gap: 10px; }
  .preview-metric          { padding: 12px; }
  .preview-metric .pm-value{ font-size: 20px; }
  .pricing-grid            { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card            { padding: 28px 24px; }
  .testimonials-grid       { grid-template-columns: 1fr; }
  .faq-question            { font-size: 15px; }
  .final-cta-btns          { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn-white, .btn-white-ghost { justify-content: center; padding: 14px 24px; }
  .footer-grid             { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom           { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12px; }
  .auth-card               { padding: clamp(20px, 5vw, 40px); }
  .sidebar                 { transform: translateX(-100%); width: 260px; z-index: 200; }
  .sidebar.open            { transform: translateX(0); }
  .main-content            { margin-left: 0; }
  .dash-body               { padding: 16px; }
  .metrics-row             { grid-template-columns: 1fr 1fr; gap: 12px; }
  .charts-row              { grid-template-columns: 1fr; }
  .metric-card .mc-value   { font-size: 22px; }
  .dash-grid-2col          { grid-template-columns: 1fr !important; }
  .dash-grid-3col          { grid-template-columns: 1fr 1fr !important; }
  .metrics-row-3           { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .logo-text .sub          { display: none; }
  .hero-badge              { display: none; }
  .stats-bar-inner         { grid-template-columns: 1fr 1fr; }
  .auth-page               { padding: 16px; align-items: flex-start; padding-top: 32px; }
  .auth-card               { padding: 20px 16px; border-radius: 14px; }
  .trial-badge             { padding: 12px; }
  .metrics-row             { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metrics-row-3           { grid-template-columns: 1fr 1fr !important; }
  .dash-grid-3col          { grid-template-columns: 1fr !important; }
  .metric-card             { padding: 14px 12px; }
  .metric-card .mc-value   { font-size: 20px; }
  .dash-header             { padding: 12px 16px; }
  .dash-header-left h1     { font-size: 15px; }
  .dash-header-left p      { display: none; }
  .date-filter             { display: none; }
  .chart-card              { padding: 16px 12px; }
  .funnel-card             { padding: 16px 12px; }
  .table-card              { overflow-x: auto; }
  .dash-table th,
  .dash-table td           { padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  .pricing-card            { padding: 24px 16px; }
  .footer-social a         { width: 34px; height: 34px; font-size: 15px; }
  .install-card            { padding: 20px 16px; }
}

@media (max-width: 360px) {
  .section-title           { font-size: 22px; }
  .stats-bar-inner         { grid-template-columns: 1fr 1fr; gap: 16px; }
  .metrics-row             { grid-template-columns: 1fr; }
  .final-cta h2            { font-size: 22px; }
  .auth-card               { padding: 16px 12px; }
}

/* ======================================================= DASH GRID HELPERS */
.dash-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dash-grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metrics-row-3  { grid-template-columns: repeat(3, 1fr) !important; }

/* ======================================================= UTILS */
.container { max-width: 1280px; margin: 0 auto; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.hidden { display: none !important; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.alert-error { background: rgba(239,68,68,.1); color: #FCA5A5; border: 1px solid rgba(239,68,68,.2); }
.alert-success { background: rgba(16,185,129,.1); color: #6EE7B7; border: 1px solid rgba(16,185,129,.2); }
