:root {
  --bg: #071216;
  --bg-elevated: rgba(9, 29, 34, 0.8);
  --panel: rgba(12, 37, 43, 0.86);
  --panel-strong: rgba(15, 50, 58, 0.96);
  --text: #f5efe1;
  --muted: #b8c7c4;
  --gold: #f4c64c;
  --teal: #62d7d0;
  --teal-soft: #1e8c92;
  --border: rgba(255, 245, 220, 0.14);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.33);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 190, 170, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(244, 198, 76, 0.14), transparent 28%),
    linear-gradient(180deg, #081116 0%, #0d1d22 54%, #091116 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 18%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 96px,
      rgba(255, 255, 255, 0.02) 96px,
      rgba(255, 255, 255, 0.02) 97px
    );
  opacity: 0.4;
}

a {
  color: inherit;
}

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

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(rgba(3, 10, 12, 0.3), rgba(3, 10, 12, 0.82)),
    url("./assets/sts2-hero-1600.jpg") center/cover;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.1) 14%, rgba(6, 24, 28, 0.9) 58%, rgba(4, 16, 19, 0.98) 100%);
}

.topbar,
.hero-grid {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #df8f2d);
  color: #112428;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy span,
.topbar-links a,
.section-heading p,
.section-copy p,
.step p,
.watch-card p,
.contender-card p,
.source-note,
.footer p,
.community-notes p,
.interactive-card p,
.form-note {
  color: var(--muted);
}

.topbar-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topbar-links a {
  text-decoration: none;
  font-size: 0.95rem;
}

.topbar-links a:hover,
.footer-links a:hover,
.watch-card a:hover {
  color: var(--teal);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 28px;
  padding: 28px 24px 30px;
}

.hero-copy {
  padding: 34px 8px 12px;
}

.eyebrow,
.section-kicker,
.panel-label,
.contender-tag,
.watch-status,
.step span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

.eyebrow,
.section-kicker,
.panel-label,
.contender-tag,
.watch-status {
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  margin-top: 12px;
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.hero-text {
  max-width: 58ch;
  margin: 20px 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e6e1d4;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), #e38b2b);
  color: #102026;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-stats li,
.panel-card,
.step,
.contender-card,
.watch-card,
.gallery-section,
.footer {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  backdrop-filter: blur(14px);
}

.hero-stats li {
  min-height: 104px;
  padding: 16px;
  border-radius: 18px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
}

.hero-stats span {
  color: #d8ddd9;
}

.hero-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.panel-logo {
  width: min(100%, 360px);
  margin-left: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.panel-card {
  border-radius: 22px;
  padding: 20px;
}

.panel-card-spotlight {
  background: linear-gradient(180deg, rgba(14, 44, 51, 0.95), rgba(9, 23, 28, 0.95));
}

.panel-card-spotlight h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.panel-card-spotlight p {
  margin: 14px 0 0;
  line-height: 1.7;
  color: #dce1dd;
}

.panel-card-image {
  padding: 10px;
}

.panel-card-image img {
  border-radius: 16px;
}

.section {
  margin-top: 26px;
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(8, 27, 31, 0.92), rgba(8, 20, 24, 0.92));
  box-shadow: var(--shadow);
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.section-heading,
.section-copy {
  max-width: 58ch;
}

.section h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 3.3rem);
}

.section p {
  line-height: 1.7;
}

.steps,
.cards,
.watch-grid,
.gallery-grid,
.forms-grid,
.poll-grid,
.community-notes {
  display: grid;
  gap: 16px;
}

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

.step {
  border-radius: 22px;
  padding: 18px;
}

.step span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--teal);
}

.step h3 {
  font-size: 1.5rem;
}

.step p {
  margin-top: 12px;
}

.cards-four {
  margin-top: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contender-card {
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
}

.contender-card h3 {
  margin-top: 14px;
  font-size: 1.7rem;
}

.contender-card p:last-child,
.source-note {
  margin-top: 12px;
}

.contender-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.contender-metrics div {
  min-height: 70px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.contender-metrics dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contender-metrics dd {
  margin: 0;
  color: var(--teal);
  font-family: "Fraunces", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.source-note {
  max-width: 74ch;
  line-height: 1.7;
}

.section-watch {
  background:
    radial-gradient(circle at top right, rgba(98, 215, 208, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(8, 27, 31, 0.92), rgba(8, 20, 24, 0.92));
}

.watch-grid {
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-join {
  align-items: start;
}

.community-notes {
  margin-top: 22px;
}

.community-notes > div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.community-notes strong {
  color: var(--text);
}

.forms-grid {
  grid-template-columns: 1fr;
}

.google-auth-shell {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.interactive-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 37, 43, 0.95), rgba(8, 20, 24, 0.95));
  padding: 20px;
}

.interactive-card h3 {
  margin-top: 10px;
  font-size: 1.8rem;
}

.interactive-card label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #ecf1ed;
}

.interactive-card input,
.interactive-card select,
.interactive-card textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(4, 14, 17, 0.84);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.interactive-card input::placeholder,
.interactive-card textarea::placeholder {
  color: #8ea09d;
}

.interactive-card textarea {
  min-height: 120px;
  resize: vertical;
}

.interactive-card input:focus,
.interactive-card select:focus,
.interactive-card textarea:focus {
  outline: 2px solid rgba(98, 215, 208, 0.4);
  border-color: rgba(98, 215, 208, 0.55);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.submit-wide {
  margin-top: 20px;
  width: 100%;
}

.form-note,
.form-status,
.seed-status,
.google-state {
  margin-top: 12px;
  line-height: 1.6;
}

.form-status,
.google-state {
  color: #dce4df;
}

.seed-status[data-state="valid"] {
  color: #8df5c6;
}

.seed-status[data-state="invalid"] {
  color: #ffb3a8;
}

.section-vote {
  background:
    radial-gradient(circle at top left, rgba(244, 198, 76, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 27, 31, 0.92), rgba(8, 20, 24, 0.92));
}

.poll-grid {
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vote-card .vote-question {
  margin-top: 14px;
  color: #edf0e9;
}

.google-auth-block {
  margin-top: 18px;
}

.vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.vote-button[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
}

.vote-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.vote-metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.vote-metric strong {
  display: block;
  color: var(--gold);
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.watch-card {
  border-radius: 22px;
  padding: 20px;
}

.watch-card h3 {
  margin-top: 12px;
  font-size: 1.8rem;
}

.watch-card a {
  display: inline-block;
  margin-top: 16px;
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

.live-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-soon::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(244, 198, 76, 0.7);
}

.gallery-section {
  overflow: hidden;
}

.gallery-grid {
  margin-top: 20px;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-areas:
    "feature feature side1"
    "feature feature side2";
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-feature {
  grid-area: feature;
  min-height: 460px;
}

.gallery-grid figure:nth-child(2) {
  grid-area: side1;
}

.gallery-grid figure:nth-child(3) {
  grid-area: side2;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 24px;
}

.footer-copy {
  max-width: 72ch;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #dce4df;
}

@media (max-width: 1040px) {
  .hero-grid,
  .section-split,
  .cards-four,
  .watch-grid,
  .steps,
  .poll-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid > :first-child,
  .section-copy,
  .section-heading,
  .gallery-feature {
    grid-column: 1 / -1;
  }

  .hero-panel {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .panel-logo {
    grid-column: 1 / -1;
  }

  .forms-grid,
  .community-notes {
    grid-column: 1 / -1;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "feature feature"
      "side1 side2";
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 1200px);
    padding-top: 10px;
  }

  .topbar,
  .hero-grid,
  .section,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar,
  .footer,
  .hero-grid,
  .hero-panel,
  .section-split,
  .steps,
  .cards-four,
  .watch-grid,
  .hero-stats,
  .gallery-grid,
  .poll-grid,
  .field-row,
  .vote-stats {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .gallery-grid {
    grid-template-areas:
      "feature"
      "side1"
      "side2";
  }

  .gallery-feature {
    min-height: 320px;
  }
}
