/* =============================================================
   DispatchPilot — Marketing Site
   Design system: industrial trucking + modern SaaS
   ============================================================= */

/* DESIGN TOKENS */
:root {
  /* Color */
  --ink: #0A1628;
  --ink-2: #1A2942;
  --ink-3: #3A4A66;
  --accent: #FF5C1F;
  --accent-hover: #E64A0A;
  --accent-tint: #FFE8DC;
  --yellow: #FBBF24;
  --green: #059669;
  --green-tint: #D1FAE5;
  --red: #DC2626;
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --surface-2: #EEF0F4;
  --line: #E5E7EB;
  --line-dark: #D1D5DB;
  --muted: #6B7280;
  --muted-2: #9CA3AF;

  /* Type */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 12px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 24px 48px rgba(10, 22, 40, 0.16);

  /* Container */
  --container-max: 1200px;
  --container-pad: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-fast: 150ms var(--ease);
  --transition-base: 250ms var(--ease);
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

/* ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--ink);
  color: white;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* CONTAINER */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
  border-radius: var(--r-md);
}
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 92, 31, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-dark);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--surface);
}

.btn-ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.btn-text {
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
}
.btn-text:hover { color: var(--accent); }

/* ========================================================
   HEADER / NAV
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-6);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark { display: inline-flex; }
.logo-text { line-height: 1; }
.logo-light { color: white; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color var(--transition-fast);
  position: relative;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--transition-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--container-pad);
  border-top: 1px solid var(--line);
  background: white;
}
.mobile-menu a {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--surface-2);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ========================================================
   HERO
   ======================================================== */
.hero {
  position: relative;
  padding-top: var(--space-9);
  padding-bottom: var(--space-7);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 92, 31, 0.06), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  margin-bottom: var(--space-5);
}
.eyebrow-dark {
  background: var(--surface-2);
  color: var(--ink-3);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
.eyebrow-dark .eyebrow-dot {
  background: var(--ink-3);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}
.accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--accent);
  opacity: 0.15;
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: var(--space-6);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.trust-stars {
  color: var(--yellow);
  font-size: 16px;
  letter-spacing: 2px;
}

/* HERO VISUAL: Dispatch board mockup */
.hero-visual {
  position: relative;
  height: 480px;
}

.board-window {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: perspective(1500px) rotateY(-3deg) rotateX(2deg);
  transition: transform 600ms var(--ease);
}
.hero-visual:hover .board-window {
  transform: perspective(1500px) rotateY(-1deg) rotateX(1deg);
}

.board-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.board-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-dark);
}
.board-dot:nth-child(1) { background: #FF5F57; }
.board-dot:nth-child(2) { background: #FEBC2E; }
.board-dot:nth-child(3) { background: #28C840; }
.board-title {
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.board-body {
  padding: 8px;
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-fast);
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: var(--surface); }

.board-row-attention {
  background: linear-gradient(90deg, rgba(255, 92, 31, 0.06), transparent);
  border-left: 3px solid var(--accent);
}
.board-row-ai {
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.04), transparent);
  border-left: 3px solid var(--ink);
}

.board-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.attention-icon {
  background: var(--accent);
  color: white;
}
.ai-icon {
  background: var(--ink);
  color: white;
  font-size: 9px;
  letter-spacing: 0.05em;
}

.board-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 9px;
}
.status-green {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
  animation: pulse 2s ease-in-out infinite;
}
.status-amber {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}
.status-blue {
  background: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.board-line {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.board-line strong {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}
.board-meta {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.board-btn {
  padding: 6px 12px;
  background: var(--accent);
  color: white;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.board-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-dark);
}

.floating-badge {
  position: absolute;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.floating-badge-1 {
  top: 60px;
  left: -30px;
  animation-delay: 0s;
}
.floating-badge-2 {
  bottom: 80px;
  right: -20px;
  animation-delay: 2s;
}
.badge-label {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}
.badge-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.floating-badge-1 .badge-value { color: var(--green); }
.badge-value span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 2px;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* TICKER */
.ticker-wrap {
  margin-top: var(--space-8);
  background: var(--ink);
  color: white;
  overflow: hidden;
  position: relative;
}
.ticker {
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track {
  display: flex;
  gap: var(--space-7);
  animation: ticker-scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================================
   PROBLEM / STATS
   ======================================================== */
.problem {
  padding: var(--space-10) 0;
  background: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-8);
}
.section-head .eyebrow {
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.accent-text {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  text-align: left;
  transition: all var(--transition-base);
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: var(--space-3);
  letter-spacing: -0.04em;
}
.stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}
.stat-detail {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.problem-note {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}

/* ========================================================
   FEATURES
   ======================================================== */
.features {
  padding: var(--space-10) 0;
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: all var(--transition-base);
  position: relative;
}
.feature-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-large {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: white;
  border: none;
}
.feature-card-large:hover {
  border-color: transparent;
}
.feature-card-large h3 { color: white; }
.feature-card-large p { color: rgba(255, 255, 255, 0.8); }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.feature-card-large .feature-icon {
  background: rgba(255, 92, 31, 0.2);
  color: var(--accent);
}

.feature-badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: white;
}
.feature-card-large .feature-badge {
  background: var(--yellow);
  color: var(--ink);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}
.feature-card-large h3 {
  font-size: 28px;
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.feature-card-large p {
  font-size: 16px;
  max-width: 600px;
}

.feature-metric {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: -0.02em;
}
.metric-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================================
   HOW IT WORKS
   ======================================================== */
.how {
  padding: var(--space-10) 0;
  background: var(--bg);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  position: relative;
}
.how-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 16.67%;
  right: 16.67%;
  height: 2px;
  background: linear-gradient(90deg, var(--line), var(--accent), var(--line));
  z-index: 0;
}

.how-step {
  background: white;
  padding: var(--space-6);
  border-radius: var(--r-lg);
  position: relative;
  z-index: 1;
  text-align: center;
}

.how-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: white;
  background: var(--ink);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  line-height: 56px;
  margin-bottom: var(--space-5);
  letter-spacing: 0;
  position: relative;
}
.how-step:nth-child(2) .how-num { background: var(--accent); }
.how-step:nth-child(3) .how-num { background: var(--green); }

.how-step h3 {
  font-size: 22px;
  margin-bottom: var(--space-3);
}
.how-step p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: var(--space-4);
}
.how-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ========================================================
   PRICING
   ======================================================== */
.pricing {
  padding: var(--space-10) 0;
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.plan {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-3);
}
.plan.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

.plan-featured {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  transform: scale(1.02);
}
.plan-featured:hover { border-color: var(--accent); }
.plan-featured .plan-name,
.plan-featured .plan-price,
.plan-featured .plan-features li { color: white; }
.plan-featured .plan-tag { color: var(--accent); }
.plan-featured .plan-sub,
.plan-featured .plan-features li { color: rgba(255, 255, 255, 0.85); }

.plan-flag {
  position: absolute;
  top: -10px;
  right: var(--space-5);
  background: var(--accent);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 12px;
}

.plan-head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line);
}
.plan-featured .plan-head {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.plan-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.plan-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}
.dollar {
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
}
.amount {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.period {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}
.plan-featured .dollar,
.plan-featured .period {
  color: rgba(255, 255, 255, 0.6);
}

.plan-sub {
  font-size: 13px;
  color: var(--muted);
}

.plan-features {
  flex: 1;
  margin-bottom: var(--space-6);
}
.plan-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--surface-2);
  position: relative;
  padding-left: 22px;
}
.plan-featured .plan-features li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M11 4L5.5 9.5 3 7' stroke='%23FF5C1F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.plan-features li strong {
  color: var(--ink);
  font-weight: 600;
}
.plan-featured .plan-features li strong {
  color: white;
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ========================================================
   COMPARE
   ======================================================== */
.compare {
  padding: var(--space-10) 0;
  background: var(--bg);
}

.compare-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-5);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare-table thead th {
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.compare-table .feat-col {
  text-align: left;
  width: 200px;
}
.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--surface);
}
.compare-table .us-col {
  background: linear-gradient(180deg, rgba(255, 92, 31, 0.08), rgba(255, 92, 31, 0.02));
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.compare-table .us-text {
  color: var(--accent);
  font-weight: 700;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.yes {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--green-tint);
  color: var(--green);
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
}
.no {
  color: var(--muted-2);
  font-size: 18px;
}
.part {
  font-size: 11px;
  color: var(--yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(251, 191, 36, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.compare-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ========================================================
   INTEGRATIONS
   ======================================================== */
.integrations {
  padding: var(--space-10) 0;
  background: var(--surface);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-3);
}

.int-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-5);
  text-align: center;
  transition: all var(--transition-fast);
}
.int-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.int-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.int-type {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ========================================================
   TESTIMONIALS
   ======================================================== */
.testimonials {
  padding: var(--space-10) 0;
  background: var(--bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.testimonial {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  position: relative;
  transition: all var(--transition-base);
}
.testimonial:hover {
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: var(--space-3);
  right: var(--space-5);
}

blockquote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-meta {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.testimonial-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 2px;
}
.testimonial-role {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ========================================================
   CTA BAND
   ======================================================== */
.cta-band {
  padding: var(--space-9) 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 92, 31, 0.15), transparent 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.cta-band p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}
.cta-buttons {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ========================================================
   CONTACT
   ======================================================== */
.contact {
  padding: var(--space-10) 0;
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
}

.contact-info .section-title {
  text-align: left;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: var(--space-4);
}
.contact-info .eyebrow {
  margin-bottom: var(--space-3);
}

.contact-lead {
  font-size: 16px;
  color: var(--ink-3);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:last-child { border-bottom: none; }

.contact-method-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method-label {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 2px;
}
.contact-method-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
a.contact-method-value:hover {
  color: var(--accent);
}

/* FORM */
.contact-form {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.form-field {
  margin-bottom: var(--space-4);
}
.form-row .form-field {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.req { color: var(--accent); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: white;
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 31, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

.form-error {
  font-size: 12px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--red);
}

.form-success {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--green-tint);
  color: var(--green);
  border-radius: var(--r-md);
  font-size: 14px;
  border: 1px solid var(--green);
  border-color: rgba(5, 150, 105, 0.3);
}

.form-disclaimer {
  margin-top: var(--space-4);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

#submitBtn.loading {
  opacity: 0.7;
  cursor: wait;
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--ink);
  color: white;
  padding: var(--space-9) 0 var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo { margin-bottom: var(--space-4); }
.footer-tag {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-4);
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-contact a:hover { color: var(--accent); }

/* ========================================================
   SCROLL REVEAL ANIMATIONS
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grid children */
.stat-grid .reveal:nth-child(1).in-view { transition-delay: 0ms; }
.stat-grid .reveal:nth-child(2).in-view { transition-delay: 100ms; }
.stat-grid .reveal:nth-child(3).in-view { transition-delay: 200ms; }

.feature-grid .reveal:nth-child(1).in-view { transition-delay: 0ms; }
.feature-grid .reveal:nth-child(2).in-view { transition-delay: 60ms; }
.feature-grid .reveal:nth-child(3).in-view { transition-delay: 120ms; }
.feature-grid .reveal:nth-child(4).in-view { transition-delay: 180ms; }
.feature-grid .reveal:nth-child(5).in-view { transition-delay: 240ms; }

.how-grid .reveal:nth-child(1).in-view { transition-delay: 0ms; }
.how-grid .reveal:nth-child(2).in-view { transition-delay: 150ms; }
.how-grid .reveal:nth-child(3).in-view { transition-delay: 300ms; }

.pricing-grid .reveal:nth-child(1).in-view { transition-delay: 0ms; }
.pricing-grid .reveal:nth-child(2).in-view { transition-delay: 80ms; }
.pricing-grid .reveal:nth-child(3).in-view { transition-delay: 160ms; }
.pricing-grid .reveal:nth-child(4).in-view { transition-delay: 240ms; }

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

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large { grid-column: span 2; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 3; }
}

@media (max-width: 768px) {
  :root {
    --space-9: 64px;
    --space-10: 80px;
  }
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero {
    padding-top: var(--space-7);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }
  .hero-visual {
    height: 400px;
    margin: 0 -10px;
  }
  .floating-badge-1 { left: 0; }
  .floating-badge-2 { right: 0; }

  .stat-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .how-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .how-grid::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: span 2; }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .integration-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 360px; }
}
