:root {
  color-scheme: dark;
  --bg: #0c0f14;
  --bg-2: #0f1724;
  --fg: #e8eef7;
  --muted: #9aa6b2;
  --accent: #23c1a8;
  --accent-2: #f6b352;
  --card: rgba(16, 22, 33, 0.85);
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 60px rgba(3, 6, 10, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

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

.bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(35, 193, 168, 0.15), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(246, 179, 82, 0.2), transparent 45%),
    linear-gradient(180deg, #0a0f16 0%, #0c111b 40%, #0e1320 100%);
  overflow: hidden;
  z-index: -1;
}

.glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.glow-a {
  background: #20b298;
  top: -120px;
  left: -120px;
}

.glow-b {
  background: #f7a950;
  bottom: -200px;
  right: -120px;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.25;
}

.ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.ring-a {
  width: 360px;
  height: 360px;
  top: 60%;
  left: 8%;
}

.ring-b {
  width: 260px;
  height: 260px;
  top: 20%;
  right: 12%;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 80px;
  animation: fadein 0.8s ease-out both;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1290b0);
  box-shadow: 0 10px 30px rgba(35, 193, 168, 0.35);
}

.brand-text {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.28em;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: 0.25s ease;
}

.nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 12px;
}

h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin: 0;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #1d9db3);
  color: #071017;
  box-shadow: 0 16px 30px rgba(35, 193, 168, 0.35);
}

.btn.ghost {
  border-color: var(--stroke);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.02);
}

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

.btn.small {
  padding: 10px 16px;
  font-size: 13px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.meta span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.02);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: rise 0.8s ease-out 0.2s both;
}

.card-header {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.rink {
  position: relative;
  height: 220px;
  border-radius: 20px;
  background: linear-gradient(180deg, #111a2a, #0b111c);
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.rink-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  left: 50%;
  background: #ff4d4d;
}

.rink-center {
  position: absolute;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.player,
.puck {
  position: absolute;
  border-radius: 50%;
}

.player {
  width: 22px;
  height: 22px;
  background: #f3f7ff;
  border: 2px solid rgba(15, 20, 30, 0.6);
}

.player-a {
  left: 40%;
  top: 55%;
}

.player-b {
  left: 63%;
  top: 38%;
  background: #ffd6d6;
  border-color: rgba(70, 12, 12, 0.6);
}

.puck {
  width: 14px;
  height: 14px;
  background: #020304;
  left: 52%;
  top: 48%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
}

.card-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
}

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

.feature {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rise 0.8s ease-out both;
}

.feature h3 {
  margin: 0;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.media-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
}

.media-card p {
  color: var(--muted);
  margin: 0;
}

.section.wide {
  background: rgba(14, 19, 30, 0.7);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 28px;
}

.community {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.community p {
  color: var(--muted);
  margin: 10px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
  padding-top: 18px;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .media {
    grid-template-columns: 1fr;
  }
  .community {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 18px 48px;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
