/* JBigs TV — dark slate + indigo theme matching the app */

:root {
  --bg: #020617;
  --bg-raised: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.5);
  --border: #1e293b;
  --border-light: #334155;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --amber: #fcd34d;
  --red: #e43239;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--indigo-light); text-decoration: none; }
a:hover { color: #a5b4fc; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; color: #f8fafc; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }

/* ----------------------------- Header / nav ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--text); }

/* -------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4), 0 8px 30px var(--indigo-glow);
}
.btn-primary:hover {
  background: var(--indigo-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.6), 0 12px 36px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover { border-color: var(--indigo-light); color: #fff; background: rgba(99, 102, 241, 0.08); }

.btn-large { padding: 14px 28px; font-size: 1.02rem; }
.btn-small { padding: 8px 16px; font-size: 0.88rem; }

/* --------------------------------- Hero --------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 84px;
  padding-bottom: 96px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.16) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-light);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.13rem;
  margin: 20px 0 30px;
  max-width: 32rem;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note { margin-top: 18px; color: var(--text-dim); font-size: 0.88rem; }

/* App mockup */

.hero-mock { perspective: 1200px; }

.mock-window {
  background: var(--bg-raised);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.12);
  transform: rotateY(-6deg) rotateX(2deg);
}

.mock-titlebar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.mock-titlebar span {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--border-light);
}
.mock-titlebar span:first-child { background: var(--red); }

.mock-body { display: flex; min-height: 300px; }

.mock-sidebar {
  width: 54px;
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mock-nav-item {
  height: 30px; border-radius: 8px;
  background: var(--border);
}
.mock-nav-item.active { background: var(--indigo); box-shadow: 0 0 16px var(--indigo-glow); }

.mock-content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 14px; }

.mock-player {
  position: relative;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b1226 0%, #131c3a 60%, #1a1336 100%);
  border: 1px solid var(--border);
  flex: 1;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-play {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.5);
  color: var(--indigo-light);
  display: flex; align-items: center; justify-content: center;
  padding-left: 4px;
  box-shadow: 0 0 30px var(--indigo-glow);
}
.mock-progress {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  height: 4px; border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.mock-progress i { display: block; width: 64%; height: 100%; background: var(--indigo); border-radius: 2px; }

.mock-rows { display: flex; flex-direction: column; gap: 9px; }
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-row b {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--border-light); flex-shrink: 0;
}
.mock-row i { display: block; height: 9px; border-radius: 5px; background: var(--border); }

/* ------------------------------- Sections ------------------------------- */

.section { padding: 84px 24px; }

.section h2 { text-align: center; }

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 14px auto 48px;
  font-size: 1.05rem;
}

/* Steps */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: var(--indigo-light);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: rgba(99, 102, 241, 0.5); transform: translateY(-3px); }

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--indigo-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

.pro-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0f172a;
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  border-radius: 5px;
  padding: 3px 7px;
  line-height: 1;
}

/* Compare table */

.compare-wrap { overflow-x: auto; }

.compare-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 13px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.compare-table thead th {
  background: var(--bg-raised);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.compare-table thead th.pro-col { color: var(--amber); }

.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.compare-table td { color: var(--text-dim); }
.compare-table td.yes { color: var(--indigo-light); font-weight: 600; }
.compare-table td.pro-col { background: rgba(99, 102, 241, 0.05); }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.price-card.featured {
  border-color: var(--indigo);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1), rgba(30, 41, 59, 0.5));
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber), #f59e0b);
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
}

.price-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

.price { margin: 16px 0 20px; }
.price .amount { font-size: 2.6rem; font-weight: 800; color: #f8fafc; letter-spacing: -0.02em; }
.price .period { color: var(--text-dim); margin-left: 5px; }

.price-card ul {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.price-card li { color: var(--text-muted); font-size: 0.94rem; }
.price-card li::before { content: "✓  "; color: var(--indigo-light); font-weight: 700; }

.pricing-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 30px;
}

/* FAQ */

.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item[open] { border-color: rgba(99, 102, 241, 0.45); }

.faq-item summary {
  cursor: pointer;
  padding: 17px 20px;
  font-weight: 600;
  color: #f1f5f9;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--indigo-light);
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { padding: 0 20px 18px; color: var(--text-muted); font-size: 0.96rem; }

/* Final CTA */

.cta-final {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.14) 0%, transparent 60%),
    var(--bg-raised);
}
.cta-final p { color: var(--text-muted); margin: 14px 0 28px; }
.cta-final .hero-note { margin-top: 16px; }

/* -------------------------------- Footer -------------------------------- */

.site-footer { padding: 56px 0 36px; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand img { height: 26px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--text-dim); font-size: 0.9rem; max-width: 22rem; }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }

.footer-legal { padding-top: 24px; }
.footer-legal p { color: var(--text-dim); font-size: 0.8rem; max-width: 56rem; }

/* --------------------------- Scroll reveal anim -------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* No-JS fallback: never hide content */
.no-observer .reveal { opacity: 1; transform: none; }

/* ------------------------------- Responsive ------------------------------ */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero-mock { max-width: 520px; }
  .mock-window { transform: none; }
  .steps, .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .section { padding: 60px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
}

/* Legal pages */

.legal-page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 36px; }
.legal-page h2 { font-size: 1.25rem; text-align: left; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.97rem; }
.legal-page ul { padding-left: 22px; margin: 10px 0; }
.legal-page li { margin-bottom: 6px; }
