/* === TOKENS === */
:root {
  --bg: #FAF7F2;
  --bg-alt: #F0EBE3;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --accent: #E85D2D;
  --accent-warm: #F5A623;
  --forest: #1E3A2F;
  --forest-mid: #2D5240;
  --cream: #FAF7F2;
  --border: rgba(30,58,47,0.15);
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  line-height: 1.1;
  font-weight: 700;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
}

.nav-logo { display: flex; align-items: center; }

.nav-name {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,93,45,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-text { display: flex; flex-direction: column; gap: 24px; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-warm);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--cream);
  letter-spacing: -0.03em;
}

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

.hero-body {
  font-size: 1.1rem;
  color: rgba(250,247,242,0.7);
  max-width: 480px;
  line-height: 1.7;
}

/* Hero Visual - Exchange Ring */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.exchange-ring {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-outer {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1.5px solid rgba(245,166,35,0.2);
  border-radius: 50%;
  animation: spin-slow 30s linear infinite;
}

.ring-outer::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ring-mid {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(232,93,45,0.15);
  border-radius: 50%;
  animation: spin-mid 20s linear infinite reverse;
}

.ring-mid::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes spin-mid {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ring-inner {
  width: 160px;
  height: 160px;
  background: rgba(245,166,35,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245,166,35,0.15);
}

.arrows-svg {
  width: 100%;
  height: 100%;
}

.arrow-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.arrow-path.give { stroke: #F5A623; }
.arrow-path.receive { stroke: #E85D2D; }

.arrow-head { fill: none; stroke-width: 2; stroke-linecap: round; }
.arrow-head.give { stroke: #F5A623; }
.arrow-head.receive { stroke: #E85D2D; }

.arrow-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  fill: rgba(250,247,242,0.5);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ring-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.04) 0%, transparent 70%);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  margin: 64px auto 0;
  width: 100%;
  position: relative;
  z-index: 1;
  padding-top: 48px;
  border-top: 1px solid rgba(250,247,242,0.1);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(250,247,242,0.45);
}

.stat-sep {
  width: 1px;
  height: 48px;
  background: rgba(250,247,242,0.15);
}

/* === LOOP SECTION === */
.loop-section {
  background: var(--cream);
  padding: 120px 48px;
}

.loop-header {
  max-width: 680px;
  margin: 0 auto 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.loop-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--forest);
  letter-spacing: -0.02em;
}

.loop-title em {
  color: var(--accent);
  font-style: italic;
}

.loop-body {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

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

.loop-circle {
  position: relative;
  width: 480px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loop-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 24px rgba(30,58,47,0.06);
  min-width: 130px;
}

.node-give { top: 0; left: 50%; transform: translateX(-50%); border-top: 3px solid var(--accent-warm); }
.node-receive { bottom: 0; left: 50%; transform: translateX(-50%); border-top: 3px solid var(--accent); }

.node-icon { color: var(--forest); }

.node-label {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forest);
}

.node-desc {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.loop-connector {
  position: absolute;
  width: 80px;
  height: 30px;
  top: 50%;
}

.loop-connector.top { left: calc(50% - 40px + 120px); transform: translateY(-50%); }
.loop-connector.bottom { left: calc(50% - 40px - 200px); transform: translateY(-50%); }

.loop-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.center-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

.center-text {
  font-family: 'Fraunces', serif;
  font-size: 0.75rem;
  color: var(--forest);
  text-align: center;
  line-height: 1.3;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === FEATURES === */
.features {
  background: var(--bg);
  padding: 120px 48px;
}

.features-header {
  max-width: 600px;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.features-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--forest);
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
}

.feature-card {
  background: white;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.feature-card:hover { background: #FAFAF8; }

.feature-card:nth-child(2), .feature-card:nth-child(4) { border-left: 1px solid var(--border); }
.feature-card:nth-child(3), .feature-card:nth-child(4) { border-top: none; }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}

.feature-title {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* === PRINCIPLES === */
.principles {
  background: var(--forest);
  padding: 120px 48px;
}

.principles-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.principles-quote blockquote p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
}

.principles-values {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.value-item {
  padding: 32px 0;
  border-bottom: 1px solid rgba(250,247,242,0.1);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: start;
}

.value-item:first-child { border-top: 1px solid rgba(250,247,242,0.1); }

.value-num {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(245,166,35,0.4);
  line-height: 1;
}

.value-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 8px;
}

.value-desc {
  font-size: 0.9rem;
  color: rgba(250,247,242,0.55);
  line-height: 1.65;
}

/* === CLOSING === */
.closing {
  background: var(--accent);
  padding: 120px 48px;
}

.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.closing-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}

/* === FOOTER === */
.footer {
  background: var(--forest);
  padding: 48px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(250,247,242,0.7);
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(250,247,242,0.35);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { order: -1; }
  .exchange-ring { width: 240px; height: 240px; }
  .ring-outer { width: 220px; height: 220px; }
  .ring-mid { width: 160px; height: 160px; }
  .ring-inner { width: 100px; height: 100px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-left: none; }
  .principles-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-sep { display: none; }
  .loop-circle { width: 100%; }
  .nav { padding: 20px 24px; }
  .hero, .loop-section, .features, .principles, .closing { padding: 80px 24px; }
}

@media (max-width: 600px) {
  .closing-headline { font-size: 1.8rem; }
  .footer-inner { flex-direction: column; gap: 12px; }
}

/* === ANIMATIONS === */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text { animation: fade-up 0.8s ease-out; }
.hero-visual { animation: fade-up 0.8s ease-out 0.2s both; }
.hero-stats { animation: fade-up 0.8s ease-out 0.4s both; }
