:root {
  --lavender-bg: #eeeaf7;
  --lavender-mid: #d8d0f0;
  --indigo: #2d1f6e;
  --indigo-light: #3d2d8a;
  --purple: #6d3ef7;
  --blue: #3B82F6;
  --teal-bg: #d6f0e8;
  --teal: #1a7a5a;
  --salmon-bg: #fde8e0;
  --salmon: #7a2e1a;
  --amber-bg: #fdf0d6;
  --amber: #7a4e0a;
  --pink-bg: #fde0ea;
  --pink: #7a1a3a;
  --white: #ffffff;
  --text: #1e1e2e;
  --muted: #6b6b8a;
  --border: rgba(109,62,247,0.12);
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: #f8f6fc;
  color: var(--text);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 104px;
  background: rgba(248,246,252,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo svg { display: block; width: 360px; height: auto; max-width: 58vw; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--purple);
  color: white !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover { background: var(--indigo) !important; transform: translateY(-1px); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 152px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 30%, rgba(139,92,246,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(59,130,246,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(214,240,232,0.4) 0%, transparent 60%);
}

/* Subtle hex pattern */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 56,17 56,53 30,68 4,53 4,17' fill='none' stroke='rgba(109,62,247,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lavender-bg);
  border: 1px solid var(--lavender-mid);
  color: var(--indigo);
  font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 32px;
  position: relative; z-index: 1;
  animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
  color: var(--indigo);
  max-width: 900px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 300;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 1;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--purple);
  color: white;
  padding: 16px 36px; border-radius: 100px;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(109,62,247,0.3);
}

.btn-primary:hover {
  background: var(--indigo);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(109,62,247,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--indigo);
  padding: 16px 36px; border-radius: 100px;
  font-size: 16px; font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--lavender-mid);
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

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

/* STATS STRIP */
.stats {
  background: var(--indigo);
  padding: 48px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
}

.stat {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: white;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num span { color: #a78bfa; }

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

/* SECTION BASE */
section { padding: 100px 5%; }

.section-tag {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--indigo);
  line-height: 1.1;
  max-width: 600px;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 17px; font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 60px;
}

/* WHAT WE DO */
.what { background: var(--white); }

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.what-card {
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.what-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.what-card.c1 { background: var(--lavender-bg); }
.what-card.c2 { background: var(--teal-bg); }
.what-card.c3 { background: var(--salmon-bg); }
.what-card.c4 { background: var(--amber-bg); }
.what-card.c5 { background: var(--pink-bg); }
.what-card.c6 { background: var(--lavender-bg); }

.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}

.c1 .card-icon { background: var(--lavender-mid); }
.c2 .card-icon { background: rgba(26,122,90,0.2); }
.c3 .card-icon { background: rgba(122,46,26,0.15); }
.c4 .card-icon { background: rgba(122,78,10,0.15); }
.c5 .card-icon { background: rgba(122,26,58,0.15); }
.c6 .card-icon { background: var(--lavender-mid); }

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.c1 .card-title, .c6 .card-title { color: var(--indigo); }
.c2 .card-title { color: var(--teal); }
.c3 .card-title { color: var(--salmon); }
.c4 .card-title { color: var(--amber); }
.c5 .card-title { color: var(--pink); }

.card-body {
  font-size: 15px; font-weight: 300; line-height: 1.7;
  color: var(--muted);
}

/* PROCESS */
.process { background: #f8f6fc; }

.process-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 860px) {
  .process-inner { grid-template-columns: 1fr; gap: 48px; }
}

.process-steps { display: flex; flex-direction: column; gap: 16px; }

.step {
  display: flex; align-items: flex-start; gap: 20px;
  border-radius: var(--radius);
  padding: 28px 28px;
  position: relative;
  transition: transform 0.2s;
}

.step:hover { transform: translateX(4px); }

.step.s1 { background: var(--lavender-bg); }
.step.s2 { background: var(--teal-bg); }
.step.s3 { background: var(--salmon-bg); }
.step.s4 { background: var(--amber-bg); }
.step.s5 { background: var(--pink-bg); }

.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  min-width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-weight: 400;
}

.s1 .step-num { background: var(--lavender-mid); color: var(--indigo); border: 2px solid var(--indigo); }
.s2 .step-num { background: rgba(26,122,90,0.15); color: var(--teal); border: 2px solid var(--teal); }
.s3 .step-num { background: rgba(122,46,26,0.12); color: var(--salmon); border: 2px solid var(--salmon); }
.s4 .step-num { background: rgba(122,78,10,0.12); color: var(--amber); border: 2px solid var(--amber); }
.s5 .step-num { background: rgba(122,26,58,0.12); color: var(--pink); border: 2px solid var(--pink); }

.step-content {}

.step-title {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-bottom: 6px;
}

.s1 .step-title { color: var(--indigo); }
.s2 .step-title { color: var(--teal); }
.s3 .step-title { color: var(--salmon); }
.s4 .step-title { color: var(--amber); }
.s5 .step-title { color: var(--pink); }

.step-desc {
  font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.65;
}

.step-connector {
  width: 2px; height: 16px;
  background: linear-gradient(to bottom, rgba(109,62,247,0.2), rgba(109,62,247,0.05));
  margin-left: 47px;
}

/* WHY PANEL */
.why-panel {
  background: var(--indigo);
  border-radius: var(--radius);
  padding: 56px 48px;
  color: white;
}

.why-panel .section-tag { color: #a78bfa; }
.why-panel .section-title { color: white; }
.why-panel .section-sub { color: rgba(255,255,255,0.6); margin-bottom: 40px; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }

.why-list li {
  display: flex; gap: 16px; align-items: flex-start;
  font-size: 15px; font-weight: 300; line-height: 1.65;
  color: rgba(255,255,255,0.8);
}

.why-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(167,139,250,0.2);
  border: 1px solid rgba(167,139,250,0.4);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-check svg { width: 12px; height: 12px; stroke: #a78bfa; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--indigo) 0%, #1a1060 100%);
  text-align: center;
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 56,17 56,53 30,68 4,53 4,17' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 70px;
}

.cta-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 5vw, 60px);
  color: white;
  margin-bottom: 20px;
  position: relative;
}

.cta-section h2 em { font-style: italic; color: #a78bfa; }

.cta-section p {
  font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 480px; margin: 0 auto 48px;
  line-height: 1.7;
  position: relative;
}

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

.btn-white {
  background: white; color: var(--indigo);
  padding: 16px 40px; border-radius: 100px;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 16px 36px; border-radius: 100px;
  font-size: 16px; font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

/* FOOTER */
footer {
  background: #0f0a2e;
  color: rgba(255,255,255,0.45);
  padding: 60px 5% 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px; font-weight: 300;
  max-width: 320px; line-height: 1.7;
}

.footer-links {
  display: flex; gap: 32px; list-style: none;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-copy { font-size: 13px; margin-top: 40px; grid-column: 1 / -1; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll animations */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (max-width: 640px) {
  nav { padding: 0 4%; height: 88px; }
  .nav-logo svg { width: 260px; max-width: 80vw; }
  .nav-links { display: none; }
  footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; gap: 20px; }
}

/* ===== NAV: tighten before the mobile breakpoint so 5 items fit ===== */
@media (max-width: 1140px) {
  .nav-logo svg { width: 280px; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 14px; }
}

@media (max-width: 900px) {
  .nav-logo svg { width: 240px; }
  .nav-links { gap: 18px; }
}

/* ===== SUBPAGE HERO ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 184px 5% 90px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

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

.page-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5.4vw, 66px);
  line-height: 1.08;
  color: var(--indigo);
  max-width: 880px;
  margin-bottom: 26px;
  animation: fadeUp 0.7s 0.1s ease both;
}

.page-hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .hero-sub { margin-bottom: 0; max-width: 680px; }

.page-hero .hero-badge { animation: fadeUp 0.6s ease both; }

@media (max-width: 640px) {
  .page-hero { padding: 132px 5% 64px; }
}

/* ===== PARADOX / DIAGNOSIS ===== */
.diagnosis { background: var(--white); }

.diagnosis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

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

.diagnosis-card {
  border-radius: var(--radius);
  padding: 40px 36px;
}

.diagnosis-card.symptom { background: var(--lavender-bg); }
.diagnosis-card.cause { background: var(--indigo); }

.diagnosis-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.symptom .diagnosis-label { color: var(--purple); }
.cause .diagnosis-label { color: #a78bfa; }

.diagnosis-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.symptom h3 { color: var(--indigo); }
.cause h3 { color: var(--white); }

.diagnosis-card p {
  font-size: 16px; font-weight: 300; line-height: 1.75;
}

.symptom p { color: var(--muted); }
.cause p { color: rgba(255,255,255,0.72); }

.diagnosis-close {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.45;
  color: var(--indigo);
  max-width: 860px;
  border-left: 3px solid var(--purple);
  padding-left: 28px;
}

.diagnosis-close em {
  font-style: italic;
  color: var(--purple);
}

/* ===== PILLARS ===== */
.pillars { background: #f8f6fc; }

.pillar-stack { display: flex; flex-direction: column; gap: 72px; }

.pillar {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .pillar { grid-template-columns: 1fr; gap: 28px; }
  .pillar-stack { gap: 56px; }
}

.pillar-num {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.pillar h3 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.18;
  color: var(--indigo);
  margin-bottom: 14px;
}

.pillar-insight p {
  font-size: 16px; font-weight: 300; line-height: 1.75;
  color: var(--muted);
}

.pillar-response {
  border-radius: var(--radius);
  padding: 40px 38px;
}

.pillar-response .response-label {
  font-family: 'DM Serif Display', serif;
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 24px;
}

.p1 .pillar-num { background: var(--lavender-mid); color: var(--indigo); border: 2px solid var(--indigo); }
.p2 .pillar-num { background: rgba(26,122,90,0.15); color: var(--teal); border: 2px solid var(--teal); }
.p3 .pillar-num { background: rgba(122,78,10,0.12); color: var(--amber); border: 2px solid var(--amber); }
.p4 .pillar-num { background: rgba(122,26,58,0.12); color: var(--pink); border: 2px solid var(--pink); }

.p1 .pillar-response { background: var(--lavender-bg); }
.p2 .pillar-response { background: var(--teal-bg); }
.p3 .pillar-response { background: var(--amber-bg); }
.p4 .pillar-response { background: var(--pink-bg); }

.p1 .response-label { color: var(--indigo); }
.p2 .response-label { color: var(--teal); }
.p3 .response-label { color: var(--amber); }
.p4 .response-label { color: var(--pink); }

/* Check list for light backgrounds */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }

.check-list li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15.5px; font-weight: 400; line-height: 1.6;
  color: #43435c;
}

.check-mark {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.check-mark svg { width: 11px; height: 11px; fill: none; stroke-width: 2.4; }

.p1 .check-mark { background: var(--lavender-mid); }
.p1 .check-mark svg { stroke: var(--indigo); }
.p2 .check-mark { background: rgba(26,122,90,0.18); }
.p2 .check-mark svg { stroke: var(--teal); }
.p3 .check-mark { background: rgba(122,78,10,0.16); }
.p3 .check-mark svg { stroke: var(--amber); }
.p4 .check-mark { background: rgba(122,26,58,0.14); }
.p4 .check-mark svg { stroke: var(--pink); }

/* ===== HOMEPAGE TEASER BAND ===== */
.insight-band { background: var(--white); padding: 76px 5%; }

.insight-band-inner {
  max-width: 1200px; margin: 0 auto;
  background: var(--lavender-bg);
  border: 1px solid var(--lavender-mid);
  border-radius: var(--radius);
  padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}

.insight-band h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
  color: var(--indigo);
  margin-bottom: 10px;
}

.insight-band h2 em { font-style: italic; color: var(--purple); }

.insight-band p {
  font-size: 16px; font-weight: 300; line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

.insight-band .btn-primary { flex-shrink: 0; white-space: nowrap; }

@media (max-width: 760px) {
  .insight-band-inner { padding: 36px 28px; }
}
