:root {
  --black: #11101a;
  --ink: #171622;
  --panel: #1f1d2d;
  --white: #fff8ed;
  --muted: #b9b6c8;
  --red: #ff432a;
  --blue: #168fff;
  --gold: #ffd423;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 67, 42, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgba(22, 143, 255, 0.18), transparent 32rem),
    linear-gradient(180deg, #1a1725 0%, #121520 48%, #171321 100%),
    var(--black);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(17, 16, 26, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.brand img {
  width: 2.35rem;
  height: 2.35rem;
  display: block;
  border-radius: 22%;
}

nav {
  display: flex;
  gap: clamp(0.8rem, 3vw, 1.6rem);
  color: rgba(255, 248, 237, 0.72);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

nav a:hover {
  color: var(--gold);
}

.hero {
  width: min(76rem, calc(100% - 2rem));
  min-height: calc(100vh - 4.5rem);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-art {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
}

.hero-icon {
  width: min(100%, 27rem);
  display: block;
  border-radius: 22%;
  filter: drop-shadow(0 1.6rem 2.5rem rgba(0, 0, 0, 0.42));
}

.burst,
.task-card {
  display: none;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.9rem;
  /* Floor scales with viewport so BRACKET always fits small phones;
     <wbr> in the markup stacks TASK/BRACKET when one line won't fit. */
  font-size: clamp(2.6rem, 12vw, 8.5rem);
  line-height: 0.82;
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow: 0.06em 0.06em 0 #000, 0 0.11em 0 rgba(179, 106, 0, 0.85);
}

.tagline {
  margin: 0 0 1.8rem;
  color: rgba(255, 248, 237, 0.88);
  font-size: clamp(1.2rem, 2.8vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions,
.download {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: #1a1825;
  box-shadow: 0 0.32rem 0 #000;
  font-weight: 950;
  text-transform: uppercase;
}

.button-primary {
  border-color: var(--gold);
  color: #130d00;
  background: linear-gradient(180deg, #ffe66a, var(--gold));
}

.ticker {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.ticker span {
  padding: 0.35rem 0.65rem;
  color: rgba(255, 248, 237, 0.7);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section,
.arena-section,
.download {
  width: min(74rem, calc(100% - 2rem));
  margin-inline: auto;
}

.section,
.arena-section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-heading {
  max-width: 43rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  line-height: 0.98;
  font-weight: 1000;
  text-transform: uppercase;
}

h3 {
  font-size: 1.25rem;
  font-weight: 950;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps article,
.bracket-board,
.versus-stage,
.download {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.25);
}

.steps article {
  padding: 1.25rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--gold);
  font-size: 2.25rem;
  font-weight: 1000;
}

.arena-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.arena-copy p:last-child {
  font-size: 1.08rem;
}

.versus-stage {
  position: relative;
  min-height: 27rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  overflow: hidden;
}

.versus-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 67, 42, 0.18), transparent 42%),
    linear-gradient(250deg, rgba(22, 143, 255, 0.18), transparent 42%);
}

.fighter {
  position: relative;
  min-height: 15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem;
  border: 3px solid;
  background: rgba(255, 248, 237, 0.96);
  color: #111;
  box-shadow: 0 0.55rem 0 #000;
}

.fighter span {
  font-weight: 1000;
}

.fighter strong {
  display: block;
  margin-top: 1rem;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.fighter-red {
  border-color: var(--red);
  /* Keep copy clear of the centered VS badge (3.25rem half-width + ring). */
  padding-right: 4.5rem;
}

.fighter-blue {
  border-color: var(--blue);
  padding-left: 4.5rem;
}

.vs-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Paint above both fighter cards — fighter-blue comes later in the DOM
     and otherwise covers the badge's right half. */
  z-index: 1;
  display: grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  translate: -50% -50%;
  color: #fff;
  background: #07070e;
  border: 3px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem #000;
  font-size: 2.2rem;
  font-weight: 1000;
  font-style: italic;
}

.bracket-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.round {
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.slot {
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: #090910;
  font-weight: 900;
  text-transform: uppercase;
}

.slot-red {
  border-color: var(--red);
}

.slot-blue {
  border-color: var(--blue);
}

.slot-gold {
  border-color: var(--gold);
  color: var(--gold);
}

.why-section {
  border-block: 1px solid var(--line);
}

.why-section .section-heading {
  max-width: 55rem;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1rem;
}

.why-grid article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.02));
}

.why-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  color: #171000;
  background: var(--gold);
  border-radius: 50%;
  font-weight: 1000;
}

.why-grid h3 { margin-bottom: .5rem; }
.why-grid p { margin-bottom: 0; }

.demo-section {
  width: min(88rem, calc(100% - 2rem));
}

.demo-section .section-heading {
  max-width: 56rem;
}

.demo-shell {
  display: grid;
  grid-template-columns: minmax(19rem, 0.62fr) minmax(36rem, 1.38fr);
  min-height: 42rem;
  border: 1px solid var(--line);
  background: rgba(12, 11, 19, 0.6);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
}

.demo-battle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.demo-customize {
  margin-bottom: 1.25rem;
  border: 1px solid #ffffff22;
  background: #11101a99;
}

.demo-customize summary {
  padding: 0.75rem 0.9rem;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.demo-task-inputs {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.7rem 0.7rem;
}

.demo-task-inputs input {
  min-width: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid #ffffff2b;
  color: var(--white);
  background: #090910;
  font: inherit;
  font-size: 0.75rem;
}

.demo-task-inputs input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.demo-task-inputs button {
  min-height: 2.5rem;
  border: 1px solid var(--gold);
  color: #171000;
  background: var(--gold);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.demo-status,
.demo-bracket-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-status span:first-child {
  color: var(--gold);
}

.demo-battle h3 {
  margin: 0.6rem 0 1.25rem;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.demo-fighter {
  min-height: 9rem;
  padding: 1.2rem;
  border: 2px solid;
  color: #fff;
  box-shadow: 0 0.45rem 0 #000;
  text-align: left;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.demo-fighter:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.demo-fighter span {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.68rem;
  font-weight: 950;
}

.demo-fighter strong {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.demo-red {
  border-color: #ff8879;
  background: linear-gradient(145deg, #a82418, var(--red));
}

.demo-blue {
  border-color: #73bcff;
  background: linear-gradient(145deg, #075a9f, var(--blue));
}

.demo-vs {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  align-self: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-block: -0.35rem;
  color: #171000;
  background: var(--gold);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0.3rem 0 #000;
  font-weight: 1000;
}

.demo-reset {
  align-self: flex-start;
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.demo-bracket {
  position: relative;
  min-width: 0;
  padding: 1.5rem;
  overflow: hidden;
}

.demo-lines {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.demo-line {
  fill: none;
  stroke: #ffffff35;
  stroke-width: 2;
}

.demo-line.complete {
  stroke: #48d597aa;
  filter: drop-shadow(0 0 3px #48d59755);
}

.demo-line.live {
  stroke: var(--gold);
  stroke-dasharray: 7 6;
  filter: drop-shadow(0 0 4px #ffd42388);
  animation: demo-line-march 0.75s linear infinite;
}

.demo-bracket-head {
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.demo-nodes {
  position: relative;
  z-index: 1;
}

.demo-bracket-head span:first-child {
  color: var(--white);
}

.demo-bracket-head i {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #48d597;
}

.demo-band {
  padding: 1.25rem 0;
}

.demo-band + .demo-band {
  border-top: 1px solid var(--line);
}

.demo-band h4 {
  margin: 0 0 0.65rem;
  color: #ffffff65;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-node-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(8rem, 1fr));
  gap: 0.55rem;
  align-items: center;
  overflow-x: auto;
  padding: 0.4rem;
}

.demo-winners-band .demo-node-grid { grid-template-rows: repeat(4, minmax(4.5rem,auto)); }
.demo-losers-band .demo-node-grid { grid-template-rows: repeat(2, minmax(4.5rem,auto)); }

.demo-node {
  min-width: 8rem;
  align-self: center;
  border: 1px solid #ffffff24;
  background: #242131;
  box-shadow: 0 0.35rem 0.8rem #0005;
}

.demo-node small {
  display: block;
  padding: 0.35rem 0.5rem;
  color: #ffffff55;
  border-bottom: 1px solid #ffffff15;
  font-size: 0.52rem;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-node div {
  min-height: 2rem;
  padding: 0.48rem 0.5rem;
  color: var(--muted);
  font-size: 0.65rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-node div + div {
  border-top: 1px solid #ffffff12;
}

.demo-node .pending {
  color: #ffffff38;
  font-style: italic;
}

.demo-node .winner {
  color: var(--white);
  font-weight: 900;
}

.demo-node .winner::before {
  content: "•";
  margin-right: 0.35rem;
  color: #48d597;
}

.demo-node .loser {
  opacity: 0.46;
  text-decoration: line-through;
}

.demo-node.active {
  border-color: var(--gold);
  box-shadow: 0 0 1.2rem #ffd42338;
  animation: demo-pulse 1.4s ease-in-out infinite;
}

.demo-result {
  position: absolute;
  z-index: 4;
  inset: 4.5rem 1.5rem 1.5rem;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  background: rgba(17, 16, 26, 0.94);
  text-align: center;
  backdrop-filter: blur(12px);
}

.demo-result > :not(.demo-confetti) {
  position: relative;
  z-index: 1;
}

.demo-confetti {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.demo-result span {
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
}

.demo-result strong {
  max-width: 35rem;
  margin: 1rem 0;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.demo-picked {
  animation: demo-winner 0.78s cubic-bezier(.2,.8,.25,1) both;
}

.demo-defeated {
  animation: demo-loser 0.72s cubic-bezier(.4,0,.3,1) both;
}

.premium-section {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.5rem, 6vw, 5rem);
  align-items: center;
}

.premium-copy {
  max-width: 48rem;
}

.premium-copy > p:last-of-type {
  font-size: 1.1rem;
}

.premium-copy ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.premium-copy li::before {
  content: "✓";
  margin-right: 0.65rem;
  color: #48d597;
  font-weight: 950;
}

.price-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px solid var(--gold);
  background: linear-gradient(145deg, #282432, #181621);
  box-shadow: 0.7rem 0.7rem 0 #000, 0 0 3rem #ffd42318;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
}

.price strong {
  color: var(--gold);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
}

.price span {
  color: var(--muted);
  font-weight: 850;
}

.price-card .button {
  width: 100%;
  margin-top: 0.75rem;
}

.price-signin {
  display: block;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

@keyframes demo-pulse {
  50% { transform: translateY(-2px); box-shadow: 0 0 1.6rem #ffd42355; }
}

@keyframes demo-winner {
  0%, 24% { transform: scale(1); filter: brightness(1); }
  52%, 72% { transform: scale(1.045); filter: brightness(1.28); box-shadow: 0 0 2rem #ffd42377; }
  to { opacity: 0; transform: translateX(1.25rem) scale(.99); }
}

@keyframes demo-loser {
  0%, 26% { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(-1.25rem) rotate(-1deg); filter: grayscale(0.8); }
}

@keyframes demo-line-march {
  to { stroke-dashoffset: -13; }
}

.download {
  margin-block: 2rem 4rem;
  justify-content: space-between;
  padding: 1rem;
}

.download img {
  width: 5.5rem;
  height: 5.5rem;
  display: block;
  border-radius: 22%;
}

.download div {
  flex: 1 1 22rem;
}

.download h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(2rem, 5vw, 3.7rem);
}

@media (max-width: 850px) {
  nav {
    display: none;
  }

  .hero,
  .steps,
  .arena-section,
  .bracket-board,
  .why-grid,
  .premium-section {
    grid-template-columns: 1fr;
  }

  .demo-shell {
    grid-template-columns: 1fr;
  }

  .demo-battle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    text-align: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    min-height: 23rem;
    order: -1;
  }

  .hero-icon {
    width: min(78vw, 22rem);
  }

  .versus-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .fighter {
    min-height: 11rem;
  }

  /* Stacked layout: the badge flows between the two fighters instead of
     floating at the stage's center (where it landed on top of P2). */
  .vs-badge {
    position: static;
    translate: none;
    justify-self: center;
    margin-block: -0.4rem;
  }

  .fighter-red,
  .fighter-blue {
    padding: 1.25rem;
  }
}

@media (max-width: 520px) {
  .brand span {
    display: none;
  }

  h1 {
    /* Must keep BRACKET (7 glyphs) inside narrow phones. */
    font-size: clamp(2.4rem, 11.5vw, 5.8rem);
  }

  .download {
    justify-content: center;
    text-align: center;
  }
}
