:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b8c4d9;
  --deep: #080717;
  --night: #111027;
  --violet: #8a4dff;
  --magenta: #ee54ff;
  --cyan: #43ffd9;
  --gold: #ffcb6b;
  --orange: #ff7c4d;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(11, 11, 30, 0.68);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 8%, rgba(238, 84, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 2%, rgba(67, 255, 217, 0.18), transparent 30rem),
    linear-gradient(180deg, #080717 0%, #111027 52%, #090713 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 80%);
}

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

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

.hero {
  position: relative;
  min-height: 100svh;
  padding: 22px clamp(18px, 4vw, 64px) 72px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 7, 23, 0.88) 0%, rgba(8, 7, 23, 0.54) 46%, rgba(8, 7, 23, 0.2) 100%),
    url("assets/shield-sunrise-bg.png") center / cover;
  opacity: 0.92;
}

.hero::after {
  position: absolute;
  inset: auto -20% -26% -20%;
  z-index: -1;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--deep) 70%);
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 5, 17, 0.56);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(67, 255, 217, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.6vw, 30px);
  color: rgba(248, 251, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  text-shadow: 0 0 18px rgba(67, 255, 217, 0.75);
}

.ca-chip {
  min-width: max-content;
  padding: 11px 14px;
  border: 1px solid rgba(67, 255, 217, 0.42);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(67, 255, 217, 0.1);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  width: min(1180px, 100%);
  min-height: calc(100svh - 118px);
  margin: 0 auto;
  padding-top: 46px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Archivo Black", Inter, sans-serif;
  line-height: 0.94;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.6rem, 8vw, 6.9rem);
  text-shadow:
    0 0 28px rgba(67, 255, 217, 0.48),
    0 0 52px rgba(238, 84, 255, 0.32);
}

.hero-copy h2 {
  margin-top: 8px;
  max-width: 820px;
  color: var(--gold);
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  text-shadow: 0 0 34px rgba(255, 203, 107, 0.32);
}

.hero-copy p,
.section-copy p,
.bg-content p {
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.22rem);
  font-weight: 700;
  line-height: 1.7;
}

.hero-copy > p {
  max-width: 600px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(67, 255, 217, 0.72);
  background: rgba(67, 255, 217, 0.14);
}

.button.primary {
  border-color: rgba(67, 255, 217, 0.7);
  color: #061216;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  box-shadow: 0 16px 42px rgba(67, 255, 217, 0.2);
}

.coin-card {
  position: relative;
  margin: 0;
}

.coin-card::before {
  position: absolute;
  inset: 8%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(67, 255, 217, 0.58), transparent 56%),
    radial-gradient(circle, rgba(238, 84, 255, 0.42), transparent 62%);
  filter: blur(34px);
}

.coin-card img {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  position: relative;
  padding: clamp(72px, 10vw, 130px) clamp(18px, 4vw, 64px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(1160px, 100%);
  margin: 0 auto;
}

.section-copy h2,
.bg-content h2,
.contract-strip h2 {
  font-size: clamp(2.5rem, 6vw, 5.6rem);
}

.section-copy p {
  max-width: 680px;
}

.image-panel {
  position: relative;
  margin: 0;
}

.image-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.bg-section {
  min-height: 88svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.bg-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}

.storm-bg {
  background-image: url("assets/storm-sunrise-bg.png");
}

.sunrise-bg {
  background-image: url("assets/better-times-bg.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-color: var(--deep);
}

.bg-section::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 7, 23, 0.92), rgba(8, 7, 23, 0.58) 48%, rgba(8, 7, 23, 0.2)),
    linear-gradient(180deg, rgba(8, 7, 23, 0.72), rgba(8, 7, 23, 0.24), rgba(8, 7, 23, 0.84));
}

.better-times::before {
  background:
    linear-gradient(90deg, rgba(8, 7, 23, 0.88), rgba(8, 7, 23, 0.38) 54%, rgba(8, 7, 23, 0.12)),
    linear-gradient(180deg, rgba(8, 7, 23, 0.58), rgba(8, 7, 23, 0.08), rgba(8, 7, 23, 0.72));
}

.bg-content {
  width: min(780px, 100%);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 6, 20, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-inline: 0;
}

.story-tile {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--night);
  box-shadow: var(--shadow);
}

.story-tile img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.story-tile:hover img {
  transform: scale(1.05);
}

.story-tile figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(6, 6, 20, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.unity {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 0.92fr);
}

.shield-field {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding-inline: 0;
}

.shield-field img {
  width: 100%;
  max-height: 680px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.contract-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(46px, 7vw, 78px);
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(67, 255, 217, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(67, 255, 217, 0.14), rgba(238, 84, 255, 0.12)),
    rgba(9, 8, 24, 0.76);
  box-shadow: var(--shadow);
}

.contract-box {
  display: grid;
  gap: 6px;
  min-width: min(100%, 260px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.contract-box span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contract-box strong {
  color: var(--cyan);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  padding: 24px 18px 36px;
  color: rgba(248, 251, 255, 0.64);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-grid,
  .split,
  .unity {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 54px;
  }

  .coin-card {
    max-width: 560px;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }

  .story-tile,
  .story-tile img {
    min-height: 420px;
  }

  .bg-section {
    min-height: 760px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-inline: 14px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .ca-chip {
    width: 100%;
    text-align: center;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding-inline: 14px;
  }

  .section-copy h2,
  .bg-content h2,
  .contract-strip h2 {
    font-size: clamp(2.15rem, 14vw, 3.6rem);
  }

  .bg-content {
    padding: 20px;
  }

  .bg-section::before {
    background:
      linear-gradient(180deg, rgba(8, 7, 23, 0.84), rgba(8, 7, 23, 0.5), rgba(8, 7, 23, 0.9)),
      linear-gradient(90deg, rgba(8, 7, 23, 0.84), rgba(8, 7, 23, 0.36));
  }

  .contract-strip {
    flex-direction: column;
    align-items: stretch;
  }

  footer {
    align-items: center;
    flex-direction: column;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
