:root {
  --navy: #061437;
  --navy-2: #0b266a;
  --blue: #075fd0;
  --blue-light: #2a8cff;
  --red: #e21f2f;
  --red-dark: #8b0718;
  --gold: #ffc83d;
  --gold-dark: #bc7004;
  --paper: #c89153;
  --paper-light: #efc080;
  --ink: #06102b;
  --white: #fff8ec;
  --shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 12%, rgba(42, 140, 255, .22), transparent 26rem),
    linear-gradient(180deg, #071947 0%, var(--navy) 43%, #030a1c 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.sky-noise {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 40px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  clip-path: polygon(50% 0, 93% 17%, 100% 71%, 66% 100%, 20% 91%, 0 43%, 18% 8%);
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.5rem;
  transform: rotate(-5deg);
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a:not(.nav-pill) { border-bottom: 2px solid transparent; }
.site-nav a:not(.nav-pill):hover { border-color: var(--gold); }
.nav-pill {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  clip-path: polygon(4% 8%, 96% 0, 100% 88%, 8% 100%, 0 55%);
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.hero-image-wrap {
  --rx: 0deg;
  --ry: 0deg;
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.025);
  transition: transform .2s ease-out;
}
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 12, 38, .94) 2%, rgba(3, 12, 38, .72) 35%, rgba(3, 12, 38, .08) 67%), linear-gradient(0deg, var(--navy) 0%, transparent 22%);
}
.hero-sheen {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.12) 50%, transparent 58%);
  animation: sheen 8s ease-in-out infinite;
}

.hero-copy {
  width: min(1180px, calc(100% - 40px));
  padding-top: 80px;
}
.hero-copy > * { max-width: 590px; }
.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
}
h1, h2, h3 { margin-top: 0; }
h1 {
  margin-bottom: 2px;
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(5.3rem, 12vw, 10.5rem);
  line-height: .78;
  letter-spacing: .02em;
  text-shadow: 6px 8px 0 var(--red-dark), 10px 12px 0 rgba(0,0,0,.35);
  transform: rotate(-2deg);
}
h1 span { display: block; color: var(--gold); font-size: .57em; text-shadow: 5px 6px 0 var(--gold-dark), 8px 9px 0 rgba(0,0,0,.35); }
.ticker {
  margin: 12px 0;
  color: var(--paper-light);
  font-family: Bangers, Impact, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: .08em;
}
.hero-text { margin: 0 0 30px; max-width: 520px; font-size: 1.08rem; line-height: 1.65; }
.action-row { display: flex; flex-wrap: wrap; gap: 16px; }

.comic-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 14px 25px;
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 7px 8px 0 rgba(0,0,0,.7);
  clip-path: polygon(2% 9%, 97% 0, 100% 89%, 92% 100%, 5% 95%, 0 48%);
  font-family: Bangers, Impact, sans-serif;
  font-size: 1.25rem;
  letter-spacing: .08em;
  text-decoration: none;
  transform: rotate(-1deg);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.comic-button:nth-child(even) { transform: rotate(1.25deg); }
.comic-button:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 9px 12px 0 rgba(0,0,0,.55); filter: saturate(1.16); }
.comic-button:active { transform: translateY(3px); box-shadow: 3px 4px 0 rgba(0,0,0,.7); }
.comic-button--gold { background: var(--gold); }
.comic-button--paper { background: var(--paper-light); }

.hero-burst { position: absolute; z-index: -1; border-radius: 50%; filter: blur(8px); opacity: .25; }
.burst-one { width: 420px; height: 420px; left: -220px; bottom: -180px; background: var(--red); animation: pulse 5s ease-in-out infinite; }
.burst-two { width: 300px; height: 300px; right: -100px; top: 80px; background: var(--blue-light); animation: pulse 6.5s ease-in-out infinite reverse; }

.contract-section {
  width: min(1180px, calc(100% - 40px));
  margin: -48px auto 105px;
  padding: 28px 30px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 26px;
  color: var(--ink);
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 11px 13px 0 var(--red-dark), var(--shadow);
  clip-path: polygon(1% 5%, 97% 0, 100% 88%, 96% 100%, 3% 95%, 0 55%);
}
.contract-section h2 { margin-bottom: 0; font-family: Bangers, Impact, sans-serif; font-size: 2.25rem; letter-spacing: .04em; }
.contract-section .section-kicker { color: #6b3300; }
.contract-card {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  color: var(--white);
  background: var(--navy);
  border: 3px solid var(--ink);
  box-shadow: 5px 6px 0 rgba(110, 49, 3, .55);
  cursor: pointer;
  clip-path: polygon(1% 7%, 99% 0, 100% 90%, 3% 100%, 0 50%);
}
.contract-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 .93rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-label { flex: 0 0 auto; color: var(--gold); font-family: Bangers, Impact, sans-serif; font-size: 1.15rem; letter-spacing: .08em; }

.story-section, .powers-section, .signal-section { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.story-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(46px, 8vw, 110px); align-items: center; padding: 0 0 130px; }
.story-art { position: relative; }
.portrait-frame { position: relative; padding: 12px; background: var(--gold); border: 4px solid var(--ink); box-shadow: 15px 17px 0 var(--red), var(--shadow); transform: rotate(-3deg); clip-path: polygon(3% 1%, 96% 5%, 100% 94%, 5% 100%, 0 49%); }
.portrait-frame::before { content: ""; position: absolute; inset: 8%; border: 3px solid rgba(255,255,255,.55); pointer-events: none; }
.portrait-frame img { aspect-ratio: 1; object-fit: cover; }
.comic-stamp { position: absolute; right: -34px; bottom: -26px; padding: 16px 18px; color: var(--ink); background: var(--paper-light); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--blue); font-family: Bangers, Impact, sans-serif; font-size: 1.2rem; line-height: 1; text-align: center; transform: rotate(8deg); }
.story-copy h2, .powers-section h2, .signal-section h2 { margin-bottom: 24px; font-family: Bangers, Impact, sans-serif; font-size: clamp(3rem, 7vw, 5.6rem); line-height: .94; letter-spacing: .025em; }
.story-copy > p:not(.section-kicker), .signal-section p { color: #dce6ff; font-size: 1.03rem; line-height: 1.75; }
.speech-bubble { margin-top: 28px; display: inline-block; padding: 18px 22px; color: var(--ink); background: var(--white); border: 3px solid var(--ink); box-shadow: 7px 7px 0 var(--blue); clip-path: polygon(1% 7%, 97% 0, 100% 84%, 82% 88%, 73% 100%, 69% 88%, 4% 95%, 0 45%); font-family: Bangers, Impact, sans-serif; font-size: 1.55rem; letter-spacing: .04em; transform: rotate(-1deg); }

.powers-section { padding: 100px 0 135px; text-align: center; }
.power-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 54px; text-align: left; }
.power-card { min-height: 285px; padding: 30px; color: var(--ink); border: 4px solid var(--ink); box-shadow: 10px 11px 0 rgba(0,0,0,.65); clip-path: polygon(3% 1%, 97% 4%, 100% 93%, 91% 100%, 2% 96%, 0 43%); transition: transform .2s ease; }
.power-card:nth-child(2) { transform: translateY(24px) rotate(1deg); }
.power-card:hover { transform: translateY(-8px) rotate(-1deg); }
.power-card:nth-child(2):hover { transform: translateY(16px) rotate(0deg); }
.power-card--blue { background: #4d9cff; }
.power-card--red { background: #ff5260; }
.power-card--gold { background: var(--gold); }
.power-number { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 32px; color: var(--white); background: var(--ink); border-radius: 50%; font-family: Bangers, Impact, sans-serif; font-size: 1.3rem; }
.power-card h3 { margin-bottom: 12px; font-family: Bangers, Impact, sans-serif; font-size: 2.15rem; letter-spacing: .03em; }
.power-card p { margin: 0; font-weight: 700; line-height: 1.55; }

.signal-section { margin-bottom: 115px; padding: 74px 6vw; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 30px; background: linear-gradient(135deg, var(--red) 0%, #9a0719 100%); border: 4px solid var(--ink); box-shadow: 13px 15px 0 #020717; clip-path: polygon(1% 5%, 97% 0, 100% 89%, 94% 100%, 2% 96%, 0 50%); }
.signal-section::after { content: "Z"; position: absolute; right: -30px; bottom: -115px; color: rgba(255,255,255,.07); font-family: Bangers, Impact, sans-serif; font-size: 25rem; transform: rotate(-13deg); pointer-events: none; }
.signal-section h2 { margin-bottom: 15px; }
.signal-section p { max-width: 640px; }
.action-row--centered { position: relative; z-index: 1; justify-content: center; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 36px; display: flex; justify-content: space-between; gap: 24px; color: #9db4e5; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; padding: 13px 20px; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); box-shadow: 5px 6px 0 rgba(0,0,0,.55); font-weight: 900; transform: translate(-50%, 140%); transition: transform .25s ease; }
.toast.is-visible { transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes sheen { 0%, 35% { transform: translateX(-40%); } 65%, 100% { transform: translateX(40%); } }
@keyframes pulse { 0%, 100% { transform: scale(.9); opacity: .18; } 50% { transform: scale(1.15); opacity: .33; } }

@media (max-width: 900px) {
  .hero { min-height: 720px; align-items: end; }
  .hero-image { object-position: 64% center; }
  .hero-image-wrap::after { background: linear-gradient(90deg, rgba(3,12,38,.91), rgba(3,12,38,.22)), linear-gradient(0deg, var(--navy) 0%, rgba(3,12,38,.45) 55%, transparent 100%); }
  .hero-copy { padding: 150px 0 100px; }
  .contract-section { grid-template-columns: 1fr; margin-top: -20px; }
  .story-section { grid-template-columns: 1fr; }
  .story-art { max-width: 510px; margin: 0 auto; }
  .power-grid { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; }
  .power-card, .power-card:nth-child(2) { min-height: 0; transform: none; }
  .power-card:nth-child(2):hover { transform: translateY(-8px) rotate(-1deg); }
  .signal-section { grid-template-columns: 1fr; }
  .action-row--centered { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 28px); }
  .menu-toggle { display: block; padding: 9px 13px; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--red); font-weight: 900; text-transform: uppercase; }
  .site-nav { position: absolute; top: 78px; right: 0; width: 190px; padding: 18px; display: none; align-items: stretch; flex-direction: column; gap: 14px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 7px 8px 0 var(--red-dark); color: var(--ink); }
  .site-nav.is-open { display: flex; }
  .hero { min-height: 760px; }
  .hero-image { object-position: 70% center; }
  .hero-image-wrap::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(3,12,38,.68) 54%, rgba(3,12,38,.15) 100%); }
  .hero-copy { align-self: end; padding: 275px 0 85px; width: calc(100% - 28px); }
  h1 { font-size: clamp(4.5rem, 25vw, 7rem); }
  .hero-text { font-size: 1rem; }
  .contract-section, .story-section, .powers-section, .signal-section, footer { width: calc(100% - 28px); }
  .contract-section { padding: 27px 20px 31px; box-shadow: 8px 9px 0 var(--red-dark); }
  .contract-card { align-items: flex-start; flex-direction: column; }
  .contract-value { width: 100%; }
  .comic-stamp { right: -4px; }
  .powers-section { padding-top: 55px; }
  .signal-section { padding: 58px 26px; }
  .comic-button { width: 100%; }
  footer { flex-direction: column; }
}

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