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

:root {
  --bg: #F9F5F0;
  --bg-alt: #F2EDE6;
  --text: #2A1F1A;
  --text-muted: #6B5650;
  --accent: #C9A96E;
  --accent-dark: #A8884E;
  --border: #E4D9CF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
}

/* === NAVIGATION === */
.nav {
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* === HERO === */
.hero {
  padding: 5rem 3rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

.hero-lede {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 460px;
}

/* === HERO VISUAL === */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tree-canvas {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.node {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.node-root { margin-bottom: 0.5rem; }

.node-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 1.2rem;
  background: white;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  text-align: center;
  min-width: 140px;
}

.node-icon {
  color: var(--accent);
  margin-bottom: 0.1rem;
}

.node-icon.small { opacity: 0.7; }

.node-label {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.node-label.small { font-size: 0.82rem; }

.node-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.node-meta.small { font-size: 0.62rem; }

.node-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--border);
  margin-top: 0.25rem;
}

.branch-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.tree-deco {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.deco-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.hero-visual-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

/* === SECTION SHARED === */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text);
  margin-bottom: 3rem;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 5rem 0 4rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.step { position: relative; }

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

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

/* === FEATURES === */
.features {
  padding: 5rem 0 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 3rem;
}

.feature { }

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1rem;
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === PHILOSOPHY === */
.philosophy {
  padding: 5rem 0 4rem;
  background: var(--text);
  color: var(--bg);
}

.philosophy .section-label { color: var(--accent); }
.philosophy .section-headline { color: var(--bg); }

.philosophy-content { max-width: 760px; }

.philosophy-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--bg);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.philosophy-attribution {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.philosophy-body {
  font-size: 0.95rem;
  color: rgba(249,245,240,0.7);
  line-height: 1.75;
}

/* === CLOSING === */
.closing {
  padding: 5rem 0 5rem;
  text-align: center;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.closing-headline em {
  font-style: italic;
  color: var(--accent-dark);
}

.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 2rem 2.5rem;
  }

  .hero-visual { order: -1; }

  .tree-canvas { max-width: 280px; }

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .section-inner { padding: 0 2rem; }
}

@media (max-width: 600px) {
  .nav, .footer { padding: 1rem 1.5rem; }

  .hero { padding: 2.5rem 1.5rem 2rem; }

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

  .how-it-works, .features, .philosophy, .closing {
    padding: 3.5rem 0 3rem;
  }

  .node-row { flex-direction: column; align-items: center; gap: 0.75rem; }

  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}