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

:root {
  --bg:           #FDFCF8;
  --bg-warm:      #F7F4ED;
  --surface:      #EFEAE1;
  --fg:           #1A1A1A;
  --fg-muted:     #6B6560;
  --accent:       #C4A55A;
  --accent-light: rgba(196,165,90,0.12);
  --accent-dark:  #8B6F2E;
  --divider:      rgba(196,165,90,0.25);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,252,248,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg);
}

.nav-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ─── Section shared ─────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.18;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 100px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  color: var(--fg-muted);
  line-height: 1.45;
  margin-bottom: 32px;
  font-style: italic;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 440px;
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 360px;
}

.hero-orb {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.18;
}

.orb-ring-1 {
  width: 260px; height: 260px;
  animation: orb-pulse 4s ease-in-out infinite;
}

.orb-ring-2 {
  width: 190px; height: 190px;
  opacity: 0.28;
  animation: orb-pulse 4s ease-in-out infinite 0.6s;
}

.orb-ring-3 {
  width: 120px; height: 120px;
  opacity: 0.4;
  animation: orb-pulse 4s ease-in-out infinite 1.2s;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.18; }
  50%       { transform: scale(1.04); opacity: 0.08; }
}

.orb-core {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--divider);
}

.orb-icon svg {
  width: 40px;
  height: 40px;
}

.orb-label {
  margin-top: 20px;
  text-align: center;
}

.orb-label-text {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Engines ────────────────────────────────────────────────── */
.engines {
  background: var(--bg-warm);
  padding: 100px 40px;
}

.engines-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.engines-header .section-title {
  margin-top: 8px;
}

.engines-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.engine-card {
  background: var(--bg);
  padding: 48px 40px;
  border: 1px solid var(--divider);
  transition: box-shadow 0.3s ease;
}

.engine-card:hover {
  box-shadow: 0 4px 40px rgba(196,165,90,0.08);
}

.engine-card--featured {
  background: var(--fg);
  color: var(--bg);
  position: relative;
}

.engine-card--featured .section-label,
.engine-card--featured .engine-number,
.engine-card--featured .engine-name,
.engine-card--featured .engine-desc,
.engine-card--featured .engine-features li {
  color: var(--bg);
}

.engine-card--featured .engine-desc,
.engine-card--featured .engine-features li {
  opacity: 0.75;
}

.engine-icon-wrap {
  margin-bottom: 24px;
}

.engine-icon {
  width: 40px;
  height: 40px;
}

.engine-number {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.engine-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--fg);
  line-height: 1.2;
}

.engine-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  font-weight: 300;
}

.engine-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.engine-features li {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
}

.engine-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ─── Outcomes ──────────────────────────────────────────────── */
.outcomes {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.outcomes-left .section-title {
  margin-top: 8px;
  margin-bottom: 20px;
}

.outcomes-body {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 48px;
}

.outcome-stat {
  margin-bottom: 28px;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Flow diagram */
.outcomes-right {
  padding-top: 40px;
}

.outcome-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flow-node-inner {
  flex: 1;
  background: var(--bg-warm);
  border: 1px solid var(--divider);
  padding: 20px 24px;
}

.flow-label {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.flow-desc {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.5;
}

.flow-arrow {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.flow-arrow svg {
  width: 100%;
}

.flow-loop {
  margin-top: 16px;
  padding: 12px 24px;
  border: 1px dashed var(--divider);
  text-align: center;
}

.flow-loop-text {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Principles ─────────────────────────────────────────────── */
.principles {
  background: var(--bg-warm);
  padding: 80px 40px;
}

.principles .section-label {
  text-align: center;
  margin-bottom: 48px;
}

.principles-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.principle-number {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.principle-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 12px;
  line-height: 1.25;
}

.principle-body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.75;
  font-weight: 300;
}

/* ─── Closing ────────────────────────────────────────────────── */
.closing {
  padding: 100px 40px 80px;
  text-align: center;
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.1;
}

.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-style: italic;
}

.closing-divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 28px;
}

.closing-tagline {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--divider);
  padding: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--fg);
}

.footer-slug {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.footer-tagline {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid,
  .outcomes-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .engines-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    height: 260px;
  }

  .hero-orb {
    width: 200px;
    height: 200px;
  }

  .orb-ring-1 { width: 200px; height: 200px; }
  .orb-ring-2 { width: 150px; height: 150px; }
  .orb-ring-3 { width: 100px; height: 100px; }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .hero,
  .engines,
  .outcomes,
  .principles,
  .closing {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-inner {
    padding: 16px 24px;
  }

  .footer {
    padding: 32px 24px;
  }

  .engine-card {
    padding: 32px 24px;
  }
}