*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 24px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-solid);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--red);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a070b;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#4a0710, #1b0508);
  border-radius: 20px;
  border: 2px solid #0a070b;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--red-deep), #2a0509);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #170a0f 0%, #08060a 45%, #050407 100%);
}

.backdrop-grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to right, #14101400 0, #17111a 1px, transparent 1px),
    linear-gradient(to bottom, #14101400 0, #17111a 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.85;
  animation: grid-drift 32s linear infinite;
}

@keyframes grid-drift {
  to { transform: translate3d(46px, 46px, 0); }
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
  will-change: transform;
}

.aurora-a {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -120px;
  background: radial-gradient(circle, #ff1f2e 0%, transparent 68%);
  animation: float-a 22s var(--ease-in-out) infinite;
}

.aurora-b {
  width: 520px;
  height: 520px;
  top: 30%;
  right: -180px;
  background: radial-gradient(circle, #8f0b16 0%, transparent 70%);
  animation: float-b 26s var(--ease-in-out) infinite;
}

.aurora-c {
  width: 460px;
  height: 460px;
  bottom: -180px;
  left: 35%;
  background: radial-gradient(circle, #5c0510 0%, transparent 72%);
  animation: float-a 30s var(--ease-in-out) infinite reverse;
}

@keyframes float-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(80px, 60px, 0) scale(1.12); }
}

@keyframes float-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-70px, 40px, 0) scale(0.92); }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 45%, transparent 40%, rgb(3 2 4 / 78%) 100%);
}

.shell {
  width: min(100% - 40px, var(--shell-w));
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 42px) 0 90px;
  display: flex;
  flex-direction: column;
  gap: 74px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-hot);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-red);
  background: linear-gradient(180deg, rgb(255 34 49 / 12%), rgb(255 34 49 / 3%));
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: blink 2s var(--ease-in-out) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.grad {
  background: linear-gradient(96deg, #fff 0%, #ff8d96 28%, #ff2231 62%, #7c0a13 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.panel-head h2 {
  font-size: 20px;
}

.panel-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 3%);
}

.panel-tag.live {
  color: var(--red-hot);
  border-color: var(--line-red);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgb(255 34 49 / 4%));
  padding: 34px 0 40px;
}

.footer-inner {
  width: min(100% - 40px, var(--shell-w));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  letter-spacing: 0.18em;
  font-size: 14px;
}

.footer-brand span {
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--text-2);
}

.footer-links a {
  position: relative;
  transition: color 0.25s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.footer-links a:hover {
  color: var(--red-hot);
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: var(--muted);
}

.footer-stars {
  color: var(--red);
  letter-spacing: 3px;
}

@media (max-width: 780px) {
  .shell {
    gap: 54px;
    padding-top: calc(var(--topbar-h) + 26px);
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
  .footer-note {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
