/* =============================================
   STELLARAEGIS — Shared Stylesheet
   Style: current.html (White / Kellogg Purple)
   Content: stellaraegis.html verbiage
   ============================================= */

/* ----- CSS VARIABLES ----- */
:root {
  --purple:          #4E2A84;
  --purple-dark:     #3E216B;
  --purple-light:    #6B3DAF;
  --purple-tint:     #F2EEF9;
  --bg:              #FFFFFF;
  --bg-alt:          #F5F5F7;
  --bg-dark:         #1A1A2E;
  --text-primary:    #1D1D1F;
  --text-secondary:  #555555;
  --text-tertiary:   #888888;
  --border:          #D1D1D1;
  --border-light:    #E8E8E8;
  --shadow-sm:       0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:       0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:       0 8px 32px rgba(0,0,0,0.12);
  --shadow-purple:   0 4px 24px rgba(78,42,132,0.18);
  --radius-sm:       6px;
  --radius-md:       10px;
  --radius-lg:       16px;
  --font:            'Helvetica Neue', Helvetica, Arial, sans-serif;
  --header-height:   80px;
  --container-max:   1200px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-primary);
  background-color: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* Prevent text scaling on orientation change (iOS) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

section[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ----- CONTAINER ----- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- HEADER & NAV ----- */
.site-header {
  background-color: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
}

/* Logo */
.logo {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: -1px;
  line-height: 1;
}

.logo span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

/* Nav CTA button */
.nav-cta {
  background-color: var(--purple);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: background-color 0.25s, transform 0.2s !important;
  border: 2px solid var(--purple);
}

.nav-cta:hover {
  background-color: var(--purple-dark) !important;
  border-color: var(--purple-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 48px; /* touch-friendly minimum */
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.btn-primary:hover {
  background-color: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.btn-outline {
  background-color: transparent;
  color: var(--purple);
  border-color: var(--purple);
}

.btn-outline:hover {
  background-color: var(--purple);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

/* ----- SECTIONS ----- */
.section {
  padding: 100px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-purple {
  background-color: var(--purple);
  color: #fff;
}

.section-center {
  text-align: center;
}

/* Section labels */
.label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}

/* Section titles */
.section-title {
  font-family: var(--font);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.section-title .hl {
  color: var(--purple);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 56px;
  font-weight: 400;
  line-height: 1.75;
}

/* ----- HERO ----- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Subtle purple gradient background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(78,42,132,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 0.82rem;
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-kicker::before,
.hero-kicker::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: var(--purple);
  opacity: 0.4;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero h1 .hl {
  color: var(--purple);
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- PAGE HERO (inner pages) ----- */
.page-hero {
  background-color: var(--bg);
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 0% 50%, rgba(78,42,132,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero .section-title {
  font-size: 3.4rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.page-hero .section-subtitle {
  margin-left: 0;
  margin-bottom: 36px;
  font-size: 1.15rem;
}

/* ----- STATS BAR ----- */
.stats-bar {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stats-bar-inner {
  display: flex;
  justify-content: center;
}

.stat-block {
  flex: 1;
  max-width: 280px;
  padding: 44px 36px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-block:first-child { border-left: 1px solid var(--border); }

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  display: block;
  letter-spacing: -1px;
}

.stat-unit {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 8px;
  display: block;
  line-height: 1.4;
}

/* ----- FEATURE CARDS ----- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  text-align: left;
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background-color: var(--bg);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(78,42,132,0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--purple-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple);
  flex-shrink: 0;
}

.card-icon svg { width: 24px; height: 24px; }

.card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card ul {
  list-style: none;
  margin-top: 10px;
  padding: 0;
}

.card ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

/* ----- AGENT CARDS ----- */
.agent-card {
  background-color: var(--bg);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(78,42,132,0.25);
}

.agent-card.featured {
  border-color: rgba(78,42,132,0.3);
  background: linear-gradient(135deg, var(--purple-tint), var(--bg));
  grid-column: span 2;
}

.agent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: #22C55E;
  flex-shrink: 0;
}

.status-dot.warn { background-color: #F59E0B; }

.status-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #22C55E;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-label.warn { color: #F59E0B; }

.agent-icon-wrap {
  width: 48px; height: 48px;
  background-color: var(--purple-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--purple);
}

.agent-icon-wrap svg { width: 24px; height: 24px; }

.agent-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.agent-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.agent-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.agent-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple);
  background-color: var(--purple-tint);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ----- SPLIT SECTION ----- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-section.reverse .split-visual {
  order: -1;
}

.split-text .section-title {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.split-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.75;
}

.split-text ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.split-text ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.split-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
  font-size: 1.1em;
}

/* ----- STAT CARDS (split visual) ----- */
.stat-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background-color: var(--bg);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.stat-card-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.stat-card-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----- PROCESS STEPS ----- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.step-item {
  background-color: var(--bg);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.step-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.step-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-item:hover::after { transform: scaleX(1); }

.step-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(78,42,132,0.08);
  line-height: 1;
  position: absolute;
  top: 18px; right: 22px;
  letter-spacing: -2px;
}

.step-icon {
  width: 48px; height: 48px;
  background-color: var(--purple-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--purple);
}

.step-icon svg { width: 24px; height: 24px; }

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.step-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----- SOLUTION PREVIEW CARDS ----- */
.solution-card {
  background-color: var(--bg);
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}

.solution-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(78,42,132,0.25); }
.solution-card:hover::before { transform: scaleX(1); }

.solution-card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}

.solution-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.solution-card-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.solution-card:hover .solution-card-link { gap: 10px; }

/* ----- PIPELINE VISUAL ----- */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipe-node {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  padding: 6px 0;
}

.pipe-connector {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, var(--purple), rgba(78,42,132,0.15));
  margin-left: 23px;
}

.pipe-circle {
  width: 48px; height: 48px;
  border: 2px solid rgba(78,42,132,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  flex-shrink: 0;
  color: var(--purple);
  box-shadow: var(--shadow-sm);
}

.pipe-circle.done {
  border-color: #22C55E;
  color: #22C55E;
}

.pipe-circle svg { width: 20px; height: 20px; }

.pipe-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pipe-subtitle {
  font-size: 0.83rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ----- CODE BLOCK ----- */
.code-block {
  background-color: #1A1A2E;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(78,42,132,0.2);
  margin-top: 28px;
  box-shadow: var(--shadow-md);
}

.code-block-header {
  background-color: rgba(78,42,132,0.3);
  padding: 10px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-block-header::before {
  content: '';
  display: flex;
  gap: 5px;
}

.code-block-dots {
  display: flex;
  gap: 5px;
}

.code-block-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.code-block-dot:nth-child(1) { background: #FF5F57; }
.code-block-dot:nth-child(2) { background: #FEBC2E; }
.code-block-dot:nth-child(3) { background: #28C840; }

.code-block pre {
  padding: 24px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
  color: #A0B4C8;
  overflow-x: auto;
}

.code-b { color: #79A8F5; }
.code-g { color: #A5F0C5; }
.code-r { color: #F88A8A; }
.code-w { color: #E8EBF0; }
.code-y { color: #F5D47C; }

/* ----- CTA SECTION ----- */
.cta-section {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  padding: 120px 0;
  text-align: center;
  color: #fff;
}

.cta-section .section-title {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 18px;
}

.cta-section .section-title .hl {
  color: rgba(255,255,255,0.75);
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.cta-section .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.cta-section .btn-outline:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

.cta-section .btn-white {
  background-color: #fff;
  color: var(--purple);
  border-color: #fff;
}

.cta-section .btn-white:hover {
  background-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- CONTACT FORM ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 44px; height: 44px;
  background-color: var(--purple-tint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info-value a {
  color: var(--purple);
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-info-value a:hover { opacity: 0.75; }

.form-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 20px;
}

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

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(78,42,132,0.12);
  background-color: var(--bg);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* ----- FOOTER ----- */
.site-footer {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 240px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li { margin-bottom: 10px; }

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #22C55E;
  font-weight: 500;
}

.footer-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
}

/* ----- SCROLL REVEAL ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- DIVIDER ----- */
.section-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0 auto;
  max-width: var(--container-max);
}

/* ----- RESPONSIVE ----- */

/* ── Tablet wide (≤1024px) ── */
@media (max-width: 1024px) {
  .card-grid-4        { grid-template-columns: repeat(2, 1fr); }
  .footer-inner       { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-section        { padding: 90px 0; }
  .cta-section .section-title { font-size: 2.5rem; }
  .split-text .section-title  { font-size: 2.2rem; }
  .contact-grid       { grid-template-columns: 1fr 1.2fr; gap: 48px; }
}

/* ── Tablet narrow (≤900px) ── */
@media (max-width: 900px) {
  .steps-grid         { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
  .split-section      { grid-template-columns: 1fr; gap: 36px; }
  .split-section.reverse .split-visual { order: 0; }
  .split-text         { text-align: center; }
  .split-text .section-title  { font-size: 2rem; }
  .split-text ul li   { text-align: left; }
  .split-text .btn    { margin: 0 auto; }
  .stat-cards         { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card:hover    { transform: none; }
  .card-grid-2        { grid-template-columns: 1fr; }
  .card-grid-3        { grid-template-columns: repeat(2, 1fr); }
  .stats-bar-inner    { flex-wrap: wrap; }
  .stat-block         { flex: 0 0 50%; max-width: 50%; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stat-block:nth-child(even) { border-right: none; }
  .agent-card.featured{ grid-column: span 1; }
  .contact-grid       { grid-template-columns: 1fr; gap: 48px; }
  .pipeline           { max-width: 400px; margin: 0 auto; }
  .code-block pre     { font-size: 0.78rem; padding: 18px 16px; }
  .section-header     { text-align: center; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Container inner padding */
  .container { padding: 0 20px; }

  /* ── Nav / header ── */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    background-color: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    gap: 0;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-links.open       { display: flex; }
  .nav-links li         { padding: 14px 0; text-align: center; border-bottom: 1px solid var(--border-light); width: 100%; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a          { font-size: 1rem; display: block; padding: 0 24px; }
  .nav-cta              { display: none; }
  .menu-toggle          { display: block; }

  /* ── Hero ── */
  .hero                 { padding: 100px 0 70px; }
  .hero h1              { font-size: 2.4rem; letter-spacing: -1.5px; }
  .hero .subtitle       { font-size: 1rem; max-width: 100%; }
  .hero-actions         { flex-direction: column; align-items: center; gap: 12px; }
  .hero-actions .btn    { width: 100%; max-width: 320px; justify-content: center; }
  .hero-version         { font-size: 0.73rem; }

  /* ── Page hero ── */
  .page-hero            { padding: 90px 0 56px; }
  .page-hero .section-title   { font-size: 2rem; }
  .page-hero .section-subtitle { font-size: 0.97rem; }

  /* ── Sections ── */
  .section              { padding: 64px 0; }
  .section-title        { font-size: 1.9rem; letter-spacing: -0.5px; }
  .section-subtitle     { font-size: 0.97rem; }
  .section-header       { margin-bottom: 36px; }
  .label                { font-size: 0.72rem; }

  /* ── Stats bar ── */
  .stats-bar            { padding: 28px 0; }
  .stats-bar-inner      { flex-wrap: wrap; gap: 0; }
  .stat-block           { flex: 0 0 50%; max-width: 50%; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 16px; text-align: center; }
  .stat-block:nth-child(even) { border-right: none; }
  .stat-block:nth-child(n+3)  { border-bottom: none; }
  .stat-value           { font-size: 2rem; }
  .stat-label           { font-size: 0.78rem; }

  /* ── Cards ── */
  .card-grid, .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .card-grid-4          { grid-template-columns: 1fr; }
  .card                 { padding: 24px 20px; }

  /* ── Agent cards ── */
  .agent-card           { padding: 24px 20px; }
  .agent-card.featured  { grid-column: span 1; }
  .agent-card-grid      { grid-template-columns: 1fr; gap: 16px; }

  /* ── Solution cards ── */
  .solution-card        { padding: 28px 22px; }
  .solution-card-title  { font-size: 1.15rem; }

  /* ── Split sections ── */
  .split-section        { grid-template-columns: 1fr; gap: 32px; }
  .split-text           { text-align: center; }
  .split-text ul li     { text-align: left; }
  .split-text .section-title  { font-size: 1.8rem; }
  .split-section.reverse .split-visual { order: 0; }
  .stat-cards           { grid-template-columns: 1fr; gap: 10px; }

  /* ── Steps ── */
  .steps-grid           { grid-template-columns: 1fr; max-width: 100%; }
  .step-item            { text-align: center; }
  .step-number          { margin: 0 auto 14px; }

  /* ── Pipeline ── */
  .pipeline             { max-width: 100%; }

  /* ── Code block ── */
  .code-block           { margin-top: 20px; }
  .code-block pre       { font-size: 0.75rem; padding: 16px 14px; line-height: 1.75; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── CTA section ── */
  .cta-section          { padding: 72px 0; }
  .cta-section .section-title { font-size: 1.9rem; }
  .cta-section p        { font-size: 1rem; }
  .cta-actions          { flex-direction: column; align-items: center; gap: 12px; }
  .cta-actions .btn     { width: 100%; max-width: 320px; justify-content: center; }

  /* ── Contact ── */
  .contact-grid         { grid-template-columns: 1fr; gap: 40px; }
  .form-card            { padding: 28px 20px; }
  .form-row             { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer-inner         { grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 40px; }
  .footer-brand p       { max-width: 100%; }
  .footer-bottom        { flex-direction: column; gap: 10px; text-align: center; }
}

/* ── Mobile small (≤480px) ── */
@media (max-width: 480px) {
  :root { --header-height: 60px; }

  .container            { padding: 0 16px; }

  .hero                 { padding: 88px 0 60px; }
  .hero h1              { font-size: 2rem; letter-spacing: -1px; line-height: 1.15; }
  .hero .subtitle       { font-size: 0.95rem; }
  .hero-actions .btn    { max-width: 100%; }

  .page-hero            { padding: 80px 0 48px; }
  .page-hero .section-title   { font-size: 1.75rem; }

  .section              { padding: 52px 0; }
  .section-title        { font-size: 1.7rem; }

  .stat-block           { flex: 0 0 50%; }
  .stat-value           { font-size: 1.8rem; }

  .card                 { padding: 20px 16px; }
  .solution-card        { padding: 24px 18px; }

  .split-text .section-title  { font-size: 1.65rem; }
  .cta-section .section-title { font-size: 1.7rem; }

  .form-card            { padding: 24px 16px; }
  .footer-inner         { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p       { max-width: 100%; }

  .code-block pre       { font-size: 0.7rem; padding: 12px; }

  /* Stack the stats bar to a 1-col on very small phones */
  .stat-block           { flex: 0 0 100%; max-width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-block:last-child { border-bottom: none; }
}
