/* =========================================================
   HEATBIRD — placeholder site
   Palette pulled from the logo: indigo → magenta → ember → amber → leaf
   ========================================================= */
:root {
  --ink: #0a0716;
  --ink-2: #120c26;
  --navy: #2e2a85;          /* wordmark navy */
  --violet: #5a2aa8;
  --magenta: #a92a78;
  --ember: #e84a2e;
  --orange: #ff8a33;
  --amber: #f6c443;
  --leaf: #6cc046;
  --wa: #25d366;

  --text: #f4f1fb;
  --muted: rgba(244, 241, 251, .62);
  --faint: rgba(244, 241, 251, .38);
  --line: rgba(255, 255, 255, .09);
  --glass: rgba(255, 255, 255, .045);

  --heat: linear-gradient(90deg, var(--violet) 0%, var(--magenta) 28%, var(--ember) 55%, var(--orange) 75%, var(--amber) 100%);
  --heat-wide: linear-gradient(90deg, var(--violet), var(--magenta), var(--ember), var(--orange), var(--amber), var(--leaf));

  --f-display: "Inter", system-ui, sans-serif;
  --f-brand: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --heat-level: 0;          /* 0 → 1, driven by JS as the coil heats */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--ember); color: #fff; }

/* ---------- background layers ---------- */
#thermal {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
body::before {               /* single, quiet floor glow */
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 115%, rgba(232, 74, 46, calc(.08 + var(--heat-level) * .1)), transparent 62%);
}

main, .nav, .wa-float { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(10, 7, 22, .62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 54px; height: auto; overflow: visible; filter: drop-shadow(0 0 10px rgba(232, 74, 46, .35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; font-size: 19px; }
.brand-tag { font-family: var(--f-brand); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-link {
  font-size: 14px; font-weight: 400; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
  transition: border-color .3s, background .3s;
}
.nav-link:hover { border-color: rgba(255, 138, 51, .6); background: rgba(255, 138, 51, .08); }

/* ---------- shared type ---------- */
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--orange);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--heat); border-radius: 2px; }
.grad {
  background: var(--heat); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: heatShift 6s ease-in-out infinite alternate;
}
@keyframes heatShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.lede { color: var(--muted); font-size: clamp(16px, 1.25vw, 18.5px); max-width: 34em; margin: 0; }

/* =========================================================
   VIEWPORT 1 — HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 108px var(--gutter) 28px;
  max-width: 1440px; margin: 0 auto;
}
.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.headline {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: clamp(44px, 5.2vw, 92px);
  line-height: .98;
  letter-spacing: -.035em;
}
.headline .line { display: block; overflow: hidden; padding-bottom: .08em; white-space: nowrap; }
.headline .word { display: inline-block; will-change: transform; }

.cta-label {
  margin: 26px 0 10px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-size: 15.5px; font-weight: 600; letter-spacing: .01em;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background .3s, border-color .3s;
}
.btn svg { width: 20px; height: 20px; }
.btn-hot {
  color: #fff;
  background: linear-gradient(100deg, var(--magenta), var(--ember) 45%, var(--orange));
  box-shadow: 0 10px 30px -8px rgba(232, 74, 46, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  overflow: hidden;
}
.btn-hot::after {             /* sheen sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 3.6s 2.5s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.btn-hot:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(255, 138, 51, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { border: 1px solid var(--line); background: var(--glass); color: var(--text); font-weight: 400; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }

/* founder / social links */
.connect {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 6px;
  font-size: 14px; color: var(--muted);
}
.connect-link { color: var(--muted); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.connect-link:hover { color: var(--text); border-color: rgba(255, 255, 255, .35); }
.connect-dot { color: var(--faint); }

/* hero art */
.hero-art { position: relative; aspect-ratio: 740 / 440; width: 100%; }
.halo {
  position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232, 74, 46, calc(.08 + var(--heat-level) * .22)) 0%, rgba(169, 42, 120, calc(var(--heat-level) * .12)) 35%, transparent 65%);
  filter: blur(10px); pointer-events: none;
}
.coil { position: relative; width: 100%; height: auto; overflow: visible; }
.layer-glow { opacity: 0; }
.layer-core { opacity: 0; mix-blend-mode: screen; }
.layer-pulse { mix-blend-mode: screen; opacity: 0; }

.foot {
  position: relative;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: 100%; margin-top: clamp(20px, 4vh, 40px);
  padding: 20px 86px 0 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.foot-tag { font-family: var(--f-brand); letter-spacing: .04em; }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, .65);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
  animation: waRing 2.4s ease-out infinite;
}
@keyframes waRing { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }

/* pre-animation states (only when JS + motion are available) */
.js .reveal, .js .up { opacity: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero { padding-top: 92px; padding-bottom: 20px; }
  .hero-main {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
  }
  .hero-art { order: -1; width: min(86%, 440px); margin: 0 auto; }
  .nav-right .nav-link { padding: 8px 16px; font-size: 13px; }
}
@media (max-width: 600px) {
  .brand-mark { width: 44px; }
  .brand-name { font-size: 16px; }
  .brand-tag { font-size: 8px; }
  .headline { font-size: clamp(42px, 12.5vw, 64px); }
  .cta-row { margin: 26px 0; }
  .btn { flex: 1 1 100%; justify-content: center; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .foot { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-hot::after, .grad, .wa-float::before { animation: none; }
  .js .reveal, .js .up { opacity: 1; }
}
