:root {
  --bg: #080a12;
  --bg-soft: #0e1220;
  --panel: rgba(19, 24, 41, 0.72);
  --panel-strong: rgba(22, 28, 48, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(173, 190, 255, 0.18);
  --text: #f4f6ff;
  --muted: #9aa4bd;
  --accent: #aab7ff;
  --accent-bright: #cbd3ff;
  --accent-2: #7cd4cb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shell: min(1120px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 25% -10%, rgba(91, 103, 181, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 18%, rgba(54, 121, 126, 0.13), transparent 28rem),
    var(--bg);
  font-family:
    Inter, ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.orb {
  position: fixed;
  z-index: -3;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  pointer-events: none;
}

.orb-one {
  top: 7rem;
  left: -10rem;
  background: #8b99ff;
}

.orb-two {
  top: 30rem;
  right: -12rem;
  background: #58c8bb;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(10, 13, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
/* Game screenshot card */
.media-game {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 390px;
  justify-self: start;
}

.media-game img {
  padding: 0;
  object-fit: cover;
}

/* Make ONLY the gameplay screenshot much larger */
.feature-row-two .media-game {
  width: 145%;
  max-width: none;
  justify-self: end;

  aspect-ratio: 16 / 9;

  transform: rotate(-0.5deg);
}

.feature-row-two .media-game img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: cover;
}


.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(203, 211, 255, 0.24);
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(170, 183, 255, 0.18), rgba(124, 212, 203, 0.08));
  color: var(--accent-bright);
  font-size: 0.8rem;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-header nav a {
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
  transition: 160ms ease;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.site-header nav .nav-discord {
  margin-left: 3px;
  color: #ecf0ff;
  background: rgba(170, 183, 255, 0.11);
  border: 1px solid rgba(170, 183, 255, 0.13);
}

.hero {
  min-height: min(820px, calc(92svh - 52px));
  padding: clamp(76px, 10vh, 120px) 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(170, 183, 255, 0.13);
  border-radius: 999px;
  background: rgba(170, 183, 255, 0.055);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75d7b8;
  box-shadow: 0 0 0 5px rgba(117, 215, 184, 0.07), 0 0 18px rgba(117, 215, 184, 0.45);
}

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

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
  font-weight: 820;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(110deg, #d5dcff, #9daeff 46%, #80d6cd);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 34px;
  color: #b3bdd3;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.hero-copy strong {
  color: #e5e9f7;
}

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

.button {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button small {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button strong {
  font-size: 0.94rem;
}

.button-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.button-primary {
  background: linear-gradient(135deg, #9daeff, #7f91ea);
  color: #0b1020;
  box-shadow: 0 12px 32px rgba(111, 129, 222, 0.2);
}

.button-primary small {
  color: rgba(11, 16, 32, 0.62);
}

.button-primary .button-icon {
  background: rgba(11, 16, 32, 0.1);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(170, 183, 255, 0.28);
  background: rgba(170, 183, 255, 0.075);
}

.copy-label {
  margin-left: 14px;
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0.75;
}

.quick-stats {
  margin-top: 48px;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quick-stats > div {
  min-width: 0;
  padding: 17px 18px 17px 0;
}

.quick-stats > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.stat-label {
  display: block;
  margin-bottom: 5px;
  color: #737e98;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.quick-stats strong {
  display: block;
  overflow: hidden;
  color: #d7dced;
  font-size: 0.89rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scroll-note {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  color: #656f87;
  font-size: 0.78rem;
}

.section {
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}

.kicker {
  margin-bottom: 12px;
}

.section-heading h2,
.join-intro h2,
.cta-card h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading > p {
  max-width: 540px;
  margin-bottom: 3px;
  color: var(--muted);
}

.feature-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(54px, 8vw, 92px);
  padding-top: 10px;
}

.feature-row {
  display: grid;
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}

.feature-row-one {
  width: 91%;
  grid-template-columns: minmax(0, 1.42fr) minmax(160px, 0.52fr);
}

.feature-row-two {
  width: 100%;
  margin-left: auto;

  grid-template-columns:
    minmax(360px, 0.95fr)
    minmax(0, 1.05fr);

  gap: 46px;
}

.feature-row-three {
  width: 90%;
  grid-template-columns: minmax(0, 1.48fr) minmax(150px, 0.46fr);
}

.feature-card {
  position: relative;
  min-height: clamp(270px, 31vw, 365px);
  padding: clamp(26px, 3vw, 38px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  background:
    radial-gradient(circle at 88% 12%, rgba(170, 183, 255, 0.075), transparent 18rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 58%),
    var(--panel);

  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.035),
    0 18px 52px rgba(0, 0, 0, 0.12);
}

.feature-card::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 24px;
  width: 74px;
  height: 74px;
  border-radius: 22px;
  border: 1px solid rgba(170, 183, 255, 0.08);
  background: rgba(170, 183, 255, 0.025);
  transform: rotate(10deg);
  pointer-events: none;
}

.feature-card h3 {
  max-width: 650px;
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.feature-card p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.card-number {
  position: absolute;
  top: 28px;
  left: 28px;

  width: fit-content;
  padding: 6px 9px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;

  color: #7e89a4;
  background: rgba(255, 255, 255, 0.025);

  font: 700 0.68rem/1 ui-monospace, "Cascadia Code", monospace;
}

.media-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(170, 183, 255, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 28% 20%, rgba(170, 183, 255, 0.12), transparent 62%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(124, 212, 203, 0.025)),
    rgba(15, 19, 33, 0.86);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 24px 70px rgba(0, 0, 0, 0.22);
  transform: rotate(1.15deg);
}

.feature-row-two .media-card {
  transform: rotate(-1.4deg);
}

.feature-row-three .media-card {
  transform: rotate(1.8deg);
}

.media-square {
  aspect-ratio: 1 / 1;
}

.media-portrait {
  aspect-ratio: 0.78 / 1;
}

.media-small {
  width: 92%;
  justify-self: end;
}

.media-card img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 12%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.media-card.image-ready img {
  opacity: 1;
}

.media-card.image-ready:hover img {
  transform: scale(1.035);
}

.media-card.image-ready .image-placeholder {
  opacity: 0;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: #737e98;
  transition: opacity 180ms ease;
}

.image-placeholder::before {
  content: "";
  width: 54px;
  height: 54px;
  margin: 0 auto 7px;
  border: 1px solid rgba(170, 183, 255, 0.12);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(170, 183, 255, 0.12), rgba(124, 212, 203, 0.05));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.image-placeholder span {
  color: #8994ad;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.image-placeholder code {
  font-size: clamp(0.56rem, 0.9vw, 0.7rem);
  color: #5f6a82;
}


.join-panel {
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 8vw, 100px);
  border: 1px solid var(--border-strong);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 9%, rgba(170, 183, 255, 0.12), transparent 22rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 46%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.join-intro {
  align-self: start;
  position: sticky;
  top: 105px;
}

.join-intro p:not(.kicker) {
  max-width: 460px;
  margin: 22px 0 24px;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 4px 0 32px;
}

.steps li + li {
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.step-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #cbd3ff;
  background: rgba(170, 183, 255, 0.08);
  border: 1px solid rgba(170, 183, 255, 0.13);
  font: 800 0.78rem/1 ui-monospace, "Cascadia Code", monospace;
}

.steps h3 {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.ip-strip {
  width: 100%;
  margin-top: 18px;
  padding: 14px 14px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #e8ebf6;
  background: rgba(5, 8, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.ip-strip:hover {
  border-color: rgba(170, 183, 255, 0.24);
  background: rgba(170, 183, 255, 0.045);
}

.ip-strip code {
  font-size: 0.9rem;
  color: #cdd4ee;
}

.ip-strip .copy-label {
  margin: 0;
  color: var(--accent);
}

.cta-card {
  min-height: 320px;
  padding: clamp(30px, 5vw, 54px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    radial-gradient(circle at 85% 0%, rgba(124, 212, 203, 0.13), transparent 24rem),
    radial-gradient(circle at 10% 100%, rgba(170, 183, 255, 0.13), transparent 28rem),
    rgba(17, 21, 36, 0.78);
}

.cta-card > div:first-child {
  max-width: 680px;
}

.cta-card h2 {
  margin-bottom: 18px;
}

.cta-card p:not(.kicker) {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.compact {
  min-height: 48px;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 760;
}

.button-ghost {
  color: #c7cede;
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border);
}

.site-footer {
  padding: 22px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #5e687f;
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-footer a {
  color: #7f89a0;
  text-decoration: none;
}

.site-footer a:hover {
  color: #afb8cf;
}

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  padding: 11px 15px;
  border: 1px solid rgba(170, 183, 255, 0.17);
  border-radius: 12px;
  color: #e9ecf7;
  background: rgba(15, 19, 31, 0.94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 800px) {
  :root {
    --shell: min(100% - 28px, 680px);
  }

  .site-header {
    width: calc(100% - 18px);
    margin-top: 9px;
    padding-left: 12px;
  }

  .site-header nav a:not(.nav-discord) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 5.4rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .copy-label {
    margin-left: auto;
  }

  .quick-stats {
    grid-template-columns: 1fr 1fr;
  }

  .quick-stats > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
    padding-left: 0;
  }

  .quick-stats > div:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .section {
    padding: 66px 0;
  }

  .section-heading,
  .join-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 18px;
  }

  .feature-stack {
    gap: 42px;
  }

  .feature-row,
  .feature-row-one,
  .feature-row-two,
  .feature-row-three {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-left: 0;
  }

  .feature-row-two .media-card {
    order: 2;
  }

  .feature-card {
    min-height: 270px;
  }

  .media-card,
  .feature-row-two .media-card,
  .feature-row-three .media-card {
    width: min(58vw, 260px);
    justify-self: end;
    transform: rotate(1.2deg);
  }

  .feature-row-two .media-card {
    justify-self: start;
    transform: rotate(-1.2deg);
  }

  .media-portrait {
    width: min(45vw, 210px);
  }

  .join-panel {
    gap: 48px;
    border-radius: 26px;
  }

  .join-intro {
    position: static;
  }

  .cta-card {
    min-height: 360px;
    align-items: stretch;
    flex-direction: column;
    justify-content: space-between;
  }

  .cta-actions {
    display: grid;
  }

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

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

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

  .quick-stats strong {
    font-size: 0.8rem;
  }

  .feature-card {
    padding: 24px;
    border-radius: 24px;
  }

  .feature-card h3 {
    margin-top: 46px;
  }

  .media-card {
    border-radius: 21px;
  }

  .join-panel,
  .cta-card {
    border-radius: 24px;
  }
}

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