/* =====================
   TOKENS & RESET
===================== */
:root {
  --bg: #0f0f0f;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --fg: #f0ede8;
  --fg-muted: #7a756d;
  --fg-subtle: #3d3b37;
  --accent: #c9a84c;
  --accent-dim: rgba(201, 168, 76, 0.12);
  --accent-border: rgba(201, 168, 76, 0.25);
  --border: rgba(240, 237, 232, 0.07);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;
  --radius: 4px;
  --radius-lg: 8px;
}

*, *::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);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   TYPOGRAPHY
===================== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

/* =====================
   NAV
===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 15, 15, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
}

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

.hero-gradient-1 {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.hero-gradient-2 {
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle at center, rgba(201, 168, 76, 0.03) 0%, transparent 55%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero-headline {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: var(--space-lg);
  max-width: 820px;
}

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

.hero-lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg-muted);
  max-width: 600px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  max-width: 560px;
}

.hero-stat {}

.hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 120px;
}

/* =====================
   PHILOSOPHY
===================== */
.philosophy {
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border);
}

.philosophy-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.philosophy-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-bottom: var(--space-xl);
}

.philosophy-card {
  background: var(--bg);
  padding: var(--space-lg);
}

.philosophy-num {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.philosophy-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.philosophy-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.philosophy-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--fg-muted);
  border-left: 2px solid var(--accent);
  padding-left: var(--space-lg);
  max-width: 640px;
}

/* =====================
   PIPELINE
===================== */
.pipeline {
  padding: var(--space-2xl) var(--space-lg);
  background: #0c0c0c;
  border-top: 1px solid var(--border);
}

.pipeline-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pipeline-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.pipeline-step {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  background: var(--bg-card);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.pipeline-step:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.pipeline-step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.pipeline-step-body h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xs);
}

.pipeline-step-body p {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* =====================
   PROOF
===================== */
.proof {
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border);
}

.proof-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.proof-heading {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: var(--space-xl);
  max-width: 480px;
}

.proof-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.proof-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.8fr;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.proof-row:last-child { border-bottom: none; }

.proof-row-header {
  background: #111;
  color: var(--fg-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}

.proof-row:not(.proof-row-header) span:last-child {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
}

.proof-row:not(.proof-row-header):nth-child(even) {
  background: rgba(255,255,255,0.01);
}

.proof-callout {
  padding: var(--space-md) var(--space-lg);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.proof-callout p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
}

.proof-formats-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
}

.proof-format-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.proof-format {
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
}

/* =====================
   CLOSING
===================== */
.closing {
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--border);
  background: #0a0a0a;
  overflow: hidden;
}

.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: center;
}

.closing-atmosphere {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
}

.closing-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.03) 60%, transparent 80%);
  border: 1px solid var(--accent-border);
  animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
}

.closing-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* =====================
   FOOTER
===================== */
.footer {
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

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

.footer-copy {
  font-size: 0.72rem;
  color: var(--fg-subtle);
  text-align: right;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-steps {
    grid-template-columns: 1fr 1fr;
  }

  .proof-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .proof-row span:nth-child(3) {
    display: none;
  }

  .closing-inner {
    grid-template-columns: 1fr;
  }

  .closing-atmosphere {
    height: 180px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .pipeline-steps {
    grid-template-columns: 1fr;
  }

  .proof-row {
    grid-template-columns: 1fr 1fr;
  }

  .proof-row span:nth-child(2),
  .proof-row span:nth-child(3) {
    display: none;
  }
}