/* === TOKENS === */
:root {
  --bg:        #FAF8F5;
  --bg-deep:   #1A2B4A;
  --fg:        #1A2B4A;
  --fg-muted:  #6B7799;
  --accent:    #F5A623;
  --accent-2:  #E8872A;
  --surface:   #FFFFFF;
  --border:    #E8E3DC;

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

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 6rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --max-w: 1160px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem var(--pad);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-cta {
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

/* === HERO === */
.hero {
  padding: var(--space-2xl) var(--pad) var(--space-xl);
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: var(--space-md);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.3;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* === HERO VISUAL === */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 80px;
  padding: 0 var(--space-md);
}
.bar {
  width: 5px;
  background: var(--accent);
  border-radius: 3px;
  opacity: 0.25;
  animation: wave 1.4s ease-in-out infinite;
}
.bar:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.bar:nth-child(2)  { height: 60%; animation-delay: 0.1s; }
.bar:nth-child(3)  { height: 100%; animation-delay: 0.2s; }
.bar:nth-child(4)  { height: 45%; animation-delay: 0.3s; }
.bar:nth-child(5)  { height: 80%; animation-delay: 0.4s; }
.bar:nth-child(6)  { height: 55%; animation-delay: 0.5s; }
.bar:nth-child(7)  { height: 90%; animation-delay: 0.6s; }
.bar:nth-child(8)  { height: 40%; animation-delay: 0.7s; }
.bar:nth-child(9)  { height: 70%; animation-delay: 0.8s; }
.bar:nth-child(10) { height: 50%; animation-delay: 0.9s; }
.bar:nth-child(11) { height: 85%; animation-delay: 1.0s; }
.bar:nth-child(12) { height: 35%; animation-delay: 1.1s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); opacity: 0.25; }
  50%       { transform: scaleY(1);   opacity: 1; }
}

.speech-bubble {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  max-width: 260px;
  box-shadow: 0 4px 24px rgba(26,43,74,0.07);
  position: relative;
}
.b1 { align-self: flex-start; margin-left: 1rem; }
.b2 { align-self: flex-end; margin-right: 1rem; background: #EAF0FF; border-color: #C8D5F5; }
.b3 { align-self: flex-start; margin-left: 2rem; background: var(--bg-deep); color: #FAF8F5; border-color: var(--bg-deep); font-size: 0.85rem; }
.speech-bubble::before {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border: 6px solid transparent;
}
.b1::before { bottom: -12px; left: 20px; border-top-color: var(--border); }
.b2::before { bottom: -12px; right: 20px; border-top-color: #C8D5F5; }
.b3::before { top: -12px; left: 20px; border-bottom-color: var(--bg-deep); }

/* === MANIFESTO === */
.manifesto {
  background: var(--bg-deep);
  color: #FAF8F5;
  padding: var(--space-2xl) var(--pad);
}
.manifesto-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.manifesto-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.5rem;
  min-width: 120px;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #FAF8F5;
}
.manifesto-body {
  margin-top: var(--space-lg);
  font-size: 1.05rem;
  color: #8FA3C8;
  max-width: 620px;
  grid-column: 2;
}

/* === FEATURES === */
.features {
  padding: var(--space-2xl) var(--pad);
  background: var(--bg);
}
.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.features-header {
  margin-bottom: var(--space-xl);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.features-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 540px;
  line-height: 1.2;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === SCENARIOS === */
.scenarios {
  padding: var(--space-2xl) var(--pad);
  background: #F0ECE5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.scenarios-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.scenarios-header {
  margin-bottom: var(--space-xl);
}
.scenarios-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.scenarios-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
}
.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.scenario-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}
.scenario-row:last-child { border-bottom: none; }
.scenario-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.25rem;
}
.scenario-row span {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: var(--space-2xl) var(--pad);
  background: var(--bg-deep);
  text-align: center;
}
.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}
.closing-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #FAF8F5;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.closing-sub {
  font-size: 1.05rem;
  color: #8FA3C8;
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  padding: var(--space-lg) var(--pad);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}
.footer-copy {
  font-size: 0.825rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .hero-visual { display: none; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-md); }
  .stat-divider { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .manifesto-inner { grid-template-columns: 1fr; gap: var(--space-sm); }
  .manifesto-body { grid-column: 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .scenario-row { grid-template-columns: 64px 1fr; gap: var(--space-sm); }
}