/* ============================================================
   Top Hat Maintenance — base.css
   Design tokens, reset, typography (Poppins), buttons, utilities
   ============================================================ */

:root {
  /* Brand palette — deep navy & gold */
  --black:      #0a1a2b;   /* base navy */
  --black-2:    #07141f;   /* darker alternating band */
  --surface:    #112436;   /* cards */
  --surface-2:  #14293d;   /* elevated card */
  --gold:       #c79a4e;
  --gold-bright:#e3bd74;
  --gold-deep:  #a67c33;
  --text:       #f2f6fb;   /* cool white */
  --text-dim:   #9fb2c4;   /* muted blue-gray */
  --text-dimmer:#6b7f92;
  --line:       rgba(255,255,255,0.09);
  --line-gold:  rgba(199,154,78,0.24);

  --maxw: 1400px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }
h1 { font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 132px 0; }
.section--tight { padding: 96px 0; }
.section--alt { background: var(--black-2); }
.center { text-align: center; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 22px;
}
.display {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.02;
}
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
.h3 { font-size: 1.3rem; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 300;
  color: var(--text-dim); max-width: 620px; line-height: 1.7;
}
.center .lead { margin-left: auto; margin-right: auto; }
.gold { color: var(--gold); }
.muted { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 500; font-size: 0.98rem; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-gold { background: var(--gold); color: #1a1204; }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gold); padding: 15px 4px; }
.btn-ghost:hover { color: var(--gold-bright); gap: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .section--tight { padding: 64px 0; }
  .container { padding: 0 22px; }
}
