:root {
  --red: #e30613;
  --ink: #111111;
  --paper: #f7f7f3;
  --white: #ffffff;
  --line: rgba(17, 17, 17, 0.14);
  --muted: #5c5f66;
  --green: #128a5a;
  --gold: #c8932f;
  --shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(247, 247, 243, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: clamp(172px, 22vw, 250px);
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.nav a,
.mode-switch button,
.button {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav a:hover,
.mode-switch button:hover {
  border-color: var(--line);
  background: var(--white);
}

.mode-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mode-switch button {
  cursor: pointer;
  background: transparent;
}

.mode-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 6vw, 84px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(227, 6, 19, 0.96), rgba(227, 6, 19, 0.76) 46%, rgba(247, 247, 243, 0.92) 72%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.26), transparent 38%),
    var(--red);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--ink), var(--ink) 24px, var(--white) 24px, var(--white) 48px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 840px;
  color: var(--white);
}

.hero-mascot {
  position: absolute;
  right: clamp(-110px, 4vw, 72px);
  bottom: 0;
  width: min(44vw, 560px);
  min-width: 310px;
  max-height: 88vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(17, 17, 17, 0.28));
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--white);
}

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

h1 {
  max-width: 880px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8vw, 102px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.lead {
  max-width: 640px;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.38;
}

[data-copy] {
  display: none;
}

body[data-mode="simple"] [data-copy="simple"],
body[data-mode="proof"] [data-copy="proof"],
body[data-mode="action"] [data-copy="action"] {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  color: var(--red);
  background: var(--white);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
}

.button.dark {
  width: fit-content;
  margin-top: 22px;
  color: var(--white);
  background: var(--ink);
}

.band {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 6vw, 84px);
}

.proof-band {
  background: var(--white);
}

.roadmap-preview {
  background: #ecebe4;
}

.section-head {
  max-width: 850px;
  margin-bottom: 32px;
}

.principles,
.hub-grid,
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.roadmap-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.principles article,
.hub-card,
.roadmap article,
.roadmap-strip article,
.message,
.contact-notes {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.principles article,
.hub-card,
.roadmap article,
.roadmap-strip article {
  padding: 24px;
}

.roadmap-strip span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.roadmap-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.roadmap-strip p {
  color: var(--muted);
  line-height: 1.45;
}

.dance-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 84px);
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.98), rgba(54, 7, 10, 0.96) 56%, rgba(227, 6, 19, 0.9)),
    var(--ink);
}

.dance-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.dance-copy .eyebrow {
  color: var(--white);
}

.dance-copy p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.45;
}

.dance-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.golden-prison {
  min-height: 460px;
}

.golden-frame {
  position: relative;
  width: min(92%, 430px);
  aspect-ratio: 9 / 12;
  overflow: hidden;
  border: 10px solid #c8932f;
  border-radius: 8px;
  background: #120f0a;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 42px rgba(200, 147, 47, 0.28);
}

.golden-frame::before,
.golden-frame::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  height: 18px;
  background: linear-gradient(90deg, #7a4d10, #f8d375, #9a6519);
  box-shadow: 0 0 18px rgba(248, 211, 117, 0.34);
}

.golden-frame::before {
  top: 18%;
}

.golden-frame::after {
  bottom: 18%;
}

.golden-bars {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 11.5%,
      rgba(248, 211, 117, 0.95) 12.4%,
      rgba(122, 77, 16, 0.95) 13.6%,
      transparent 14.6%,
      transparent 22%
    );
  mix-blend-mode: screen;
}

.dance-video,
.dance-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dance-video {
  z-index: 2;
}

.dance-poster-fallback {
  z-index: 1;
  filter: saturate(1.04) contrast(1.04);
}

.pulse-ring {
  position: absolute;
  width: min(88%, 430px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  animation: pulseBeat 1.36s ease-in-out infinite;
}

.dance-cow {
  position: relative;
  z-index: 2;
  width: min(88%, 360px);
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.34));
  transform-origin: 50% 82%;
  animation: swizaDance 1.36s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}

.dance-cow-overlay {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 18px;
  width: min(48%, 230px);
}

.beat-bars {
  position: absolute;
  right: 0;
  bottom: 42px;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 8px;
  height: 72px;
}

.beat-bars span {
  display: block;
  width: 10px;
  height: 24px;
  border-radius: 999px;
  background: var(--white);
  opacity: 0.76;
  animation: beatBar 0.68s ease-in-out infinite;
}

.beat-bars span:nth-child(2) { animation-delay: 0.08s; }
.beat-bars span:nth-child(3) { animation-delay: 0.16s; }
.beat-bars span:nth-child(4) { animation-delay: 0.24s; }
.beat-bars span:nth-child(5) { animation-delay: 0.32s; }

@keyframes swizaDance {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  25% { transform: translateY(-18px) rotate(4deg) scale(1.03); }
  50% { transform: translateY(0) rotate(2deg) scale(0.98); }
  75% { transform: translateY(-12px) rotate(-5deg) scale(1.02); }
}

@keyframes pulseBeat {
  0%, 100% { transform: scale(0.86); opacity: 0.32; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

@keyframes beatBar {
  0%, 100% { height: 18px; background: var(--white); }
  50% { height: 66px; background: var(--red); }
}

.num,
.phase {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.hub-card {
  display: grid;
  gap: 12px;
}

.hub-card strong {
  font-size: 20px;
}

.hub-card p {
  color: var(--muted);
  line-height: 1.45;
}

.hub-card .domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--green);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  background: #ecebe4;
}

.checklist {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.checklist li,
.roadmap li,
.contact-notes li {
  line-height: 1.5;
}

.checklist li::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  font-weight: 900;
}

.side-image {
  width: min(100%, 440px);
  justify-self: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-hero {
  min-height: 46vh;
  padding: clamp(72px, 10vw, 132px) clamp(18px, 6vw, 84px) 52px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #3b0b0e 58%, var(--red));
}

.page-hero.compact {
  min-height: 34vh;
}

.page-hero p {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.45;
}

.roadmap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.roadmap ul,
.contact-notes ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.contact-pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.45fr);
  gap: 18px;
}

.ticket-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: 18px;
}

.ticket-panel,
.ticket-rules,
.ticket-output {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.ticket-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.ticket-output {
  display: none;
  margin-top: 18px;
  box-shadow: none;
}

.ticket-output.is-visible {
  display: block;
}

.is-hidden {
  display: none !important;
}

.relay-logo {
  display: block;
  width: min(280px, 100%);
  height: auto;
  margin-bottom: 20px;
}

.muted-copy {
  color: var(--muted);
  line-height: 1.45;
}

.ticket-code {
  display: block;
  overflow-x: auto;
  padding: 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
}

.message,
.contact-notes {
  padding: clamp(22px, 4vw, 42px);
}

.message {
  font-size: 20px;
  line-height: 1.55;
}

.footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  padding: 22px clamp(18px, 6vw, 84px);
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
}

.footer div {
  display: grid;
  gap: 6px;
}

.footer-note {
  max-width: 980px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .mode-switch {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    align-items: end;
    min-height: 82vh;
    padding-bottom: 280px;
  }

  .hero-mascot {
    right: 50%;
    width: 360px;
    transform: translateX(50%);
  }

  .principles,
  .hub-grid,
  .roadmap,
  .roadmap-strip,
  .split,
  .dance-band,
  .contact-pack,
  .ticket-shell,
  .footer {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(42px, 13vw, 74px);
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 42px;
    padding-bottom: 250px;
  }

  .nav a,
  .mode-switch button,
  .button {
    font-size: 13px;
    padding-inline: 10px;
  }
}
