:root {
  --bg: #071116;
  --bg-soft: #0c1c24;
  --panel: #10242c;
  --panel-strong: #143441;
  --text: #f4fbff;
  --muted: #b8c9d1;
  --primary: #25dfff;
  --primary-dark: #087891;
  --accent: #ffcf5a;
  --danger: #ff5c6c;
  --line: rgba(244, 251, 255, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  max-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 17, 22, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.site-menu .nav-cta {
  color: #031217;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 92svh;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 124px 20px 118px;
  background:
    linear-gradient(rgba(8, 120, 145, 0.48), rgba(7, 17, 22, 0.84)),
    url("assets/hero-los-santos.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, var(--bg));
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 44%, rgba(37, 223, 255, 0.24), transparent 38%),
    linear-gradient(90deg, rgba(7, 17, 22, 0.84), rgba(7, 17, 22, 0.2), rgba(7, 17, 22, 0.84));
}

.hero-content {
  width: min(940px, 100%);
  max-width: calc(100vw - 40px);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
}

h1 .title-line {
  display: block;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 26px;
  color: #d8f4ff;
  font-size: clamp(1.08rem, 2.2vw, 1.34rem);
  line-height: 1.55;
}

.hero-highlights {
  max-width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 30px;
}

.hero-highlights span {
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(37, 223, 255, 0.36);
  border-radius: var(--radius);
  background: rgba(7, 17, 22, 0.62);
  color: #e9fbff;
  font-weight: 800;
}

.hero-actions,
.join-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  padding: 0 20px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.primary-button {
  color: #02151a;
  background: var(--primary);
  box-shadow: 0 14px 36px rgba(37, 223, 255, 0.3);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.ghost-button {
  width: 100%;
  color: var(--primary);
  background: rgba(37, 223, 255, 0.09);
  border: 1px solid rgba(37, 223, 255, 0.26);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.stats {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: min(980px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.stat {
  min-height: 88px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 16px;
  background: rgba(7, 17, 22, 0.75);
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 1.45rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 56px);
}

.split,
.section-heading {
  width: min(1160px, 100%);
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-grid,
.store-grid,
.rules-list {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card,
.store-card,
.rule-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.feature-card {
  min-height: 242px;
  padding: 24px;
}

.feature-card .card-number {
  display: block;
  margin-bottom: 32px;
  color: var(--primary);
  font-weight: 900;
}

.feature-card p,
.store-card li,
.rule-panel li,
.join-section p {
  color: var(--muted);
  line-height: 1.62;
}

.store-section {
  background:
    linear-gradient(180deg, rgba(37, 223, 255, 0.06), transparent 46%),
    var(--bg-soft);
}

.section-heading {
  align-items: center;
}

.text-link {
  justify-self: end;
  color: var(--accent);
  font-weight: 900;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.store-card.is-featured {
  border-color: rgba(37, 223, 255, 0.6);
  background: linear-gradient(180deg, rgba(37, 223, 255, 0.18), rgba(255, 255, 255, 0.035));
}

.store-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.store-card-head span {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-card-head strong {
  color: var(--accent);
}

.store-card ul,
.rule-panel ul {
  margin: 0;
  padding-left: 18px;
}

.store-card .ghost-button {
  margin-top: auto;
}

.rules-section {
  background: #081318;
}

.rules-list {
  display: grid;
  gap: 10px;
}

.rule-item {
  overflow: hidden;
}

.rule-trigger {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  padding: 0 20px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.rule-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--primary);
}

.rule-panel {
  display: none;
  padding: 0 20px 22px;
}

.rule-trigger[aria-expanded="true"] + .rule-panel {
  display: block;
}

.rule-trigger[aria-expanded="true"] .rule-icon {
  background: var(--primary);
  color: #02151a;
}

.join-section {
  padding: clamp(72px, 10vw, 128px) 18px;
  background:
    linear-gradient(90deg, rgba(37, 223, 255, 0.16), rgba(255, 207, 90, 0.1)),
    url("assets/hero-los-santos.png") center / cover fixed;
}

.join-content {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(37, 223, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(7, 17, 22, 0.86);
  text-align: center;
  box-shadow: var(--shadow);
}

.join-section code {
  display: inline-flex;
  max-width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.26);
  color: #d9fbff;
  font-size: 0.98rem;
}

.copy-state {
  display: block;
  min-height: 24px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: 48px;
  height: 48px;
}

.site-footer p {
  margin: 0;
}

.site-footer strong,
.site-footer span {
  display: block;
}

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

  .site-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    background: rgba(7, 17, 22, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    justify-content: flex-start;
  }

  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 110px;
    padding-bottom: 46px;
  }

  .feature-grid,
  .store-grid,
  .split,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .stats {
    position: static;
    width: min(640px, 100%);
    margin: 32px auto 0;
    transform: none;
  }

  .text-link {
    justify-self: start;
  }

  .join-section {
    background-attachment: scroll;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 10px 14px;
  }

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

  .brand span {
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    position: absolute;
    top: 12px;
    left: calc(min(100vw, 390px) - 58px);
  }

  .hero-content,
  .stats {
    max-width: 330px;
  }

  h1 {
    font-size: clamp(2.05rem, 9.2vw, 2.35rem);
  }

  .hero {
    min-height: 92svh;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-highlights span {
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .hero-actions,
  .join-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

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

  .stat {
    min-height: 76px;
    padding: 10px 8px;
  }

  .stat strong {
    font-size: 1.15rem;
  }

  .stat span {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
