/* OoBiZu site styles. Palette from the jelly logo. */
:root {
  --ink: #0d0a1c;
  --night: #17122d;
  --plum: #3d365c;
  --grape: #7c4585;
  --berry: #c95792;
  --honey: #f8b55f;
  --honey-hi: #ffc97e;
  --text: #f6f1ff;
  --muted: rgba(246, 241, 255, 0.72);
  --faint: rgba(246, 241, 255, 0.5);
  --line: rgba(246, 241, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --radius: 28px;
  --radius-sm: 16px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Soft glows behind everything, fixed so long pages keep the mood */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 85% -10%, rgba(124, 69, 133, 0.55), transparent 60%),
    radial-gradient(50vmax 40vmax at -10% 40%, rgba(201, 87, 146, 0.22), transparent 60%),
    radial-gradient(60vmax 40vmax at 70% 110%, rgba(248, 181, 95, 0.18), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--night) 100%);
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

main {
  flex: 1;
}

/* ---------- Type ---------- */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

h1,
.display-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

/* Big hero line that isn't the page's h1 (the h1 carries the SEO name) */
.display-title {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 38em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--honey);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--berry), var(--honey));
}

.honey {
  color: var(--honey);
}

/* Jelly-letter wordmark: honey fill with a navy outline, like the logo */
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  color: var(--honey);
  -webkit-text-stroke: 0.06em #231c45;
  paint-order: stroke fill;
  letter-spacing: 0.01em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(13, 10, 28, 0.55);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--glass-hi);
}

.nav-links a {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .brand {
    font-size: 1.25rem;
    gap: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .nav-links {
    gap: 2px;
  }
  .nav-links .hide-sm {
    display: none;
  }
  .nav-links a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--honey-hi), var(--honey));
  color: #2a1a07;
  box-shadow: 0 10px 30px -8px rgba(248, 181, 95, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: var(--glass-hi);
}

.btn-store {
  background: #000;
  color: #fff;
  font-family: var(--body);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  padding: 10px 22px;
  text-align: left;
  line-height: 1.15;
}

.btn-store small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.85;
}

.btn-store span {
  font-size: 1.15rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 87, 146, 0.45), rgba(124, 69, 133, 0.25) 45%, transparent 70%);
  filter: blur(30px);
}

.hero-art video,
.hero-art img {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  height: auto;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 24px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }
  .hero-art {
    order: -1;
  }
  .hero-art video,
  .hero-art img {
    max-width: 360px;
  }
  .hero-copy {
    justify-items: center;
  }
  .hero-copy .lead {
    margin: 0 auto;
  }
  .btn-row {
    justify-content: center;
  }
}

/* ---------- Game feature card (home) ---------- */
.game {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
}

.game-media {
  position: relative;
  min-height: 320px;
}

.game-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(23, 18, 45, 0.85));
}

.game-body {
  padding: 40px;
  display: grid;
  gap: 18px;
  align-content: center;
}

.game-logo {
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-hi);
  border: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .game {
    grid-template-columns: 1fr;
  }
  .game-media {
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }
  .game-media::after {
    background: linear-gradient(180deg, transparent 55%, rgba(23, 18, 45, 0.85));
  }
  .game-body {
    padding: 28px 24px 32px;
  }
}

/* ---------- Contact band ---------- */
.contact {
  text-align: center;
  padding: 56px 24px;
  display: grid;
  gap: 16px;
  justify-items: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(124, 69, 133, 0.45), transparent 70%),
    var(--glass);
}

.contact .email {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  text-decoration: none;
  background: linear-gradient(90deg, var(--honey), var(--berry));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow-wrap: anywhere;
}

.contact .email:hover {
  text-decoration: underline;
  text-decoration-color: var(--berry);
  text-underline-offset: 6px;
}

/* ---------- Product page ---------- */
.product-hero .hero-copy .sxr-logo {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}

.shot-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.shot-frame:hover {
  transform: perspective(1200px) rotateY(0) rotateX(0);
}

.shot-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 860px) {
  .product-hero .hero-art {
    order: 1;
    margin-top: 24px;
  }
  .shot-frame {
    transform: none;
  }
}

.note {
  font-size: 0.95rem;
  color: var(--faint);
}

/* Trailer player with tabs */
.player {
  padding: 16px;
}

.player video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) - 12px);
  background: #000;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 4px 4px;
  justify-content: center;
}

.tab {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--text);
  background: var(--glass-hi);
}

.tab[aria-selected="true"] {
  color: #2a1a07;
  background: var(--honey);
  border-color: var(--honey);
}

/* Screenshot gallery: native scroll-snap, swipeable on touch */
.gallery {
  position: relative;
}

.gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 760px);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 24px;
  padding: 4px 24px 20px;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img {
  scroll-snap-align: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.arrow:hover {
  background: var(--glass-hi);
  transform: scale(1.08);
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s;
}

.dot[aria-current="true"] {
  width: 26px;
  background: var(--honey);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.25s, background 0.25s;
}

.feature:hover {
  transform: translateY(-4px);
  background: var(--glass-hi);
}

.feature .suit {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5);
}

.suit.red {
  color: #c8263b;
}

.suit.black {
  color: #1d1a2b;
}

.feature h3 {
  font-size: 1.3rem;
  margin-top: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Long-form text (privacy) ---------- */
.doc-head,
.doc {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.doc-head {
  padding: 56px 0 24px;
  display: grid;
  gap: 16px;
}

.doc {
  padding: 40px clamp(24px, 5vw, 56px);
  margin-bottom: 72px;
}

.doc h2 {
  font-size: 1.6rem;
  margin: 40px 0 12px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.doc h2:first-child {
  margin-top: 0;
}

.doc h2 .num {
  font-size: 1rem;
  color: var(--honey);
  min-width: 1.6em;
}

.doc p,
.doc ul {
  color: var(--muted);
  margin: 0 0 14px;
}

.doc ul {
  padding-left: 1.2em;
}

.doc li {
  margin-bottom: 6px;
}

.doc li::marker {
  color: var(--berry);
}

.doc a {
  color: var(--honey);
  text-underline-offset: 3px;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--faint);
  font-size: 0.92rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

footer a {
  text-decoration: none;
  color: var(--muted);
}

footer a:hover {
  color: var(--honey);
}

@media (max-width: 600px) {
  footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .feature,
  .shot-frame,
  .arrow {
    transition: none;
  }
  .shot-frame {
    transform: none;
  }
}
