/* ===== VARIABLES ===== */
:root {
  --bg: #F5F0E8;
  --bg-warm: #EDE6D8;
  --bg-dark: #1C1B18;
  --stone: #2E2B25;
  --text: #1C1B18;
  --text-secondary: #6B6357;
  --text-muted: #9B9285;
  --gold: #C9A96E;
  --gold-light: #E8D5B0;
  --gold-dark: #A07840;
  --cream: #FBF8F3;
  --border: rgba(201,169,110,0.2);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  background: rgba(245,240,232,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--stone);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-arches {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 500px;
  opacity: 0.9;
}

.arch-svg { width: 100%; height: auto; }

.hero-content {
  position: relative;
  max-width: 680px;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--stone);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

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

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 48px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-meta-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--stone);
  line-height: 1;
}

.hero-meta-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 140px;
}

.hero-meta-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== MANIFESTO ===== */
.manifesto {
  background: var(--stone);
  padding: 100px 40px;
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-quote-mark {
  font-family: var(--font-serif);
  font-size: 120px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 24px;
}

.manifesto-text {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  line-height: 1.5;
  margin-bottom: 28px;
}

.manifesto-body {
  font-size: 16px;
  color: rgba(251,248,243,0.6);
  line-height: 1.7;
  max-width: 600px;
}

/* ===== SECTIONS COMMON ===== */
.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--stone);
  letter-spacing: -0.01em;
}

/* ===== PILLARS ===== */
.pillars {
  padding: 100px 40px;
  background: var(--bg);
}

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

.pillars-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar {
  background: var(--bg);
  padding: 40px 36px;
  transition: background 0.3s;
}

.pillar:hover { background: var(--cream); }

.pillar-icon {
  color: var(--gold-dark);
  margin-bottom: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-light);
  border-radius: 8px;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--stone);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ===== VAULT ===== */
.vault {
  padding: 100px 40px;
  background: var(--bg-warm);
}

.vault-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.vault-visual {
  display: flex;
  justify-content: center;
}

.vault-frame {
  width: 100%;
  max-width: 360px;
  background: var(--stone);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(28,27,24,0.15);
}

.vault-frame svg { width: 100%; height: auto; }

.vault-content { }

.vault-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.vault-features {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vault-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vault-feature-check {
  color: var(--gold-dark);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== FAMILY SYNC ===== */
.family {
  padding: 100px 40px;
  background: var(--bg);
}

.family-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.family-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.family-stats {
  margin-top: 32px;
  padding: 24px;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}

.family-stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--stone);
  display: block;
  margin-bottom: 8px;
}

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

.family-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.family-nodes {
  position: relative;
  width: 300px;
  height: 280px;
}

.family-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.family-node-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.family-node-spouse { top: 0; left: 50%; transform: translateX(-50%); }
.family-node-child1 { top: 30%; right: 0; }
.family-node-child2 { bottom: 20%; right: 0; }
.family-node-executor { bottom: 0; left: 50%; transform: translateX(-50%); }

.family-node-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--stone);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  border: 2px solid var(--gold);
}

.family-node-center .family-node-avatar {
  background: var(--gold);
  color: var(--stone);
}

.family-node-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.family-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.family-sync-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.family-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7AB87A;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== POST-LOSS ===== */
.postloss {
  padding: 100px 40px;
  background: var(--stone);
}

.postloss-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.postloss-header {
  max-width: 600px;
  margin-bottom: 64px;
}

.postloss-header .section-eyebrow { color: var(--gold); }

.postloss-header .section-title { color: var(--cream); }

.postloss-intro {
  font-size: 16px;
  color: rgba(251,248,243,0.6);
  line-height: 1.7;
  margin-top: 20px;
}

.postloss-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: rgba(201,169,110,0.1);
}

.postloss-step {
  background: var(--stone);
  padding: 36px 28px;
  border: 1px solid rgba(201,169,110,0.15);
}

.postloss-step-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.postloss-step h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 12px;
}

.postloss-step p {
  font-size: 13px;
  color: rgba(251,248,243,0.55);
  line-height: 1.65;
}

/* ===== CLOSING ===== */
.closing {
  padding: 100px 40px;
  background: var(--bg-warm);
  text-align: center;
}

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

.closing-arch {
  width: 80px;
  margin: 0 auto 32px;
}

.closing-arch svg { width: 100%; height: auto; }

.closing-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--stone);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.closing-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--stone);
  padding: 64px 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(201,169,110,0.1);
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--cream);
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(251,248,243,0.45);
  line-height: 1.6;
  max-width: 220px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(251,248,243,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cream); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  font-size: 12px;
  color: rgba(251,248,243,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .vault-inner, .family-inner { grid-template-columns: 1fr; gap: 48px; }
  .vault-visual { order: -1; }
  .postloss-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 40px; }
}

@media (max-width: 600px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .manifesto, .pillars, .vault, .family, .postloss, .closing { padding: 60px 20px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .postloss-steps { grid-template-columns: 1fr; }
  .hero-meta { flex-direction: column; gap: 24px; align-items: flex-start; }
  .hero-meta-divider { display: none; }
}