:root {
  --bg: #faf8f5;
  --bg-alt: #f2efe9;
  --fg: #1a1f2e;
  --fg-muted: #6b7280;
  --fg-light: #9ca3af;
  --accent: #1a1f2e;
  --brass: #c9a96e;
  --brass-light: #e8d5b5;
  --brass-dark: #a8894a;
  --slate: #2d3348;
  --slate-light: #4a5270;
  --border: #e2ddd5;
  --card-bg: #ffffff;
  --radius: 4px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

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

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--fg); }

/* ─── HERO ─── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg-texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(201,169,110,0.04) 60px,
      rgba(201,169,110,0.04) 61px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(201,169,110,0.04) 60px,
      rgba(201,169,110,0.04) 61px
    ),
    linear-gradient(135deg, #faf8f5 0%, #f0ebe0 50%, #e8e0d2 100%);
  z-index: 0;
}

.hero-bg-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(250,248,245,0.95) 0%, rgba(250,248,245,0.6) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 80px 48px;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding-right: 32px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.3;
  max-width: 100px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 32px;
}

/* Hero Visual — Tile Grid */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 48px;
}

.tile-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: rotate(-8deg) scale(0.9);
}

.tile-row {
  display: flex;
  gap: 8px;
}

.tile-cell {
  width: 80px;
  height: 100px;
  border-radius: 3px;
  transition: transform 0.3s ease;
}

.t1 { background: linear-gradient(135deg, #c9a96e, #b8943f); }
.t2 { background: linear-gradient(135deg, #e8d5b5, #d4bfa0); }
.t3 { background: linear-gradient(135deg, #2d3348, #1a1f2e); }
.t4 { background: linear-gradient(135deg, #faf8f5, #e8e0d2); border: 1px solid var(--border); }

.tile-cell:nth-child(odd) { transform: rotate(1deg); }
.tile-cell:nth-child(even) { transform: rotate(-1deg); }

.hero-badge {
  position: absolute;
  bottom: 80px;
  right: 48px;
}

.badge-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: var(--brass);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── SCANNER ─── */
.scanner {
  padding: 120px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.scanner-inner { max-width: 1100px; margin: 0 auto; }

.scanner-label, .features-label, .who-label, .manifesto-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 20px;
}

.scanner-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 72px;
  letter-spacing: -0.01em;
}

.scanner-steps {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
  gap: 0;
}

.step { padding-top: 0; }

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--brass-light);
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--border), var(--brass), var(--border));
  margin-top: 40px;
}

/* Scan mockup */
.scan-mockup {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scan-frame {
  width: 100%;
  height: 100px;
  border: 2px dashed var(--brass-light);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--brass-dark);
}

.scan-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
}

/* Style pills */
.style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--card-bg);
  transition: all 0.2s;
}

.pill.active {
  background: var(--fg);
  color: var(--brass);
  border-color: var(--fg);
}

/* Estimate mock */
.estimate-mock {
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  padding: 20px;
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.estimate-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(250,248,245,0.7);
}

.estimate-row.total {
  border-bottom: none;
  padding-top: 12px;
  font-weight: 600;
  color: var(--brass);
  font-size: 0.95rem;
}

/* ─── FEATURES ─── */
.features {
  padding: 120px 48px;
  background: var(--bg);
}

.features-header {
  max-width: 1100px;
  margin: 0 auto 72px;
}

.features-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.feature-card {
  background: var(--card-bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-alt);
}

.feature-card.large {
  grid-column: span 1;
}

.feature-icon {
  color: var(--brass-dark);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* ─── WHO IT'S FOR ─── */
.who {
  padding: 120px 48px;
  background: var(--fg);
  color: var(--bg);
}

.who-inner { max-width: 1100px; margin: 0 auto; }

.who-label { color: var(--brass); }

.who-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 64px;
  letter-spacing: -0.01em;
  color: var(--bg);
}

.who-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.who-card .who-icon { color: var(--brass); margin-bottom: 20px; }

.who-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--bg);
}

.who-card p {
  font-size: 0.9rem;
  color: rgba(250,248,245,0.55);
  line-height: 1.65;
}

/* ─── MANIFESTO ─── */
.manifesto {
  padding: 120px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.manifesto-inner { max-width: 800px; margin: 0 auto; }

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--fg);
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--brass);
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 48px;
}

.manifesto-rule {
  width: 64px;
  height: 1px;
  background: var(--brass);
  margin-bottom: 24px;
}

.manifesto-signature {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--fg-muted);
}

/* ─── CLOSING ─── */
.closing {
  padding: 120px 48px;
  background: var(--fg);
}

.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--bg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.closing p {
  font-size: 1.05rem;
  color: rgba(250,248,245,0.55);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.footer {
  padding: 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-light);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content { padding: 60px 24px; }

  .hero-visual {
    padding: 40px 24px 80px;
    justify-content: flex-start;
  }

  .tile-grid { transform: rotate(-4deg); }
  .tile-cell { width: 60px; height: 75px; }

  .hero-badge { bottom: 24px; right: 24px; }

  .scanner { padding: 80px 24px; }

  .scanner-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-connector { display: none; }

  .features { padding: 80px 24px; }
  .features-grid { grid-template-columns: 1fr; }

  .who { padding: 80px 24px; }
  .who-cards { grid-template-columns: 1fr; gap: 40px; }

  .manifesto { padding: 80px 24px; }
  .closing { padding: 80px 24px; }
}
