/* ============================================================
   Streamio — cinematic dark + green glow
   Self-hosted Archivo display face; system body. Zero external requests.
   ============================================================ */

@font-face { font-family: "Archivo"; font-weight: 600; font-display: swap;
  src: url("assets/fonts/Archivo-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap;
  src: url("assets/fonts/Archivo-Bold.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 800; font-display: swap;
  src: url("assets/fonts/Archivo-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "Archivo"; font-weight: 900; font-display: swap;
  src: url("assets/fonts/Archivo-Black.ttf") format("truetype"); }

:root {
  --bg: #0B0E12; --bg2: #0D1014; --surface: #161A20; --surface2: #1E232B;
  --text: #F4F7FA; --muted: rgba(244,247,250,0.60); --faint: rgba(244,247,250,0.38);
  --line: rgba(244,247,250,0.10); --line2: rgba(244,247,250,0.16);
  --accent: #16C172; --accent-bright: #2BE38C; --accent-deep: #0BA45E;
  --glow: rgba(22,193,114,0.45);
  --display: "Archivo", -apple-system, system-ui, sans-serif;
  --body: -apple-system, "Segoe UI", system-ui, sans-serif;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font-family: var(--body);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 78% -8%, rgba(22,193,114,0.16), transparent 60%),
    radial-gradient(900px 600px at 12% 8%, rgba(22,193,114,0.08), transparent 55%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 56px 56px, 56px 56px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  background-attachment: fixed;
}
/* fade the grid into a whisper toward the bottom */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(11,14,18,0.86) 100%);
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.5px; line-height: 1.05; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.accent { color: var(--accent); }
.eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display);
  font-weight: 800; font-size: 15px; letter-spacing: .2px; padding: 14px 26px; border-radius: 13px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #04140c; box-shadow: 0 10px 30px rgba(22,193,114,0.32), inset 0 1px 0 rgba(255,255,255,0.25); }
.btn-primary:hover { box-shadow: 0 16px 44px rgba(22,193,114,0.45), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-ghost { color: var(--text); border: 1px solid var(--line2); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); background: rgba(22,193,114,0.06); }

/* ---------- Header (sticky, condenses on scroll) ---------- */
.site-header { position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap;
  transition: padding .3s ease; }
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(0px); transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent; }
.site-header.scrolled { padding: 11px 22px; }
.site-header.scrolled::after { background: rgba(11,14,18,0.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.wordmark:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 4px 16px rgba(22,193,114,0.4); flex: none; }
.wordmark-text { font-family: var(--display); font-weight: 900; letter-spacing: -0.4px; font-size: 20px; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; text-align: center; padding: 70px 22px 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 50%; top: 8%; width: min(900px, 96vw); height: 560px;
  transform: translateX(-50%); pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); filter: blur(30px);
  opacity: .55; animation: auraPulse 7s ease-in-out infinite; }
.hero > * { position: relative; z-index: 1; }
@keyframes auraPulse { 0%,100% { opacity:.42; transform: translateX(-50%) scale(1); }
  50% { opacity:.66; transform: translateX(-50%) scale(1.06); } }
.hero h1 { font-size: clamp(40px, 7.5vw, 84px); font-weight: 900; text-transform: uppercase;
  margin: 22px auto 14px; max-width: 14ch; }
.hero h1 .grad { background: linear-gradient(100deg, var(--accent-bright), #7CF3B6 40%, var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 220% auto; animation: gradShift 6s ease infinite; }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .tag { color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); max-width: 620px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-device { margin: 54px auto 0; max-width: 880px; }
.float { animation: float 6.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* on-load staggered entrance */
.js .hero .enter { opacity: 0; transform: translateY(22px); animation: enter .9s cubic-bezier(.2,.8,.2,1) forwards; }
.js .hero .enter.d1 { animation-delay: .05s; } .js .hero .enter.d2 { animation-delay: .15s; }
.js .hero .enter.d3 { animation-delay: .25s; } .js .hero .enter.d4 { animation-delay: .4s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- Device frame (hero + feature rows) ---------- */
.frame { position: relative; border-radius: 22px; padding: 9px;
  background: linear-gradient(160deg, #20242c, #0a0c10); border: 1px solid var(--line2);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 70px rgba(22,193,114,0.12); }
.frame img { display: block; width: 100%; height: auto; border-radius: 14px; }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,255,255,0.07), transparent 40%); }

/* ---------- Sections ---------- */
section { padding: 56px 0; position: relative; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 14px; padding: 0 22px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; margin: 8px 0 0; }

/* positioning strip */
.strip { display: flex; justify-content: center; padding: 14px 22px; }
.strip span { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 99px; padding: 9px 18px; text-align: center; }
.strip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); flex: none; }

/* alternating feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 38px 22px; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-copy h3 { font-size: clamp(24px, 3.2vw, 34px); text-transform: uppercase; margin: 10px 0 12px; }
.feature-copy p { color: var(--muted); font-size: 16px; max-width: 42ch; }
.feature-copy .mini { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feature-copy .mini li { color: var(--text); font-size: 14.5px; display: flex; gap: 9px; align-items: flex-start; }
.feature-copy .mini li::before { content: ""; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }

/* icon grid (quick hits) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.card { background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.card .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; display: block; }
.card h3 { font-size: 17px; margin: 0 0 6px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Screenshot gallery ---------- */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: var(--maxw);
  margin: 0 auto; padding: 0 22px; }
.shot { margin: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.shot:hover { transform: translateY(-6px) scale(1.012); }
.shot img { width: 100%; height: auto; display: block; border-radius: 13px; border: 1px solid var(--line);
  box-shadow: 0 22px 48px rgba(0,0,0,0.5); background: var(--surface); }
.shot figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 10px; letter-spacing: .3px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

/* ---------- Private callout ---------- */
.callout { position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(165deg, rgba(22,193,114,0.10), rgba(255,255,255,0.02));
  border: 1px solid var(--line2); border-radius: 20px; padding: 40px 28px; overflow: hidden; }
.callout::before { content: ""; position: absolute; left: 50%; top: -40%; width: 420px; height: 420px;
  transform: translateX(-50%); background: radial-gradient(closest-side, var(--glow), transparent 70%);
  filter: blur(40px); opacity: .4; pointer-events: none; }
.callout h2 { font-size: 24px; margin: 14px 0 8px; text-transform: uppercase; position: relative; }
.callout p { color: var(--muted); margin: 0 auto; max-width: 52ch; position: relative; }
.callout .lock { width: 38px; height: 38px; color: var(--accent); position: relative; }

/* ---------- Final CTA band ---------- */
.cta { margin: 40px auto 0; max-width: var(--maxw); padding: 0 22px; }
.cta-inner { position: relative; overflow: hidden; border-radius: 26px; padding: 60px 30px; text-align: center;
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow: 0 30px 80px rgba(22,193,114,0.3); }
.cta-inner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 300px at 20% -30%, rgba(255,255,255,0.35), transparent 60%); }
.cta-inner h2 { color: #042012; font-size: clamp(28px, 4.4vw, 46px); text-transform: uppercase; margin: 0 0 8px; position: relative; }
.cta-inner p { color: rgba(4,20,12,0.78); margin: 0 0 24px; font-weight: 600; position: relative; }
.cta .btn-dark { position: relative; background: #06150d; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.cta .btn-dark:hover { background: #000; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 22px 36px;
  max-width: var(--maxw); margin-left: auto; margin-right: auto; text-align: center; }
.footer-mark { font-family: var(--display); font-weight: 900; font-size: 20px; margin-bottom: 14px; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-fine { color: var(--faint); font-size: 13px; max-width: 560px; margin: 0 auto; }

/* ---------- Legal / content pages (clean reading layout) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 30px 22px 8px; position: relative; z-index: 1; }
.doc h1 { font-size: clamp(28px, 5vw, 42px); text-transform: uppercase; margin-bottom: 4px; }
.doc .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.doc h2 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .muted { color: var(--muted); }
.doc ul { padding-left: 20px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 700; font-family: var(--display); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary { color: var(--accent); margin-bottom: 8px; }
details p { color: var(--muted); margin: 6px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { max-width: 460px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .enter { opacity: 1 !important; transform: none !important; transition: none !important; }
}
