/* XYZ Player website. Colours follow the apps' "Neon" theme. */
:root {
  --bg: #070a1c;
  --bg-raised: #0d1130;
  --card: #111638;
  --card-2: #151b45;
  --line: #232a5a;
  --text: #f3f4fa;
  --muted: #b4b8d6;
  --faint: #7a80a8;
  --pink: #f0379b;
  --orange: #ff7a3d;
  --purple: #8b3dff;
  --live: #ff2d3d;
  --ok: #34d399;
  --grad: linear-gradient(120deg, var(--purple), var(--pink) 55%, var(--orange));
  --radius: 18px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --max: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Background glow, like the app's top wave */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.glow::before { width: 720px; height: 420px; right: -160px; top: -200px; background: radial-gradient(closest-side, #b0288f, transparent); }
.glow::after { width: 620px; height: 420px; left: -220px; top: 160px; background: radial-gradient(closest-side, #4b1fa8, transparent); }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 28, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 42, 90, 0.6);
}
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.3em; font-weight: 700; color: var(--muted); margin-top: -3px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  border: 0; background: none; color: var(--faint); font: inherit; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--card-2); color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 38px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--grad); box-shadow: 0 12px 30px -10px rgba(240, 55, 155, 0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -10px rgba(240, 55, 155, 0.75); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }

/* Hero */
.hero { position: relative; padding: 80px 0 40px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 850; margin-top: 14px; }
.hero .lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 540px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: rgba(17, 22, 56, 0.8); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted);
}
.chip svg { width: 16px; height: 16px; color: var(--pink); }

.devices { position: relative; padding-bottom: 40px; }
.tv {
  position: relative; border-radius: 16px; padding: 10px; background: linear-gradient(180deg, #1b2150, #0b0f2a);
  border: 1px solid #2c3470; box-shadow: var(--shadow);
}
.tv img { border-radius: 8px; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.tv::after {
  content: ""; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  width: 26%; height: 8px; border-radius: 0 0 10px 10px; background: #1b2150;
}
.phone {
  border-radius: 34px; padding: 8px; background: #0b0f2a; border: 1px solid #2c3470; box-shadow: var(--shadow);
}
.phone img { border-radius: 27px; aspect-ratio: 600 / 1311; width: 100%; object-fit: cover; }
.devices .phone { position: absolute; width: 30%; right: -14px; bottom: -6px; }

/* Sections */
section { position: relative; padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 12px; }
.section-head p { font-size: 18px; color: var(--muted); margin-top: 16px; }

.strip { padding: 26px 0; border-block: 1px solid var(--line); background: rgba(13, 17, 48, 0.6); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat b { display: block; font-size: 26px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(180deg, var(--card), rgba(17, 22, 56, 0.55));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: #3a4390; transform: translateY(-2px); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 10px 24px -10px rgba(240, 55, 155, 0.7);
}
.feature .ico svg { width: 24px; height: 24px; color: #fff; }
.feature h3 { font-size: 18px; margin-top: 18px; }
.feature p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Showcase (TV app) */
.showcase { display: grid; grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 8px; }
.tab {
  text-align: left; background: none; border: 1px solid transparent; color: var(--muted); cursor: pointer;
  font: inherit; padding: 14px 16px; border-radius: 14px; transition: background 0.15s ease, border-color 0.15s ease;
}
.tab b { display: block; color: var(--text); font-size: 16px; }
.tab span { display: block; font-size: 14px; margin-top: 2px; }
.tab:hover { background: rgba(255, 255, 255, 0.03); }
.tab[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: inset 3px 0 0 var(--pink); }
.stage { position: relative; }
.stage img { transition: opacity 0.25s ease; }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--muted); }
.checks li::before {
  content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: var(--grad) center / 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 7px var(--bg);
}
.checks li b { color: var(--text); font-weight: 650; }

.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.phones .phone:nth-child(2) { transform: translateY(-28px); }

.panel-shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  font-weight: 800; background: var(--grad);
}
.step h3 { font-size: 18px; margin-top: 16px; }
.step p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
form.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(240, 55, 155, 0.18); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: 16px; }
.consent input { margin-top: 4px; accent-color: var(--pink); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.status { font-size: 15px; }
.status.ok { color: var(--ok); }
.status.err { color: #ff7a88; }
.contact-points { display: grid; gap: 14px; margin-top: 28px; }
.contact-points div { display: flex; gap: 14px; align-items: flex-start; }
.contact-points svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--pink); margin-top: 2px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 34px 0; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--text); }
.disclaimer { max-width: 760px; font-size: 13px; line-height: 1.5; }

/* Legal page */
.legal { padding: 70px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: 40px; font-weight: 800; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1020px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .tab { flex: 0 0 auto; }
  .tab span { display: none; }
  .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--pink); }
}
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(7, 10, 28, 0.97); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 17px; }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-actions .btn { display: none; }
  .nav { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .hero { padding-top: 48px; }
  .hero .wrap, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  form.card { padding: 22px; }
  .phones { gap: 10px; }
  .phones .phone { border-radius: 22px; padding: 5px; }
  .phones .phone img { border-radius: 18px; }
  .devices .phone { width: 34%; right: -6px; border-radius: 22px; padding: 5px; }
  .devices .phone img { border-radius: 18px; }
}
