/* ==========================================================================
   PATROVIX — Design System & Site Styles
   "The Sentinel Aesthetic" — Patrovix Obsidian
   ==========================================================================
   Colors:
     --bg:           #0e0e13  (base surface)
     --bg-low:       #131319  (section alternates)
     --bg-card:      #19191f  (cards)
     --bg-card-hi:   #1f1f26  (elevated cards)
     --bg-card-top:  #25252d  (top-level cards)
     --primary:      #a3a6ff  (indigo light — text/icons)
     --primary-btn:  #6366f1  (indigo — buttons, accents)
     --primary-dim:  #6063ee
     --text:         #f9f5fd  (on-background)
     --text-muted:   #acaab1  (on-surface-variant)
     --outline:      #48474d  (borders)
   ========================================================================== */

/* ── Custom Properties ─────────────────────────────────────────────────── */
:root {
  --bg:          #0e0e13;
  --bg-low:      #131319;
  --bg-card:     #19191f;
  --bg-card-hi:  #1f1f26;
  --bg-card-top: #25252d;
  --primary:     #a3a6ff;
  --primary-btn: #6366f1;
  --primary-dim: #6063ee;
  --text:        #f9f5fd;
  --text-muted:  #acaab1;
  --outline:     rgba(172, 170, 177, 0.15);
  --outline-vis: #48474d;
  --success:     #4ade80;
  --warning:     #facc15;
  --danger:      #f87171;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-pill: 9999px;

  --shadow-glow: 0 20px 60px rgba(99, 102, 241, 0.14);
  --shadow-glow-strong: 0 0 40px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);

  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout Utilities ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 6rem; }
.section-alt { background-color: var(--bg-low); }

.d-flex { display: flex; }
.d-grid { display: grid; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.w-full { width: 100%; }

/* ── Typography ────────────────────────────────────────────────────────── */
.display-xl { font-size: clamp(2.5rem, 5vw, 4rem); }
.display-lg { font-size: clamp(2rem, 4vw, 3rem); }
.display-md { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.display-sm { font-size: clamp(1.25rem, 2vw, 1.75rem); }

.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.text-lead  { font-size: 1.125rem; line-height: 1.7; color: var(--text-muted); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-btn), var(--primary-dim));
  color: #fff;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--outline-vis);
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
  opacity: 1;
}

.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ── Badge ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(163, 166, 255, 0.12);
  color: var(--primary);
  border: 1px solid rgba(163, 166, 255, 0.25);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ── Glass Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card-glass {
  background: rgba(25, 25, 31, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(172, 170, 177, 0.12);
  box-shadow: inset 0.5px 0.5px 0 rgba(172, 170, 177, 0.08),
              var(--shadow-card);
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(14, 14, 19, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--outline);
  padding: 0.75rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.navbar-brand svg { flex-shrink: 0; }
.navbar-brand:hover { opacity: 1; }

.navbar-brand .brand-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-btn);
  box-shadow: 0 0 8px rgba(99,102,241,0.8);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-card);
  opacity: 1;
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu — hidden on desktop by default */
.mobile-menu { display: none; }

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Rotating Text Animation ───────────────────────────────────────────── */
.text-rotating-wrapper {
  display: inline-flex;
  overflow: hidden;
  height: 1.25em; /* Match exact height of one line */
  vertical-align: bottom;
  position: relative;
}

.text-rotating-track {
  display: block; /* use block so items stack vertically automatically */
  animation: slideTrack 15s cubic-bezier(0.8, 0, 0.2, 1) infinite;
}

.text-rotating-item {
  display: block;
  line-height: 1.25em;
  height: 1.25em;
  white-space: nowrap;
  
  /* Apply elegant neon gradient to items */
  background: linear-gradient(135deg, #a3a6ff 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.1em;
  font-weight: 700;
}

/* 6 items total (5 unique + 1 duplicate at end for seamless loop) */
@keyframes slideTrack {
  0%, 15%   { transform: translateY(0); }
  20%, 35%  { transform: translateY(-1.25em); }
  40%, 55%  { transform: translateY(-2.5em); }
  60%, 75%  { transform: translateY(-3.75em); }
  80%, 95%  { transform: translateY(-5em); }
  100%      { transform: translateY(-6.25em); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Dashboard Card (Hero Right) ───────────────────────────────────────── */
.dashboard-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: rgba(19, 19, 25, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(163, 166, 255, 0.15);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.1), var(--shadow-card);
}

.dashboard-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.dashboard-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  margin-top: 0.2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.metric {
  background: var(--bg-card-top);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  border: 1px solid var(--outline);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.2rem;
  letter-spacing: -0.03em;
}

.metric-trend {
  font-size: 0.75rem;
  margin-top: 0.15rem;
  font-family: 'Inter', sans-serif;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-btn);
  box-shadow: 0 0 6px rgba(99,102,241,0.8);
  margin-right: 0.3rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(99,102,241,0.8); }
  50% { box-shadow: 0 0 12px rgba(99,102,241,1); }
}

/* ── Trust points ──────────────────────────────────────────────────────── */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-btn);
  flex-shrink: 0;
}

/* ── Feature Grid Cards ─────────────────────────────────────────────────  */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.bullet-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullet-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-btn);
  flex-shrink: 0;
}

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}
.step:hover { box-shadow: var(--shadow-glow); }

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-btn), var(--primary-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 12px rgba(99,102,241,0.4);
}

/* ── Callout Card ──────────────────────────────────────────────────────── */
.callout {
  background: var(--bg-card);
  border: 1px solid rgba(163,166,255,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
}

/* ── Security Pills ────────────────────────────────────────────────────── */
.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pill-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: 'Inter', sans-serif;
}

.pill-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

/* ── Accordion / FAQ ───────────────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item > summary {
  list-style: none; /* remove default arrow */
}
.accordion-item > summary::-webkit-details-marker {
  display: none; /* remove safari arrow */
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.accordion-btn:hover { background: var(--bg-card-hi); }

.accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--outline-vis);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
details[open] > .accordion-btn .accordion-icon { 
  transform: rotate(45deg); 
  background: var(--primary-btn); 
  border-color: var(--primary-btn); 
}

.accordion-body {
  padding: 0;
}
details[open] .accordion-body {
  animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 1; transform: translateY(0); }
}

.accordion-body-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
/* Stack of form fields with consistent vertical gap — prevents
   textarea + button overlap by using block layout with explicit gap */
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1c1c28;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control::placeholder { color: rgba(172, 170, 177, 0.45); }
.form-control:focus,
.form-select:focus {
  background: #20202e;
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23acaab1' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: #1c1c28;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Explicit min-height prevents textarea collapsing into the button below it */
textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Contact card */
.contact-card {
  background: #17171e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-card);
}

/* Pricing cards */
.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(25, 25, 31, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

/* Featured / Most Popular pricing card */
.pricing-card-featured {
  position: relative;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.07);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), var(--shadow-glow-strong), var(--shadow-card);
  transform: translateY(-6px);
}
.pricing-card-featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5), var(--shadow-glow-strong), 0 8px 48px rgba(0,0,0,0.6);
}

/* The glowing indigo top stripe */
.pricing-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-btn), #818cf8, var(--primary-dim));
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.7);
}

/* ── Section Heading block ─────────────────────────────────────────────── */
.section-heading {
  max-width: 640px;
}
.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

/* ── Pricing Cards ─────────────────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(118, 116, 123, 0.15); /* Ghost border */
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.pricing-card-featured {
  background: rgba(31, 31, 38, 0.8); /* surface-container-high */
  border: 1px solid var(--primary-dim);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

@media (min-width: 1024px) {
  .pricing-card-featured {
    transform: scale(1.04);
    z-index: 2;
  }
  .pricing-card-featured:hover {
    transform: scale(1.06);
  }
}

.pricing-card:hover:not(.pricing-card-featured) {
  transform: translateY(-4px);
  background: rgba(31, 31, 38, 0.6);
}

/* ── Layout Grids ──────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-slim {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: start;
}

/* ── 4-col grid ────────────────────────────────────────────────────────── */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── 3-col grid ────────────────────────────────────────────────────────── */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Interest / Waitlist ───────────────────────────────────────────────── */
.waitlist-card {
  background: var(--bg-card);
  border: 1px solid rgba(163,166,255,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 460px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;  /* matches .form-stack gap — important for button separation */
  margin-top: 1.25rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-low);
  border-top: 1px solid var(--outline);
  padding-block: 3rem;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); opacity: 1; }

/* ── CTA Section ───────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(96,99,238,0.04));
  border: 1px solid rgba(163,166,255,0.15);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
}

/* ── Mission callout ───────────────────────────────────────────────────── */
.mission-card {
  background: var(--bg-card);
  border-left: 3px solid var(--primary-btn);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.75rem;
  box-shadow: var(--shadow-glow);
}

/* ── Stat bar ──────────────────────────────────────────────────────────── */
.stat-bar {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); }

/* ── Value list ────────────────────────────────────────────────────────── */
.value-list { display: flex; flex-direction: column; gap: 1.5rem; }
.value-item strong { color: var(--text); display: block; margin-bottom: 0.25rem; }
.value-item { font-size: 0.9rem; color: var(--text-muted); }

/* ── Divider ───────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--outline); margin-block: 1.5rem; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .four-col { grid-template-columns: 1fr 1fr; }
  
  .hero-grid,
  .two-col,
  .two-col-slim { grid-template-columns: 1fr; gap: 3rem; }

  .hero-grid .dashboard-card { order: -1; }
}

@media (max-width: 768px) {
  .section { padding-block: 4rem; }

  .feature-grid,
  .three-col,
  .four-col { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }

  .pill-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .nav-links,
  .nav-actions { display: none; }

  .nav-toggle { display: flex; }

  .mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    background: var(--bg-low);
    border-left: 1px solid var(--outline);
    padding: 5rem 1.5rem 2rem;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 99;
    display: flex;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu .nav-link { padding: 0.75rem 0; border-radius: 0; border-bottom: 1px solid var(--outline); }
  .mobile-menu .btn { margin-top: 1rem; }

  .cta-section { padding: 2.5rem 1.5rem; }

  .footer-grid { flex-direction: column; align-items: flex-start; }

  .stat-bar { gap: 1.5rem; }

  .waitlist-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .display-xl { font-size: 1.6rem; }
  .display-lg { font-size: 1.5rem; }
  .text-lead { font-size: 1rem; }
  .hero { min-height: auto; padding-top: 6rem; padding-bottom: 3rem; }
  .trust-row { gap: 0.75rem; }
}

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in { animation: fadeInUp 0.5s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── Alert / Notice ────────────────────────────────────────────────────── */
.form-notice {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: none;
}
.form-notice.success { background: rgba(74, 222, 128, 0.1); color: var(--success); border: 1px solid rgba(74,222,128,0.2); display: block; }
.form-notice.error   { background: rgba(248, 113, 113, 0.1); color: var(--danger); border: 1px solid rgba(248,113,113,0.2); display: block; }

/* ── Gradient variable ─────────────────────────────────────────────────── */
:root {
  --grad-primary: linear-gradient(135deg, var(--primary-btn), var(--primary-dim));
}

/* ── Feature list (detailed page lists) ─────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.feature-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-btn);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* ── Reverse two-col (image/card left, text right) ──────────────────────── */
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child  { order: 1; }
@media (max-width: 768px) {
  .two-col.reverse > * { order: unset; }
}

/* ── Padding helpers ────────────────────────────────────────────────────── */
.p-3  { padding: 0.75rem; }
.p-4  { padding: 1rem; }
.p-5  { padding: 1.25rem; }
.p-6  { padding: 1.5rem; }

/* ── Misc text helpers ──────────────────────────────────────────────────── */
.text-left  { text-align: left; }
.text-right { text-align: right; }
.gap-5 { gap: 1.25rem; }