:root {
  color-scheme: dark;
  --bg: #0e1724;
  --surface: #172a36;
  --surface-2: #203b4b;
  --text: #e9f6f4;
  --muted: #a8bdc4;
  --cyan: #37e3d3;
  --amber: #ffb84c;
  --magenta: #c657d8;
  --danger: #f06a63;
  --line: rgba(233, 246, 244, 0.16);
  --focus: #ffcf7b;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 12%, rgba(55, 227, 211, 0.13), transparent 32rem),
    radial-gradient(circle at 88% 34%, rgba(198, 87, 216, 0.12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 23, 36, 0.92);
  backdrop-filter: blur(14px);
}

.nav,
.section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-block: 72px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 6.6rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.15rem;
}

.lead {
  max-width: 62ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  color: #071316;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  opacity: 0.88;
}

.button.secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hero-art {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(32, 59, 75, 0.95), rgba(14, 23, 36, 0.98));
  box-shadow: var(--shadow);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.hero-art::before {
  width: 72%;
  height: 72%;
  left: 14%;
  top: 14%;
  border: 5px solid rgba(55, 227, 211, 0.58);
}

.hero-art::after {
  width: 44%;
  height: 44%;
  right: 8%;
  bottom: 8%;
  border: 4px solid rgba(255, 184, 76, 0.62);
}

.node {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 0 34px currentColor;
}

.node.a { left: 17%; bottom: 24%; color: var(--cyan); background: currentColor; }
.node.b { left: 46%; top: 16%; color: var(--amber); background: currentColor; }
.node.c { right: 15%; bottom: 22%; color: var(--magenta); background: currentColor; }
.core {
  position: absolute;
  inset: 38%;
  transform: rotate(45deg);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--text), var(--amber));
  box-shadow: 0 0 54px rgba(255, 184, 76, 0.62);
}

.section {
  padding-block: 84px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading p,
.card p,
.legal p,
.legal li {
  color: var(--muted);
}

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

.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(23, 42, 54, 0.82);
}

.card-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(55, 227, 211, 0.5);
  border-radius: 14px;
  color: var(--cyan);
}

.card-mark svg {
  width: 26px;
  height: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
}

.callout {
  border: 1px solid rgba(255, 184, 76, 0.45);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(135deg, rgba(255, 184, 76, 0.1), rgba(55, 227, 211, 0.08));
}

.gameplay-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(23, 42, 54, 0.82);
  box-shadow: var(--shadow);
}

.gameplay-shot {
  display: block;
  width: 100%;
  height: auto;
  background: #0b1420;
}

.gameplay-frame figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal {
  max-width: 760px;
}

.legal h2 {
  margin-top: 44px;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav-links {
    gap: 10px;
  }

  .nav-links a:not(.language-link) {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 52px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-art {
    order: 0;
    width: min(100%, 520px);
    justify-self: center;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
