/* ============================================================
   Arrow Bloom — Premium Modern Stylesheet
   Aesthetic: Ultra-Modern · Sleek · Glassmorphic · Gamified
   ============================================================ */

/* ---------- Google Fonts & Design System ---------- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Theme: Light */
  --bg: #f8fafc;
  --bg-mesh-1: rgba(99, 102, 241, 0.10);
  --bg-mesh-2: rgba(236, 72, 153, 0.08);
  --bg-mesh-3: rgba(14, 165, 233, 0.08);
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --surface-elevated: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(226, 232, 240, 0.9);
  --border-glass: rgba(255, 255, 255, 0.8);
  --border-focus: rgba(99, 102, 241, 0.4);
  
  --text: #0f172a;
  --text-subtle: #64748b;
  --text-muted: #94a3b8;
  
  /* Brand Accents */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.28);
  
  --purple: #8b5cf6;
  --purple-soft: #f5f3ff;
  --bloom: #ec4899;
  --bloom-soft: #fdf2f8;
  --gold: #f59e0b;
  --gold-soft: #fffbeb;
  --emerald: #10b981;
  --emerald-soft: #ecfdf5;
  --coral: #f43f5e;
  --coral-soft: #fff1f2;
  --sky: #0ea5e9;
  --sky-soft: #f0f9ff;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  --grad-bloom: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
  --grad-dark-cta: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #831843 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(79, 70, 229, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 35px rgba(79, 70, 229, 0.25);
  
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;
  --max-width: 1140px;
  --header-height: 74px;
}

/* Explicit Light Theme (when toggled) */
[data-theme="light"] {
  --bg: #f8fafc;
  --bg-mesh-1: rgba(99, 102, 241, 0.10);
  --bg-mesh-2: rgba(236, 72, 153, 0.08);
  --bg-mesh-3: rgba(14, 165, 233, 0.08);
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-elevated: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(226, 232, 240, 0.9);
  --border-glass: rgba(255, 255, 255, 0.8);
  --text: #0f172a;
  --text-subtle: #64748b;
  --text-muted: #94a3b8;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --primary-glow: rgba(79, 70, 229, 0.28);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.07), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(79, 70, 229, 0.15);
}

/* Dark Theme Variables */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f19;
    --bg-mesh-1: rgba(99, 102, 241, 0.18);
    --bg-mesh-2: rgba(236, 72, 153, 0.14);
    --bg-mesh-3: rgba(14, 165, 233, 0.12);
    --surface: #111827;
    --surface-glass: rgba(17, 24, 39, 0.75);
    --surface-elevated: #1a2234;
    --surface-2: #1e293b;
    --border: rgba(51, 65, 85, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(129, 140, 248, 0.5);
    
    --text: #f8fafc;
    --text-subtle: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-soft: rgba(99, 102, 241, 0.16);
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    --purple-soft: rgba(139, 92, 246, 0.16);
    --bloom-soft: rgba(236, 72, 153, 0.16);
    --gold-soft: rgba(245, 158, 11, 0.16);
    --emerald-soft: rgba(16, 185, 129, 0.16);
    --coral-soft: rgba(244, 63, 94, 0.16);
    --sky-soft: rgba(14, 165, 233, 0.16);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.15);
  }
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-mesh-1: rgba(99, 102, 241, 0.18);
  --bg-mesh-2: rgba(236, 72, 153, 0.14);
  --bg-mesh-3: rgba(14, 165, 233, 0.12);
  --surface: #111827;
  --surface-glass: rgba(17, 24, 39, 0.75);
  --surface-elevated: #1a2234;
  --surface-2: #1e293b;
  --border: rgba(51, 65, 85, 0.6);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(129, 140, 248, 0.5);
  --text: #f8fafc;
  --text-subtle: #94a3b8;
  --text-muted: #64748b;
  --primary: #6366f1;
  --primary-hover: #818cf8;
  --primary-soft: rgba(99, 102, 241, 0.16);
  --primary-glow: rgba(99, 102, 241, 0.4);
  --purple-soft: rgba(139, 92, 246, 0.16);
  --bloom-soft: rgba(236, 72, 153, 0.16);
  --gold-soft: rgba(245, 158, 11, 0.16);
  --emerald-soft: rgba(16, 185, 129, 0.16);
  --coral-soft: rgba(244, 63, 94, 0.16);
  --sky-soft: rgba(14, 165, 233, 0.16);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.6), 0 0 35px rgba(99, 102, 241, 0.15);
}

/* ---------- Global Reset & Body ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modern Ambient Mesh Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  background: 
    radial-gradient(circle 800px at 15% 10%, var(--bg-mesh-1) 0%, transparent 70%),
    radial-gradient(circle 700px at 85% 25%, var(--bg-mesh-2) 0%, transparent 65%),
    radial-gradient(circle 900px at 50% 80%, var(--bg-mesh-3) 0%, transparent 70%);
  transition: opacity 0.3s ease;
}

/* Subtle dot grid overlay for high-tech digital texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 0;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Navigation Bar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Brand Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Nav Links & Controls */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 14.5px;
}

.nav-links a {
  color: var(--text-subtle);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-primary);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-links a:hover::after,
.nav-links a.current::after {
  width: 100%;
}

.nav-links a.current {
  color: var(--primary);
  font-weight: 700;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Nav Quick Action Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: #ffffff;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 780px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
  
  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  }
  
  .nav-links.open {
    max-height: 340px;
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
  }
  
  .nav-links a:hover {
    background: var(--surface-2);
  }
  
  .nav-links a::after {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-full);
  padding: 15px 32px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px var(--primary-glow);
  color: #ffffff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-ghost {
  background: var(--surface-glass);
  color: var(--text);
  border: 1.5px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 84px 72px;
}

.hero-arrows {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-arrows span {
  position: absolute;
  font-size: 26px;
  animation: floatingArrow 8s ease-in-out infinite alternate;
  opacity: 0.25;
  color: var(--primary);
  filter: drop-shadow(0 4px 8px var(--primary-glow));
}

@keyframes floatingArrow {
  0% {
    transform: translateY(0px) rotate(var(--rot, 0deg)) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-20px) rotate(calc(var(--rot, 0deg) + 8deg)) scale(1.1);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-35px) rotate(calc(var(--rot, 0deg) - 6deg)) scale(1);
    opacity: 0.25;
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

/* Hero Content */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-glass);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bloom);
  box-shadow: 0 0 10px var(--bloom);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero h1 .accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.hero p.lead {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--text-subtle);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero Stats Glass Shelf */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 580px;
}

.stat {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0.7;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.stat strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-subtle);
  line-height: 1.2;
}

/* ---------- Realistic Titanium Phone Mockup ---------- */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ambient glow backdrop behind device */
.phone-glow {
  position: absolute;
  width: 320px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.4) 0%,
    rgba(236, 72, 153, 0.25) 45%,
    transparent 70%
  );
  filter: blur(50px);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

/* Phone Frame */
.phone-frame {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: #080b12;
  border-radius: 46px;
  padding: 11px;
  box-shadow: 
    0 25px 60px -15px rgba(15, 23, 42, 0.45),
    0 0 0 1.5px rgba(255, 255, 255, 0.15),
    inset 0 0 0 3px rgba(15, 23, 42, 0.85),
    inset 0 0 0 4.5px rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  animation: phoneFloat 7s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.phone-frame:hover {
  transform: translateY(-8px) scale(1.02) rotate(1deg);
}

@keyframes phoneFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.8deg); }
  100% { transform: translateY(-6px) rotate(-0.5deg); }
}

/* Dynamic Island */
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.phone-notch::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 30%, #090d16 80%);
  box-shadow: inset 0 0 2px rgba(56, 189, 248, 0.6);
}

/* Phone Screen */
.phone-board-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0b1120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 10px 18px;
}

.phone-board {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Glass glare reflection line */
.phone-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 5;
  border-radius: 36px;
}

/* Responsive Hero Layout */
@media (max-width: 920px) {
  .hero {
    padding-block: 48px 48px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-copy {
    align-items: center;
  }
  
  .hero-copy .stat-row {
    margin-inline: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .phone-frame {
    width: min(270px, 72vw);
  }
}

@media (max-width: 520px) {
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ---------- Common Section Architecture ---------- */
.section {
  padding-block: 84px;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 17px;
  color: var(--text-subtle);
  margin: 0;
}

/* ---------- Section: How it blooms (Step cards) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--primary-soft) 0%, transparent 40%);
  opacity: 0.5;
  pointer-events: none;
}

.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-primary);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 8px 20px var(--primary-glow);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-num {
  transform: scale(1.1) rotate(-5deg);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-card p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 820px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Section: Features Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Subtle glowing accent line on card top */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--primary));
  opacity: 0.85;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 22px;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  transform: scale(1.12);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--text-subtle);
  font-size: 15px;
  line-height: 1.62;
}

@media (max-width: 920px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---------- Section: FAQ Accordion ---------- */
.faq-list {
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-focus);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 36px 22px 0;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  position: relative;
  user-select: none;
  transition: color 0.2s ease;
}

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

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  background-color: var(--primary-soft);
}

.faq-item p {
  margin: 0 0 22px;
  color: var(--text-subtle);
  font-size: 15.5px;
  line-height: 1.68;
}

.faq-item a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item a:hover {
  color: var(--primary-hover);
}

/* ---------- High-Impact CTA Band ---------- */
.cta-band {
  background: var(--grad-dark-cta);
  border-radius: 32px;
  padding: 72px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(79, 70, 229, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Ambient glow in CTA */
.cta-band::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}

.cta-band::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.cta-band p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

.cta-band .btn-primary {
  background: #ffffff;
  color: #4338ca;
  font-weight: 800;
  padding: 16px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.5);
}

.cta-band .btn-primary:hover {
  background: #ffffff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  color: #312e81;
}

/* ---------- Site Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 54px 44px;
  margin-top: 80px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-subtle);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---------- Legal & Prose Pages ---------- */
.legal-hero {
  padding-block: 64px 32px;
  text-align: center;
  position: relative;
}

.legal-hero .eyebrow {
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.legal-hero .updated {
  color: var(--text-subtle);
  font-size: 14.5px;
}

.legal-content {
  max-width: 820px;
  margin-inline: auto;
  padding-block: 20px 80px;
}

.legal-content .card {
  background: var(--surface-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.legal-content h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 44px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  scroll-margin-top: calc(var(--header-height) + 30px);
}

.legal-content h2:first-of-type {
  margin-top: 24px;
}

.legal-content h2 .num {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-subtle);
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text);
}

.legal-content a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: var(--primary-hover);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
  padding: 16px;
  background: var(--surface-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.toc a {
  background: var(--surface);
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

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

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 28px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.back-home:hover {
  transform: translateX(-3px);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-arrows span,
  .phone-frame,
  .phone-glow {
    animation: none !important;
  }
  
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
