:root {
  --black: #07080b;
  --ink: #10131a;
  --paper: #fff7df;
  --muted: rgba(255, 247, 223, 0.76);
  --line: rgba(255, 255, 255, 0.16);
  --red: #ff3d5a;
  --cyan: #00e3ff;
  --gold: #ffd15c;
  --green: #36ff90;
  --steel: #8fa4bd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(7, 8, 11, 0.82), rgba(7, 8, 11, 0.96)),
    linear-gradient(105deg, rgba(0, 227, 255, 0.13), transparent 30%),
    linear-gradient(180deg, transparent 34%, rgba(255, 209, 92, 0.1) 52%, transparent 70%),
    linear-gradient(255deg, rgba(255, 61, 90, 0.13), transparent 34%),
    url("assets/three-republics-bg.png") center top / cover fixed,
    var(--black);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 227, 255, 0.09), transparent 31%),
    linear-gradient(180deg, transparent 30%, rgba(255, 209, 92, 0.08) 52%, transparent 72%),
    linear-gradient(270deg, rgba(255, 61, 90, 0.1), transparent 34%),
    rgba(7, 8, 11, 0.72);
}

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

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.96), rgba(7, 8, 11, 0.42), rgba(7, 8, 11, 0));
}

.brand,
.nav,
.hud,
.radio-controls,
.download-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  color: var(--black);
  background: var(--gold);
  border: 3px solid var(--paper);
  box-shadow: 0.25rem 0.25rem 0 var(--red);
  font-family: Anton, Impact, sans-serif;
}

.nav {
  gap: clamp(0.8rem, 2.2vw, 2rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav a:hover,
.join-link:hover {
  color: var(--cyan);
}

.join-link {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 8rem clamp(1rem, 5vw, 5rem) 5rem;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, 0.95), rgba(7, 8, 11, 0.56) 52%, rgba(7, 8, 11, 0.9)),
    linear-gradient(0deg, var(--black), rgba(7, 8, 11, 0.1) 54%),
    linear-gradient(120deg, rgba(0, 227, 255, 0.15), transparent 34%),
    linear-gradient(245deg, rgba(255, 61, 90, 0.15), transparent 38%);
}

.hud {
  position: absolute;
  top: 5.4rem;
  right: clamp(1rem, 3vw, 3rem);
  z-index: 2;
  gap: 0.85rem;
  padding: 0.72rem 0.95rem;
  background: rgba(7, 8, 11, 0.74);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  justify-content: center;
  text-align: center;
}

.cash,
.clock {
  color: var(--green);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.stars {
  display: flex;
  gap: 0.1rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.28);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 1.1rem;
}

.star.active {
  color: var(--gold);
  text-shadow: 0 0 0.7rem rgba(255, 209, 92, 0.86);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(50rem, 100%);
  text-align: left;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 100%;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(3.6rem, 9.4vw, 9rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0.06em 0.05em 0 var(--red), -0.03em -0.03em 0 var(--cyan);
  white-space: nowrap;
}

.lead {
  width: min(38rem, 100%);
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions,
.section-head,
.join-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 2rem;
}

.primary-btn,
.ghost-btn {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 2px solid var(--paper);
  font-weight: 900;
  text-transform: uppercase;
  transform: skew(-8deg);
  white-space: nowrap;
  text-align: center;
}

.primary-btn {
  color: var(--black);
  background: var(--gold);
  box-shadow: 0.35rem 0.35rem 0 var(--red);
}

.ghost-btn {
  background: rgba(7, 8, 11, 0.5);
}

.republic-panel {
  position: absolute;
  right: clamp(1rem, 5vw, 5rem);
  bottom: 4rem;
  z-index: 2;
  display: grid;
  gap: 0.65rem;
  width: min(19rem, 34vw);
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(10px);
}

.republic-panel div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.republic-panel div:last-child {
  border-bottom: 0;
}

.republic-panel strong,
.republic-panel small {
  text-transform: uppercase;
}

.republic-panel small {
  color: var(--muted);
  font-weight: 900;
}

.dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  box-shadow: 0 0 1rem currentColor;
}

.federal {
  color: var(--cyan);
  background: var(--cyan);
}

.coast {
  color: var(--gold);
  background: var(--gold);
}

.industrial {
  color: var(--red);
  background: var(--red);
}

.ticker {
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: 0;
  color: var(--black);
  background: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  border-block: 2px solid rgba(7, 8, 11, 0.9);
}

.ticker-track {
  display: flex;
  flex: 0 0 auto;
  min-width: max-content;
  gap: 2.4rem;
  padding: 1rem 1.2rem;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.ticker span::before {
  content: "NEWS";
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0 0.45rem;
  color: var(--paper);
  background: var(--black);
  font-size: 0.7rem;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.republics-section,
.jobs-section,
.rules-section,
.radio-band,
.download-section {
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.section-head {
  justify-content: space-between;
  margin-bottom: 2rem;
  text-align: left;
}

h2 {
  max-width: 22ch;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}

.republic-grid,
.role-list,
.stats {
  display: grid;
  gap: 1rem;
}

.republic-grid,
.role-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.republic-card,
.role,
.poster,
.stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 15, 22, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
}

.republic-card,
.role {
  min-height: 16rem;
  padding: 1.4rem;
}

.republic-card {
  position: relative;
  overflow: hidden;
}

.republic-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0.45rem;
}

.federal-card::after {
  background: var(--cyan);
}

.coast-card::after {
  background: var(--gold);
}

.industrial-card::after {
  background: var(--red);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 3rem;
  color: var(--steel);
  font-family: Anton, Impact, sans-serif;
  font-size: 2.4rem;
}

h3 {
  font-family: Anton, Impact, sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
}

.republic-card p,
.role p,
.poster p,
.download-copy p {
  color: var(--muted);
  line-height: 1.68;
  max-width: 48rem;
  text-wrap: pretty;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(14rem, 0.6fr) minmax(0, 1.4fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(90deg, rgba(0, 227, 255, 0.16), rgba(255, 209, 92, 0.1) 50%, rgba(255, 61, 90, 0.16)),
    rgba(7, 8, 11, 0.76);
  border-block: 1px solid var(--line);
}

.phone-frame {
  width: min(17rem, 100%);
  aspect-ratio: 9 / 16;
  padding: 0.8rem;
  border: 2px solid var(--paper);
  background: #11151d;
  box-shadow: 0.6rem 0.6rem 0 var(--red);
  transform: rotate(-3deg);
}

.phone-top {
  width: 35%;
  height: 0.35rem;
  margin: 0 auto 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.phone-screen {
  display: grid;
  height: calc(100% - 1.15rem);
  place-content: center;
  gap: 0.35rem;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 209, 92, 0.28), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(0, 227, 255, 0.22), transparent 35%),
    #07080b;
}

.phone-screen span,
.phone-screen strong {
  font-family: Anton, Impact, sans-serif;
  text-transform: uppercase;
}

.phone-screen span {
  color: var(--black);
  background: var(--gold);
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  margin: 0 auto;
  box-shadow: 0.3rem 0.3rem 0 var(--red);
}

.phone-screen strong {
  font-size: 2.4rem;
  line-height: 0.9;
}

.phone-screen small,
.file-note {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.download-actions {
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.file-note {
  font-size: 0.88rem;
}

.radio-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.radio-controls {
  gap: 0.6rem;
}

.station {
  width: 3.6rem;
  height: 3.6rem;
  color: var(--paper);
  background: rgba(7, 8, 11, 0.5);
  border: 1px solid var(--line);
  font-weight: 900;
  cursor: pointer;
}

.station.active {
  color: var(--black);
  background: var(--cyan);
  border-color: var(--paper);
}

.police {
  border-top: 0.45rem solid var(--cyan);
}

.driver {
  border-top: 0.45rem solid var(--gold);
}

.crew {
  border-top: 0.45rem solid var(--red);
}

.rules-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(16rem, 0.7fr);
  gap: 1rem;
}

.poster {
  min-height: 24rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(120deg, rgba(0, 227, 255, 0.16), rgba(255, 209, 92, 0.08) 48%, rgba(255, 61, 90, 0.16)),
    rgba(12, 15, 22, 0.86);
}

.stats {
  grid-template-rows: repeat(3, 1fr);
}

.stats div {
  display: grid;
  align-content: center;
  padding: 1.2rem;
}

.stats strong {
  color: var(--gold);
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.stats span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

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

  .hud {
    left: 1rem;
    right: auto;
    top: 5.1rem;
  }

  .republic-panel {
    display: none;
  }

  .republic-grid,
  .role-list,
  .rules-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .section-head,
  .radio-band {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: clamp(3rem, 11.5vw, 5rem);
  }

  .hero-content,
  .section-head,
  .download-copy,
  .poster,
  .role,
  .republic-card {
    text-align: left;
  }
}

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

  .hero {
    min-height: 82vh;
    padding: 10.1rem 1rem 2.6rem;
    align-items: start;
  }

  .hero-bg {
    object-position: 52% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 8, 11, 0.78), rgba(7, 8, 11, 0.3) 54%, rgba(7, 8, 11, 0.76)),
      linear-gradient(0deg, rgba(7, 8, 11, 0.66), rgba(7, 8, 11, 0.2) 58%, rgba(7, 8, 11, 0.64)),
      linear-gradient(120deg, rgba(0, 227, 255, 0.18), transparent 42%),
      linear-gradient(245deg, rgba(255, 61, 90, 0.16), transparent 48%);
  }

  .hero-content {
    margin-top: 0;
  }

  h1 {
    font-size: clamp(2.32rem, 9.3vw, 2.95rem);
    line-height: 0.94;
    letter-spacing: 0;
  }

  h2 {
    font-size: clamp(2rem, 9.4vw, 2.75rem);
    line-height: 1;
    max-width: 11ch;
  }

  h3 {
    font-size: 1.8rem;
  }

  .eyebrow {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .lead {
    width: 100%;
    margin-top: 1.1rem;
    font-size: 1rem;
    line-height: 1.55;
    max-width: 34ch;
  }

  .hero-actions a,
  .download-actions a {
    width: calc(100% - 0.35rem);
    min-height: 3.35rem;
    padding-inline: 0.7rem;
    white-space: normal;
  }

  .hud {
    left: 50%;
    right: auto;
    top: 5rem;
    width: calc(100% - 2rem);
    max-width: 23rem;
    justify-content: center;
    gap: 0.62rem;
    transform: translateX(-50%);
    transform-origin: center top;
  }

  .ticker-track {
    gap: 1.25rem;
    padding: 0.82rem 0.7rem;
    animation-duration: 24s;
  }

  .ticker span {
    font-size: 0.78rem;
  }

  .phone-frame {
    margin-inline: auto;
  }

  .republics-section,
  .jobs-section,
  .rules-section,
  .radio-band,
  .download-section {
    padding: 3.2rem 1rem;
  }

  .republic-card,
  .role {
    min-height: auto;
    padding: 1.15rem;
  }

  .card-kicker {
    margin-bottom: 1.6rem;
    font-size: 2rem;
  }

  .download-section {
    gap: 2rem;
  }

  .phone-frame {
    width: min(13.5rem, 80vw);
    box-shadow: 0.4rem 0.4rem 0 var(--red);
  }

  .phone-screen strong {
    font-size: 1.85rem;
  }

  .stats {
    grid-template-rows: none;
  }
}

@media (max-width: 380px) {
  .cash,
  .clock {
    font-size: 0.95rem;
  }

  .stars {
    font-size: 0.95rem;
  }

  .hud {
    gap: 0.45rem;
    padding-inline: 0.55rem;
  }

  h1 {
    font-size: clamp(2.05rem, 9vw, 2.45rem);
  }

  .lead {
    font-size: 0.94rem;
  }
}
