/* StreamR — the logo's palette: deep navy type on the logo's own off-white, and its
   blue → violet → pink → orange flame as the accent. */
:root {
  --bg: #F5F9FC;           /* the logo images' background: they blend in */
  --panel: #FFFFFF;
  --ink: #1B2155;          /* the wordmark's navy */
  --muted: #5B6386;
  --line: #E1E7F0;
  --blue: #2F5BFF;
  --violet: #8A3BF0;
  --pink: #F0357E;
  --orange: #FF8A3D;
  --flame: linear-gradient(100deg, var(--blue), var(--violet) 38%, var(--pink) 70%, var(--orange));
  --radius: 18px;
  --shadow: 0 10px 40px rgba(27, 33, 85, .10);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 600 .9em ui-monospace, "SF Mono", Menlo, monospace; background: #EEF1FA; padding: .1em .4em; border-radius: 6px; word-break: break-word; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); text-align: center; margin-bottom: 1.2em; }
section { max-width: 1100px; margin: 0 auto; padding: 72px 20px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 12px max(20px, calc((100vw - 1100px) / 2)); background: rgba(245, 249, 252, .85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; mix-blend-mode: multiply; }
.brand b { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--muted); font-weight: 600; }

/* buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; color: #fff;
  background: var(--flame); box-shadow: 0 8px 24px rgba(138, 59, 240, .28); border: 0; cursor: pointer;
  font: inherit; font-weight: 700; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(138, 59, 240, .36); }
.btn.ghost { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn.small { padding: 8px 16px; font-size: 15px; }

/* hero */
.hero { text-align: center; padding-top: 36px; }
/* The logo JPGs have an off-white background: blended and faded at the edges so no box shows.
   (Transparent PNGs can replace them later: then the mask can go.) */
.hero-logo {
  width: min(720px, 100%); margin: 0 auto -8px; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; }
.grad { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* player */
.watch { padding-top: 24px; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #0B0E24;
  box-shadow: 0 24px 80px rgba(27, 33, 85, .25), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.player::before { /* the flame as a glowing frame */
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 26px; background: var(--flame); filter: blur(24px); opacity: .45;
}
.player video { width: 100%; height: 100%; display: block; background: #0B0E24; }
.offline { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; color: #D8DCF5; padding: 20px; }
.offline[hidden] { display: none; }
.offline img { border-radius: 20px; opacity: .9; }
.live-badge { position: absolute; top: 14px; left: 14px; background: #E5224E; color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 6px; letter-spacing: .04em; }
.unmute { white-space: nowrap; position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .95); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.stats { position: absolute; top: 48px; left: 14px; margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, .7); color: #fff; font: 12px/1.4 ui-monospace, Menlo, monospace; pointer-events: none; }
.watch-note { text-align: center; color: var(--muted); margin-top: 22px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li, .card { background: var(--panel); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--flame); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p, .card p { color: var(--muted); margin: 0; }

/* videos */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card .big { font-size: 44px; font-weight: 800; color: var(--ink); line-height: 1; }
.card .label { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; margin: 6px 0 14px !important; color: var(--violet) !important; }
.welcome { text-align: center; font-weight: 700; font-size: 20px; margin-top: 28px; }
.muted { color: var(--muted); }

/* faq */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 auto 12px; max-width: 800px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--violet); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 12px 0 0; }

footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; padding: 32px 20px 48px; color: var(--muted); border-top: 1px solid var(--line); }
footer img { border-radius: 6px; mix-blend-mode: multiply; }
footer .links { margin-left: auto; display: flex; gap: 18px; }

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  section { padding: 52px 16px; }
  .player { border-radius: 16px; }
  .unmute { bottom: 56px; padding: 8px 14px; font-size: 15px; }
  footer .links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* pay.html: opens a Solana Pay request from the bot */
.pay { max-width: 520px; margin: 0 auto; padding: 72px 20px; text-align: center; }
.pay img { margin: 0 auto 20px; border-radius: 18px; }
.pay .btn { display: inline-block; }
.small { font-size: 14px; }
