/* ─── VARIABLES ─── */
:root {
  --bg: #000;
  --accent: #ee3a39;
  --accent-dim: rgba(238, 58, 57, 0.12);
  --accent-glow: rgba(238, 58, 57, 0.35);
  --text: #fff;
  --text-dim: rgba(255, 255, 255, 0.45);
  --text-mid: rgba(255, 255, 255, 0.75);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(238, 58, 57, 0.35);
  --card-bg: rgba(255, 255, 255, 0.025);
  --nav-height: 68px;
  --font: 'Inter', sans-serif;
  --max-w: 1180px;
  --radius: 20px;
  --radius-sm: 12px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.5s ease, border-color 0.5s ease, backdrop-filter 0.5s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

/* deep-dive pages (marketing/sales) use .is-scrolled with a gradient fade —
   one shared rule instead of per-page copies */
.navbar.is-scrolled {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* utility bar — the slim red strip above the main nav for CMS content
   surfaces (Events / Specials / Resources / Blog). Rendered ONLY by the
   platform's DeHeader (from the CMS nav config's utilityItems); the static
   pages don't emit this markup, so these rules are dormant on here.now.
   Desktop-only — the mobile panel lists the same links instead. */
.nav-utility {
  background: var(--accent);
}
.nav-utility-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 30px);
}
.nav-utility-inner a {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.nav-utility-inner a:hover {
  opacity: 1;
}
@media (max-width: 1100px) {
  .nav-utility {
    display: none;
  }
}

/* shared reveal-on-scroll utility (marketing + sales; wired by DE.initFade) */
[data-fade] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: clamp(36px, 4.8vw, 51px);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 36px);
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
}

/* ─── PLATFORM DROPDOWN (desktop) ─── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown-trigger.nav-link--active {
  color: var(--text);
}

.nav-dropdown-caret {
  opacity: 0.65;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 214px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: rgba(10, 12, 14, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 1002;
}

/* invisible bridge so the hover doesn't drop crossing the gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-dropdown-menu a.nav-link--active {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  flex: 0 0 auto;
}

.nav-dot--red {
  background: #ee3a39;
  box-shadow: 0 0 8px rgba(238, 58, 57, 0.6);
}

.btn-nav {
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55em 1.35em;
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.25s, transform 0.15s;
  white-space: nowrap;
}

.btn-nav:hover {
  background: #ff4a49;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-1px);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.82em 2em;
  border-radius: 100px;
  border: none;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, box-shadow 0.25s, transform 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #ff4a49;
  box-shadow: 0 0 48px var(--accent-glow), 0 4px 24px rgba(238, 58, 57, 0.4);
  transform: translateY(-2px);
}

.btn-primary--large {
  font-size: 1.05rem;
  padding: 0.95em 2.4em;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-mid);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.82em 1.5em;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── FOOTER ─── */
.footer {
  background: #000;
  border-top: 1px solid var(--border);
}

/* ── Game banner ── */
.footer-game-banner {
  background: linear-gradient(100deg, #0d0d0d 0%, #1a0505 50%, #0d0d0d 100%);
  border-bottom: 1px solid rgba(238,58,57,0.18);
  padding: clamp(36px, 5vw, 60px) 0;
  position: relative;
  overflow: hidden;
}

.footer-game-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 100% at 60% 50%, rgba(238,58,57,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer-game-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-game-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-game-headline {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  max-width: 540px;
}

.footer-game-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9em 2.2em;
  border-radius: 100px;
  border: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.25s, transform 0.15s;
}

.footer-game-btn:hover {
  background: #ff4a49;
  box-shadow: 0 0 48px var(--accent-glow), 0 4px 24px rgba(238,58,57,0.4);
  transform: translateY(-2px);
}

/* ── Main body ── */
.footer-body {
  padding: clamp(48px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.8fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.footer-logo {
  height: 34px;
  margin-bottom: 20px;
  display: block;
}

.footer-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.65;
  margin: 0;
  max-width: 280px;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover { color: #fff; }

.footer-newsletter-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 20px;
}

.footer-newsletter-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-email-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.72em 1.4em;
  color: #fff;
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  flex: 1;
  min-width: 0;
}

.footer-email-input::placeholder { color: var(--text-dim); }
.footer-email-input:focus { border-color: var(--accent); }

/* ── Copyright bar ── */
.footer-bar {
  padding: 20px 0;
}

.footer-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── MOBILE NAV ─── */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 20px clamp(20px, 4vw, 44px) 28px;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-panel.is-open {
  display: flex;
}

.nav-mobile-panel a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile-panel a:last-child {
  border-bottom: none;
}

.nav-mobile-panel a.nav-link--active {
  color: #fff;
}

.nav-mobile-cta {
  margin-top: 12px;
  text-align: center;
  justify-content: center;
}

/* ─── PLATFORM GROUP (mobile accordion) ─── */
.nav-mobile-group-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
}

.nav-mobile-group-trigger.nav-link--active {
  color: #fff;
}

.nav-mobile-group-caret {
  opacity: 0.65;
  transition: transform 0.25s ease;
}

.nav-mobile-group-trigger.is-open .nav-mobile-group-caret {
  transform: rotate(180deg);
}

.nav-mobile-sub {
  display: none;
  flex-direction: column;
  padding-left: 14px;
}

.nav-mobile-sub.is-open {
  display: flex;
}

.nav-mobile-sub a {
  font-size: 0.95rem;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-cta .btn-nav {
    display: none;
  }
}

/* ─── FOOTER RESPONSIVE ─── */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-email-input {
    width: 100%;
  }

  .footer-bar-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ─── DE-CHROME ADDENDUM (export-platform.mjs) ─── */
/* the one chrome rule that lives in style.css's general RESPONSIVE section */
@media (max-width: 960px) { .nav-links { display: none; } }
/* CMS pages don't load the island reset — pin the chrome's own typography */
.navbar, .nav-mobile-panel, .footer { font-family: var(--font); }
