/* =============================================================================
   MAIN.CSS — FareDrop Design System
   Upgraded to CLAUDE.md quality standards:
   ✓ Custom brand colors (NOT default Tailwind palette)
   ✓ Layered color-tinted shadows (never flat shadow-md)
   ✓ Typography pairing: Plus Jakarta Sans display / Inter body
   ✓ Spacing token scale (4px base unit)
   ✓ Spring-style easing (animate transform + opacity only)
   ✓ Full interactive states: hover, focus-visible, active
   ✓ Depth layers: base → elevated → floating
   ✓ Grain texture via SVG noise for hero surfaces
   ✓ NO transition-all anywhere
   ============================================================================= */

/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */
:root {

  /* ── Brand Colors
   * Primary: #1356BF — custom royal blue (not Tailwind blue-600 #2563EB or blue-700 #1D4ED8)
   * Accent:  #F7620A — custom warm orange (not default orange-500 #F97316)
   * Derived from primary with consistent HSL shifts, not arbitrary picks
   * ──────────────────────────────────────────────────────────────────────────── */
  --primary:         #1356BF;
  --primary-dk:      #0B3A87;
  --primary-lt:      #2470D4;
  --primary-xlt:     #4D93E8;
  --primary-tint:    #EBF2FD;
  --primary-tint-dk: #D4E5FA;

  --accent:          #F7620A;
  --accent-dk:       #D94D00;
  --accent-lt:       #FF7A2E;
  --accent-tint:     #FFF0E8;

  --green:           #16A34A;
  --green-lt:        #22C55E;
  --green-tint:      #DCFCE7;

  --amber:           #D97706;
  --amber-tint:      #FEF3C7;

  --red:             #DC2626;
  --red-tint:        #FEE2E2;

  /* ── Neutral Scale (warm slate, not cold gray) ───────────────────────────── */
  --white:      #FFFFFF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-150:   #E8EEF5;  /* extra step for fine-tuning */
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1E293B;
  --gray-900:   #0F172A;

  /* ── Semantic Aliases ────────────────────────────────────────────────────── */
  --bg:           var(--gray-50);
  --bg-alt:       var(--gray-100);
  --surface:      var(--white);
  --text:         var(--gray-900);
  --text-muted:   var(--gray-500);
  --text-subtle:  var(--gray-400);
  --border:       var(--gray-200);
  --border-focus: var(--primary);

  /* ── Depth / Surfaces (base → elevated → floating) ──────────────────────── */
  --surface-base:     var(--gray-50);
  --surface-card:     var(--white);
  --surface-elevated: var(--white);
  --surface-floating: var(--white);

  /* ── Typography
   * Rule: NEVER same font for headings + body
   * Display: Plus Jakarta Sans — bold, geometric, modern
   * Body:    Inter — clean, readable, neutral
   * ──────────────────────────────────────────────────────────────────────────── */
  --font-display: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --text-xs:    0.6875rem;  /* 11px */
  --text-sm:    0.8125rem;  /* 13px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */

  /* ── Spacing (4px base unit — DO NOT use arbitrary values) ──────────────── */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-7:   28px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;
  --sp-32:  128px;

  /* ── Border Radius ───────────────────────────────────────────────────────── */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-2xl:  36px;
  --radius-full: 9999px;

  /* ── Shadows
   * Rule: NEVER flat single-layer shadow
   * Each shadow uses 2–3 layers: ambient + direct + color tint at low opacity
   * Color tint uses brand primary at very low opacity for cohesion
   * ──────────────────────────────────────────────────────────────────────────── */
  --shadow-xs:
    0 1px 2px rgba(19, 86, 191, 0.06);

  --shadow-sm:
    0 1px 3px  rgba(19, 86, 191, 0.08),
    0 1px 2px  rgba(0, 0, 0, 0.04);

  --shadow-md:
    0 4px 6px   rgba(19, 86, 191, 0.07),
    0 10px 20px rgba(19, 86, 191, 0.06),
    0 2px 4px   rgba(0, 0, 0, 0.04);

  --shadow-lg:
    0 8px 12px  rgba(19, 86, 191, 0.08),
    0 20px 35px rgba(19, 86, 191, 0.08),
    0 4px 6px   rgba(0, 0, 0, 0.04);

  --shadow-xl:
    0 20px 30px rgba(19, 86, 191, 0.10),
    0 40px 60px rgba(19, 86, 191, 0.08),
    0 8px 12px  rgba(0, 0, 0, 0.05);

  --shadow-hover:
    0 12px 24px rgba(19, 86, 191, 0.14),
    0 4px 8px   rgba(0, 0, 0, 0.08);

  --shadow-card-hover:
    0 8px 16px  rgba(19, 86, 191, 0.10),
    0 24px 48px rgba(19, 86, 191, 0.10),
    0 2px 4px   rgba(0, 0, 0, 0.04);

  --shadow-inset:
    inset 0 1px 3px rgba(19, 86, 191, 0.10),
    inset 0 1px 2px rgba(0, 0, 0, 0.06);

  /* ── Easing
   * Rule: Spring-style cubic-bezier, NEVER linear or ease-in-out
   * Rule: Animate ONLY transform and opacity — never transition-all
   * ──────────────────────────────────────────────────────────────────────────── */
  --ease-spring:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-smooth:    cubic-bezier(0.4, 0, 0.2, 1);

  --dur-fast:   150ms;
  --dur-base:   220ms;
  --dur-slow:   350ms;
  --dur-xslow:  500ms;

  /* ── Z-index Layers ──────────────────────────────────────────────────────── */
  --z-base:    0;
  --z-raised:  1;
  --z-overlay: 50;
  --z-header:  100;
  --z-modal:   200;

  /* ── Layout ──────────────────────────────────────────────────────────────── */
  --container:       1200px;
  --container-sm:    760px;
  --container-md:    960px;
  --gap:             var(--sp-6);

  /* Legacy aliases (keep for any backward-compatible references) */
  --color-primary:    var(--primary);
  --color-primary-dk: var(--primary-dk);
  --color-accent:     var(--accent);
  --color-accent-dk:  var(--accent-dk);
  --color-green:      var(--green);
  --color-orange:     var(--amber);
  --color-red:        var(--red);
  --color-bg:         var(--bg);
  --color-bg-gray:    var(--bg-alt);
  --color-text:       var(--text);
  --color-muted:      var(--text-muted);
  --color-border:     var(--border);
  --color-white:      var(--white);
  --font-heading:     var(--font-display);
  --shadow-hover:     var(--shadow-card-hover);
  --transition:       var(--dur-base) var(--ease-smooth);
}

/* =============================================================================
   GRAIN TEXTURE MIXIN (applied to hero and dark surfaces)
   SVG feTurbulence noise filter — adds visual depth without images
   ============================================================================= */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.045'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  mix-blend-mode: overlay;
  z-index: 2;
  border-radius: inherit;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  /* Rule: generous line-height (1.7) on body copy */
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }

/* Rule: tight tracking (-0.03em) on large headings, display font always */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.035em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.03em;  }
h3 { font-size: var(--text-2xl); letter-spacing: -0.02em;  }
h4 { font-size: var(--text-xl);  letter-spacing: -0.01em;  font-weight: 700; }
h5 { font-size: var(--text-lg);  font-weight: 700; }
h6 { font-size: var(--text-base); font-weight: 700; }

p { line-height: 1.7; }

/* =============================================================================
   FOCUS — global accessible focus ring (not ugly browser default)
   Rule: every clickable element needs focus-visible state
   ============================================================================= */
:focus { outline: none; }

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* =============================================================================
   LAYOUT
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }

.section {
  padding-block: var(--sp-20);
}

.section--sm  { padding-block: var(--sp-12); }
.section--lg  { padding-block: calc(var(--sp-20) * 1.5); }
.section--gray {
  background: var(--bg-alt);
  /* Subtle inner top/bottom borders for definition */
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

/* =============================================================================
   BUTTONS
   Rule: Every button needs hover, focus-visible, and active states
   Rule: Animate only transform and opacity — never transition-all
   Rule: Layered, color-tinted shadow on hover
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 11px var(--sp-6);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
  position: relative;
  /* Specific transitions — NOT transition-all */
  transition:
    transform    var(--dur-base) var(--ease-spring),
    box-shadow   var(--dur-base) var(--ease-out-expo),
    background   var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    opacity      var(--dur-fast) var(--ease-smooth);
}

/* Primary — accent orange fill */
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow:
    0 1px 3px  rgba(247, 98, 10, 0.30),
    0 4px 12px rgba(247, 98, 10, 0.20);
}

.btn--primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px   rgba(247, 98, 10, 0.35),
    0 12px 24px rgba(247, 98, 10, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 3px rgba(247, 98, 10, 0.25);
}

.btn--primary:focus-visible {
  outline-color: var(--accent);
  outline-offset: 4px;
}

/* Primary Blue variant */
.btn--primary-blue {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow:
    0 1px 3px  rgba(19, 86, 191, 0.30),
    0 4px 12px rgba(19, 86, 191, 0.20);
}

.btn--primary-blue:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow:
    0 4px 8px   rgba(19, 86, 191, 0.35),
    0 12px 24px rgba(19, 86, 191, 0.25);
}

.btn--primary-blue:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(19, 86, 191, 0.25);
}

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost / tertiary */
.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-200);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-tint);
}

.btn--ghost:active {
  background: var(--primary-tint-dk);
}

/* White (on dark backgrounds) */
.btn--white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  box-shadow:
    0 2px 6px  rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.16),
    0 16px 32px rgba(0, 0, 0, 0.12);
}

.btn--white:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Sizes */
.btn--sm  { padding: 7px var(--sp-4); font-size: var(--text-xs); }
.btn--lg  { padding: 14px var(--sp-8); font-size: var(--text-base); }
.btn--xl  { padding: 16px var(--sp-10); font-size: var(--text-lg); }
.btn--full { width: 100%; }

/* Accent alias */
.btn--accent { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}

.badge--green  { background: var(--green-tint);  color: #14532d; }
.badge--orange { background: var(--accent-tint);  color: #92400e; }
.badge--red    { background: var(--red-tint);     color: #7f1d1d; }
.badge--amber  { background: var(--amber-tint);   color: #78350f; }
.badge--blue   { background: var(--primary-tint); color: var(--primary-dk); }

.badge--sm { font-size: 10px; padding: 3px 8px; }
.badge--lg { font-size: var(--text-sm); padding: 6px 14px; }

/* =============================================================================
   TOPBAR
   ============================================================================= */
.topbar {
  background: var(--primary-dk);
  color: rgba(255, 255, 255, 0.90);
  padding: var(--sp-2) 0;
  font-size: var(--text-xs);
  text-align: center;
  position: relative;
  z-index: var(--z-header);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.topbar__link {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.topbar__link:hover { opacity: 0.80; }

/* =============================================================================
   SITE HEADER
   Rule: depth — header sits above base (elevated surface with shadow)
   ============================================================================= */
.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* Layered shadow — barely visible at rest */
  box-shadow:
    0 1px 3px rgba(19, 86, 191, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.03);
  transition:
    box-shadow var(--dur-base) var(--ease-smooth),
    background var(--dur-base) var(--ease-smooth);
}

.site-header.is-scrolled {
  box-shadow:
    0 4px 6px  rgba(19, 86, 191, 0.07),
    0 10px 20px rgba(19, 86, 191, 0.06),
    0 2px 4px  rgba(0, 0, 0, 0.04);
}

/* Header is-hidden — slide up (used by JS scroll-hide) */
.site-header.is-hidden {
  transform: translateY(-100%);
  transition:
    transform var(--dur-base) var(--ease-in-expo),
    box-shadow var(--dur-base) var(--ease-smooth);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  height: 68px;
}

.site-header__logo { flex-shrink: 0; }

.site-header__logo img {
  height: 38px;
  width: auto;
}

.site-header__logo-text {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.site-header__logo-text span {
  color: var(--accent);
}

.site-header__actions {
  display: flex;
  gap: var(--sp-3);
  margin-left: auto;
  flex-shrink: 0;
}

/* Nav */
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  gap: var(--sp-1);
}

.site-nav__list a {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  font-weight: 500;
  font-size: var(--text-sm);
  /* Specific transitions */
  transition:
    color       var(--dur-fast) var(--ease-smooth),
    background  var(--dur-fast) var(--ease-smooth),
    transform   var(--dur-fast) var(--ease-smooth);
}

.site-nav__list a:hover {
  color: var(--primary);
  background: var(--primary-tint);
}

.site-nav__list a:active {
  transform: scale(0.97);
  background: var(--primary-tint-dk);
}

.site-nav__list .current-menu-item > a {
  color: var(--primary);
  background: var(--primary-tint);
  font-weight: 600;
}

/* =============================================================================
   HAMBURGER
   ============================================================================= */
.site-header__hamburger,
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--radius-sm);
  transition:
    background var(--dur-fast) var(--ease-smooth);
}

.site-header__hamburger:hover,
.hamburger:hover {
  background: var(--gray-100);
}

.site-header__hamburger span,
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition:
    transform var(--dur-base) var(--ease-spring),
    opacity   var(--dur-fast) var(--ease-smooth);
}

.site-header__hamburger.is-active span:nth-child(1),
.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.site-header__hamburger.is-active span:nth-child(2),
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header__hamburger.is-active span:nth-child(3),
.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================================================
   MOBILE MENU OVERLAY
   ============================================================================= */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  /* Rule: animate transform only */
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out-expo);
}

.mobile-menu-overlay.is-open {
  transform: translateX(0);
}

.mobile-menu-overlay__close {
  align-self: flex-end;
  background: var(--gray-100);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--gray-600);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color      var(--dur-fast) var(--ease-smooth);
}

.mobile-menu-overlay__close:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.mobile-menu-overlay__nav {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.mobile-menu-overlay__nav a {
  display: block;
  padding: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color      var(--dur-fast) var(--ease-smooth),
    transform  var(--dur-fast) var(--ease-smooth);
}

.mobile-menu-overlay__nav a:hover {
  background: var(--primary-tint);
  color: var(--primary);
  transform: translateX(4px);
}

.mobile-menu-overlay__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* Backdrop for mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: calc(var(--z-modal) - 1);
}

.mobile-overlay.is-visible { display: block; }

/* =============================================================================
   HERO
   Rule: Layer multiple radial gradients for depth
   Rule: Add grain overlay for texture
   Rule: Wave decoration at bottom (like reference)
   ============================================================================= */
.hero {
  position: relative;
  /* Layered radial gradients — not a flat linear */
  background:
    radial-gradient(ellipse at 20% 50%,  rgba(36, 112, 212, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%,  rgba(19, 86, 191, 0.25)  0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(11, 58, 135, 0.30)  0%, transparent 60%),
    linear-gradient(150deg, #1356BF 0%, #1A6FE8 45%, #0F4CB5 100%);
  color: var(--white);
  padding-block: var(--sp-20);
  /* Grain texture */
  isolation: isolate;
  overflow: hidden;
}

/* Grain overlay on hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

/* Wave decoration at hero bottom (matching reference) */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath d='M0,32 C240,64 480,0 720,32 C960,64 1200,0 1440,32 L1440,64 L0,64 Z' fill='%23F8FAFC'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  /* Rule: tight tracking on large headings */
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: var(--sp-4);
  color: var(--white);
}

.hero__sub {
  font-size: var(--text-lg);
  /* Rule: generous line-height on body */
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: var(--sp-8);
}

.hero__trust {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  opacity: 0.80;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.hero__trust li::before {
  content: '✓';
  font-weight: 700;
  color: #7DD3FC;
}

/* Hero right panel — stat cards */
.hero__stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  position: relative;
  z-index: 3;
}

.hero__stat-card {
  /* Depth: floating surface with layered shadow + backdrop blur */
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.10),
    0 1px 3px  rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  transition:
    transform   var(--dur-base) var(--ease-spring),
    box-shadow  var(--dur-base) var(--ease-out-expo);
}

.hero__stat-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15),
    0 3px 6px  rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero__stat-card--accent {
  background: var(--accent);
  border-color: var(--accent-lt);
  grid-column: span 2;
  box-shadow:
    0 4px 12px rgba(247, 98, 10, 0.35),
    0 8px 24px rgba(247, 98, 10, 0.20);
}

.hero__stat-card--accent:hover {
  box-shadow:
    0 8px 20px rgba(247, 98, 10, 0.40),
    0 16px 40px rgba(247, 98, 10, 0.25);
}

.hero__stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  opacity: 0.82;
  margin-top: var(--sp-1);
}

/* =============================================================================
   SIGNUP FORM
   ============================================================================= */
.signup-form__fields {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.signup-form__input {
  flex: 1;
  min-width: 200px;
  padding: 13px var(--sp-4);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: var(--text-base);
  transition:
    border-color var(--dur-fast) var(--ease-smooth),
    background   var(--dur-fast) var(--ease-smooth),
    box-shadow   var(--dur-fast) var(--ease-smooth);
}

.signup-form__input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.signup-form__input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

/* Light-background form variants */
.signup-form--sidebar .signup-form__input,
.signup-form--inline  .signup-form__input,
.signup-form--pricing .signup-form__input,
.signup-form--footer  .signup-form__input,
.signup-form--footer-cta .signup-form__input,
.signup-form--about   .signup-form__input {
  background: var(--white);
  color: var(--text);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-xs);
}

.signup-form--sidebar .signup-form__input::placeholder,
.signup-form--inline  .signup-form__input::placeholder,
.signup-form--pricing .signup-form__input::placeholder,
.signup-form--about   .signup-form__input::placeholder {
  color: var(--text-muted);
}

.signup-form--sidebar .signup-form__input:focus,
.signup-form--inline  .signup-form__input:focus,
.signup-form--pricing .signup-form__input:focus,
.signup-form--about   .signup-form__input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 86, 191, 0.12);
}

.signup-form__message {
  font-size: var(--text-sm);
  margin-top: var(--sp-2);
  min-height: 18px;
  line-height: 1.5;
}

.signup-form__message.success { color: var(--green);     }
.signup-form__message.error   { color: var(--red);       }

/* =============================================================================
   SECTION HEADERS
   ============================================================================= */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.section-header__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
}

.section-header__sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-inline: auto;
}

/* Left-aligned section headers (archive, single) */
.section-header--left {
  text-align: left;
}

.section-header--left .section-header__sub {
  margin-inline: 0;
}

/* Legacy aliases */
.section-title         { font-size: clamp(1.375rem, 3vw, 2rem); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }
.section-title--center { text-align: center; margin-bottom: var(--sp-3); }
.section-sub           { color: var(--text-muted); font-size: var(--text-base); line-height: 1.7; }
.section-sub--center   { text-align: center; margin-bottom: var(--sp-10); }
.section-link          { font-size: var(--text-sm); font-weight: 600; color: var(--primary); white-space: nowrap; }
.section-link:hover    { text-decoration: underline; }

/* =============================================================================
   DEAL GRID
   ============================================================================= */
.deals-grid           { display: grid; gap: var(--gap); }
.deals-grid--4col     { grid-template-columns: repeat(4, 1fr); }
.deals-grid--3col     { grid-template-columns: repeat(3, 1fr); }
.deals-grid--2col     { grid-template-columns: repeat(2, 1fr); }
.col-span-3           { grid-column: 1 / -1; }

/* =============================================================================
   HOW IT WORKS STEPS
   ============================================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-10);
  margin-top: var(--sp-12);
}

.step {
  text-align: center;
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition:
    transform   var(--dur-base) var(--ease-spring),
    box-shadow  var(--dur-base) var(--ease-out-expo);
}

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

.step__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--primary-tint);
  margin-bottom: var(--sp-5);
  font-size: 1.875rem;
  /* Layered shadow on icon */
  box-shadow:
    0 4px 8px  rgba(19, 86, 191, 0.12),
    0 1px 3px  rgba(19, 86, 191, 0.10);
  transition:
    transform  var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out-expo);
}

.step:hover .step__icon-wrap {
  transform: scale(1.08);
  box-shadow:
    0 8px 16px rgba(19, 86, 191, 0.18),
    0 2px 6px  rgba(19, 86, 191, 0.14);
}

/* Legacy alias */
.step__icon { font-size: 3rem; margin-bottom: var(--sp-4); }

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: var(--sp-5);
  box-shadow:
    0 2px 6px  rgba(19, 86, 191, 0.35),
    0 4px 12px rgba(19, 86, 191, 0.20);
}

.step__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}

.step__desc {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* =============================================================================
   CTA BANNER
   ============================================================================= */
.cta-banner { padding: 0; }

.cta-banner--premium {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(36, 112, 212, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(19, 86, 191, 0.25)  0%, transparent 50%),
    linear-gradient(140deg, #1356BF 0%, #1A6FE8 60%, #0B3A87 100%);
  position: relative;
  isolation: isolate;
}

/* Grain on premium banner */
.cta-banner--premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.cta-banner--signup {
  background: var(--gray-100);
  border-top:    1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.cta-banner__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-10) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
  justify-content: space-between;
}

.cta-banner--premium .cta-banner__inner { color: var(--white); }

.cta-banner__copy { display: flex; flex-direction: column; gap: var(--sp-1); }
.cta-banner__copy strong { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.02em; }
.cta-banner__copy span   { font-size: var(--text-sm); opacity: 0.82; }

/* =============================================================================
   POSTS GRID
   ============================================================================= */
.posts-grid         { display: grid; gap: var(--gap); }
.posts-grid--2col   { grid-template-columns: repeat(2, 1fr); }
.posts-grid--3col   { grid-template-columns: repeat(3, 1fr); }

/* =============================================================================
   FINAL CTA (email capture)
   ============================================================================= */
.final-cta {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(36, 112, 212, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 30%, rgba(11, 58, 135, 0.20)  0%, transparent 50%),
    var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  isolation: isolate;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.final-cta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-sm);
  margin-inline: auto;
}

.final-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--sp-3);
}

.final-cta__sub {
  opacity: 0.82;
  margin-bottom: var(--sp-8);
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* =============================================================================
   PAGE HERO (interior pages)
   ============================================================================= */
.page-hero {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(36, 112, 212, 0.30) 0%, transparent 55%),
    linear-gradient(150deg, #1356BF 0%, #1A6FE8 100%);
  color: var(--white);
  padding: var(--sp-16) 0;
  position: relative;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.page-hero__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--white);
}

.page-hero__sub {
  position: relative;
  margin-top: var(--sp-3);
  opacity: 0.84;
  font-size: var(--text-lg);
  line-height: 1.7;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background: #0B1628;
  color: var(--gray-400);
  margin-top: auto;
}

.footer-signup {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(36, 112, 212, 0.20) 0%, transparent 55%),
    var(--primary);
  padding: var(--sp-12) 0;
  position: relative;
  isolation: isolate;
}

.footer-signup::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.footer-signup__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-signup__copy h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--sp-1);
}

.footer-signup__copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer-main {
  padding: var(--sp-16) 0 var(--sp-10);
}

.footer-main__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-16);
}

.footer-brand__logo {
  display: inline-block;
  margin-bottom: var(--sp-3);
}

.footer-brand__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
}

.footer-brand__logo-text span { color: var(--accent); }

.footer-brand__tagline {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--sp-5);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--sp-4);
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
  background: rgba(255, 255, 255, 0.05);
  transition:
    color       var(--dur-fast) var(--ease-smooth),
    background  var(--dur-fast) var(--ease-smooth),
    transform   var(--dur-fast) var(--ease-spring);
}

.footer-social__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.footer-social__link:active {
  transform: translateY(0);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.footer-nav__heading {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: var(--sp-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-nav a {
  color: var(--gray-500);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition:
    color     var(--dur-fast) var(--ease-smooth),
    transform var(--dur-fast) var(--ease-smooth);
}

.footer-nav a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--sp-5) 0;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.footer-bottom__disclaimer { font-size: var(--text-xs); }

/* =============================================================================
   PAGINATION
   ============================================================================= */
.pagination-wrap { margin-top: var(--sp-12); text-align: center; }

.page-numbers {
  display: inline-flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  font-size: var(--text-sm);
  font-weight: 500;
  transition:
    background    var(--dur-fast) var(--ease-smooth),
    border-color  var(--dur-fast) var(--ease-smooth),
    color         var(--dur-fast) var(--ease-smooth),
    transform     var(--dur-fast) var(--ease-spring),
    box-shadow    var(--dur-fast) var(--ease-smooth);
}

.page-numbers a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.page-numbers a:active {
  transform: translateY(0);
}

.page-numbers .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* =============================================================================
   UTILITY / MISC
   ============================================================================= */
.no-content      { color: var(--text-muted); font-style: italic; padding: var(--sp-10) 0; }
.no-content-wrap { text-align: center; padding: var(--sp-16) 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--primary);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--sp-6);
  transition:
    opacity   var(--dur-fast) var(--ease-smooth),
    transform var(--dur-fast) var(--ease-smooth);
}

.back-link:hover {
  opacity: 0.75;
  transform: translateX(-2px);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Image with gradient overlay (CLAUDE.md rule) */
.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.65) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Color treatment layer with mix-blend */
.img-overlay .img-tint {
  position: absolute;
  inset: 0;
  background: rgba(19, 86, 191, 0.15);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}
