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

:root {
  --ink: #0e0e10;
  --paper: #f5f2ee;
  --cream: #ede9e3;
  --muted: #6b6560;
  --gold: #c9a84c;
  --gold-dim: rgba(201,168,76,0.15);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --pad-x: clamp(24px, 5vw, 64px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAVIGATION === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,242,238,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

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

/* === HERO === */
.hero {
  padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px);
  background: var(--paper);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

.hero-lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 440px;
}

/* === HERO VISUAL === */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-diagram {
  position: relative;
  width: 260px;
  height: 260px;
}

.diagram-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--gold);
}

.diagram-label {
  font-family: var(--serif);
  font-size: 0.7rem;
  color: var(--paper);
  text-align: center;
  line-height: 1.2;
}

.diagram-node {
  position: absolute;
  width: 80px;
  height: 44px;
  background: var(--cream);
  border: 1.5px solid rgba(14,14,16,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--ink);
  font-weight: 500;
  z-index: 1;
}

.node-left  { left: 0;    top: 50%; transform: translateY(-50%); }
.node-right { right: 0;   top: 50%; transform: translateY(-50%); }
.node-top   { top: 0;     left: 50%; transform: translateX(-50%); }
.node-bottom{ bottom: 0;  left: 50%; transform: translateX(-50%); }

.diagram-lines svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* === PROBLEM === */
.problem {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--ink);
  color: var(--paper);
}

.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.problem-overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.problem-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-bottom: 56px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
  background: rgba(245,242,238,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.problem-stat {
  padding: 32px 28px;
  background: rgba(245,242,238,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 0.85rem;
  color: rgba(245,242,238,0.55);
  line-height: 1.5;
}

.problem-body {
  font-size: 1rem;
  color: rgba(245,242,238,0.6);
  max-width: 520px;
  line-height: 1.65;
}

/* === SERVICES === */
.services {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--paper);
}

.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.services-overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.services-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 52px;
}

.services-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(14,14,16,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  padding: 40px 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* === PROCESS === */
.process {
  padding: clamp(64px, 8vw, 100px) 0;
  background: var(--cream);
}

.process-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.process-overline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 20px;
}

.process-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 52px;
}

.process-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--paper);
  border-radius: 10px;
}

.step-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.step-connector {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-connector::after {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  opacity: 0.4;
}

/* === CLOSER === */
.closer {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--ink);
  color: var(--paper);
}

.closer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  text-align: center;
}

.closer-quote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--paper);
  font-style: italic;
  margin-bottom: 20px;
}

.closer-sub {
  font-size: 0.9rem;
  color: rgba(245,242,238,0.5);
}

/* === FOOTER === */
.site-footer {
  padding: 28px 0;
  background: var(--paper);
  border-top: 1px solid var(--cream);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 0.95rem;
}

.footer-sep {
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

/* === NAV DEMO LINK === */
.nav-demo-link {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.nav-demo-link:hover { opacity: 0.75; }

/* === HERO CTA === */
.hero-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.hero-cta:hover { opacity: 0.8; }

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

  .hero-visual {
    order: -1;
  }

  .bot-diagram {
    width: 180px;
    height: 180px;
  }

  .diagram-node {
    width: 58px;
    height: 36px;
    font-size: 0.62rem;
  }

  .diagram-center {
    width: 56px;
    height: 56px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .services-stack {
    grid-template-columns: 1fr;
  }

  .process-steps {
    flex-direction: column;
  }

  .step-connector {
    width: 100%;
    height: 24px;
  }

  .step-connector::after {
    width: 40px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.2rem;
  }

  .problem-headline,
  .services-headline,
  .process-headline {
    font-size: 1.7rem;
  }
}