:root {
  --bg: #F8F6F0;
  --fg: #1C1C1C;
  --muted: #7A7A7A;
  --accent: #D4870C;
  --accent-light: #F5E6CC;
  --surface: #EDEAE3;
  --border: #D8D4CC;
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  padding: 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
}

/* HERO */
.hero {
  padding: 6rem 3rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner {
  max-width: 860px;
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 3.5rem;
}

/* STAT CARDS */
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  min-width: 160px;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

/* GRAPH */
.hero-graph {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  max-width: 520px;
}
.graph-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.graph-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 120px;
  padding-bottom: 4px;
}
.bar {
  flex: 1;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: opacity 0.2s;
  min-height: 12px;
}
.bar span {
  display: none;
}
.graph-xaxis {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* SECTIONS */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 3rem;
}

/* MODEL */
.model {
  padding: 5rem 3rem;
  border-top: 1px solid var(--border);
}
.model-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.model-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.step {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.step-num {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.model-formula {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--accent-light);
}
.formula {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* WHY */
.why {
  padding: 5rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.why-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.why-card {
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.why-icon {
  color: var(--accent);
  margin-bottom: 1rem;
}
.why-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* PORTFOLIO */
.portfolio {
  padding: 5rem 3rem;
  border-top: 1px solid var(--border);
}
.portfolio-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.table-header,
.table-row,
.table-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 0.8fr 1fr 1.2fr;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  align-items: center;
}
.table-header {
  background: var(--fg);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.table-row {
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}
.site-name {
  font-weight: 500;
  font-size: 0.9rem;
}
.rev {
  color: var(--accent);
  font-weight: 500;
}
.table-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
}
.total {
  color: var(--fg);
}
.portfolio-note {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 640px;
}

/* CLOSING */
.closing {
  padding: 6rem 3rem 7rem;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.closing-body {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 3rem;
}
.closing-rule {
  width: 80px;
  height: 2px;
  background: var(--accent);
}

/* FOOTER */
.footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.footer-meta {
  font-size: 0.75rem;
  color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-tagline { display: none; }
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-stats { gap: 1rem; }
  .stat-card { min-width: 130px; }
  .model, .why, .portfolio { padding: 3rem 1.5rem; }
  .closing { padding: 4rem 1.5rem 5rem; }
  .table-header, .table-row, .table-footer {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.78rem;
    padding: 0.7rem 1rem;
  }
  .table-header span:nth-child(4),
  .table-header span:nth-child(6),
  .table-row span:nth-child(4),
  .table-row span:nth-child(6) {
    display: none;
  }
  .footer-inner { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.2rem; }
  .stat-card { min-width: 100%; }
  .model-steps { grid-template-columns: 1fr; }
}
