/* Bexy TV — shared stylesheet. Dark streaming-service theme, mobile-first,
   system fonts only, no external resources, plus a tiny motion.js for the
   scroll progress line and the FAQ accordion. */

:root {
  --bg: #06070f;
  --panel: #101423;
  --panel2: #171b30;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f5fb;
  --muted: #a3adc7;
  --cyan: #67e8f9;
  --violet: #a78bfa;
  --grad: linear-gradient(90deg, #67e8f9, #c4b5fd);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(700px 420px at 85% -5%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(520px 420px at -10% 28%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bg);
}

a { color: var(--cyan); }
a:hover { color: #a5f3fc; }
a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Scroll progress line (width set by motion.js) */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 200;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 15, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

.site-header nav {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-decoration: none;
  margin-right: auto;
}

.logo-img { height: 2.25rem; width: auto; display: block; }

.site-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.site-header ul a {
  position: relative;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 4px;
}

.site-header ul a:hover { color: #ffffff; }

.site-header ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.site-header ul a:hover::after { width: 100%; }

/* Layout */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

section { margin-bottom: 2.5rem; }

h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0.5rem 0 1rem;
}
h2 { font-size: 1.7rem; line-height: 1.25; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 1.25rem 0 0.25rem; }
p { color: var(--muted); }
h1, h2, h3 { color: var(--text); }
li { color: var(--muted); }

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

/* Hero */
.hero { padding: 2.5rem 0 0.5rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #dbeafe;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.btn {
  display: inline-block;
  background: var(--grad);
  color: #0b1020;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  margin: 0.5rem 0.5rem 0.5rem 0;
  box-shadow: 0 0 26px rgba(167, 139, 250, 0.35);
}

.btn:hover { color: #0b1020; filter: brightness(1.08); box-shadow: 0 0 32px rgba(167, 139, 250, 0.5); }

.btn-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }

.ticks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.ticks li { color: #dbeafe; font-weight: 600; }
.ticks li::before { content: "\2713\00a0"; color: var(--cyan); font-weight: 800; }

.hero-strip {
  grid-column: 1 / -1;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* Category pills + marquee ticker (homepage) */
.marquee {
  overflow: hidden;
  margin-bottom: 2.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-set {
  display: flex;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.pill {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #cbd5e1;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.pill:hover { border-color: var(--cyan); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* App preview card (pure CSS mockup, no images) */
.app-preview {
  background: #0b0f1e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  margin-top: 1.5rem;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.app-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5f3fc;
  border: 1px solid rgba(103, 232, 249, 0.5);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.app-body {
  display: grid;
  grid-template-columns: 118px 1fr;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0.75rem;
}

.app-list li {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.app-list li.on {
  background: rgba(103, 232, 249, 0.15);
  color: #ffffff;
  font-weight: 700;
}

.app-now {
  margin: 0.75rem 0.75rem 0.75rem 0;
  background: linear-gradient(135deg, #1e1b4b, #0e7490);
  border-radius: 12px;
  min-height: 150px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.app-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #0b1020;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: auto;
}

.app-now p { color: #ffffff; font-weight: 800; margin: 1rem 0 0; }
.app-now p span { color: #dbeafe; font-weight: 600; font-size: 0.85rem; }

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1rem;
}

.app-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--panel);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--panel2);
}

.card h3 { margin-top: 0; }
.card .price { font-size: 1.6rem; font-weight: 800; margin: 0.5rem 0; color: var(--text); }
.card .per-month { color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th, td {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

th { background: rgba(255, 255, 255, 0.05); }

/* Callouts */
.callout {
  background: rgba(103, 232, 249, 0.08);
  border-left: 4px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p { color: var(--text); }

.notice {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.notice p { color: #fde68a; }

/* Footer */
.site-footer {
  background: #04050c;
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
}

.site-footer .inner { max-width: 1080px; margin: 0 auto; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #ffffff; }
.site-footer ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

/* Pricing cards */
.plan-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.plan-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.plan-card--wide { grid-column: 1 / -1; }

.plan-card--hot {
  border-color: rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

.plan-card--hot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(236, 72, 153, 0.16) 55%, transparent);
  pointer-events: none;
}

.plan-card--hot > * { position: relative; }

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin: 0 0 1rem;
}

.plan-badge--grad {
  background: var(--grad);
  color: #0b1020;
  border-color: transparent;
}

.plan-card h3 { margin: 0; font-size: 1.35rem; }
.plan-tag { color: var(--muted); margin: 0.25rem 0 1rem; }
.plan-price { font-size: 2rem; font-weight: 800; color: #ffffff; margin: 0; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan-per { color: var(--cyan); font-weight: 700; margin: 0.25rem 0 1rem; }

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.plan-features li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.4rem;
  color: #cbd5e1;
}

.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 800;
}

.plan-btn {
  margin-top: auto;
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.plan-btn:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; }

.plan-card--hot .plan-btn {
  background: var(--grad);
  color: #0b1020;
  border-color: transparent;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.35);
}

.plan-card--hot .plan-btn:hover { color: #0b1020; filter: brightness(1.08); }

/* FAQ accordion (behavior in motion.js) */
.faq-q {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-q:not(.faq-closed)::after { content: "\2212"; }

.faq-a[hidden] { display: none; }

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .spot::after { display: none; }
}

/* Wider screens */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards.three { grid-template-columns: 1fr 1fr 1fr; }
  .plan-cards { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1000px) {
  .plan-cards { grid-template-columns: repeat(4, 1fr); }
  .cards.four { grid-template-columns: repeat(4, 1fr); }
}

/* Card spotlight: a soft light wash that follows the cursor inside
   cards and FAQ rows only — never across the whole page. */
.spot { position: relative; overflow: hidden; }

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(103, 232, 249, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spot:hover::after { opacity: 1; }

/* Real customer reviews (owner-confirmed Trustpilot reviews, Oct 2026).
   Empty slots, if ever used again, must stay visibly dashed and empty —
   never filled with invented names, ratings or quotes. */
.review-slot { border-style: dashed; }

.review-card .stars { color: #f59e0b; letter-spacing: 0.15em; }

.review-text { font-size: 1.05rem; }

.review-author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.review-avatar {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.review-meta { color: var(--muted); font-size: 0.9rem; }

/* FAQ rows (wrappers added by motion.js) */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item h3 { margin: 0; }
.faq-item .faq-a { margin: 0.6rem 0 0.25rem; }

@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
  }
  .app-preview { margin-top: 0; }
}
