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

:root {
  --purple: #6a38ff;
  --purple-dim: rgba(106,56,255,.15);
  --white: #ffffff;
  --muted: rgba(255,255,255,.65);
}

body {
  background: #000;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── BACKGROUND ─────────────────────────────── */

/* Purple concentric circles — centered at top, scalable */
.bg-circles {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1072px, 100vw);
  height: min(1072px, 100vw);
  pointer-events: none; z-index: 0;
}
.bg-circle {
  position: absolute; border-radius: 50%;
  background: var(--purple);
}
.bc1 { inset: 0;                                                    opacity: .10; }
.bc2 { inset: 13.6%;                                                opacity: .11; }
.bc3 { top: 29.5%; left: 28.7%; width: 41.8%; height: 41.8%;       opacity: .11; }
.bc4 { top: 41.4%; left: 40.8%; width: 17.8%; height: 17.8%;       opacity: .08; }

/* Blue diagonal light shafts */
.bg-shafts {
  position: absolute;
  top: -420px; left: calc(50% - 700px);
  width: 1400px; height: 1100px;
  transform: rotate(16deg);
  transform-origin: center;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.shaft {
  position: absolute;
  transform: rotate(-45deg);
  transform-origin: center;
}
.s1 {
  top: 5%; left: 18%;
  width: 258px; height: 1200px;
  background: linear-gradient(to bottom, rgba(112,181,255,.5) 0%, rgba(112,181,255,0) 88%);
  filter: blur(36px);
  opacity: .75;
}
.s2 {
  top: -10%; left: 6%;
  width: 258px; height: 1400px;
  background: linear-gradient(to bottom, rgba(35,136,255,.5) 0%, rgba(35,136,255,0) 80%);
  filter: blur(20px);
  opacity: .3;
}
.s3 {
  top: -5%; left: 30%;
  width: 122px; height: 1200px;
  background: linear-gradient(to bottom, rgba(112,181,255,.5) 0%, rgba(112,181,255,0) 88%);
  filter: blur(36px);
  opacity: .3;
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  padding-bottom: 8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top announcement link */
.announce {
  position: relative; z-index: 10;
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 400;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: -0.084px;
  cursor: pointer;
  opacity: 0;
  animation: fadeDown .5s .05s ease forwards;
}
.announce img { width: 18px; height: 18px; display: block; }

/* Game logo */
.game-logo {
  position: relative; z-index: 10;
  margin-top: 64px;
  width: 240px;
  opacity: 0;
  animation: fadeDown .55s .2s ease forwards;
}
.game-logo img { width: 100%; display: block; }

/* Two-column row */
.hero-row {
  position: relative; z-index: 10;
  display: flex;
  gap: 100px;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin-top: 30px;
}

/* ── Left column ── */
.hero-left {
  flex: 1;
  display: flex; flex-direction: column; gap: 60px;
  align-items: flex-end;
}
.hero-text {
  display: flex; flex-direction: column; gap: 40px;
  align-items: flex-end;
  text-align: right;
  width: 100%;
}
.hero-title {
  font-size: 72px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.432px;
  opacity: 0;
  animation: slideLeft .7s .35s ease forwards;
}
.hero-sub {
  font-size: 22px; font-weight: 300; line-height: 1.5;
  opacity: 0;
  animation: slideLeft .7s .45s ease forwards;
}
.hero-btns {
  display: flex; gap: 24px; align-items: center;
  opacity: 0;
  animation: fadeUp .5s .6s ease forwards;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px; border-radius: 100px;
  font-size: 16px; font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn img { height: 24px; width: auto; display: block; }
.btn-ios {
  position: relative;
  background: var(--white); color: #000;
  box-shadow: 0 4px 20px rgba(255,255,255,.2);
}
.btn-ios img { opacity: 1; filter: invert(1); }
.btn-ios:hover { box-shadow: 0 8px 30px rgba(255,255,255,.35); }
.btn-badge {
  position: absolute;
  top: -10px; right: -10px;
  background: #fdd037; color: #000;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
  letter-spacing: .02em; line-height: 1.2;
  white-space: nowrap;
}
.btn-android {
  background: var(--purple); color: #fff;
  box-shadow: 0 4px 20px rgba(106,56,255,.4);
}
.btn-android img { filter: brightness(0) invert(1); }
.btn-android:hover { box-shadow: 0 8px 30px rgba(106,56,255,.6); }

/* ── Right column ── */
.hero-right {
  flex: 1;
  position: relative;
  display: flex; align-items: center;
}

/* Phones container — both phones in the same space, overlapping */
.phones-wrap {
  position: relative;
  width: 680px;
  height: 810px;
}

/* Individual phone */
.iphone {
  position: absolute;
  width: 335px; height: 676px;
}
.iphone-screen {
  position: absolute;
  top: 5px; left: 11px; right: 12px; bottom: 5px;
  border-radius: 38px;
  overflow: hidden;
}
.iphone-screen img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.screen-fade {
  position: absolute; inset: 0;
  background: linear-gradient(177deg, rgba(0,0,0,0) 62%, rgba(0,0,0,1) 88%);
}
.iphone-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; display: block;
  object-fit: cover;
}

/* Back phone — right, rotated +10°
   rotate: is a CSS individual transform — composes with animation translate,
   never gets overwritten by the slideRight keyframes */
.iphone-back {
  left: 328px; top: 10px;
  rotate: 10deg;
  z-index: 1;
  box-shadow: 150px 50px 250px rgba(9,20,50,.15);
  opacity: 0;
  animation: slideRight .8s .42s ease both;
}
/* Front phone — left, rotated -8° */
.iphone-front {
  left: 60px; top: 22px;
  rotate: -8deg;
  z-index: 2;
  box-shadow: 250px 50px 250px rgba(9,20,50,.15);
  opacity: 0;
  animation: slideRight .8s .54s ease both;
}

/* ── Characters / Hologram ── */
.characters-wrap {
  position: absolute;
  left: calc(50% - 183px); top: 440px;
  width: 100%; max-width: 440px;
  z-index: 3;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp .7s .75s ease forwards;
}

/* ── HOLOGRAM EFFECT ── */
.hologram { position: relative; }

/* The characters image itself */
.holo-img {
  width: 100%; display: block;
  position: relative; z-index: 2;
  filter: brightness(1.08);
  animation: holoFlicker 2.5s 1s ease-in-out infinite;
}

/* Clipping wrapper — scanlines only show inside characters bounds */
.holo-clipped {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Moving scanlines clipped to image bounds */
.holo-clipped::before {
  content: '';
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px, transparent 3px,
    rgba(80,200,255,.04) 3px, rgba(80,200,255,.04) 4px
  );
  animation: scanlines 5s linear infinite;
}

/* Projection base glow — inside .holo-clipped so it gets masked */
.holo-base {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 220px; height: 18px;
  background: radial-gradient(ellipse at center, rgba(80,200,255,.55) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 6;
  animation: basePulse 2s ease-in-out infinite;
}

/* Projection cone — inside .holo-clipped so it gets masked */
.holo-cone {
  position: absolute;
  bottom: 16%; left: 50%;
  transform: translateX(-50%);
  width: 180px; height: 60px;
  background: linear-gradient(to top, rgba(80,200,255,.12) 0%, transparent 100%);
  filter: blur(10px);
  z-index: 1;
}

/* RGB glitch ghost images */
.holo-ghost { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.holo-ghost img {
  position: absolute; inset: 0; width: 100%; display: block;
  opacity: 0;
}
.ghost-r {
  filter: saturate(3) hue-rotate(-30deg) brightness(1.5);
  mix-blend-mode: screen;
  animation: ghostR 3s 2s ease-in-out infinite;
}
.ghost-b {
  filter: saturate(3) hue-rotate(150deg) brightness(1.5);
  mix-blend-mode: screen;
  animation: ghostB 3s 2s ease-in-out infinite;
}

/* ─── FEATURES ──────────────────────────────── */
.features {
  padding: 5rem 3rem 4rem;
  background: #04000f;
  position: relative; overflow: hidden;
}
.features::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(106,56,255,.35), transparent);
}
.feat-inner { max-width: 1600px; margin: 0 auto; }
.feat-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 3.5rem; gap: 2rem; flex-wrap: wrap;
}
.sec-eyebrow {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--purple); margin-bottom: .6rem;
}
.feat-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1; letter-spacing: -.02em;
}
.feat-title em { color: #fdd037; font-style: normal; }
.feat-sub {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7; max-width: 50%;
}
.feat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; align-items: start;
}
.feat-card {
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(106,56,255,.14);
  opacity: 0; transform: translateY(40px) rotate(1.5deg);
  transition: opacity .65s ease, transform .65s ease, box-shadow .3s ease;
  will-change: transform, opacity;
}
.feat-card.visible { opacity: 1; transform: none; }
.feat-card:nth-child(2) { transition-delay: .12s; }
.feat-card:nth-child(3) { transition-delay: .24s; }
.feat-card:nth-child(4) { transition-delay: .36s; }
.feat-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 28px rgba(106,56,255,.18);
}
.feat-shot {
  width: 100%; display: block;
  aspect-ratio: 9 / 13;
  object-fit: cover; object-position: center top;
}
.feat-cap {
  padding: 1.1rem 1.3rem 1.3rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.feat-cap-title {
  font-size: 1.2rem; font-weight: 700; color: #fff;
  margin-bottom: .3rem;
}
.feat-cap-body {
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,.85); line-height: 1.6;
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: #000;
  border-top: 1px solid rgba(106,56,255,.14);
  padding: 2.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .8rem;
  max-width: 1600px; margin: 0 auto;
}
.footer-logo { font-size: 1.1rem; font-weight: 700; }
.footer-copy { font-size: 0.95rem; color: rgba(255,255,255,.4); }
.footer-links {
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.footer-links a {
  font-size: .95rem; color: rgba(255,255,255,.55);
  text-decoration: none; transition: color .15s;
}
.footer-links a:hover { color: #fff; }

/* ─── KEYFRAMES ──────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideLeft {
  from { opacity: 0; translate: -36px 0; }
  to   { opacity: 1; translate: 0px 0; }
}
@keyframes slideRight {
  from { opacity: 0; translate: 50px 0; }
  to   { opacity: 1; translate: 0px 0; }
}
@keyframes scanlines {
  from { background-position: 0 0; }
  to   { background-position: 0 -80px; }
}
@keyframes sweepUp {
  0%   { top: 100%; opacity: 0; }
  5%   { opacity: 1; }
  80%  { opacity: .7; }
  100% { top: -5%; opacity: 0; }
}
@keyframes holoFlicker {
  0%, 100% { opacity: 1; }
  91%  { opacity: 1; }
  92%  { opacity: .8; }
  93%  { opacity: 1; }
  95%  { opacity: .88; }
  96%  { opacity: 1; }
}
@keyframes basePulse {
  0%,100% { opacity: .7; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 1;  transform: translateX(-50%) scaleX(1.1); }
}
@keyframes ghostR {
  0%, 87%, 100% { opacity: 0; transform: none; }
  88%  { opacity: .35; transform: translateX(-10px); }
  89%  { opacity: .2;  transform: translateX(-5px); }
  90%  { opacity: 0; }
}
@keyframes ghostB {
  0%, 87%, 100% { opacity: 0; transform: none; }
  88%  { opacity: .35; transform: translateX(10px); }
  89%  { opacity: .2;  transform: translateX(5px); }
  90%  { opacity: 0; }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .hero-row { padding: 60px 60px 40px; gap: 60px; margin-top: 40px; }
  .hero-title { font-size: 56px; }
  .phones-wrap { width: 540px; height: 650px; }
  .iphone-back { left: 248px; }
  .characters-wrap { left: 170px; top: 412px; width: 266px; }
}
@media (max-width: 800px) {
  .hero { padding-bottom: 1rem; }
  .hero-row { flex-direction: column-reverse; padding: 32px 24px 40px; gap: 48px; margin-top: 20px; }
  .hero-left { align-items: center; }
  .hero-text { align-items: center; text-align: center; }
  .hero-title { font-size: 40px; }
  .hero-sub { font-size: 18px; }
  .phones-wrap { width: 400px; height: 620px; }
  .iphone { width: 240px; height: 484px; }
  .iphone-back { left: 180px; top: 7px; }
  .iphone-front { left: 0; top: 16px; }
  .characters-wrap { left: 0; right: 0; top: 380px; width: 240px; margin: 0 auto; }
  .features { padding-inline: 24px; }
  .feat-header { flex-direction: column; align-items: center; text-align: center; }
  .feat-sub { max-width: 100%; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .feat-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .feat-header { flex-direction: column; }
  .footer { padding: 1.5rem; }
}
@media (max-width: 500px) {
  .hero-btns { flex-direction: column; width: 100%; }
  .btn { justify-content: center; }
}
