/* ═══════════════════════════════════════════════════════
   BlazeHive — Global Styles (loaded on every page)
   Reset, brand tokens, nav, buttons, layout base.
   LP-only styles live in lp.css (index.astro only).
   ═══════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: #111;
  background: #fafafa;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ── Brand Tokens ───────────────────────────────────── */
:root {
  --accent: #d86030;
  --accent-hover: #c05020;
  --accent-end: #c05080;
  --accent-subtle: rgba(216, 96, 48, 0.08);
  --fire: #c05080;

  --ink: #000000;
  --ink-secondary: #52525b;
  --ink-muted: #a1a1aa;

  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-sunken: #f4f4f5;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --success: #10b981;
  --danger: #ef4444;
  --gradient: linear-gradient(135deg, #d86030 0%, #c05080 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);

  --section-gap: 120px;
  --container: 1024px;
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 2px 6px rgba(216, 96, 48, 0.2);
  transition: all 0.2s;
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 4px 12px rgba(216, 96, 48, 0.3);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-nav:hover {
  background: #000;
  box-shadow: var(--shadow-md);
}

/* ── Nav ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid transparent;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s;
}
#nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}
.nav-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Section / Container ───────────────────────────── */
section {
  padding: var(--section-gap) 24px;
  position: relative;
  z-index: 1;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

/* ── Footer base ───────────────────────────────────── */
footer {
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-muted);
}

/* ── Shared keyframes ──────────────────────────────── */
@keyframes ember-flicker {
  0%,
  100% {
    opacity: 0.95;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.7;
    transform: scaleY(0.92);
  }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-gap: 80px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 60px;
  }
  #nav.scrolled {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
}
