/* ═══════════════════════════════════════════════════════════════
   BRAIN STEM AI — Index Page Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ─── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.35;
  filter: brightness(0.6) contrast(1.3);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,13,0.4) 0%, rgba(6,10,13,0.15) 30%, rgba(6,10,13,0.5) 70%, rgba(6,10,13,1) 100%),
    linear-gradient(90deg, rgba(6,10,13,0.92) 0%, rgba(6,10,13,0.25) 50%, rgba(6,10,13,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 6rem 2.5rem 0;
}

.hero-eyebrow { opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title em { font-style: italic; color: var(--cyan-300); }

.hero-subtitle {
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-line { width: 1px; height: 40px; background: var(--border); position: relative; overflow: hidden; }
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 50%;
  background: var(--cyan-400);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── THE PROBLEM ─── */

.problem-section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 2.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.problem-inner { max-width: 900px; margin: 0 auto; }

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: var(--space-lg) 0;
  padding-left: 0;
}

.problem-list li {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 1.75rem;
  position: relative;
}

.problem-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--cyan-500);
}

.punchline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 700px;
  margin: var(--space-xl) auto 0;
  text-align: center;
  position: relative;
  padding-top: var(--space-lg);
}

.punchline::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--cyan-400);
}

.punchline .highlight { color: var(--cyan-300); }

/* ─── AI MATURITY STAGES ─── */

.maturity-stages {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: var(--space-lg) 0;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.maturity-stage { padding: 2rem; position: relative; }
.maturity-stage:not(:last-child) { border-right: 1px solid var(--border-subtle); }
.maturity-stage--1 { background: var(--surface); }
.maturity-stage--2 { background: var(--surface-raised); }
.maturity-stage--3 { background: rgba(0, 212, 170, 0.04); }

.maturity-stage-number { font-family: var(--font-display); font-size: 2rem; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.maturity-stage--3 .maturity-stage-number { color: var(--cyan-600); }
.maturity-stage-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.5rem; }
.maturity-stage-desc { font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: var(--text-secondary); margin-bottom: 0.75rem; }
.maturity-stage-metric { font-size: 0.8125rem; font-weight: 500; color: var(--text-dim); }
.maturity-stage--3 .maturity-stage-metric { color: var(--cyan-500); }

.maturity-note { font-size: 1rem; font-weight: 300; color: var(--text-secondary); text-align: center; margin-top: var(--space-md); }
.maturity-note strong { color: var(--text-primary); font-weight: 500; }

/* ─── THE SHIFT ─── */

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--space-xl);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.shift-col { padding: 2.5rem; }
.shift-col--old { background: var(--surface); border-right: 1px solid var(--border-subtle); }
.shift-col--new { background: rgba(0, 212, 170, 0.03); }

.shift-col-label { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-md); }
.shift-col--old .shift-col-label { color: var(--text-dim); }
.shift-col--new .shift-col-label { color: var(--cyan-400); }

.shift-items { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.shift-items li { font-size: 0.9375rem; font-weight: 300; line-height: 1.6; padding-left: 1.25rem; position: relative; }
.shift-col--old .shift-items li { color: var(--text-dim); }
.shift-col--old .shift-items li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border: 1px solid var(--border); border-radius: 1px; }
.shift-col--new .shift-items li { color: var(--text-secondary); }
.shift-col--new .shift-items li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--cyan-500); border-radius: 1px; }

.shift-anchor {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--text-primary);
  text-align: center;
  margin-top: var(--space-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── THE PLATFORM ─── */

.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: var(--space-xl); }

.capability-card {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.capability-card.capability-featured {
  grid-column: 1 / -1;
  border-color: var(--border);
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 212, 170, 0.05) 0%, transparent 50%), var(--surface);
}

.capability-card:hover { border-color: var(--border); background: var(--surface-raised); transform: translateY(-2px); }
.capability-number { font-family: var(--font-display); font-size: 2.5rem; color: var(--border); line-height: 1; margin-bottom: 1.25rem; transition: color 0.3s ease; }
.capability-card:hover .capability-number { color: var(--cyan-600); }
.capability-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.75rem; }
.capability-text { font-size: 0.9375rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); }
.capability-featured .capability-title { font-size: 1.5rem; }
.capability-featured .capability-text { max-width: 700px; }
.capability-featured-note { font-size: 0.8125rem; font-weight: 400; font-style: italic; color: var(--text-dim); margin-top: 1rem; }

.platform-close {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
  text-align: center;
  margin-top: var(--space-xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.section-diagram { max-width: 640px; margin: var(--space-xl) auto 0; }

/* ─── HUMAN OUTCOME ─── */

.human-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; margin-bottom: var(--space-xl); }

.human-section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 2.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 40%, rgba(200, 169, 110, 0.04) 0%, transparent 60%), var(--void);
}

.human-inner { max-width: 1100px; margin: 0 auto; }
.human-section .section-label { justify-content: center; }
.human-section .section-heading { margin-bottom: var(--space-lg); text-align: center; }
.human-section .section-label { text-align: center; }

.human-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--space-xl);
  text-align: left;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.human-list li { font-size: 1.0625rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); padding-left: 1.75rem; position: relative; }
.human-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0.5; }

.human-anchor {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  padding-top: var(--space-lg);
}

.human-anchor::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 1px;
  background: var(--gold);
}

.impact-diagram { max-width: 560px; margin: var(--space-xl) auto 0; }

/* ─── CONTINUOUS EVOLUTION ─── */

.evolution-section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 2.5rem;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 170, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(200, 169, 110, 0.03) 0%, transparent 50%),
    var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.evolution-inner { max-width: 1200px; margin: 0 auto; }
.evolution-hero { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; margin-bottom: var(--space-xl); }
.evolution-narrative { display: flex; flex-direction: column; gap: 0; }

.evolution-intro { font-size: 1.0625rem; font-weight: 300; line-height: 1.75; color: var(--text-secondary); margin-bottom: var(--space-md); }

.evolution-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-bottom: var(--space-xl); }

.evolution-card {
  padding: 2rem;
  background: rgba(6, 10, 13, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.35s ease;
}

.evolution-card:hover { border-color: var(--border); background: rgba(6, 10, 13, 0.8); }

.evolution-card-icon {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--cyan-400);
}

.evolution-card-icon svg { width: 20px; height: 20px; }
.evolution-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.625rem; }
.evolution-card-text { font-size: 0.875rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); }

.evolution-contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  padding: 2rem;
  background: rgba(6, 10, 13, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
}

.evolution-contrast-side { text-align: center; }
.evolution-contrast-label { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.75rem; }
.evolution-contrast-old .evolution-contrast-label { color: var(--text-dim); }
.evolution-contrast-new .evolution-contrast-label { color: var(--cyan-400); }
.evolution-contrast-text { font-family: var(--font-display); font-size: 1.125rem; line-height: 1.4; }
.evolution-contrast-old .evolution-contrast-text { color: var(--text-dim); }
.evolution-contrast-new .evolution-contrast-text { color: var(--text-primary); }
.evolution-contrast-arrow { color: var(--cyan-500); font-size: 1.5rem; opacity: 0.6; }

.evolution-anchor {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--text-primary);
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

/* ─── NOT A WRAPPER ─── */

.comparison-section {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 2.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-inner { max-width: 1100px; margin: 0 auto; }
.comparison-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }

.comparison-table { width: 100%; border-collapse: collapse; }

.comparison-table thead th {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.25rem 2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th:first-child { color: var(--text-dim); }
.comparison-table thead th:last-child { color: var(--cyan-400); }

.comparison-table tbody td {
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.comparison-table tbody td:first-child { color: var(--text-dim); width: 50%; }
.comparison-table tbody td:last-child { color: var(--text-secondary); }
.comparison-table tbody tr:last-child td { border-bottom: none; }

.comparison-punchline {
  font-size: 1.0625rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 700px;
  margin: var(--space-xl) auto 0;
  text-align: center;
}

/* ─── WHY EVERYTHING ELSE FAILS ─── */

.fails-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin-top: var(--space-xl); }

.fails-card { padding: 2rem; background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 8px; }
.fails-card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; color: var(--text-primary); margin-bottom: 1rem; }
.fails-card-list { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.fails-card-list li { font-size: 0.875rem; font-weight: 300; line-height: 1.6; color: var(--text-dim); padding-left: 1.25rem; position: relative; }
.fails-card-list li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 1px; background: var(--text-dim); }

/* ─── COMMERCIAL IMPACT ─── */

.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: var(--space-xl); }

.impact-card {
  padding: 2.5rem 2rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.impact-card:hover { border-color: var(--border); background: var(--surface); }
.impact-icon { font-family: var(--font-display); font-size: 3rem; color: var(--cyan-300); line-height: 1; margin-bottom: 1.5rem; }
.impact-title { font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.75rem; }
.impact-text { font-size: 0.9375rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); }
.impact-close { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--text-secondary); text-align: center; margin-top: var(--space-xl); }

/* ─── ICP QUALIFIER ─── */

.icp-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: var(--space-lg);
}

.icp-list li {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  position: relative;
  transition: border-color 0.3s ease;
}

.icp-list li:hover { border-color: var(--border); }

.icp-list li::before {
  content: '';
  position: absolute;
  left: 1.25rem; top: 1.55rem;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* ─── SERVICES ─── */

.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: var(--space-xl); }

.service-card {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover { border-color: var(--border); background: var(--surface-raised); transform: translateY(-2px); }
.service-card.service-featured { grid-column: 1 / -1; }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--cyan-400);
}

.service-icon svg { width: 22px; height: 22px; }
.service-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--text-primary); margin-bottom: 0.75rem; }
.service-text { font-size: 0.9375rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); }

.service-hook {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-hook strong { color: var(--cyan-400); font-weight: 500; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cyan-400);
  transition: all 0.25s ease;
}

.service-cta:hover { color: var(--cyan-200); }
.service-cta svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.service-cta:hover svg { transform: translateX(3px); }

/* ─── UTILITY CLASSES ─── */

.section-description--close { margin-top: -2rem; }
.evolution-heading-spaced { margin-bottom: var(--space-lg); }
.comparison-heading-spaced { margin-bottom: var(--space-xl); }
.evolution-intro--left { text-align: left; max-width: 100%; margin-top: var(--space-md); }
.impact-icon--horizon { font-size: 1.75rem; }
.impact-text--spaced { margin-bottom: 0.75rem; }
.impact-metric { font-size: 0.8125rem; color: var(--cyan-500); font-weight: 500; }
.icp-close { text-align: center; font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--text-secondary); margin-top: var(--space-lg); }

/* ─── RESPONSIVE ─── */

@media (max-width: 1024px) {
  .maturity-stages { grid-template-columns: 1fr; }
  .maturity-stage:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .shift-grid { grid-template-columns: 1fr; }
  .shift-col--old { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .capability-grid, .impact-grid, .icp-list, .services-grid, .fails-grid { grid-template-columns: 1fr; }
  .service-card.service-featured { grid-column: auto; }
  .comparison-layout { grid-template-columns: 1fr; }
  .comparison-table thead th, .comparison-table tbody td { padding: 1rem 1.25rem; }
  .human-layout, .evolution-hero, .evolution-grid { grid-template-columns: 1fr; }
  .evolution-contrast { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
  .evolution-contrast-arrow { transform: rotate(90deg); }
}

.punchline--inline {
  padding-top: 0;
  text-align: left;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-content { padding: 5rem 1.25rem 0; }
  .problem-section, .comparison-section, .human-section { padding: var(--space-2xl) 1.25rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .comparison-table { font-size: 0.8125rem; }
  .comparison-table thead th, .comparison-table tbody td { padding: 0.75rem 1rem; }
}
