:root {
  --bg: #120f22;
  --bg-2: #1e1740;
  --surface: #ffffff;
  --surface-soft: #fff3df;
  --text: #151827;
  --text-light: #fffaf2;
  --muted: #667085;
  --muted-light: #d8d0e8;
  --primary: #7c3cff;
  --primary-dark: #5620c9;
  --accent: #ff9f1c;
  --accent-2: #00e0b8;
  --pink: #ff3d81;
  --border: #e5e7ef;
  --border-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(18, 15, 34, 0.28);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #faf7ff;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 15, 34, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-light);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-size: 20px;
  box-shadow: 0 12px 28px rgba(124, 60, 255, 0.32);
}

.brand-text {
  font-size: 18px;
}

.top-nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: var(--muted-light);
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: white;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 159, 28, 0.36), transparent 30%),
    radial-gradient(circle at 84% 25%, rgba(124, 60, 255, 0.45), transparent 35%),
    radial-gradient(circle at 55% 105%, rgba(0, 224, 184, 0.22), transparent 34%),
    var(--bg);
  color: var(--text-light);
  padding: 84px 0 68px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 13px;
}

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

h1 {
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.055em;
  max-width: 930px;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 21px;
}

.lead {
  margin: 22px 0 0;
  max-width: 790px;
  font-size: 21px;
  color: var(--muted-light);
}

.hero-actions,
.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 21px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

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

.button-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 14px 32px rgba(124, 60, 255, 0.34);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: #271200;
  background: var(--accent);
  border-color: var(--accent);
}

.button-ghost {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.arcade-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.screen {
  background: #090716;
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.pixel-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.pixel-row span {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--accent);
}

.pixel-row span:nth-child(2) {
  background: var(--primary);
}

.pixel-row span:nth-child(3) {
  background: var(--accent-2);
}

.pixel-row span:nth-child(4) {
  background: var(--pink);
}

.screen-title {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.screen-subtitle {
  color: var(--muted-light);
  margin: 4px 0 18px;
}

.mini-board {
  width: 156px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-board i {
  aspect-ratio: 1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-board i:nth-child(2),
.mini-board i:nth-child(5),
.mini-board i:nth-child(8) {
  background: rgba(255, 159, 28, 0.34);
}

.arcade-card p {
  color: var(--muted-light);
  margin: 16px 4px 0;
}

.section {
  padding: 68px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 30px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.game-grid,
.skill-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card,
.skill-card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 23px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(20, 28, 54, 0.07);
}

.game-card {
  text-decoration: none;
  min-height: 235px;
}

.game-card:hover,
.project-card:hover {
  transform: translateY(-2px);
  transition: 0.15s ease;
}

.game-status {
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  color: #7a3a00;
  font-weight: 900;
  margin-bottom: 18px;
  font-size: 14px;
}

.game-card.active .game-status {
  background: #e9fff9;
  color: #00765f;
}

.game-card.soon {
  opacity: 0.86;
}

.game-card p,
.skill-card p,
.project-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-dark {
  background: var(--bg-2);
  color: white;
}

.section-heading-light p {
  color: var(--muted-light);
}

.skill-card {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--border-dark);
  box-shadow: none;
}

.skill-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 159, 28, 0.16);
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 18px;
}

.skill-card p {
  color: var(--muted-light);
}

.project-card {
  text-decoration: none;
  min-height: 230px;
}

.project-icon {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  background: #efe8ff;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 18px;
  font-size: 14px;
}

.section-soft {
  background: var(--surface-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.split p {
  color: var(--muted);
  font-size: 18px;
}

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

.lesson-list div {
  background: white;
  border: 1px solid #f0d8b8;
  border-radius: 18px;
  padding: 18px;
}

.lesson-list strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.lesson-list span {
  color: var(--muted);
}

.faq {
  display: grid;
  gap: 12px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

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

.callout {
  padding-top: 34px;
}

.callout-inner {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 159, 28, 0.3), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--primary-dark));
  color: white;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
}

.callout-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.site-footer {
  padding: 38px 0;
  color: var(--muted);
}

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

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 960px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

  .top-nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding: 54px 0 42px;
  }

  .section {
    padding: 46px 0;
  }

  .lead {
    font-size: 18px;
  }

  .game-grid,
  .skill-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .callout-inner,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .button,
  .hero-actions,
  .callout-actions {
    width: 100%;
  }
}
