:root {
  --bg-0:      #0b0503;
  --bg-1:      #160a05;
  --white-hot: #fff4dc;
  --gold:      #ffc23d;
  --flame:     #ff7a18;
  --ember:     #ff3b00;
  --blood:     #c11700;
  --text:      #f6e9da;
  --dim:       #c9a988;
  --line:      rgba(255,120,30,0.22);

  --f-display: "Anton", "Arial Narrow", sans-serif;
  --f-mono:    "Chivo Mono", ui-monospace, monospace;
  --f-body:    "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }

/* Accessible / SEO heading, present in the DOM but visually hidden. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  min-height: 100%;
  font-family: var(--f-body);
  color: var(--text);
  background:
    radial-gradient(120% 90% at 50% 120%, #2a0d04 0%, var(--bg-0) 55%),
    var(--bg-0);
  overflow-x: hidden;
  position: relative;
}

.bg-logo {
  position: fixed; inset: 0; z-index: 0;
  background: url("/images/logo.png") no-repeat center 38% / min(82vmin, 760px);
  opacity: 0.30;
  filter: drop-shadow(0 0 80px rgba(255,90,10,0.45)) saturate(1.1);
  animation: logoBreath 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes logoBreath {
  from { opacity: 0.24; transform: scale(0.995); }
  to   { opacity: 0.34; transform: scale(1.01); }
}

#fire {
  position: fixed; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
}

.atmos {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(140% 78% at 50% 6%,  rgba(11,5,3,0) 38%, rgba(11,5,3,0.62) 100%),
    radial-gradient(95% 60% at 50% 122%, rgba(255,70,0,0.20), transparent 60%),
    linear-gradient(180deg, rgba(11,5,3,0.55) 0%, rgba(11,5,3,0.12) 34%, rgba(11,5,3,0) 58%);
}

.grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.frame {
  position: absolute; inset: clamp(10px, 2vw, 22px); z-index: 4; pointer-events: none;
  border: 1px solid var(--line);
}
.frame::before, .frame::after,
.frame > i::before, .frame > i::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border: 2px solid var(--flame); opacity: 0.8;
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after  { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.frame > i::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.frame > i::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.vlabel {
  position: fixed; z-index: 4; pointer-events: none;
  font-family: var(--f-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase; color: rgba(255,160,90,0.5);
  writing-mode: vertical-rl;
}
.vlabel.l { left: clamp(14px,2.4vw,26px); top: 50%; transform: translateY(-50%); }
.vlabel.r { right: clamp(14px,2.4vw,26px); top: 50%; transform: translateY(-50%) rotate(180deg); }

.shell {
  position: relative; z-index: 5;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: clamp(22px, 4vw, 46px) clamp(28px, 7vw, 90px);
}

.topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.brand { position: relative; display: flex; align-items: center; gap: 0.85rem; }
.brand-logo {
  width: 44px; height: 44px; object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255,120,20,0.7));
}
.brand-id { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--f-display); font-size: 1.18rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
}
.brand-tic {
  font-family: var(--f-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--dim); margin-top: 2px;
}

.nav-toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; cursor: pointer;
  color: var(--gold); border: 1px solid var(--line);
  background: rgba(20,8,4,0.5); backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: rgba(255,120,30,0.55); color: var(--white-hot); }
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
body.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 30;
  display: flex; flex-direction: column; min-width: 210px;
  padding: 0.5rem; gap: 0.2rem;
  border: 1px solid rgba(255,120,30,0.35); border-radius: 14px;
  background: #140805; background: rgba(20,9,4,0.99); backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0,0,0,0.7), 0 0 36px rgba(255,40,0,0.12);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
.nav-link {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim);
  text-decoration: none; padding: 0.62rem 0.8rem; border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,120,30,0.08); }
.nav-link.active { color: var(--gold); background: rgba(255,120,30,0.12); }
.nav-link.active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--flame); box-shadow: 0 0 8px var(--flame);
}

.nav-social {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  margin-top: 0.4rem; padding-top: 0.6rem;
  border-top: 1px solid rgba(255,120,30,0.18);
}
.nav-soc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--dim); border: 1px solid var(--line);
  background: rgba(255,120,30,0.04);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.nav-soc:hover {
  color: var(--white-hot); border-color: rgba(255,120,30,0.6);
  background: rgba(255,120,30,0.1); transform: translateY(-1px);
}
.nav-soc svg { width: 17px; height: 17px; fill: currentColor; display: block; }

.live {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-mono); font-size: 0.64rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim);
  padding: 0.42rem 0.8rem; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(20,8,4,0.45); backdrop-filter: blur(4px);
}
.live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #41e06a; box-shadow: 0 0 10px #41e06a;
  animation: pulse 1.6s ease-in-out infinite;
}
.live.error { color: #ff9a7a; border-color: rgba(255,60,0,0.5); }
.live.error .dot { background: var(--ember); box-shadow: 0 0 10px var(--ember); animation: none; }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.7); opacity: 0.35; }
}

.hero {
  position: relative;
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: clamp(0.5rem, 1.4vh, 1rem);
  padding: 5vh 0;
}
.eyebrow {
  font-family: var(--f-mono); font-size: clamp(0.62rem, 1.7vw, 0.78rem);
  font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--dim);
}
.eyebrow span { color: var(--flame); }

.foot {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(201,169,136,0.55);
}
.foot .sep { color: var(--line); }
.foot a { color: var(--flame); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-legal {
  flex-basis: 100%; width: 100%; text-align: center; margin-top: 0.1rem;
  font-family: var(--f-mono); font-size: 0.56rem; letter-spacing: 0.08em;
  text-transform: none; line-height: 1.5; color: rgba(201,169,136,0.42);
}

.foot-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.foot-partners {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem;
}
.foot-partners .fp-label {
  font-family: var(--f-mono); font-size: 0.54rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.partner-chip {
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--flame);
  padding: 0.4rem 0.85rem; border-radius: 100px;
  border: 1px solid rgba(255,120,30,0.4); background: rgba(255,120,30,0.05);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.partner-chip:hover { color: var(--white-hot); border-color: rgba(255,120,30,0.7); background: rgba(255,120,30,0.12); }
.partner-chip.pc-gold { color: var(--gold); border-color: rgba(240,185,11,0.42); background: rgba(240,185,11,0.06); }
.partner-chip.pc-gold:hover { color: var(--white-hot); border-color: rgba(240,185,11,0.75); background: rgba(240,185,11,0.13); }

.aff-banner {
  width: min(620px, 100%); align-self: center; margin: clamp(0.5rem, 2vh, 1rem) auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  padding: 0.9rem 1.1rem; text-decoration: none;
  border: 1px solid rgba(240,185,11,0.38); border-left: 3px solid var(--gold); border-radius: 12px;
  background: linear-gradient(180deg, rgba(38,29,4,0.55), rgba(20,14,2,0.55));
  backdrop-filter: blur(6px);
  transition: border-color 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.aff-banner:hover { transform: translateY(-1px); border-color: rgba(240,185,11,0.7); box-shadow: 0 10px 28px rgba(255,120,10,0.18); }
.aff-banner .ab-txt { display: flex; flex-direction: column; gap: 0.18rem; text-align: left; min-width: 0; }
.aff-banner .ab-title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(0.98rem, 3.2vw, 1.15rem);
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white-hot); line-height: 1.05;
}
.aff-banner .ab-sub {
  font-family: var(--f-mono); font-size: clamp(0.5rem, 1.7vw, 0.58rem);
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(201,169,136,0.7);
}
.aff-banner .ab-btn {
  flex: 0 0 auto; white-space: nowrap;
  font-family: var(--f-mono); font-size: clamp(0.58rem, 2vw, 0.66rem); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #1a0d03;
  padding: 0.62rem 1.1rem; border-radius: 100px;
  background: linear-gradient(180deg, var(--gold), var(--flame));
}

.reveal { opacity: 0; animation: riseIn 0.9s cubic-bezier(0.2,0.7,0.2,1) forwards; }
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.34s; }
.reveal.d4 { animation-delay: 0.5s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

body.share-mode .nav-toggle,
body.share-mode .foot { display: none !important; }

body.exporting .nav-toggle,
body.exporting .nav { display: none !important; }
body.exporting .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
body.exporting .bg-logo { animation: none !important; opacity: 0.30 !important; }
body.exporting .frame,
body.exporting .vlabel { display: none !important; }

@media (max-width: 620px) {
  .vlabel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bg-logo, .reveal { animation: none !important; }
  .reveal { opacity: 1; }
}
