@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --ink: #f6f3ff;
  --muted: #b4adc8;
  --background: #100d1b;
  --panel: #1b1629;
  --pink: #ff4f9a;
  --blue: #48c8ff;
  --line: rgba(255, 255, 255, 0.13);
  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
}

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

.site-header {
  width: min(1160px, calc(100% - 48px));
  min-height: 82px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 18px;
}

nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
}

nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  width: min(1160px, calc(100% - 48px));
  min-height: 490px;
  margin: auto;
  padding: 100px 0 86px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 590px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h1 span {
  color: var(--pink);
}

.hero-copy {
  max-width: 430px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 13px 17px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.button:hover {
  background: var(--blue);
  color: var(--background);
}

.hero-decoration {
  position: absolute;
  top: 93px;
  right: 0;
  color: rgba(255, 79, 154, 0.12);
  font-family: var(--mono);
  font-size: clamp(140px, 28vw, 330px);
  font-weight: 500;
  letter-spacing: -0.15em;
  line-height: 1;
  transform: rotate(-8deg);
}

.hero-decoration span {
  display: block;
  margin-top: -20px;
  color: rgba(72, 200, 255, 0.12);
  font-size: 0.3em;
  letter-spacing: 0.15em;
  text-align: right;
}

.console-section {
  padding: 78px max(24px, calc((100% - 1160px) / 2)) 92px;
  background: #171222;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.story-section h2,
.about-section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-note {
  max-width: 250px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.console-card {
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.console-card:hover {
  transform: translateY(-5px);
  border-color: rgba(72, 200, 255, 0.6);
}

.card-top,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
}

.console-era,
.card-footer {
  color: var(--muted);
}

.console-number {
  color: var(--pink);
}

.console-art {
  position: relative;
  display: grid;
  height: 155px;
  margin: 17px 0 20px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background-image: radial-gradient(rgba(255,255,255,.2) 1px, transparent 1px);
  background-size: 14px 14px;
}

.console-art span {
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  color: white;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 500;
  transform: rotate(-12deg);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.master-art {
  background-color: #202a7a;
}

.genesis-art {
  background-color: #872652;
}

.saturn-art {
  background-color: #743462;
}

.dreamcast-art {
  background-color: #176c82;
}

.dreamcast-art span {
  border-radius: 28px;
  transform: rotate(8deg);
}

.console-card h3 {
  margin-bottom: 9px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.console-card > p {
  min-height: 60px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.card-footer {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.card-footer span:last-child {
  color: var(--pink);
  letter-spacing: 0.12em;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  width: min(1160px, calc(100% - 48px));
  margin: auto;
  padding: 100px 0;
}

.story-section > p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.about-section {
  padding: 78px 24px 82px;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255, 79, 154, 0.2), transparent 55%),
    #171222;
  text-align: center;
}

.about-section h2 {
  margin-bottom: 17px;
}

.about-section > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 48px));
  margin: auto;
  padding: 24px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

@media (max-width: 850px) {
  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-section {
    gap: 35px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 14px 0;
  }

  nav {
    gap: 20px;
    font-size: 12px;
  }

  .hero {
    min-height: 420px;
    padding-top: 80px;
  }

  .hero-decoration {
    top: 170px;
    right: -25px;
  }

  .section-heading,
  .story-section {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .section-heading {
    flex-direction: column;
    gap: 14px;
  }

  .console-grid {
    gap: 11px;
  }

  .console-card {
    padding: 12px;
  }

  .console-art {
    height: 120px;
  }

  .console-art span {
    width: 78px;
    height: 78px;
    font-size: 13px;
  }

  .console-card h3 {
    font-size: 15px;
  }

  .console-card > p {
    font-size: 11px;
  }

  .story-section {
    gap: 24px;
    padding: 72px 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

