/* ==========================================================================
   PixelRift — Gaming Landing Page
   Table of contents:
   1. Design tokens
   2. Reset & base
   3. Utilities & shared components (buttons, badges, section heads)
   4. Header / navigation
   5. Hero
   6. About
   7. Games
   8. Features
   9. How to choose
   10. FAQ accordion
   11. Footer, toasts, back-to-top
   12. Animations
   13. Responsive breakpoints
   14. Reduced motion
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --bg: #07070f;
  --bg-alt: #0c0c1a;
  --surface: #12122a;
  --surface-2: #1a1a38;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0ff;
  --muted: #a3a6c7;
  --primary: #7b2cff;
  --accent: #00e5ff;
  --pink: #ff2e88;
  --success: #3dffa0;
  --error: #ff4d6d;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --glow: 0 0 24px rgba(123, 44, 255, 0.55);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

/* 2. Reset & base -------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3 { line-height: 1.15; font-weight: 800; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

::selection { background: var(--primary); color: #fff; }

/* 3. Utilities & shared components -------------------------------------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-alt); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.25rem; }
.section__title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: .9rem; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
}

.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px);
  font-size: .85rem; color: var(--muted);
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(61, 255, 160, .7); animation: pulse 2s infinite;
}

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.8rem; border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.btn--sm { padding: .6rem 1.2rem; font-size: .85rem; }

.btn--primary { background: var(--gradient); color: #fff; box-shadow: var(--glow); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0, 229, 255, .55); }
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost { border: 1.5px solid var(--border); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* 4. Header / navigation ------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
.header.scrolled {
  background: rgba(7, 7, 15, .78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}

.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: .03em; }
.logo b { color: var(--accent); }

.nav__menu { display: flex; align-items: center; gap: .35rem; }

.nav__link {
  position: relative; padding: .55rem .85rem; font-size: .92rem; font-weight: 500; color: var(--muted);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px;
  background: var(--gradient); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); }

.nav__cta-item { margin-left: .6rem; }

.nav__toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 110; border-radius: 12px; }
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s, top .35s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gradient); transform-origin: left; transform: scaleX(0);
}

/* 5. Hero ---------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 3.5rem) 0 7.5rem; overflow: hidden; isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.orb--1 { width: 560px; height: 560px; background: var(--primary); top: 5%; left: 50%; margin-left: -280px; opacity: .45; animation: breathe 9s ease-in-out infinite alternate; }
.orb--2 { width: 420px; height: 420px; background: var(--accent); bottom: -180px; left: 50%; margin-left: -210px; opacity: .25; animation: breathe 12s ease-in-out infinite alternate-reverse; }

/* Concentric "portal" rings behind the headline */
.hero__rings {
  position: absolute; left: 50%; top: 46%; width: 1100px; height: 1100px; translate: -50% -50%;
  background: repeating-radial-gradient(circle, transparent 0 58px, rgba(0, 229, 255, .09) 59px 60px);
  mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 65%);
  animation: rings-spin 60s linear infinite;
}

.grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 50%;
  background-image:
    linear-gradient(rgba(123, 44, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 44, 255, .35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: grid-move 3s linear infinite;
}

/* Floating game covers around the centered content */
.hero__covers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cover {
  position: absolute; width: clamp(200px, 18vw, 270px); margin: 0;
  border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 25px 60px rgba(0,0,0,.6), 0 0 40px rgba(123,44,255,.25);
  translate: var(--px, 0) var(--py, 0);
  transition: translate .6s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.cover img { width: 100%; aspect-ratio: 600 / 340; object-fit: cover; }
.cover figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .9rem .6rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  background: linear-gradient(to top, rgba(7,7,15,.9), transparent);
}
.cover--1 { top: 20%; left: 3%;  rotate: -10deg; }
.cover--2 { bottom: 22%; left: 7%; rotate: 7deg;  animation-delay: -2s; width: clamp(180px, 15vw, 230px); }
.cover--3 { top: 18%; right: 3%; rotate: 9deg;   animation-delay: -4s; }
.cover--4 { bottom: 24%; right: 7%; rotate: -6deg; animation-delay: -1s; width: clamp(180px, 15vw, 230px); }

.hero__inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 780px;
}

.hero__title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 6rem);
  letter-spacing: -.01em; line-height: 1.02; margin-bottom: 1.4rem;
  text-shadow: 0 0 40px rgba(123, 44, 255, .35);
}
.hero__title-sub {
  display: block; margin-top: 1rem;
  font-family: var(--font-body); font-size: clamp(.8rem, 1.6vw, 1rem); font-weight: 700;
  letter-spacing: .5em; text-transform: uppercase; color: var(--accent); text-shadow: none;
  padding-left: .5em; /* balances trailing letter-spacing */
}
.hero__desc { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 580px; margin-bottom: 2.25rem; }

/* Subscribe form */
.subscribe {
  display: flex; gap: .5rem; width: 100%; max-width: 560px; padding: .45rem;
  background: rgba(12, 12, 26, .7); border: 1px solid var(--border); border-radius: 999px;
  backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s;
}
.subscribe:focus-within { border-color: rgba(0, 229, 255, .6); box-shadow: 0 0 0 4px rgba(0, 229, 255, .12); }
.subscribe.is-error { border-color: var(--error); box-shadow: 0 0 0 4px rgba(255, 77, 109, .15); animation: shake .45s; }
.subscribe.is-success { border-color: var(--success); box-shadow: 0 0 0 4px rgba(61, 255, 160, .15); }

.subscribe__field { flex: 1; display: flex; align-items: center; gap: .6rem; padding-left: 1rem; color: var(--muted); min-width: 0; }
.subscribe__field input { width: 100%; background: transparent; border: 0; outline: 0; padding: .7rem 0; color: var(--text); font-size: 1rem; }
.subscribe__field input::placeholder { color: #6f7298; }

.subscribe__btn .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.subscribe__btn.loading .spinner { display: inline-block; }
.subscribe__btn.loading .btn__label { opacity: .7; }
.subscribe__btn:disabled { cursor: wait; }

.form-message {
  min-height: 1.6rem; margin-top: .8rem; font-size: .9rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.form-message.show { opacity: 1; transform: none; }
.form-message.error { color: var(--error); }
.form-message.success { color: var(--success); }

/* Stats as a glass bar */
.hero__stats {
  display: flex; margin-top: 1.75rem;
  background: rgba(12, 12, 26, .6); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.hero__stats li { display: flex; flex-direction: column; align-items: center; padding: 1rem clamp(1.2rem, 4vw, 2.5rem); }
.hero__stats li + li { border-left: 1px solid var(--border); }
.hero__stats strong { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); }
.hero__stats span { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

/* Infinite ticker band */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden;
  padding: 1rem 0; border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(123,44,255,.18), rgba(0,229,255,.12));
  backdrop-filter: blur(6px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: ticker 30s linear infinite; }
.ticker span { font-family: var(--font-display); font-size: .95rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker i { font-style: normal; color: var(--accent); }

/* Glitch headline effect */
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
}
.glitch:hover::before { opacity: .8; animation: glitch-a .35s steps(2) infinite; text-shadow: none; filter: hue-rotate(60deg); }
.glitch:hover::after { opacity: .8; animation: glitch-b .35s steps(2) infinite; filter: hue-rotate(-60deg); }

/* 6. About --------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.about__media { position: relative; }
.about__media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,.5); }

.about__chip {
  position: absolute; display: flex; flex-direction: column; padding: .9rem 1.2rem;
  background: rgba(18, 18, 42, .85); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.4);
  animation: float 6s ease-in-out infinite;
}
.about__chip strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); }
.about__chip span { font-size: .8rem; color: var(--muted); }
.about__chip--top { top: 8%; right: -4%; }
.about__chip--bottom { bottom: 8%; left: -4%; animation-delay: -3s; }
.about__chip--bottom strong { color: var(--pink); }

.about__content p { color: var(--muted); margin-bottom: 1.5rem; font-size: 1.05rem; }
.about__content .section__title { text-align: left; }

.checklist { display: grid; gap: .8rem; margin-bottom: 2rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--gradient);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.5 15.6-4.6-4.6 1.5-1.5 3.1 3.1 6.2-6.2 1.5 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm-1.5 15.6-4.6-4.6 1.5-1.5 3.1 3.1 6.2-6.2 1.5 1.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* 7. Games --------------------------------------------------------------- */

.games__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }

.game-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  transform-style: preserve-3d; will-change: transform;
}
.game-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .45s;
}
.game-card:hover { box-shadow: 0 25px 60px rgba(123, 44, 255, .3); border-color: transparent; }
.game-card:hover::before { opacity: 1; }


.game-card__media { position: relative; aspect-ratio: 600 / 340; overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.game-card:hover .game-card__media img { transform: scale(1.08); }
.game-card__media::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 0%, transparent 55%);
}

.tag, .rating {
  position: absolute; top: .9rem; z-index: 1; padding: .3rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; backdrop-filter: blur(8px);
}
.tag { left: .9rem; background: rgba(7,7,15,.65); border: 1px solid var(--border); text-transform: uppercase; }
.rating { right: .9rem; background: rgba(255, 210, 63, .15); color: #ffd23f; border: 1px solid rgba(255,210,63,.35); }

.game-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.4rem 1.5rem; }
.game-card__body h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .5rem; }
.game-card__body p { color: var(--muted); font-size: .95rem; margin-bottom: 1.3rem; flex: 1; }

.game-card__footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.players { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); }
.players i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }


/* 8. Features ------------------------------------------------------------ */
.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card {
  position: relative; padding: 2rem 1.75rem; overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(18,18,42,.5) 100%);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.feature-card::after {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.18), transparent 70%);
  left: var(--mx, 50%); top: var(--my, 50%); transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(0, 229, 255, .4); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.feature-card:hover::after { opacity: 1; }

.feature-card__icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 1.25rem;
  border-radius: 16px; background: rgba(123, 44, 255, .15); border: 1px solid rgba(123, 44, 255, .35);
  transition: transform .5s var(--ease), background .4s;
}
.feature-card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover .feature-card__icon { transform: rotate(-8deg) scale(1.08); background: var(--gradient); }
.feature-card:hover .feature-card__icon svg { stroke: #fff; }

.feature-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.feature-card p { color: var(--muted); font-size: .95rem; }

/* 9. How to choose ------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 58px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent); opacity: .5;
}

.step {
  position: relative; text-align: center; padding: 2rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .4s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(123, 44, 255, .55); }

.step__num {
  position: absolute; top: .9rem; right: 1.1rem;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.15);
  transition: -webkit-text-stroke-color .4s;
}
.step:hover .step__num { -webkit-text-stroke-color: var(--accent); }

.step__icon {
  width: 56px; height: 56px; margin: 0 auto 1.25rem; display: grid; place-items: center; border-radius: 50%;
  background: var(--gradient); box-shadow: var(--glow); position: relative; z-index: 1;
}
.step__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.step h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.step p { color: var(--muted); font-size: .93rem; }

/* 10. FAQ accordion ------------------------------------------------------ */
.faq__inner { max-width: 820px; }

.accordion { display: grid; gap: 1rem; }

.accordion__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .3s, box-shadow .3s;
}
.accordion__item.open { border-color: rgba(123, 44, 255, .55); box-shadow: 0 10px 35px rgba(123, 44, 255, .15); }

.accordion__item h3 { font-size: inherit; font-weight: inherit; }

.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left; font-size: 1.02rem; font-weight: 600;
  transition: color .25s;
}
.accordion__trigger:hover { color: var(--accent); }

.accordion__icon { position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.06); transition: background .3s, transform .4s var(--ease); }
.accordion__icon::before,
.accordion__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: currentColor; border-radius: 2px; transition: transform .4s var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item.open .accordion__icon { background: var(--gradient); transform: rotate(180deg); }
.accordion__item.open .accordion__icon::after { transform: rotate(0); }

/* Smooth height animation via grid-template-rows */
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.accordion__item.open .accordion__panel { grid-template-rows: 1fr; }
.accordion__content { overflow: hidden; }
.accordion__content p { padding: 0 1.5rem 1.35rem; color: var(--muted); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
.accordion__item.open .accordion__content p { opacity: 1; transform: none; transition-delay: .1s; }

/* 11. Footer, toasts, back-to-top --------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { color: var(--muted); font-size: .92rem; transition: color .25s; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { color: var(--muted); font-size: .85rem; }

.toast-stack { position: fixed; top: calc(var(--header-h) + 1rem); right: 1rem; z-index: 150; display: grid; gap: .6rem; width: min(360px, calc(100% - 2rem)); }
.toast {
  display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 1.1rem;
  background: rgba(18, 18, 42, .95); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,.5);
  animation: toast-in .45s var(--ease) both;
}
.toast.error { border-left-color: var(--error); }
.toast.success { border-left-color: var(--success); }
.toast.hide { animation: toast-out .35s var(--ease) forwards; }
.toast__icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.toast.error .toast__icon { color: var(--error); }
.toast.success .toast__icon { color: var(--success); }
.toast.info .toast__icon { color: var(--accent); }
.toast strong { display: block; font-size: .95rem; }
.toast p { font-size: .85rem; color: var(--muted); }
.toast__close { margin-left: auto; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 0 .2rem; }
.toast__close:hover { color: var(--text); }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--gradient); box-shadow: var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: opacity .35s, visibility .35s, transform .35s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* 12. Animations --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

.float { animation: float 6s ease-in-out infinite; }
a.logo {
    width: 23%;
}
input:-internal-autofill-selected {
  background-color: transparent !important;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes breathe { to { transform: scale(1.15); opacity: .6; } }
@keyframes rings-spin { to { rotate: 360deg; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes grid-move { to { background-position: 0 60px; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,255,160,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,160,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes toast-in { from { opacity: 0; transform: translateX(110%); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(110%); } }
@keyframes glitch-a { 0% { transform: translate(-3px, -2px); clip-path: inset(10% 0 55% 0); } 100% { transform: translate(3px, 1px); clip-path: inset(60% 0 5% 0); } }
@keyframes glitch-b { 0% { transform: translate(3px, 2px); clip-path: inset(50% 0 20% 0); } 100% { transform: translate(-3px, -1px); clip-path: inset(5% 0 70% 0); } }

/* 13. Responsive breakpoints -------------------------------------------- */

/* Tablet landscape & small laptops */
@media (max-width: 1080px) {
  .hero__covers { display: none; }
  .games__grid, .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

/* Tablet portrait — switch to mobile nav */
@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav__toggle { display: block; }

  .nav__menu {
        height: 100vh;
        position: fixed;
        inset: 0;
        z-index: 105;
        flex-direction: column;
        justify-content: unset;
        padding-top: 110px; gap: .6rem;
    background: rgba(7, 7, 15, .97); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s var(--ease), visibility .4s, transform .4s var(--ease);
  }
  .nav__menu.open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu li { opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s var(--ease); }
  .nav__menu.open li { opacity: 1; transform: none; }
  .nav__menu.open li:nth-child(2) { transition-delay: .04s; }
  .nav__menu.open li:nth-child(3) { transition-delay: .08s; }
  .nav__menu.open li:nth-child(4) { transition-delay: .12s; }
  .nav__menu.open li:nth-child(5) { transition-delay: .16s; }
  .nav__menu.open li:nth-child(6) { transition-delay: .2s; }
  .nav__menu.open li:nth-child(7) { transition-delay: .24s; }
  .nav__link { font-size: 19px; font-family: var(--font-display); padding: .6rem 1rem; }
  .nav__cta-item { margin: 1rem 0 0; }

  .hero__rings { width: 800px; height: 800px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .about__chip--top { right: 2%; }
  .about__chip--bottom { left: 2%; }
  .btn--sm {
    padding: 14px 44px !important; 
    font-size: .85rem;
}
.hero {
      padding: 60px 0px 40px;
}
}

/* Mobile */
@media (max-width: 600px) {
  .container { width: min(100% - 2rem, var(--container)); }
a.logo {
    width: 58%;
}
  .games__grid, .features__grid, .steps { grid-template-columns: 1fr; }

  .subscribe { flex-direction: column; border-radius: var(--radius); padding: .6rem; }
  .subscribe__field { padding: .2rem .6rem; }
  .subscribe__btn { width: 100%; }

  .hero { padding-bottom: 6rem; }
  .hero__title-sub { letter-spacing: .3em; padding-left: .3em; }
  .hero__stats { width: 100%; }
  .hero__stats li { flex: 1; padding: .85rem .5rem; }
  .hero__stats span { font-size: .68rem; }
  .ticker { padding: .75rem 0; }
  .ticker span { font-size: .8rem; }

  .about__chip { padding: .6rem .85rem; }
  .about__chip strong { font-size: 1.05rem; }

  .accordion__trigger { padding: 1.05rem 1.1rem; font-size: .96rem; }
  .accordion__content p { padding: 0 1.1rem 1.1rem; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }

  .toast-stack { left: 1rem; right: 1rem; width: auto; }
  .hero__title {
    margin-bottom: 16px !important;
}
.hero__stats {
  margin-top: 0px;
}
.hero {
    min-height: 90svh;
padding: 100px 0px 120px;
    }
    .section__head {
    margin: 0 auto 1.65rem;
}
.section {
    padding: 60px 0px;
}
}

/* 14. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
