/* EMPIRE — empirely.cliftonai.co
   Old-money luxe: racing-green charcoal, champagne gold, cream.
   Mirrors src/theme/tokens.ts. */

:root {
  --bg: #0C120D;
  --bg2: #121A14;
  --card: #1B241D;
  --card2: #242F25;
  --gold: #D4B26A;
  --gold2: #A5813C;
  --oxblood: #9E3B32;
  --green: #4E9B6F;
  --cream: #F2EDDD;
  --stone: #A8A48F;
  --olive: #5C5F50;
  --plum: #9C7FB8;
  --border: #33402F;
  --pos: #8FD3A9;
  --neg: #E29A8C;
  --gold-tint-06: rgba(212, 178, 106, 0.06);
  --gold-tint-12: rgba(212, 178, 106, 0.12);
  --gold-tint-30: rgba(212, 178, 106, 0.30);
  --display: "Bebas Neue", sans-serif;
  --serif: "Cormorant Garamond", serif;
  --body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 18, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  font-family: var(--body); font-weight: 600; font-size: 13px;
  letter-spacing: 0.45em; color: var(--cream); text-decoration: none;
}
.wordmark span { color: var(--gold); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  border-radius: 10px; padding: 12px 22px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: #E2C57E; }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--gold-tint-30); }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-tint-06); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.eyebrow {
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 18px;
}
.hook {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; color: var(--gold);
  margin-bottom: 10px;
}
.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(88px, 13vw, 148px); line-height: 0.9;
  letter-spacing: 0.01em; color: var(--cream);
}
.tagline {
  font-size: 12px; letter-spacing: 0.4em; color: var(--gold);
  margin: 10px 0 22px;
}
.subhead { color: var(--stone); font-size: 16px; max-width: 460px; margin-bottom: 30px; }
.subhead strong { color: var(--cream); font-weight: 600; }

/* waitlist form */
.waitlist { max-width: 460px; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; background: var(--bg2); color: var(--cream);
  border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--body); font-size: 14px; padding: 12px 16px;
}
.waitlist input[type="email"]::placeholder { color: var(--olive); }
.waitlist input[type="email"]:focus { border-color: var(--gold); outline: none; }
.waitlist .micro { font-size: 12.5px; color: var(--olive); margin-top: 10px; }
.waitlist .msg { font-size: 13.5px; margin-top: 10px; display: none; }
.waitlist .msg.ok { display: block; color: var(--pos); }
.waitlist .msg.err { display: block; color: var(--neg); }

/* store badges */
.badges { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.badge {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 16px; color: var(--cream);
}
.badge svg { width: 20px; height: 20px; fill: var(--cream); flex: none; }
.badge small { display: block; font-size: 10.5px; color: var(--stone); line-height: 1.3; }
.badge b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }

/* ---------- phone frame ---------- */
.phone {
  width: 280px; margin: 0 auto;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 34px; padding: 12px;
}
.phone-screen {
  background: var(--bg2); border-radius: 24px; overflow: hidden;
  position: relative;
}
.p-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--border); }
.p-row { display: flex; justify-content: space-between; align-items: center; }
.p-user { display: flex; align-items: center; gap: 8px; }
.p-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--card2);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.p-name { font-size: 12px; font-weight: 600; color: var(--cream); line-height: 1.2; }
.p-rank { font-size: 9px; letter-spacing: 0.12em; color: var(--stone); }
.p-day {
  font-size: 9px; color: var(--gold); border: 1px solid var(--gold-tint-30);
  border-radius: 10px; padding: 2px 8px; letter-spacing: 0.06em;
}
.p-label { font-size: 9px; letter-spacing: 0.14em; color: var(--stone); margin-top: 10px; }
.p-nw-row { display: flex; align-items: baseline; gap: 8px; }
.p-nw { font-family: var(--display); font-size: 32px; color: var(--gold); line-height: 1.1; }
.p-delta { font-size: 11px; font-weight: 600; color: var(--pos); opacity: 0; transition: opacity 0.35s ease; }
.p-delta.show { opacity: 1; }
.p-body { padding: 14px 16px 16px; min-height: 240px; }
.p-section { font-size: 9px; letter-spacing: 0.14em; color: var(--stone); margin-bottom: 7px; }

.p-event {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--oxblood); padding: 11px 12px; margin-bottom: 10px;
}
.p-event-tone { font-size: 8.5px; letter-spacing: 0.18em; color: var(--neg); font-weight: 700; margin-bottom: 3px; }
.p-event-title { font-size: 12px; font-weight: 600; color: var(--cream); line-height: 1.35; }
.p-chips { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.p-chip { font-size: 9px; font-weight: 600; border-radius: 5px; padding: 3px 7px; }
.p-chip.neg { color: var(--neg); background: rgba(158, 59, 50, 0.12); }
.p-chip.pos { color: var(--pos); background: rgba(78, 155, 111, 0.14); }

.p-choice {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px; display: flex; justify-content: space-between;
  align-items: center; transition: border-color 0.25s ease, background-color 0.25s ease;
}
.p-choice .t { font-size: 11px; font-weight: 600; color: var(--cream); }
.p-choice .s { font-size: 9.5px; color: var(--stone); }
.p-choice .ap { font-size: 9px; color: var(--gold); white-space: nowrap; margin-left: 8px; }
.p-choice.hot { border-color: var(--gold); background: var(--gold-tint-12); }

.p-toast {
  position: absolute; left: 16px; right: 16px; bottom: 18px;
  background: var(--card2); border: 1px solid var(--green); border-radius: 12px;
  padding: 12px; text-align: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.p-toast.show { opacity: 1; transform: translateY(0); }
.p-toast .big { font-family: var(--display); font-size: 26px; color: var(--pos); line-height: 1.1; }
.p-toast .sub { font-size: 10px; color: var(--stone); }

/* business / market / leaderboard minis */
.p-biz {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
}
.p-biz-row { display: flex; justify-content: space-between; align-items: center; }
.p-biz-id { display: flex; align-items: center; gap: 8px; }
.p-biz-icon {
  width: 26px; height: 26px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.p-biz .nm { font-size: 11px; font-weight: 600; color: var(--cream); line-height: 1.25; }
.p-biz .cat { font-size: 9px; color: var(--stone); }
.p-biz .val { font-size: 11px; font-weight: 700; color: var(--cream); text-align: right; }
.p-biz .pct { font-size: 9.5px; font-weight: 600; }
.p-health { height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.p-health i { display: block; height: 100%; border-radius: 2px; }

.p-lb {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; margin-bottom: 6px;
}
.p-lb.me { background: var(--gold-tint-06); border-color: var(--gold-tint-30); }
.p-lb .pos-n { font-family: var(--display); font-size: 15px; color: var(--olive); width: 16px; text-align: center; }
.p-lb.top .pos-n { color: var(--gold); }
.p-lb .who { flex: 1; font-size: 10.5px; font-weight: 600; color: var(--cream); }
.p-lb .who small { display: block; font-weight: 400; font-size: 8.5px; color: var(--stone); }
.p-lb .worth { font-size: 10.5px; font-weight: 700; color: var(--gold); }

/* ---------- sections ---------- */
section.block { padding: 88px 0; border-bottom: 1px solid var(--border); }
.k { font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--stone); margin-bottom: 14px; }
.block h2 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px); color: var(--cream); line-height: 1.2;
  max-width: 620px;
}
.block h2 em { color: var(--gold); font-style: inherit; }
.block .lead { color: var(--stone); max-width: 560px; margin-top: 14px; }

.how .wrap { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: center; }
.steps { margin-top: 34px; display: grid; gap: 22px; counter-reset: step; }
.step { display: flex; gap: 16px; }
.step .n {
  counter-increment: step; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--gold-tint-30); color: var(--gold);
  font-family: var(--display); font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 3px; }
.step p { font-size: 14px; color: var(--stone); }

/* feature triptych */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 18px;
}
.feature h3 {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 21px; color: var(--gold); line-height: 1.25;
}
.feature p { font-size: 14px; color: var(--stone); }
.feature .mini { margin-top: auto; }

/* manifesto */
.manifesto { text-align: center; padding: 96px 0; }
.manifesto p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(22px, 3vw, 32px); color: var(--cream); line-height: 1.45;
  max-width: 780px; margin: 0 auto;
}
.manifesto p em { color: var(--gold); font-style: inherit; }
.rule {
  width: 64px; height: 1px; background: var(--gold); opacity: 0.5;
  margin: 0 auto 30px;
}

/* final cta */
.final { text-align: center; }
.final h2 { margin: 0 auto; }
.final .lead { margin: 14px auto 0; }
.final .waitlist { margin: 34px auto 0; }
.final .badges { justify-content: center; }

/* footer */
.site-footer { padding: 40px 0 56px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--olive); font-size: 12.5px;
}
.site-footer .legal { max-width: 520px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .p-delta, .p-toast, .p-choice { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero .wrap, .how .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 56px 0; }
  .grid3 { grid-template-columns: 1fr; }
  .hero .phone-col { order: 2; }
}
@media (max-width: 480px) {
  .waitlist-row { flex-direction: column; }
  .btn { width: 100%; }
  .site-header .btn { width: auto; }
  section.block { padding: 64px 0; }
}
