@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg: #070718;
  --bg-2: #0d0d27;
  --panel: rgba(15, 15, 42, 0.78);
  --line: #2e3157;
  --text: #f4f5ff;
  --muted: #a7abc8;
  --glow: #dfe5ff;
  --accent: #777dff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 26%, rgba(96, 94, 190, 0.10), transparent 34%),
    linear-gradient(180deg, #09091d 0%, var(--bg) 100%);
  font-family: "Press Start 2P", "Courier New", monospace;
  image-rendering: pixelated;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), rgba(0,0,0,.25));
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: .08;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.18) 0,
      rgba(255,255,255,.18) 1px,
      transparent 1px,
      transparent 3px
    );
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 18px 20px;
  border: 2px solid var(--line);
  background: rgba(7, 7, 24, .82);
  backdrop-filter: blur(14px);
  box-shadow:
    4px 4px 0 #151632,
    8px 8px 0 rgba(0,0,0,.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--text);
  box-shadow: 3px 0 0 #9299cc, 0 3px 0 #9299cc;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 9px;
  line-height: 1.8;
  transition: color .15s ease, text-shadow .15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  text-shadow: 2px 2px 0 #33386e;
  outline: none;
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 94px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 0 86px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  color: #878dc1;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 1px;
}

.hero-art-wrap {
  width: min(62vw, 640px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: 14px auto 12px;
  filter: drop-shadow(0 0 24px rgba(188, 196, 255, .15));
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  user-select: none;
  -webkit-user-drag: none;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(28px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: clamp(0px, .6vw, 6px);
  text-shadow:
    4px 4px 0 #27294e,
    8px 8px 0 rgba(0,0,0,.34);
}

.tagline {
  max-width: 780px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(9px, 1.4vw, 13px);
  line-height: 2;
}

.ca-panel {
  display: flex;
  align-items: stretch;
  width: min(100%, 850px);
  margin: 0 auto 24px;
}

.ca-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border: 2px solid var(--line);
  border-right: 0;
  background: rgba(13, 13, 39, .84);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.015);
  text-align: left;
}

.ca-label {
  flex: 0 0 auto;
  color: #8c92ce;
  font-size: 10px;
}

.ca-copy code {
  overflow: hidden;
  color: var(--text);
  font-family: inherit;
  font-size: 9px;
  line-height: 1.8;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixel-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 20px;
  border: 2px solid #555b90;
  border-radius: 0;
  color: var(--text);
  background: #111231;
  font: inherit;
  font-size: 9px;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    4px 4px 0 #27294e,
    8px 8px 0 rgba(0,0,0,.28);
  transition: transform .09s linear, background .09s linear, box-shadow .09s linear;
}

.pixel-button:hover,
.pixel-button:focus-visible {
  background: #1a1c46;
  outline: none;
}

.pixel-button:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #27294e, 4px 4px 0 rgba(0,0,0,.28);
}

.copy-button {
  min-width: 128px;
  box-shadow:
    4px 4px 0 #353a6b,
    8px 8px 0 rgba(0,0,0,.28);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 850px);
  scroll-margin-top: 110px;
}

.edit-note {
  margin: 28px 0 0;
  color: #62678f;
  font-size: 7px;
  line-height: 2.1;
}

.edit-note span {
  color: #9298c7;
}

.content-section {
  padding: 90px 0;
  scroll-margin-top: 90px;
}

.content-section h2 {
  margin: 14px 0 28px;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.25;
  text-shadow: 4px 4px 0 #242648;
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 5px 5px 0 rgba(28, 30, 62, .9);
}

summary {
  position: relative;
  padding: 22px 54px 22px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  line-height: 1.8;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: #aab0e7;
  font-size: 18px;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 20px 22px;
  color: var(--muted);
  font-size: 9px;
  line-height: 2.05;
}

.pixel-card {
  padding: 28px;
  border: 2px solid var(--line);
  background:
    linear-gradient(135deg, rgba(32, 34, 75, .38), rgba(10, 10, 28, .72));
  box-shadow:
    6px 6px 0 #171936,
    12px 12px 0 rgba(0,0,0,.22);
}

.pixel-card p {
  color: var(--muted);
  font-size: 9px;
  line-height: 2.1;
}

.pixel-card p:last-child {
  margin-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 2px solid #1e203f;
  color: #656a91;
  font-size: 7px;
  line-height: 1.9;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 60;
  transform: translate(-50%, 20px);
  padding: 14px 16px;
  border: 2px solid #7d83c2;
  color: #fff;
  background: #111231;
  box-shadow: 4px 4px 0 #303462;
  font-size: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear, transform .15s linear;
}

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

::selection {
  background: #cfd5ff;
  color: #070718;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    padding: 16px;
  }

  .nav {
    gap: 12px;
  }

  .nav a {
    font-size: 7px;
  }

  .brand {
    font-size: 9px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-art-wrap {
    width: min(88vw, 560px);
  }

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

  .ca-panel {
    flex-direction: column;
    gap: 12px;
  }

  .ca-copy {
    border-right: 2px solid var(--line);
  }

  .copy-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: relative;
    flex-direction: column;
    gap: 14px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

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

  h1 {
    font-size: clamp(26px, 11vw, 46px);
  }

  .tagline {
    font-size: 8px;
  }

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

  .pixel-button {
    min-height: 58px;
  }

  .content-section {
    padding: 68px 0;
  }

  summary {
    font-size: 8px;
  }

  details p,
  .pixel-card p {
    font-size: 8px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
