/* ===========================================================
   Roboquest VR — Flat2VR Studios
   Single-page site, offline-first, no build step.
   =========================================================== */

@font-face {
  font-family: "Aldo the Apache";
  src: url("../fonts/AldotheApache.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Acumin Variable";
  src: url("../fonts/AcuminVariableConcept.otf") format("opentype");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Myriad Pro";
  src: url("../fonts/MyriadPro-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg-deep: #1c0a4a;
  --bg-darker: #0c0432;
  --bg-darkest: #06021a;
  --bg-card: #2a1166;
  --bg-card-2: #1a0a3d;

  --yellow: #f5c01a;
  --yellow-bright: #ffd62b;
  --gold: #f0a020;
  --pink: #d63b8c;
  --magenta: #b53785;
  --cream: #f6e9c2;
  --orange: #f48a1f;

  --text-light: #f1e8d0;
  --text-body: #c9bee2;
  --text-muted: #9a8dbe;
  --text-dark: #160a3a;

  --nav-h: 72px;

  --maxw: 1240px;
  --radius-pill: 999px;
  --radius-md: 18px;

  --font-display: "Aldo the Apache", "Bungee", Impact, "Arial Black", sans-serif;
  --font-body: "Acumin Variable", "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.35);
  --easing: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-darkest);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

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

/* ----------------------- Typography ----------------------- */

.display-heading,
.display-heading-sm {
  font-family: var(--font-display);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0 0 1.2rem;
  /* Chunky offset shadow — stacked thin layers for the cartoon depth effect */
  text-shadow:
    1px 1px 0 #1a073f,
    2px 2px 0 #1a073f,
    3px 3px 0 #1a073f,
    4px 4px 0 #1a073f,
    5px 5px 0 #1a073f,
    6px 6px 0 #1a073f,
    7px 7px 0 #1a073f,
    8px 8px 0 #1a073f,
    9px 10px 24px rgba(0,0,0,0.4);
}
.display-heading { font-size: clamp(2.4rem, 5.8vw, 5.2rem); }
.display-heading-sm { font-size: clamp(1.7rem, 3.4vw, 2.8rem); }

p { margin: 0 0 1rem; }

strong { color: var(--cream); font-weight: 700; }

/* ----------------------- Buttons -------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  cursor: pointer;
  border: 0;
  transition: transform 180ms var(--easing), box-shadow 180ms var(--easing), filter 180ms;
  will-change: transform;
}
.btn-pill {
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--yellow-bright), var(--gold));
  color: var(--text-dark);
  box-shadow: 0 6px 0 #884c0a, 0 12px 24px rgba(0,0,0,0.3);
}
.btn-pill:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-pill:active { transform: translateY(2px); box-shadow: 0 2px 0 #884c0a, 0 4px 10px rgba(0,0,0,0.3); }

/* ----------------------- Nav ------------------------------ */

.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(12, 4, 50, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--nav-h);
  transition: background 220ms var(--easing);
}
.site-nav.is-scrolled { background: rgba(6, 2, 26, 0.95); }
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; gap: 1.5rem;
}
.nav-brand {
  display: inline-flex; align-items: center;
}
.brand-logo {
  height: 36px; width: auto;
  display: block;
}

.nav-links {
  display: flex; gap: 1.6rem;
  font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-light); font-weight: 600;
}
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 2px; background: var(--yellow);
  transition: right 220ms var(--easing);
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  font-size: 0.78rem; padding: 0.55rem 1.3rem;
  background: linear-gradient(180deg, #5b1d8a, #321055);
  color: var(--yellow-bright);
  box-shadow: 0 4px 0 #1a0539, 0 8px 18px rgba(0,0,0,0.3);
  letter-spacing: 0.12em;
}
.nav-cta:hover { filter: brightness(1.12); }

/* ----------------------- Hero ----------------------------- */

.hero {
  position: relative; overflow: hidden;
  min-height: 600px;
  background: #1a073f;
  padding: 0;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url("../assets/hero-keyart.jpg");
  background-size: cover;
  background-position: calc(100% + 160px) center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero-bg::after {
  /* Solid dark purple band below the keyart so text/buttons/award stay readable */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26, 7, 63, 0)   0%,
      rgba(26, 7, 63, 0)   50%,
      rgba(26, 7, 63, 0.6) 62%,
      rgba(26, 7, 63, 0.95) 72%,
      rgb(26, 7, 63)       80%,
      rgb(26, 7, 63)      100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1440px; margin: 0 auto;
  min-height: 600px;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  justify-items: center;
  text-align: center;
  gap: 1rem;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-logo {
  justify-self: start;
  max-width: 483px; width: 37vw;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.55));
  margin: 0 0 0 clamp(2rem, 8vw, 8rem);
}
.hero-tagline {
  grid-row: 3;
  font-family: var(--font-display);
  color: #ffffff; letter-spacing: 0.28em;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  text-shadow: 0 3px 0 rgba(0,0,0,0.45);
  margin-bottom: 0.2rem;
}
.hero-buttons {
  grid-row: 4;
  display: flex; gap: clamp(1rem, 4vw, 4rem);
  align-items: center; justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  padding: 0 clamp(1rem, 3vw, 3rem);
  position: relative; z-index: 4;
}
.buy-btn {
  display: inline-block;
  flex: 0 1 auto;
  transition: transform 180ms var(--easing), filter 180ms;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
}
.buy-btn img { height: clamp(40px, 4.4vw, 64px); width: auto; display: block; }
.buy-btn:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5)) brightness(1.08); }

.hero-award {
  grid-row: 5;
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.8rem;
  font-family: var(--font-display);
  color: #fff;
  position: relative;
  justify-self: center;
}
.laurel-svg, .award-laurels { width: 325px; height: auto; }
.award-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  line-height: 1.1;
  color: #fff;
  pointer-events: none;
}
.award-eyebrow { font-size: 1rem; letter-spacing: 0.35em; color: #fff; }
.award-title { font-size: 0.78rem; color: #fff; letter-spacing: 0.12em; margin-top: 4px; }
.award-meta { font-size: 0.85rem; letter-spacing: 0.4em; color: #fff; margin-top: 4px; }

/* ----------------------- Trailer -------------------------- */

.trailer {
  background: #1a073f;
  padding: clamp(2rem, 4vw, 4rem) 1.5rem;
}
.trailer-frame {
  max-width: 1080px; margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #000;
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* ----------------------- Reboot section -------------------- */

.reboot {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, #1d0a55 0%, #2a0f6f 60%, #1a073f 100%);
  padding: clamp(3rem, 6vw, 6rem) 1.5rem clamp(5rem, 9vw, 9rem);
  /* angled bottom — taller on the LEFT, shorter on the RIGHT
     so the dark triangle sits in the bottom-right corner */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 260px), 0 calc(100% - 100px));
}
@property --ray-angle {
  syntax: '<angle>';
  initial-value: 195deg;
  inherits: false;
}
.reboot::before {
  /* faint, wide sunburst rays radiating outward across the whole section
     from off-screen upper-right. The `from` angle is animated for a slow sweep. */
  content: ""; position: absolute; inset: 0;
  --ray-angle: 195deg;
  background:
    repeating-conic-gradient(
      from var(--ray-angle) at 110% -10%,
      rgba(255, 220, 80, 0.07) 0deg,
      rgba(255, 220, 80, 0.07) 4deg,
      transparent 4deg,
      transparent 11deg
    );
  pointer-events: none;
  animation: ray-sweep 90s linear infinite;
}
@keyframes ray-sweep {
  to { --ray-angle: 555deg; }
}
.reboot::after {
  /* even halftone dot texture across the whole section, with a soft top-right glow */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 220, 80, 0.10) 0%, transparent 55%),
    radial-gradient(rgba(255, 220, 80, 0.12) 1.2px, transparent 1.2px);
  background-size: auto, 16px 16px;
  pointer-events: none;
}
.reboot-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column;
  gap: 1.5rem;
}
.reboot-title {
  text-align: center;
  font-size: clamp(3.5rem, 9vw, 8rem);
  margin: 0 0 0.6rem;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffe14a 0%, #fbb31a 60%, #f5901c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow: none;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(8px 10px 14px rgba(0,0,0,0.5));
}
.reboot-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.reboot-art {
  overflow: visible;
  display: flex; align-items: center; justify-content: center;
}
.reboot-art img {
  max-height: 822px; width: 132%; height: auto;
  max-width: none;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.55));
}
.reboot-copy {
  text-align: left;
  padding-right: 1rem;
}
.reboot-copy p {
  font-size: clamp(1.2rem, 1.5vw, 1.5rem);
  line-height: 1.55;
  color: #efe6c6;
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.reboot-copy strong { font-weight: 800; }
.reboot-copy .btn { margin-top: 1rem; padding: 1rem 2.2rem; font-size: 1.05rem; }
.reboot-copy .btn-arrow { width: 24px; height: 24px; font-size: 0.95rem; }
.btn-with-arrow { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-arrow {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--text-dark);
  color: var(--yellow-bright);
  font-size: 0.85rem; line-height: 1;
}

/* ----------------------- Features grid -------------------- */

.desert-band {
  position: relative;
  margin-top: -50px;
  background:
    linear-gradient(180deg, rgba(6,2,26,0.95) 0%, rgba(6,2,26,0.55) 35%, rgba(6,2,26,0.2) 70%, rgba(6,2,26,0) 100%),
    url("../assets/bg-desert.png") center bottom / cover no-repeat,
    var(--bg-darkest);
}
.features {
  background: transparent;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  position: relative; z-index: 1;
}
.features-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem;
}
.feature {
  display: grid; grid-template-columns: 56px 1fr; gap: 0.6rem 1.2rem;
  padding: 0.5rem 0;
}
.feature-icon {
  width: 56px; height: 56px; border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow-bright), var(--gold));
  color: var(--text-dark); display: grid; place-items: center;
  box-shadow: 0 5px 0 #884c0a;
  grid-row: 1 / 3;
  align-self: start;
}
.feature-icon svg {
  width: 28px; height: 28px;
}
.feature h3 {
  grid-column: 2 / 3;
  font-family: var(--font-display);
  color: var(--yellow);
  font-size: clamp(1.3rem, 1.7vw, 1.6rem);
  margin: 0 0 0.5rem; letter-spacing: 0.04em;
  align-self: center;
}
.feature p {
  grid-column: 2 / 3;
  font-size: 1rem;
  color: #efe6c6;
  font-weight: 600;
  margin: 0;
}

/* ----------------------- Upgrades carousel ---------------- */

.upgrades {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 6rem) 1.5rem clamp(6rem, 10vw, 10rem);
  background: transparent;
}
.upgrades-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.upgrades-bg::after {
  /* subtle halftone dots so cards/text stay readable on the desert */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,220,80,0.08) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 100%);
}
.upgrades-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.upgrades-copy { padding-top: 1.5rem; }
.upgrades-gallery {
  display: grid; gap: 0.9rem;
}
.upgrades-hero img {
  width: 100%; height: clamp(220px, 28vw, 360px);
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.45);
  border: 2px solid rgba(255, 220, 80, 0.25);
  transition: transform 320ms var(--easing), border-color 320ms;
  cursor: zoom-in;
}
.upgrades-hero img:hover {
  transform: scale(1.03);
  border-color: rgba(255, 220, 80, 0.7);
}
.upgrades-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.upgrades-thumbs img {
  width: 100%; height: clamp(90px, 11vw, 140px);
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
  border: 2px solid rgba(255, 220, 80, 0.18);
  transition: transform 320ms var(--easing), border-color 320ms;
  cursor: zoom-in;
}
.upgrades-thumbs img:hover {
  transform: scale(1.08);
  border-color: rgba(255, 220, 80, 0.7);
  z-index: 2;
}
.upgrades-heading {
  text-align: left;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  white-space: nowrap;
}
.upgrades-copy { text-align: left; }
.upgrades-copy p { color: #efe6c6; font-weight: 600; }
.alt-text { font-size: 0.85rem; color: rgba(255,255,255,0.75); font-weight: 400; }

/* ----------------------- Classes -------------------------- */

.classes {
  position: relative;
  background: radial-gradient(circle at 50% 45%, #ffd840 0%, #f5b21d 60%, #d68913 100%);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  color: var(--text-dark);
  overflow: hidden;
}
.classes-bg {
  position: absolute; inset: -10%;
  background:
    repeating-conic-gradient(
      from var(--classes-angle, 0deg) at 75% 60%,
      rgba(255, 230, 100, 0.6) 0deg,
      rgba(255, 230, 100, 0.6) 6deg,
      transparent 6deg,
      transparent 18deg
    );
  opacity: 0.85;
  pointer-events: none;
  animation: sunspin 120s linear infinite;
}
.classes-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
}
@property --classes-angle {
  syntax: '<angle>'; initial-value: 0deg; inherits: false;
}
@keyframes sunspin {
  to { --classes-angle: 360deg; }
}
.classes-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem;
}
.classes-title {
  text-align: center;
  font-size: clamp(3.5rem, 9vw, 8rem);
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffe14a 0%, #fbb31a 60%, #f5901c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow: none;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(8px 10px 14px rgba(0,0,0,0.5));
}

.class-nav {
  display: flex; gap: 0.6rem; flex-wrap: nowrap;
  justify-content: center; align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.8rem 0 1.4rem;
}
.class-nav::-webkit-scrollbar { display: none; }

.class-pip {
  flex: 0 0 auto;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem;
  background: transparent; border: 0; cursor: pointer;
  padding: 0.4rem; border-radius: var(--radius-md);
  transition: transform 220ms var(--easing);
}
.class-pip:hover { transform: translateY(-2px); }
.pip-img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  background: rgba(255,255,255,0.15);
  transition: transform 220ms var(--easing), border-color 220ms;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.pip-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(180deg, #ff5252, #b21f3a);
  color: #fff; font-family: var(--font-display);
  font-size: 1.6rem;
}
.class-pip.is-active .pip-img,
.class-pip.is-active .pip-placeholder {
  border-color: var(--text-dark);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.12), 0 8px 18px rgba(0,0,0,0.25);
}
.pip-label {
  font-family: var(--font-display);
  font-size: 0.7rem; color: var(--text-dark);
  letter-spacing: 0.06em;
}

.class-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  padding-bottom: 0.5rem;
}
.class-track::-webkit-scrollbar { display: none; }

.class-card {
  scroll-snap-align: start;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  align-items: center;
  padding: 1.5rem 0.5rem;
}
.class-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  color: #ffe14a;
  margin: 0;
  letter-spacing: 0.02em;
  -webkit-text-stroke: 2.5px #1a073f;
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 #1a073f,
    6px 6px 0 #1a073f,
    7px 9px 14px rgba(0,0,0,0.4);
}
.class-tag {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  color: #4a3aae;
  display: inline-block; padding: 0.35rem 0;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.06em;
  font-weight: 900;
  -webkit-text-stroke: 0.6px #4a3aae;
}
.class-text p { color: #1a073f; font-size: 1rem; font-weight: 600; }
.playstyle {
  margin-top: 1.2rem;
  border-top: 2px solid rgba(26, 7, 63, 0.25);
  padding-top: 0.9rem;
}
.playstyle-label {
  font-family: var(--font-display);
  color: #4a3aae; letter-spacing: 0.08em;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 0.5rem;
  font-weight: 900;
  -webkit-text-stroke: 0.6px #4a3aae;
}
.class-portrait {
  position: relative;
  display: flex; justify-content: center;
  isolation: isolate;
}
.class-portrait::before {
  /* halftone polka-dot halo behind the character */
  content: ""; position: absolute; inset: -8% -4%;
  z-index: -1;
  background-image: radial-gradient(rgba(214, 137, 19, 0.55) 3.5px, transparent 3.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 55%, #000 0%, #000 38%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 0%, #000 38%, transparent 70%);
  pointer-events: none;
}
.class-portrait img {
  position: relative;
  max-height: 600px; width: auto;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.4));
  transition: transform 320ms var(--easing);
}
.class-card.is-current .class-portrait img { transform: scale(1.02); }

.class-portrait-placeholder { display: grid; place-items: center; min-height: 320px; }
.placeholder-ring {
  width: 280px; height: 280px; border-radius: 50%;
  background: linear-gradient(180deg, #ff5252, #b21f3a);
  display: grid; place-items: center; gap: 0.5rem;
  box-shadow: 0 18px 32px rgba(0,0,0,0.35), 0 0 0 6px rgba(0,0,0,0.08);
  position: relative;
}
.placeholder-letter {
  font-family: var(--font-display);
  font-size: 7rem; color: #fff;
  line-height: 1;
}
.placeholder-caption {
  position: absolute; bottom: 22px;
  font-family: var(--font-display);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem; letter-spacing: 0.18em;
}

.class-scroller-hint {
  display: flex; gap: 0.8rem; justify-content: center; margin-top: 0.5rem;
}
.scroll-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--text-dark); color: var(--yellow);
  font-size: 1rem; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 180ms var(--easing), background 180ms;
}
.scroll-arrow:hover { transform: scale(1.06); background: #2a1559; }

/* ----------------------- Newsletter ----------------------- */

.newsletter {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(8rem, 18vw, 18rem);
  background:
    url("../assets/bg-clouds-keyart.png") center top / cover no-repeat,
    linear-gradient(180deg, #6cb6e3 0%, #b8d8e9 60%, #c2a87a 100%);
  min-height: 640px;
}
.newsletter-bg {
  position: absolute; inset: 0;
  /* light dot overlay for the sky atmosphere */
  background-image: radial-gradient(rgba(255,255,255,0.15) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 50%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 50%);
  pointer-events: none;
}
.newsletter-rocks {
  position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none; line-height: 0;
}
.newsletter-rocks img {
  width: 110%; max-width: none; height: auto; display: block;
  margin-left: -5%;
  opacity: 0.96;
}
.newsletter-ground {
  position: absolute; left: 0; right: 0; bottom: 0;
  pointer-events: none; line-height: 0;
}
.newsletter-ground img { width: 100%; height: auto; display: block; }
.newsletter-bus {
  position: absolute; left: 5%; bottom: 4%;
  width: clamp(176px, 22vw, 330px);
  pointer-events: none;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,0.3));
  z-index: 3;
}
.newsletter-bus img { width: 100%; height: auto; }
.newsletter-inner {
  position: relative; z-index: 2;
  max-width: 720px; margin: 0 auto; text-align: center;
}
.newsletter-inner .display-heading {
  background: linear-gradient(180deg, #ffe14a 0%, #fbb31a 60%, #f5901c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow: none;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(8px 10px 14px rgba(0,0,0,0.5));
}
.newsletter-inner p {
  color: #1a073f;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}
.newsletter-form {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 48%;
  width: min(70%, 620px);
  z-index: 4;
}
.newsletter-form {
  display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.4rem;
}
.newsletter-form input {
  flex: 1 1 280px;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 0;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.newsletter-form input:focus { box-shadow: 0 0 0 3px var(--yellow), 0 6px 18px rgba(0,0,0,0.25); }

/* ----------------------- Community ------------------------ */

.community {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-darker));
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}
.community-starburst {
  position: absolute; top: 50%; right: -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  transform: translateY(-50%);
  background: repeating-conic-gradient(
    from 0deg at 50% 50%,
    rgba(245,192,26,0.07) 0deg 6deg,
    transparent 6deg 14deg
  );
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 75%);
          mask-image: radial-gradient(closest-side, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.community-inner {
  position: relative; z-index: 1;
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.community-title {
  grid-column: 1 / -1;
  text-align: center;
  font-size: clamp(2.6rem, 6vw, 5rem);
  margin: 0 0 1rem;
  align-items: center;
  background: linear-gradient(180deg, #ffe14a 0%, #fbb31a 60%, #f5901c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow: none;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(8px 10px 14px rgba(0,0,0,0.5));
}
.community-text { text-align: left; align-self: center; }
.community-text p {
  margin-bottom: 1.2rem;
  font-weight: 600;
  color: #efe6c6;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.45;
}
.community-visual {
  position: relative;
  max-width: 560px; justify-self: end; width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.community-head {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  isolation: isolate;
}
.community-head::before {
  /* polka-dot halftone halo behind the head */
  content: ""; position: absolute; inset: -8%;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 220, 80, 0.22) 3.5px, transparent 3.5px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 55%, #000 0%, #000 40%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 0%, #000 40%, transparent 72%);
  pointer-events: none;
}
.community-head img {
  width: 100%; max-width: 520px; height: auto;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.55));
  animation: floaty 6s ease-in-out infinite;
}
.community-socials {
  display: flex; gap: 0.8rem; align-items: center;
  margin-top: 1.6rem; flex-wrap: wrap;
}
.follow-label {
  font-family: var(--font-display);
  color: var(--text-light); letter-spacing: 0.18em;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-right: 0.6rem;
}
.community .social-icon {
  width: auto; height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0.25rem;
}
.community .social-icon svg { width: 30px; height: 30px; }
.community .social-icon:hover {
  background: transparent;
  color: var(--yellow-bright);
  transform: translateY(-3px) scale(1.08);
}
@media (max-width: 760px) {
  .community-inner { grid-template-columns: 1fr; }
  .community-visual { max-width: 360px; justify-self: center; }
  .community-text, .community-text .display-heading { text-align: center; }
  .community-socials { justify-content: center; }
}
.social-icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: transform 180ms var(--easing), background 180ms;
}
.social-icon:hover { transform: translateY(-2px); background: var(--yellow); color: var(--text-dark); }

/* ----------------------- Press kit ------------------------ */

.press-kit {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  background: var(--bg-darker);
}
.press-kit-bg {
  position: absolute; inset: 0;
  background-image: url("../assets/bg-clouds.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.press-kit-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(160,220,235,0) 0%, rgba(120,180,220,0.2) 60%, rgba(40,60,140,0.45) 100%);
}
.press-kit-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; text-align: left;
}
.press-kit .display-heading {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 900;
  background: linear-gradient(180deg, #ffe14a 0%, #fbb31a 60%, #f5901c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow: none;
  filter:
    drop-shadow(4px 4px 0 #000)
    drop-shadow(8px 10px 14px rgba(0,0,0,0.5));
  letter-spacing: 0.03em;
}
.press-kit p {
  color: #1a073f;
  font-weight: 400;
  max-width: 50%;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* ----------------------- Footer --------------------------- */

.site-footer {
  background: var(--bg-darkest);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start;
}
.footer-brand .brand-logo { height: 40px; }
.footer-socials { display: flex; gap: 1rem; align-items: center; }
.footer-socials .social-icon {
  width: auto; height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0.25rem;
  color: var(--text-light);
}
.footer-socials .social-icon svg { width: 26px; height: 26px; }
.footer-socials .social-icon:hover {
  background: transparent;
  color: var(--yellow-bright);
  transform: translateY(-2px) scale(1.08);
}
.footer-copy {
  margin: 0;
  font-size: 0.8rem; color: var(--text-muted);
}

/* ----------------------- Motion / reveal ------------------ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--easing), transform 700ms var(--easing);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* Subtle parallax for hero art is JS-driven via translateY */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-art-img, .community-head img, .classes-bg, .reboot::before { animation: none; }
}

/* ----------------------- Responsive ----------------------- */

@media (max-width: 760px) {
  .hero { min-height: 560px; }
  .hero-inner { min-height: 560px; }
  .hero-logo { justify-self: center; width: 60%; max-width: 320px; }
  .hero-buttons { justify-content: space-around; gap: 0.6rem; padding: 0 0.5rem; }
  .hero-award { justify-content: center; }
  .reboot-grid { grid-template-columns: 1fr; }
  .reboot-copy { text-align: center; padding-right: 0; }
  .reboot-art { margin-left: 0; }
  .reboot-art img { width: 100%; max-width: 460px; }
  .features-grid { grid-template-columns: 1fr; }
  .upgrades-inner { grid-template-columns: 1fr; }
  .upgrades-heading { text-align: center; white-space: normal; }
  .upgrades-copy { text-align: center; }
  .class-card { grid-template-columns: 1fr; gap: 1rem; }
  .class-portrait { order: 2; }
  .class-text { order: 1; text-align: center; }
  .class-tag { display: inline-block; }
  .placeholder-ring { width: 220px; height: 220px; }
  .placeholder-letter { font-size: 5.5rem; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .display-heading { font-size: clamp(2rem, 8vw, 3rem); }
  .buy-btn img { height: 44px; }
  .hero-logo { max-width: 320px; }
  .upgrades-images { grid-template-columns: 1fr; }
  .upgrades-images img { height: 220px; }
  .features-grid { gap: 0.8rem; }
  .pip-img, .pip-placeholder { width: 50px; height: 50px; }
  .placeholder-letter { font-size: 4.5rem; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-brand { align-items: center; }
}
