/* ============================================
   NEGOFI — CSS Design System
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f1a;
  --surface: #17172a;
  --surface-2: #1e1e36;
  --fg: #e8d5b7;
  --fg-muted: #a89b82;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.15);
  --border: rgba(232, 213, 183, 0.12);
}

html { scroll-behavior: smooth; }

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

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 5vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 460px;
  font-weight: 300;
}

/* Negotiation Visualization */
.negotiation-viz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  font-size: 13px;
}
.viz-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 16px;
}
.viz-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.viz-label:nth-child(2) { color: var(--accent); }
.viz-matrix {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.matrix-bar {
  flex: 1;
  height: 36px;
  border-radius: 4px;
  overflow: hidden;
}
.matrix-segment {
  height: 100%;
  width: 100%;
}
.party-a .matrix-segment { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.zone .matrix-segment { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.party-b .matrix-segment { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.viz-labels {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  margin-bottom: 24px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
}
.zopa-label { color: var(--accent); font-size: 9px; }
.viz-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.score-box { background: var(--surface-2); border-radius: 8px; padding: 14px; }
.score-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 6px; }
.score-val { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.score-bar { height: 4px; background: var(--surface); border-radius: 2px; }
.score-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 1s ease; }
.viz-suggestion {
  background: var(--accent-dim);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.suggestion-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.viz-suggestion p { font-size: 12px; color: var(--fg); }
.viz-suggestion strong { color: var(--accent); }

/* ============================================
   BATNA SECTION (The Problem)
   ============================================ */
.batna-section {
  padding: 120px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.batna-inner { max-width: 1280px; margin: 0 auto; }
.batna-tag, .process-tag, .principles-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}
.batna-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 56px;
  max-width: 800px;
  letter-spacing: -0.02em;
}
.batna-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
  padding: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.batna-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--fg-muted);
  max-width: 680px;
}
.batna-body em { color: var(--fg); font-style: normal; }

/* ============================================
   PROCESS
   ============================================ */
.process-section {
  padding: 120px 40px;
  background: var(--bg);
}
.process-inner { max-width: 1280px; margin: 0 auto; }
.process-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 72px;
  letter-spacing: -0.02em;
}
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 40px 40px 40px 0;
}
.step-connector {
  width: 60px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--border));
  margin-top: 52px;
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.step-icon { margin-bottom: 20px; }
.step h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}
.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================
   PRINCIPLES
   ============================================ */
.principles-section {
  padding: 120px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.principles-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.principles-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.principles-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}
.principles-right { display: flex; flex-direction: column; gap: 0; }
.principle-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.principle-card:first-child { border-top: 1px solid var(--border); }
.principle-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 8px;
}
.principle-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.principle-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================
   CLOSING
   ============================================ */
.closing-section {
  padding: 140px 40px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(245,158,11,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.closing-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}
.closing-body {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 300;
}
.closing-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-style: italic;
  color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.footer-meta {
  font-size: 13px;
  color: var(--fg-muted);
  opacity: 0.6;
  margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .negotiation-viz { padding: 24px; }
  .batna-stats { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .stat-number { font-size: 44px; }
  .process-steps { flex-direction: column; gap: 0; }
  .step-connector { width: 2px; height: 40px; margin: 0 0 0 24px; background: linear-gradient(180deg, var(--accent), var(--border)); }
  .step-connector::after { right: auto; left: -4px; top: -6px; }
  .principles-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-headline { font-size: 40px; }
  .batna-headline { font-size: 28px; }
}
@media (max-width: 600px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }
  .batna-section { padding: 80px 20px; }
  .process-section { padding: 80px 20px; }
  .principles-section { padding: 80px 20px; }
  .closing-section { padding: 100px 20px; }
  .footer { padding: 40px 20px; }
}