/* === BASE TOKENS === */
:root {
  --bg: #F5F0E8;
  --bg-2: #EDE8DF;
  --bg-dark: #1C1917;
  --fg: #1C1917;
  --fg-2: #6B6560;
  --accent: #D4824E;
  --accent-2: #B85C32;
  --warm: #E8A87C;
  --cold: #9B8E85;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--fg-2);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* === HERO === */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 5rem 3rem 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.hero-content { max-width: 560px; }
.hero-overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.75rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-body {
  font-size: 1.125rem;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 440px;
}
.hero-visual { position: relative; }

/* Network Visualization */
.network-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
.connections-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.conn {
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.25;
  stroke-dasharray: 4 4;
}
.node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.node-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.node-tl { top: 15%; left: 20%; }
.node-tr { top: 15%; right: 20%; }
.node-bl { bottom: 15%; left: 20%; }
.node-br { bottom: 15%; right: 20%; }
.node-top { top: 5%; left: 50%; transform: translateX(-50%); }
.node-bottom { bottom: 5%; left: 50%; transform: translateX(-50%); }
.node-inner {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(212, 130, 78, 0.4);
}
.node-center .node-inner { width: 24px; height: 24px; box-shadow: 0 0 30px rgba(212, 130, 78, 0.5); }
.node-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 130, 78, 0.15);
  animation: pulse 2.5s ease-out infinite;
}
.node-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.15; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Relationship Cards */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.rel-card {
  background: var(--bg-2);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 10px;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}
.rel-card-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 0.4rem;
}
.rel-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.rel-card-meta {
  font-size: 0.7rem;
  color: var(--fg-2);
  margin-bottom: 0.6rem;
}
.rel-card-bar {
  height: 3px;
  background: rgba(28, 25, 23, 0.1);
  border-radius: 99px;
}
.rel-card-bar-fill { height: 100%; border-radius: 99px; }
.rel-card-warm .rel-card-bar-fill { width: 65%; background: var(--warm); }
.rel-card-cool .rel-card-bar-fill { width: 30%; background: var(--cold); }
.rel-card-hot .rel-card-bar-fill { width: 90%; background: var(--accent); }

/* === PHILOSOPHY === */
.philosophy {
  background: var(--bg-dark);
  padding: 6rem 3rem;
}
.philosophy-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.philosophy-mark {
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.philosophy-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  color: #F5F0E8;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}
.philosophy-body {
  font-size: 1rem;
  color: #9B9790;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.philosophy-body:last-child { margin-bottom: 0; }

/* === HOW IT WORKS === */
.how-it-works {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header { margin-bottom: 3rem; }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--bg-2);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  transition: transform 0.2s ease;
}
.step-card:hover { transform: translateY(-4px); }
.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 1rem;
  font-style: italic;
}
.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.step-body {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.step-visual { min-height: 60px; display: flex; align-items: flex-end; }
.watch-icons {
  display: flex;
  gap: 0.75rem;
}
.watching-icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.warmth-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
}
.wc-bar {
  width: 10px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  opacity: 0.6;
}
.wc-bar:nth-child(1) { opacity: 1; }
.wc-bar:nth-child(3) { opacity: 1; }
.act-list { display: flex; flex-direction: column; gap: 0.6rem; }
.act-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--fg-2);
}
.act-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* === RELATIONSHIP INTELLIGENCE === */
.relationship-intelligence {
  background: var(--bg-2);
  padding: 5rem 3rem;
}
.ri-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ri-content { }
.ri-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 2rem;
}
.ri-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ri-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ri-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(212, 130, 78, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ri-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.ri-feature p {
  font-size: 0.85rem;
  color: var(--fg-2);
  line-height: 1.6;
}

/* Dashboard Visual */
.ri-visual { display: flex; justify-content: center; }
.ri-dashboard {
  background: var(--bg-dark);
  border-radius: 16px;
  padding: 1.75rem;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(28, 25, 23, 0.2);
}
.ri-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.ri-dash-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: #F5F0E8;
}
.ri-dash-date {
  font-size: 0.75rem;
  color: #6B6560;
}
.ri-dash-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}
.score-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}
.score-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.score-label { font-size: 0.7rem; color: #6B6560; letter-spacing: 0.05em; }
.ri-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}
.dash-stat { text-align: center; }
.dash-stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #F5F0E8;
}
.dash-stat-label {
  display: block;
  font-size: 0.65rem;
  color: #6B6560;
  margin-top: 0.2rem;
}
.ri-dash-alerts { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: #9B9790;
}
.dash-alert-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dash-alert-dot.cold { background: var(--cold); }
.dash-alert-dot.warm { background: var(--warm); }

/* === CLOSING === */
.closing {
  padding: 7rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.closing-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.closing-body {
  font-size: 1.1rem;
  color: var(--fg-2);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.closing-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 3rem;
  border-top: 1px solid rgba(28, 25, 23, 0.1);
}
.closing-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.closing-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--fg-2);
  line-height: 1.4;
}

/* === FOOTER === */
.footer {
  background: var(--bg-dark);
  padding: 3rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.footer-name {
  font-weight: 600;
  font-size: 1rem;
  color: #F5F0E8;
}
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: #9B9790;
  margin-bottom: 0.5rem;
}
.footer-copy { font-size: 0.8rem; color: #6B6560; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1.5rem;
  }
  .hero-visual { order: -1; }
  .network-viz { max-width: 360px; margin: 0 auto; }
  .hero-cards { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .ri-inner { grid-template-columns: 1fr; }
  .closing-stats { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .hero-cards { grid-template-columns: 1fr; }
  .philosophy, .how-it-works, .relationship-intelligence, .closing {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}