/* PlaySpill landing page. Bootstrap 5 does the grid and components; this is the brand layer. */
:root {
  --ps-pink: #ff4fa3;
  --ps-yellow: #ffd23f;
  --ps-violet: #7c5cff;
  --ps-night: #0b0716;
  --ps-night-2: #140d29;
  --ps-card: rgba(255, 255, 255, 0.04);
  --ps-line: rgba(255, 255, 255, 0.09);
  --bs-body-bg: var(--ps-night);
  --bs-body-color: #e9e6f5;
  --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--ps-night); overflow-x: hidden; }

/* Narrower than Bootstrap's 1320px xxl container. */
.container-narrow { max-width: 1080px; }

a { color: var(--ps-pink); }
.brand-word { font-weight: 800; letter-spacing: -0.02em; color: #fff; font-size: 1.3rem; }

/* ----- Buttons ----- */
.btn-light { color: #160d2a; }
.btn-light:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255, 79, 163, 0.25); }
.btn-brand {
  color: #fff; border: 0;
  background: var(--ps-pink);
  box-shadow: 0 8px 24px rgba(255, 79, 163, 0.3);
}
.btn-brand:hover, .btn-brand:focus-visible { color: #fff; background: #ff6bb3; transform: translateY(-1px); }
.btn-brand:active { color: #fff !important; background: #e8408f !important; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }
.btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease; }

/* ----- Navigation ----- */
.site-nav { padding: 0.9rem 0; transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease; }
.site-nav .nav-link { color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 0.95rem; }
.site-nav .nav-link:hover { color: #fff; }
.site-nav.scrolled { background: rgba(11, 7, 22, 0.85); backdrop-filter: blur(12px); padding: 0.55rem 0; box-shadow: 0 1px 0 var(--ps-line); }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { background: rgba(20, 13, 41, 0.97); border: 1px solid var(--ps-line); border-radius: 1rem; padding: 1rem; margin-top: 0.75rem; }
}

/* ----- Hero ----- */
.hero {
  position: relative; overflow: hidden;
  padding: 9rem 0 7rem;
  background:
    radial-gradient(60rem 30rem at 85% 10%, rgba(124, 92, 255, 0.45), transparent 60%),
    radial-gradient(45rem 28rem at 10% 30%, rgba(255, 79, 163, 0.35), transparent 60%),
    radial-gradient(40rem 20rem at 60% 100%, rgba(255, 210, 63, 0.12), transparent 60%),
    linear-gradient(180deg, #1a0f3a 0%, var(--ps-night-2) 55%, var(--ps-night) 100%);
}
.stars {
  position: absolute; inset: 0; opacity: 0.55; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent),
    radial-gradient(1px 1px at 32% 68%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 54% 14%, #fff, transparent),
    radial-gradient(1px 1px at 72% 42%, #fff, transparent),
    radial-gradient(2px 2px at 88% 78%, #fff, transparent),
    radial-gradient(1px 1px at 22% 88%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 84%, #fff, transparent),
    radial-gradient(1px 1px at 94% 18%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.7; } }
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--ps-night)); pointer-events: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
}
.eyebrow-pink { color: var(--ps-pink); background: rgba(255, 79, 163, 0.1); border-color: rgba(255, 79, 163, 0.25); }
.eyebrow-yellow { color: var(--ps-yellow); background: rgba(255, 210, 63, 0.08); border-color: rgba(255, 210, 63, 0.25); }
.eyebrow-purple { color: #b6a4ff; background: rgba(124, 92, 255, 0.12); border-color: rgba(124, 92, 255, 0.3); }

.hero-title {
  font-weight: 900; text-transform: uppercase; color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 0.95; letter-spacing: -0.03em;
}
.text-gradient {
  background: linear-gradient(90deg, var(--ps-pink), var(--ps-yellow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.12rem; color: rgba(255, 255, 255, 0.82); max-width: 520px; margin-inline: auto; }
@media (min-width: 992px) { .hero-lead { margin-inline: 0; } }

/* Device frames */
.hero-visual { position: relative; padding: 0 0 3rem 0; }
.device { overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.device img { display: block; width: 100%; height: auto; }
.device-desktop { border-radius: 14px; transform: perspective(1400px) rotateY(-8deg) rotateX(2deg); transform-origin: left center; }
.device-bar { display: flex; gap: 6px; padding: 9px 12px; background: #17112b; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: #3b3356; }
.device-bar span:nth-child(1) { background: #ff5f57; }
.device-bar span:nth-child(2) { background: #febc2e; }
.device-bar span:nth-child(3) { background: #28c840; }
.device-phone {
  position: absolute; right: -4%; bottom: 0; width: 34%;
  border-radius: 26px; border: 6px solid #1c1530;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.float-pill { position: absolute; pointer-events: none; opacity: 0.9; filter: drop-shadow(0 12px 30px rgba(255, 79, 163, 0.35)); }
.float-pill img { width: 100%; height: auto; }
.pill-a { width: 74px; top: 18%; left: 4%; transform: rotate(-20deg); animation: drift 9s ease-in-out infinite; filter: blur(1px) drop-shadow(0 12px 30px rgba(255, 79, 163, 0.35)); }
.pill-b { width: 46px; top: 12%; right: 6%; transform: rotate(25deg); animation: drift 7s ease-in-out infinite reverse; opacity: 0.6; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* ----- Category ticker ----- */
.ticker { overflow: hidden; border-block: 1px solid var(--ps-line); background: rgba(255, 255, 255, 0.02); padding: 0.9rem 0; }
.ticker-track { display: flex; gap: 2.5rem; width: max-content; animation: ticker 40s linear infinite; }
.ticker-track span { font-weight: 700; font-size: 1.05rem; color: rgba(255, 255, 255, 0.75); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ----- Feature sections ----- */
.feature { padding: 6.5rem 0; }
.feature-alt { background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.06), transparent); }
.section-title { font-weight: 800; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; }
.section-lead { color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; margin-top: 1rem; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.6rem; color: rgba(255, 255, 255, 0.85); }
.check-list i { color: var(--ps-pink); font-size: 1.15rem; line-height: 1.4; }

/* Clickable screenshots */
.shot {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shot img { display: block; width: 100%; height: auto; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 35px 80px rgba(124, 92, 255, 0.25), 0 0 0 1px rgba(255, 79, 163, 0.35); }
.shot:focus-visible { outline: 3px solid var(--ps-pink); outline-offset: 4px; }

/* Phone row */
.phones { display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem; }
.shot-phone { width: min(260px, 30%); border-radius: 28px; border: 6px solid #1c1530; }
.shot-phone.center { width: min(290px, 34%); z-index: 1; }
.shot-phone.tilt-left { transform: rotate(-5deg) translateY(12px); }
.shot-phone.tilt-right { transform: rotate(5deg) translateY(12px); }
.shot-phone.tilt-left:hover { transform: rotate(-5deg) translateY(4px); }
.shot-phone.tilt-right:hover { transform: rotate(5deg) translateY(4px); }
@media (max-width: 575.98px) {
  .phones { gap: 0.6rem; }
  .shot-phone { border-width: 3px; border-radius: 18px; }
}

/* Feature grid */
.grid-section { padding: 5rem 0; }
.tile {
  height: 100%; padding: 1.6rem; border-radius: 18px;
  background: var(--ps-card); border: 1px solid var(--ps-line);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: rgba(255, 79, 163, 0.35); background: rgba(255, 255, 255, 0.06); }
.tile h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0.9rem 0 0.4rem; }
.tile p { color: rgba(255, 255, 255, 0.65); margin: 0; font-size: 0.95rem; }
.tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; color: #fff;
  background: linear-gradient(135deg, var(--ps-pink), var(--ps-violet));
}
.badge-soon { font-size: 0.65rem; font-weight: 700; vertical-align: middle; padding: 0.2rem 0.5rem; border-radius: 999px; background: rgba(255, 210, 63, 0.15); color: var(--ps-yellow); margin-left: 0.3rem; }

.gallery-section { padding: 2rem 0 6rem; }

/* Final call to action */
.cta { padding: 2rem 0 6rem; }
.cta-card {
  position: relative; overflow: hidden; padding: 4rem 1.5rem; border-radius: 28px;
  background:
    radial-gradient(30rem 16rem at 15% 0%, rgba(255, 79, 163, 0.45), transparent 60%),
    radial-gradient(30rem 16rem at 90% 100%, rgba(255, 210, 63, 0.25), transparent 60%),
    linear-gradient(135deg, #2a1660, #170e33);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-title { font-weight: 900; text-transform: uppercase; color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.02em; line-height: 1; }
.cta-pill { animation: floaty 5s ease-in-out infinite; }

/* Footer */
.site-footer { border-top: 1px solid var(--ps-line); padding: 3.5rem 0 2rem; background: #08050f; }
.footer-head { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ps-pink); margin-bottom: 0.9rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ps-line); color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; }

/* Screenshot viewer */
.shot-modal { background: #0f0a1e; border: 1px solid var(--ps-line); }

/* Scroll reveal (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Phones: hero stacks, frames flatten */
@media (max-width: 991.98px) {
  .hero { padding: 7.5rem 0 4rem; }
  .device-desktop { transform: none; }
  .float-pill { display: none; }
  .device-phone { right: 2%; width: 30%; }
  .feature { padding: 4.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
