:root {
  --bg: #0b0a0e;
  --card: #15131b;
  --line: #2a2633;
  --text: #ece8f2;
  --muted: #9a93a8;
  --accent: #ff3d7f;
  --accent2: #ffb3cd;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, .logo { font-family: "Space Grotesk", sans-serif; line-height: 1.1; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
  background: linear-gradient(var(--bg), transparent);
  backdrop-filter: blur(6px);
}
.logo { font-weight: 700; font-size: 1.25rem; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: .9rem; color: var(--muted); }
.nav nav a:hover { color: var(--text); }

.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.7fr 1fr; align-items: center;
  gap: clamp(16px, 3vw, 48px); padding: 88px clamp(16px, 4vw, 64px) 40px;
}
.hero-art {
  animation: rise 1s both cubic-bezier(.2,.7,.2,1);
  /* Fade the frame edges so the clipped glow and render don't end in a hard rectangle. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect;
}
.hero-art .glow-bg { filter: blur(70px) saturate(2); opacity: .85; transform: scale(1.2); }

/* Glow is clipped to the image's own box. */
.glow { position: relative; overflow: hidden; }
.glow img { position: relative; z-index: 1; width: 100%; }
.glow .glow-bg {
  position: absolute; inset: 0; z-index: 0; height: 100%;
  filter: blur(40px) saturate(1.8); opacity: .55; transform: scale(1.04);
}
.hero-text { max-width: 36rem; animation: rise 1s .25s both cubic-bezier(.2,.7,.2,1); }
.hero h1 { font-size: clamp(2.2rem, 3.6vw, 4.2rem); margin: 32px 0 16px; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.2vw, 1.3rem); }

.profile { display: flex; align-items: center; gap: 20px; }
.profile img {
  width: clamp(80px, 7vw, 112px); height: clamp(80px, 7vw, 112px); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent), 0 0 40px -6px var(--accent); transition: box-shadow .3s, transform .3s;
}
.profile:hover img { box-shadow: 0 0 0 3px var(--accent2), 0 0 60px -4px var(--accent); transform: scale(1.04); }
.profile span { display: flex; flex-direction: column; line-height: 1.2; }
.profile strong { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.profile small { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.profile em { font-style: normal; color: var(--accent2); font-size: .85rem; margin-top: 6px; }
.profile:hover em { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { color: var(--accent2); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 500; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px -8px var(--accent); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn.disabled { background: var(--line); color: var(--muted); cursor: default; transform: none; box-shadow: none; }

.section { padding: clamp(64px, 10vw, 120px) clamp(16px, 6vw, 96px); max-width: 1280px; margin: auto; }
.game-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; }
.game-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.count { color: var(--muted); font-size: .9rem; }
.more { text-align: center; color: var(--muted); padding: 0 16px 80px; }

.shader { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.shader-head { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.shader-head .glow img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.shader-head h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); padding: clamp(20px, 4vw, 48px); }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.tier { background: var(--card); padding: 28px; display: flex; flex-direction: column; gap: 6px; transition: background .3s; }
.tier:hover { background: #1b1822; }
.tier p { color: var(--muted); font-size: .95rem; }
.tier p strong { color: var(--accent2); font-weight: 500; }
.tier .btn { margin-top: auto; align-self: flex-start; }
.tier > p:last-of-type { margin-bottom: 20px; }
.tier-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tier h4 { font-size: 1.2rem; }
.tier h4 small { color: var(--muted); font-size: .8rem; font-weight: 400; margin-left: 4px; }
.engine { font-family: "Space Grotesk", sans-serif; color: var(--text) !important; }
.price { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; font-weight: 700; }
.tag { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tag.paid { border-color: var(--accent); color: var(--accent2); }
.tag.soon { border-style: dashed; color: var(--accent2); }
.tier.soon .price { color: var(--muted); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; margin-top: 16px; height: clamp(320px, 38vw, 560px); }
.gallery .big { grid-row: span 2; }
.gallery.two { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; height: clamp(260px, 28vw, 420px); }
.tiers.two { grid-template-columns: 1fr 1fr; }
.gallery button { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; background: var(--card); }
.gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery button:hover img { transform: scale(1.04); }

dialog { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; margin: auto; }
dialog::backdrop { background: rgba(5,4,8,.9); backdrop-filter: blur(4px); }
dialog img { max-width: 95vw; max-height: 95vh; border-radius: 10px; cursor: zoom-out; }
dialog[open] { animation: rise .35s both; }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: 32px clamp(32px, 5vw, 80px); align-items: start; border-top: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent2); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq p { color: var(--muted); font-size: .92rem; padding-bottom: 20px; }
.faq a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.info .fine { grid-column: 1 / -1; }
.rule { display: grid; grid-template-columns: 22px 1fr; column-gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.rule svg { width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rule h4 { font-size: 1.05rem; margin-bottom: 4px; }
.rule p { grid-column: 2; color: var(--muted); font-size: .92rem; }
.rule a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.fine { text-align: center; color: var(--muted); font-size: .8rem; padding-top: 56px; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .shader-head, .tiers, .tiers.two, .info { grid-template-columns: 1fr; }
  .gallery, .gallery.two { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 210px; height: auto; }
  .gallery .big { grid-row: auto; }
}
@media (max-width: 480px) {
  .nav nav a:not(:last-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
