/* === @font-face — local copies in cloud/apex/fonts/ (no cross-origin) === */
@font-face {
  font-family: 'Gunplay';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/GunplayRg-subset.woff2') format('woff2');
}
@font-face {
  font-family: 'HelveticaNow';
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url('../fonts/HelveticaNow-subset.woff2') format('woff2');
}

/* === DESIGN TOKENS (verbatim from cloud/public/css/style.css, per D-04) === */
:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121f;
  --brand-blue: #017bfc;
  --brand-yellow: #f3b652;
  --brand-green: #7ed7ac;
  --text-primary: #e8e8f0;
  --text-muted: rgba(232, 232, 240, 0.45);
  --border-subtle: rgba(232, 232, 240, 0.08);
}

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

/* === BASE === */
html, body { height: 100%; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'HelveticaNow', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === LAYOUT === */
.container { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }

/* === HERO === */
.apex-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}
.apex-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
/* === FAULT FIGHTER LOGO === */
.ff-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0;
  line-height: 0;
}
/* Glow halo behind the transparent logo — a blurred brand-blue radial that
   spills past the logo edges, so it reads on the dark hero even though the
   logo art itself already carries blue. */
.ff-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -6%;
  background: radial-gradient(ellipse at 50% 46%,
    rgba(1, 123, 252, 0.3) 0%,
    rgba(1, 123, 252, 0.13) 38%,
    rgba(1, 123, 252, 0) 68%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}
.ff-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(280px, 62vw, 560px);
  height: auto;
  filter:
    drop-shadow(0 0 13px rgba(1, 123, 252, 0.45))
    drop-shadow(0 0 30px rgba(1, 123, 252, 0.28));
}

/* === APEX BLURB === */
.apex-blurb {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-primary);
  opacity: 0.85;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.6;
}

/* === APEX TIER LADDER === */
.apex-tiers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.apex-tiers-heading {
  font-family: 'Gunplay', 'Bebas Neue', 'Exo 2', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: #e6e6e6;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.5),
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 6px 10px rgba(0, 0, 0, 0.6);
  margin: 0;
}
.apex-tier-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 960px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.apex-tier-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--brand-green); /* overridden inline per tier */
  border-radius: 0;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.apex-tier-num {
  font-family: 'HelveticaNow', 'Helvetica Neue', Arial, sans-serif;
  font-variation-settings: "wdth" 90, "opsz" 20, "wght" 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-shadow: 0 0 8px currentColor;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  line-height: 1;
}
.apex-tier-name {
  font-family: 'HelveticaNow', 'Helvetica Neue', Arial, sans-serif;
  font-variation-settings: "wdth" 90, "opsz" 16, "wght" 700;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.apex-tiers-link {
  color: var(--brand-blue);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: 12px;
}
.apex-tiers-link:hover { text-decoration: underline; }

/* === PRIMARY CTA === */
.cta-primary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--brand-blue);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.15s, transform 0.1s;
}
.cta-primary:hover {
  background: #028fff;
  transform: translateY(-1px);
}

/* === FOOTER === */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.site-footer a {
  color: var(--brand-blue);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* === NARROW: keep 3 columns of 4, just compact the cards === */
@media (max-width: 720px) {
  .apex-tier-card { padding: 10px 12px; gap: 10px; min-height: 0; }
  .apex-tier-num { min-width: 0; }
}

/* === MOBILE: still 3 columns — stack num over name so they fit === */
@media (max-width: 480px) {
  .ff-logo { width: min(86%, 320px); }
  .container { padding: 0 0.75rem; }
  .apex-tier-list { gap: 6px; }
  .apex-tier-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 9px;
  }
  .apex-tier-num { font-size: 1.4rem; }
  .apex-tier-name { font-size: 0.72rem; letter-spacing: 0.01em; }
}
