/* ============================================================
   StreamTV services — broadcast-glow theme
   Display: Space Grotesk · Body: Inter
   ============================================================ */

:root {
  --bg:        #090D18;
  --bg-2:      #0C1322;
  --surface:   #131B2E;
  --surface-2: #1A2440;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #EAEEF8;
  --muted:     #8C97B2;
  --muted-2:   #5D6884;

  --brand:     #22D3EE;   /* signal cyan  */
  --brand-2:   #8B5CF6;   /* violet glow  */
  --cta:       #FFD60A;   /* download button (required yellow) */
  --cta-ink:   #1A1400;

  --bronze:    #C8814B;
  --silver:    #C2CAD9;
  --gold:      #F2C14E;

  --ok:        #34D399;
  --err:       #F87171;

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(800px 420px at 0% 0%, rgba(34, 211, 238, 0.14), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-mark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* -------- top bar -------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(9, 13, 24, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand-mark {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.25rem;
}
.brand-mark .live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: pulse 2.2s infinite;
}
.brand-mark .accent { color: var(--brand); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}
.topbar a.admin-link {
  color: var(--muted); text-decoration: none; font-size: 0.9rem;
  padding: 0.45rem 0.85rem; border: 1px solid var(--line);
  border-radius: 999px; transition: .2s;
}
.topbar a.admin-link:hover { color: var(--text); border-color: var(--line-2); }

/* -------- hero -------- */
.hero { padding: 4.5rem 0 2.5rem; position: relative; overflow: hidden; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); font-weight: 600;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: .4rem .9rem; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; }
.hero h1 .glow {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  color: var(--muted); font-size: 1.12rem; max-width: 38rem;
  margin: 1.1rem 0 1.8rem;
}

/* equalizer / signal wave signature element */
.signal { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-bottom: 1.6rem; }
.signal span {
  width: 6px; border-radius: 4px;
  background: linear-gradient(var(--brand), var(--brand-2));
  animation: eq 1.4s ease-in-out infinite;
  opacity: .9;
}
.signal span:nth-child(1){ animation-delay: -.2s }
.signal span:nth-child(2){ animation-delay: -.6s }
.signal span:nth-child(3){ animation-delay: -.1s }
.signal span:nth-child(4){ animation-delay: -.8s }
.signal span:nth-child(5){ animation-delay: -.4s }
.signal span:nth-child(6){ animation-delay: -.7s }
.signal span:nth-child(7){ animation-delay: -.3s }
.signal span:nth-child(8){ animation-delay: -.5s }
@keyframes eq { 0%,100%{ height: 12px } 50%{ height: 46px } }

.device-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  font-size: .85rem; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  padding: .45rem .9rem; border-radius: 999px;
}
.chip b { color: var(--brand); font-weight: 600; }

/* -------- section headings -------- */
.section { padding: 3.2rem 0; }
.section-head { margin-bottom: 1.8rem; }
.section-head .kicker {
  color: var(--brand); font-weight: 600; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-top: .4rem; }
.section-head p { color: var(--muted); margin: .5rem 0 0; }

/* -------- plan cards -------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.plan {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; transition: transform .25s, border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan .tier {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem;
}
.plan .dot { width: 12px; height: 12px; border-radius: 3px; }
.plan.bronze .dot { background: var(--bronze); }
.plan.silver .dot { background: var(--silver); }
.plan.gold   .dot { background: var(--gold); }
.plan .term { color: var(--muted); font-size: .92rem; margin-top: .2rem; }

.plan .price { margin: 1.2rem 0 .2rem; display: flex; align-items: baseline; gap: .35rem; }
.plan .price .amt { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 700; }
.plan .price .per { color: var(--muted); font-size: .95rem; }
.plan .total { color: var(--muted); font-size: .9rem; }
.plan .total b { color: var(--text); font-weight: 600; }

.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; display: grid; gap: .55rem; }
.plan li { font-size: .92rem; color: var(--text); display: flex; gap: .55rem; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; }

.plan .select {
  margin-top: auto; width: 100%; cursor: pointer;
  font: inherit; font-weight: 600;
  padding: .85rem 1rem; border-radius: var(--radius-sm);
  background: transparent; color: var(--text);
  border: 1px solid var(--line-2); transition: .2s;
}
.plan .select:hover { background: var(--surface-2); }

.plan.gold { border-color: rgba(242, 193, 78, .45); box-shadow: 0 0 0 1px rgba(242,193,78,.12), var(--shadow); }
.plan .badge {
  position: absolute; top: -11px; right: 16px;
  background: linear-gradient(100deg, var(--gold), #f7d98a);
  color: #3a2c00; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  padding: .28rem .7rem; border-radius: 999px; text-transform: uppercase;
}

/* selected state */
.plan.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 24px 60px -24px rgba(34,211,238,.4);
}
.plan.is-selected .select {
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  color: #06121a; border-color: transparent;
}
.plan.is-selected .select::after { content: " — selected"; }

/* -------- subscribe form -------- */
.subscribe-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem;
}
.form-row { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.form-row label { font-size: .88rem; font-weight: 600; }
.form-row .req { color: var(--brand); }
.form-row input {
  font: inherit; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .8rem .9rem; transition: .15s;
}
.form-row input::placeholder { color: var(--muted-2); }
.form-row input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .2);
}
.form-row .field-error { color: var(--err); font-size: .82rem; min-height: 1.1em; }
.form-row input.invalid { border-color: var(--err); }

/* honeypot — visually hidden, off-screen, not display:none (so bots still see it) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-box {
  display: flex; align-items: center; gap: .8rem;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .7rem .9rem; margin-bottom: .4rem;
}
.captcha-box .q { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; }
.captcha-box input { width: 74px; }
.captcha-box .refresh {
  margin-left: auto; background: none; border: 1px solid var(--line-2);
  color: var(--muted); border-radius: 8px; cursor: pointer; padding: .4rem .6rem;
}
.captcha-box .refresh:hover { color: var(--text); }
.captcha-note { font-size: .78rem; color: var(--muted-2); display: flex; gap: .4rem; align-items: center; }

.submit {
  width: 100%; margin-top: .6rem; cursor: pointer; font: inherit; font-weight: 700;
  font-size: 1.02rem; padding: .95rem; border-radius: var(--radius-sm);
  border: none; color: #06121a;
  background: linear-gradient(100deg, var(--brand), var(--brand-2));
  transition: filter .2s, transform .1s;
}
.submit:hover { filter: brightness(1.08); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: .5; cursor: not-allowed; filter: none; }

/* order summary (sidebar) */
.summary .row { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.summary .row:last-of-type { border-bottom: none; }
.summary .row span:first-child { color: var(--muted); }
.summary .grand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.5rem; color: var(--brand); }
.summary .empty { color: var(--muted); font-size: .92rem; }
.summary .lock { font-size: .8rem; color: var(--muted-2); margin-top: 1rem; display: flex; gap: .45rem; align-items: center; }

/* -------- success / payment / download reveal -------- */
.reveal { display: none; }
.reveal.show { display: block; animation: rise .5s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.success-card {
  text-align: center; background:
    radial-gradient(600px 240px at 50% -20%, rgba(52,211,153,.18), transparent 60%), var(--surface);
  border: 1px solid rgba(52,211,153,.3); border-radius: var(--radius); padding: 2.4rem 1.8rem;
}
.success-card .tick {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-size: 1.6rem; color: #06121a;
  background: linear-gradient(120deg, var(--ok), #6ee7b7);
}
.success-card h3 { font-size: 1.6rem; }
.success-card .meta { color: var(--muted); margin-top: .5rem; }
.success-card .meta b { color: var(--text); }

.pay-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.8rem; }
.btn-paypal {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-weight: 700; padding: .9rem 1.6rem; border-radius: 999px;
  background: #ffc439; color: #0a2540; border: 1px solid #e8b224;
}
.btn-paypal:hover { filter: brightness(1.04); }
.pay-secure { font-size: .82rem; color: var(--muted); margin-top: 1rem; display: flex; gap: .45rem; align-items: center; justify-content: center; }

/* the required yellow download button, centered */
.download-wrap { text-align: center; margin-top: 2rem; }
.btn-download {
  display: inline-flex; align-items: center; gap: .7rem; text-decoration: none;
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.15rem;
  color: var(--cta-ink); background: var(--cta);
  padding: 1.1rem 2.4rem; border-radius: 14px;
  box-shadow: 0 0 0 0 rgba(255, 214, 10, .5), 0 16px 40px -12px rgba(255, 214, 10, .6);
  animation: cta-glow 2.4s ease-in-out infinite; transition: transform .12s;
}
.btn-download:hover { transform: translateY(-2px); }
@keyframes cta-glow {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,214,10,.45), 0 16px 40px -12px rgba(255,214,10,.55); }
  50%     { box-shadow: 0 0 0 10px rgba(255,214,10,0), 0 16px 40px -12px rgba(255,214,10,.75); }
}
.download-wrap .hint { color: var(--muted); font-size: .9rem; margin-top: .8rem; }

/* -------- terms -------- */
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.term-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.term-card .ico { font-size: 1.4rem; }
.term-card h3 { font-size: 1.05rem; margin: .7rem 0 .4rem; }
.term-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* -------- footer -------- */
footer { border-top: 1px solid var(--line); padding: 2.2rem 0; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* -------- responsive -------- */
@media (max-width: 860px) {
  .plans, .terms-grid { grid-template-columns: 1fr; }
  .subscribe-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* focus visibility */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
