/* ============================================================
   Anxiety-free Intelligence — Design System
   Mirrors inloop.studio: Inter + Instrument Serif, brand purple
   ============================================================ */

:root {
  /* Brand — inloop.studio purple */
  --brand-500: #7147ff;
  --brand-600: #5a36e6;
  --brand-700: #4427bf;
  --brand-900: #000032;
  --brand-950: #030012;

  /* Neutrals */
  --gray-25:  #fcfcfd;
  --gray-100: #eff1f5;
  --gray-300: #b9c0d4;
  --gray-400: #7d8990;
  --gray-500: #5d6b98;
  --gray-800: #30374f;
  --gray-900: #111322;

  /* Alpha white */
  --white-10: rgba(255,255,255,0.10);
  --white-20: rgba(255,255,255,0.20);
  --white-50: rgba(255,255,255,0.50);
  --white-70: rgba(255,255,255,0.70);
  --white-90: rgba(255,255,255,0.90);

  /* Typography */
  --font-sans:    'Inter', system-ui, sans-serif;
  --font-heading: 'Instrument Serif', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--brand-950);
  color: var(--white-90);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Nav ─────────────────────────────────────────────────────── */
nav {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--white-10);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--white-90);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--white-50);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--white-90); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle purple glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60rem;
  height: 40rem;
  background: radial-gradient(ellipse at center, rgba(113,71,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid rgba(113,71,255,0.35);
  border-radius: 9999px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--brand-500);
}

/* The struck-through "AI" — old meaning crossed out */
.hero-ai-strike em {
  position: relative;
  color: var(--white-30, rgba(255,255,255,0.30));
  font-style: normal;
}

.hero-ai-strike em::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 3px;
  background: var(--brand-500);
  transform: rotate(-4deg);
}

.hero-subhead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--white-70);
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--brand-500);
  color: #ffffff;
  border: 1px solid var(--brand-500);
}

.btn-primary:hover {
  background-color: var(--brand-600);
  border-color: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(113,71,255,0.35);
}

.btn-ghost {
  background-color: transparent;
  color: var(--white-70);
  border: 1px solid var(--white-20);
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: var(--white-50);
  transform: translateY(-1px);
}

/* ── Diagnosis Section ───────────────────────────────────────── */
.section {
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--white-10);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--brand-500);
}

.section-body {
  font-size: 1.0625rem;
  color: var(--white-70);
  line-height: 1.75;
}

.section-body p + p {
  margin-top: 1rem;
}

/* ── Anxiety cards ───────────────────────────────────────────── */
.anxiety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1px;
  background-color: var(--white-10);
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 3rem;
}

.anxiety-card {
  background-color: var(--brand-950);
  padding: 2rem;
  transition: background-color 0.2s;
}

.anxiety-card:hover {
  background-color: rgba(113,71,255,0.06);
}

.anxiety-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.anxiety-card-text {
  font-size: 1rem;
  color: var(--white-70);
  line-height: 1.6;
  font-style: italic;
}

/* ── Truth Section ───────────────────────────────────────────── */
.truth-block {
  background: linear-gradient(135deg, rgba(113,71,255,0.12) 0%, rgba(3,0,18,0) 60%);
  border: 1px solid rgba(113,71,255,0.25);
  border-radius: 1.5rem;
  padding: 4rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.truth-block::after {
  content: '';
  position: absolute;
  bottom: -4rem;
  right: -4rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(113,71,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.truth-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.truth-quote em { color: var(--brand-500); font-style: italic; }

/* ── Stats row ───────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  background: var(--white-10);
  backdrop-filter: blur(8px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--brand-500);
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--white-50);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ── Process ─────────────────────────────────────────────────── */
.process-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 2rem;
  border: 1px solid var(--white-10);
  border-radius: 1rem;
  background: var(--white-10);
  transition: border-color 0.2s;
}

.process-step:hover {
  border-color: rgba(113,71,255,0.35);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--brand-500);
  line-height: 1;
  padding-top: 0.125rem;
}

.step-title {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.375rem;
}

.step-body {
  font-size: 0.9375rem;
  color: var(--white-50);
  line-height: 1.6;
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 7rem 0;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.cta-title em { color: var(--brand-500); font-style: italic; }

.cta-body {
  font-size: 1.125rem;
  color: var(--white-50);
  margin-bottom: 2.5rem;
}

.tagline-statement {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--white-90);
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
}

.cta-attribution {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--white-30, rgba(255,255,255,0.30));
}

.cta-attribution a {
  color: var(--brand-500);
  text-decoration: none;
}

.cta-attribution a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--white-10);
  padding: 2.5rem 0;
}

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--white-30, rgba(255,255,255,0.30));
}

.footer-link {
  font-size: 0.8125rem;
  color: var(--brand-500);
  text-decoration: none;
}

.footer-link:hover { text-decoration: underline; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--white-10), transparent);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .truth-block { padding: 2.5rem 1.75rem; }
  .process-step { grid-template-columns: 1fr; gap: 0.75rem; }
  .step-number { font-size: 1.125rem; }
  footer .container { flex-direction: column; align-items: flex-start; }
}
