/* ============================================================
   NyxoPlay — landing page
   Brand: NyxoPurple #7B2CFF · NyxoPink #FF2CA6
          NyxoBackground #0B0D14 · NyxoSurface #21222B
   ============================================================ */

:root {
  --purple: #7b2cff;
  --pink: #ff2ca6;
  --bg: #0b0d14;
  --bg-2: #0e1018;
  --surface: #21222b;
  --surface-2: #181a22;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5fa;
  --muted: #a6a9b8;
  --muted-2: #777b8c;
  --radius: 18px;
  --radius-lg: 26px;
  --grad: linear-gradient(110deg, var(--purple), var(--pink));
  --maxw: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Offset anchor jumps so the sticky nav doesn't cover the target.
     For #top this clamps to scrollY 0, so it lands at the very top. */
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 12px 34px -12px rgba(123, 44, 255, 0.8);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(255, 44, 166, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(123, 44, 255, 0.14);
  color: #d9c7ff;
  border: 1px solid rgba(123, 44, 255, 0.32);
}
.pill--soft { background: rgba(255, 44, 166, 0.12); color: #ffc7e6; border-color: rgba(255, 44, 166, 0.3); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 5vw, 40px);
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 13, 20, 0.92); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__logo { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { font-size: 19px; letter-spacing: -0.01em; }
.brand__accent { color: var(--pink); }

.nav__links { display: flex; gap: 26px; margin-left: 14px; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav__links a:hover { color: var(--text); }

.nav__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang__btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 7px 13px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang__btn.is-active { background: var(--grad); color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(16px, 5vw, 40px) clamp(40px, 6vw, 70px); }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero__glow--purple { width: 560px; height: 560px; background: var(--purple); top: -180px; left: -140px; }
.hero__glow--pink { width: 520px; height: 520px; background: var(--pink); top: -60px; right: -160px; opacity: 0.35; }

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__copy .pill { margin-bottom: 22px; }
.hero__title { font-size: clamp(36px, 6vw, 60px); font-weight: 900; }
.hero__title span { display: block; }
.hero__sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); max-width: 540px; margin: 22px 0 30px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 18px 26px; padding: 0; margin: 30px 0 0; }
.hero__badges li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px rgba(255, 44, 166, 0.7); }

/* Hero art */
.hero__art { position: relative; min-height: 380px; }
.device { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; }
.device--tv {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  transform: rotate(-1deg);
}
.device--phone {
  position: absolute;
  width: 33%;
  max-width: 180px;
  bottom: -28px;
  right: -8px;
  border-radius: 26px;
  border-width: 4px;
  border-color: #2a2c38;
  transform: rotate(3deg);
}

/* ============================================================
   STRIP
   ============================================================ */
.strip {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.strip__item {
  background: linear-gradient(180deg, rgba(33, 34, 43, 0.6), rgba(24, 26, 34, 0.4));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.strip__item strong {
  font-size: 34px;
  font-weight: 900;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip__item span { color: var(--muted); font-size: 14px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 110px) clamp(16px, 5vw, 40px) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__head .pill { margin-bottom: 18px; }
.section__title { font-size: clamp(28px, 4vw, 34px); font-weight: 900; }
.section__lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); margin-top: 16px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(123, 44, 255, 0.4); box-shadow: 0 24px 50px -24px rgba(123, 44, 255, 0.5); }
.card--accent { border-color: rgba(255, 44, 166, 0.22); }
.card--accent:hover { border-color: rgba(255, 44, 166, 0.5); box-shadow: 0 24px 50px -24px rgba(255, 44, 166, 0.45); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 14px;
  background: rgba(123, 44, 255, 0.14);
  border: 1px solid rgba(123, 44, 255, 0.28);
  margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ============================================================
   FEATURE BANNER
   ============================================================ */
.feature-banner {
  max-width: var(--maxw);
  margin: clamp(64px, 9vw, 110px) auto 0;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  background:
    radial-gradient(700px 320px at 15% 0%, rgba(123, 44, 255, 0.22), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(255, 44, 166, 0.18), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.feature-banner__media { display: flex; justify-content: center; }
.device--phone-lg {
  position: static;
  width: 230px;
  max-width: 70%;
  border-width: 6px;
  border-color: #2a2c38;
  transform: rotate(-2deg);
}
.feature-banner__copy .pill { margin-bottom: 16px; }
.feature-banner__copy h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; margin-bottom: 14px; }
.feature-banner__copy p { color: var(--muted); margin: 0 0 20px; font-size: 16px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-weight: 500; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 50%;
}

/* ============================================================
   DEVICES
   ============================================================ */
.devices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.device-card {
  text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px;
  transition: transform .25s ease, border-color .25s ease;
}
.device-card:hover { transform: translateY(-5px); }
.device-card--live:hover { border-color: rgba(123, 44, 255, 0.45); }
.device-card--soon { opacity: 0.78; }
.device-card__icon { font-size: 34px; margin-bottom: 12px; height: 40px; }
.device-card h3 { font-size: 18px; margin-bottom: 8px; }
.device-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; min-height: 38px; }
.tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.tag--live { background: rgba(76, 230, 160, 0.14); color: #6ff2bf; border: 1px solid rgba(76, 230, 160, 0.3); }
.tag--soon { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
  grid-column: span 2;
}
.gallery__item--wide { grid-column: span 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }

/* ============================================================
   GET / CTA
   ============================================================ */
.get { position: relative; overflow: hidden; margin-top: clamp(64px, 9vw, 110px); padding: clamp(60px, 8vw, 100px) clamp(16px, 5vw, 40px); text-align: center; }
.get__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(123, 44, 255, 0.3), transparent 70%),
    radial-gradient(500px 260px at 50% 100%, rgba(255, 44, 166, 0.22), transparent 70%);
  pointer-events: none;
}
.get__inner { position: relative; max-width: 700px; margin: 0 auto; }
.get__logo { width: 70px; height: 70px; border-radius: 18px; margin: 0 auto 22px; box-shadow: 0 0 40px rgba(255, 44, 166, 0.4); }
.get h2 { font-size: clamp(30px, 4.5vw, 48px); font-weight: 900; margin-bottom: 16px; }
.get__sub, .get p { color: var(--muted); }
.get__inner > p { font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.get__buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.store-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  padding: 12px 26px; border-radius: 14px;
  background: var(--grad); color: #fff;
  box-shadow: 0 14px 34px -14px rgba(123, 44, 255, 0.8);
  transition: transform .2s ease;
}
.store-btn:hover { transform: translateY(-3px); }
.store-btn--alt { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); box-shadow: none; }
.store-btn__top { font-size: 11px; opacity: 0.85; letter-spacing: 0.04em; text-transform: uppercase; }
.store-btn__main { font-size: 19px; font-weight: 800; line-height: 1.1; }
.get__note { margin-top: 22px; font-size: 14px; color: var(--muted-2); }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.privacy__item {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.privacy__item h3 { font-size: 18px; margin-bottom: 8px; }
.privacy__item p { color: var(--muted); font-size: 15px; margin: 0; }
.privacy__item p a { color: #d9c7ff; text-decoration: underline; }
.privacy__updated { text-align: center; color: var(--muted-2); font-size: 13.5px; margin: 6px 0 0; }
.privacy__more { text-align: center; margin: 26px 0 0; }

/* ============================================================
   LEGAL / LONG-FORM (privacy.html)
   ============================================================ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 40px) 0;
}
.legal__head { margin-bottom: 14px; }
.legal__head .pill { margin-bottom: 18px; }
.legal__title { font-size: clamp(30px, 5vw, 46px); font-weight: 900; }
.legal__lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); margin-top: 14px; }
.legal__updated { color: var(--muted-2); font-size: 13.5px; margin-top: 10px; }
.legal__intro { color: var(--text); font-size: 16px; margin: 24px 0 0; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; margin-bottom: 12px; }
.legal p { color: var(--muted); font-size: 15.5px; margin: 0 0 12px; }
.legal a { color: #d9c7ff; text-decoration: underline; }
.legal__back { margin: 40px 0 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(36px, 5vw, 56px) clamp(16px, 5vw, 40px) 32px; }
.footer__top {
  max-width: var(--maxw); margin: 0 auto 26px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__links a { color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .2s; }
.footer__links a:hover { color: var(--text); }

.disclaimer {
  max-width: var(--maxw); margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.disclaimer strong:first-child {
  display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px;
  color: var(--pink); margin-bottom: 8px;
}
.disclaimer p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.disclaimer p strong { color: var(--text); }

.footer__bottom {
  max-width: var(--maxw); margin: 26px auto 0;
  color: var(--muted-2); font-size: 13.5px;
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.footer__sep { opacity: 0.5; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; margin-top: 14px; max-width: 520px; }
  .device--phone { width: 30%; bottom: -16px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature-banner { grid-template-columns: 1fr; text-align: center; }
  .feature-banner__copy .ticks { text-align: left; max-width: 320px; margin: 0 auto; }
  .devices { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery__item, .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 620px) {
  .nav__links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .devices { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .gallery__item--wide { grid-column: auto; }
  .hero__badges { gap: 12px 20px; }
  .device--phone-lg { width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .device-card, .store-btn, .gallery__item img { transition: none; }
}
