/* ─── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  --bg:          #0C0C12;
  --bg-nav:      rgba(12, 12, 18, 0.85);
  --bg-card:     #13131D;
  --accent:      #7C3AED;
  --accent-l:    #A78BFA;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --text:        #F1F5F9;
  --text-muted:  #94A3B8;
  --text-dim:    #475569;
  --border:      rgba(255, 255, 255, 0.07);
  --border-a:    rgba(124, 58, 237, 0.3);
  --r:           12px;
  --r-lg:        18px;
  --max:         1100px;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Ambient background ──────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 60% -10%, rgba(124, 58, 237, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%,  rgba(34, 211, 238, 0.05)  0%, transparent 60%);
}

/* Subtle dot grid */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Navigation ──────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-links .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 7px;
  transition: background 0.15s, box-shadow 0.15s;
}
.nav-links .nav-cta:hover {
  background: #6D28D9;
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid var(--border-a);
  border-radius: 999px;
  padding: 5px 14px 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-l);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-l);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-l);
}

.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero h1 .gradient {
  background: linear-gradient(120deg, var(--text) 20%, var(--accent-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #6D28D9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Hero visual ─────────────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-image-wrap img {
  position: relative;
  max-width: 100%;
  width: 380px;
  border-radius: var(--r-lg);
  filter: drop-shadow(0 24px 64px rgba(124, 58, 237, 0.35));
}

/* ─── Divider ─────────────────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-a) 50%, transparent);
  position: relative;
  z-index: 1;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */
section { padding: 96px 0; }

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-l);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 56px;
}

/* ─── Game cards ──────────────────────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-a);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--border-a);
}

.card-img {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a14;
}

.card-img a { display: block; height: 100%; }

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.game-card:hover .card-img img { transform: scale(1.06); }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-l);
  background: rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-l);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 7px;
  border: 1px solid var(--border-a);
  background: transparent;
  align-self: flex-start;
  transition: all 0.2s;
}

.card-link svg { transition: transform 0.2s; }
.card-link:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: var(--accent-l);
}
.card-link:hover svg { transform: translateX(3px); }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: #0A0A10;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.social-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Scroll reveal ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .reveal.visible { opacity: 1; transform: none; }
  .reveal:nth-child(2) { transition-delay: 0.08s; }
  .reveal:nth-child(3) { transition-delay: 0.16s; }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
    padding: 64px 0;
  }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .hero-sub { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image-wrap img { width: 220px; }
  .games-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .nav-links .nav-cta { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
