:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --dark: #0a0a0c;
  --dark-soft: #16161a;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; font-weight: 650; }
p { margin: 0; line-height: 1.5; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.eyebrow--light { color: rgba(255,255,255,0.6); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav--scrolled { box-shadow: 0 1px 0 rgba(0,0,0,0.08); }
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__logo-mark { width: 24px; height: 24px; border-radius: 6px; }
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #fff; color: #000; }
.btn--outline { background: rgba(0,0,0,0.04); color: var(--ink); border-color: rgba(0,0,0,0.1); }
.btn--outline:hover { background: rgba(0,0,0,0.08); }
.btn--play { background: var(--dark); color: #fff; }
.btn--play:hover { opacity: 0.85; }

/* light-on-dark contexts */
.theme-cards .btn--outline, .theme-survivors .btn--outline {
  background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25);
}
.theme-cards .btn--outline:hover, .theme-survivors .btn--outline:hover { background: rgba(255,255,255,0.2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(139,92,246,0.35), transparent 45%),
    radial-gradient(circle at 75% 60%, rgba(236,72,153,0.28), transparent 50%);
}
.hero__content { position: relative; z-index: 1; padding: 0 24px; }
.hero .eyebrow { color: rgba(255,255,255,0.55); text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  background: linear-gradient(135deg, #fff, #cbb8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 24px auto 32px;
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
}

/* ---------- Feature (hero project) ---------- */
.feature { padding: 120px 24px; background: var(--bg); }
.feature__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
}
.feature__tagline { font-size: 1.1rem; color: var(--accent); font-weight: 600; margin-top: 10px; }
.feature h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.feature__desc { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; max-width: 480px; }

/* ---------- Section heads ---------- */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.section-sub { margin-top: 10px; color: var(--ink-soft); }

/* ---------- Active grid (dark, in-game feel) ---------- */
.active-section { background: var(--dark); padding: 100px 0 110px; }
.active-section .section-head h2 { color: #fff; }
.active-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.active-card {
  border-radius: var(--radius);
  padding: 40px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.active-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(255,255,255,0.12), transparent 55%);
  pointer-events: none;
}
.theme-cards { background: linear-gradient(160deg, #1b0f2e, #3b1660 55%, #6d1b6a); }
.theme-survivors { background: linear-gradient(160deg, #101a12, #1f3a22 55%, #4c6b2e); }
.active-card__glyph { font-size: 2.6rem; margin-bottom: 18px; }
.active-card h3 { font-size: 1.5rem; }
.active-card__tagline { margin-top: 6px; font-weight: 600; opacity: 0.85; }
.active-card__desc { margin-top: 12px; color: rgba(255,255,255,0.72); max-width: 420px; }
.active-card .btn-row { margin-top: auto; padding-top: 24px; }

/* ---------- Screenshot card grids (secondary / legacy) ---------- */
.secondary-section { background: var(--bg); padding: 110px 0; }
.legacy-section { background: var(--bg-soft); padding: 100px 0; }
.secondary-grid, .legacy-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.shot-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
}
.shot-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.shot-card__media img { width: 100%; height: 100%; object-fit: cover; }
.shot-card__body { padding: 28px 30px 32px; }
.shot-card h3 { font-size: 1.3rem; }
.shot-card__tagline { margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.shot-card__desc { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }
.badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.shot-card--muted { opacity: 0.82; filter: saturate(0.75); }
.shot-card--muted:hover { opacity: 1; filter: saturate(1); }

/* ---------- Hub (laboratorio / estudio) ---------- */
.hub-section { background: var(--bg); padding: 100px 0; }
.shot-card--hub { background: var(--dark-soft); }
.shot-card--hub h3, .shot-card--hub .shot-card__desc { color: #fff; }
.shot-card--hub .shot-card__desc { color: rgba(255,255,255,0.68); }
.shot-card--hub .btn--outline { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.shot-card--hub .btn--outline:hover { background: rgba(255,255,255,0.18); }

/* ---------- Social ---------- */
.social-section { background: var(--dark); padding: 100px 0 120px; }
.social-section .section-head h2 { color: #fff; }
.social-grid {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
}
.social-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.social-card__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.social-card__text { display: flex; flex-direction: column; gap: 2px; }
.social-card__text small { color: rgba(255,255,255,0.6); font-size: 0.82rem; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 32px 24px 48px; text-align: center; border-top: 1px solid rgba(255,255,255,0.08); }
.footer__brand { color: #fff; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer__logo { width: 22px; height: 22px; border-radius: 5px; }
.footer p { font-size: 0.82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav__links--open { max-height: 320px; }
  .nav__links a { padding: 16px 24px; border-top: 1px solid rgba(0,0,0,0.06); }
  .nav__toggle { display: flex; }

  .feature__inner { grid-template-columns: 1fr; gap: 36px; }
  .active-grid, .secondary-grid, .legacy-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
}
