:root {
  --bg-dark: #070d19;
  --bg-panel: #0f172a;
  --bg-card: #131f35;
  --bg-light: #f8fafc;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-light: #e2e8f0;
  --accent-pool: #0ea5e9;
  --accent-pool-dark: #0284c7;
  --accent-cyan: #22d3ee;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --text-white: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Top AI Pilots Live Demo Switcher Bar */
.demo-Ribbon {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #020617 0%, #0c1930 50%, #020617 100%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.28);
  padding: 0.55rem 1rem;
  backdrop-filter: blur(12px);
}

.demo-Ribbon-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.demo-nav-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.demo-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
  transition: all 0.18s ease;
}

.demo-pill:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.demo-pill.active {
  background: linear-gradient(135deg, var(--accent-pool) 0%, var(--accent-pool-dark) 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.35);
}

/* Main Site Header */
.site-header {
  background: rgba(7, 13, 25, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-row {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.brand-title span {
  color: var(--accent-cyan);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.65rem;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070d19;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.28);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #f8fafc;
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.1);
}

/* Hero Split Grid */
.hero-section {
  padding: 3.5rem 0 4.5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(14, 165, 233, 0.18), transparent 42%),
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.12), transparent 38%),
    linear-gradient(180deg, #070d19 0%, #0b1324 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--accent-cyan);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.hero-h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.45rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.hero-h1 span {
  background: linear-gradient(90deg, #38bdf8, #22d3ee, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: #cbd5e1;
  margin-bottom: 1.6rem;
  max-width: 620px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin: 1.75rem 0;
}

.trust-card {
  background: rgba(19, 31, 53, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
}

.trust-val {
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.trust-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Intake Form Card */
.form-card {
  background: var(--bg-panel);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 1.15rem;
  padding: 1.65rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.form-card-header {
  margin-bottom: 1.15rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

@media (max-width: 560px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.field-group {
  margin-bottom: 0.8rem;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cbd5e1;
  margin-bottom: 0.32rem;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #070d19;
  color: #f8fafc;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.check-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.65rem;
  border-radius: 0.5rem;
  background: #070d19;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  cursor: pointer;
}

.demo-override-box {
  margin: 0.85rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.45);
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0.75rem 0 1rem;
}

/* Sections & Cards */
.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  margin-bottom: 0.6rem;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.15rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
}

.badge-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-cyan);
}

.site-footer {
  background: #040812;
  padding: 3rem 0 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-list a:hover {
  color: var(--accent-cyan);
}

.toast-banner {
  padding: 1rem 1.15rem;
  border-radius: 0.75rem;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #ecfdf5;
  font-size: 0.86rem;
  margin-top: 0.85rem;
}
