:root {
  --bg: #0B0F14;
  --panel: #151B23;
  --panel-2: #1B2330;
  --line: rgba(148, 163, 184, .14);
  --teal: #19C6C8;
  --violet: #7C4DFF;
  --magenta: #E547B7;
  --text: #F7F8FA;
  --muted: #94A3B8;
  --green: #22C55E;
  --amber: #F5B942;
  --red: #EF4444;
  --radius: 18px;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font: 600 1rem/1 var(--body); border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #041416; box-shadow: 0 8px 28px -8px rgba(25, 198, 200, .7); }
.btn-primary:hover { background: #3ad6d8; box-shadow: 0 10px 34px -6px rgba(25, 198, 200, .8); }
.btn-ghost { background: rgba(11, 15, 20, .35); color: var(--text); border-color: rgba(247, 248, 250, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--text); background: rgba(247, 248, 250, .08); }
.btn-sm { padding: .62rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 15, 20, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font: 700 1.05rem/1 var(--display); letter-spacing: .08em; }
.brand img { height: 26px; width: auto; }
.brand img.wordmark { height: 26px; width: auto; display: block; }
.brand b { color: var(--teal); }
.nav-links { display: flex; gap: 2rem; font-size: .93rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: .5rem; }

/* Hero */
/* Whole wallpaper, never cropped: scales to fit the screen with space above and below */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: clamp(1.25rem, 3vh, 2.25rem); padding: calc(68px + clamp(.75rem, 3vh, 2rem)) 0 clamp(1.5rem, 5vh, 3.5rem);
  background: radial-gradient(70% 55% at 50% 38%, rgba(124,77,255,.22), transparent 70%);
}
.hero-frame {
  display: block; width: min(100% - 32px, (100svh - 400px) * 1916 / 821, 1600px);
  position: relative; aspect-ratio: 1916 / 821; border-radius: 20px; overflow: hidden; background: var(--panel);
  box-shadow: 0 40px 100px -40px rgba(124,77,255,.7), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-img { width: 100%; height: 100%; object-fit: contain; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.on { opacity: 1; }
.hero-content { display: grid; justify-items: center; text-align: center; gap: 1.25rem; }
.hero-content .lead { margin-inline: auto; }
.eyebrow {
  font: 600 .78rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; }
.lead { margin-top: .6rem; font-size: clamp(1rem, 1.4vw, 1.2rem); color: #dbe2ea; max-width: 44ch; }
.hero-actions { display: grid; justify-items: center; }
.hero-actions .hero-cta { justify-content: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-actions .hero-cta { margin-top: 0; }
.hero-note { margin-top: .9rem; font-size: .88rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: linear-gradient(180deg, var(--bg), #0f1420 40%, var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head h2, .demo-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
.sub { margin-top: 1rem; color: var(--muted); font-size: 1.08rem; }
.sub strong { color: var(--text); font-weight: 600; }

/* Workflow chips */
.flow {
  list-style: none; padding: 0; margin: 0 0 3.5rem;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.flow li {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem .5rem .5rem; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: .9rem; font-weight: 500;
}
.flow li span {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(124, 77, 255, .2); color: #b9a2ff; font-size: .8rem; font-weight: 600;
}
.flow li.done span { background: rgba(34, 197, 94, .2); color: var(--green); }
.flow li:not(:last-child)::after { content: "→"; margin-left: .45rem; color: var(--muted); }

/* Steps */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.step figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.step figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.step:hover figure img { transform: scale(1.04); }
.step > div:last-child { padding: 1.5rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.step h3 em { font-style: normal; color: var(--teal); margin-right: .35rem; }
.step p { color: var(--muted); font-size: .96rem; }

/* Stream key mock */
.keycard {
  aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.5rem; gap: .5rem;
  background: radial-gradient(120% 90% at 50% 0%, rgba(124,77,255,.45), transparent 60%), #0d0a1f;
  border-bottom: 1px solid var(--line);
}
.keycard-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.keycard-title { font: 700 1.05rem/1.3 var(--display); }
.key { display: flex; flex-wrap: nowrap; justify-content: center; gap: .25rem; margin: .6rem 0 .2rem; font: 600 clamp(.75rem, 1.1vw, .92rem)/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0; }
.key span { padding: .45rem .3rem; border-radius: 8px; background: rgba(247,248,250,.06); border: 1px solid var(--line); }
.key span.filled { border-color: rgba(25,198,200,.6); color: var(--teal); }
.keycard-status { font-size: .82rem; color: var(--muted); min-height: 1.3em; }
.keycard-status.ok { color: var(--green); }

/* Demo */
.demo { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.playlist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .5rem; }
.playlist li {
  display: flex; align-items: center; gap: .9rem; padding: .8rem 1rem; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); font-weight: 500; transition: border-color .3s, background .3s;
}
.playlist li b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--panel-2); font-size: .8rem; color: var(--muted); }
.playlist li i { margin-left: auto; font-style: normal; font-size: .85rem; color: var(--muted); }
.playlist li.active { border-color: rgba(25,198,200,.55); background: linear-gradient(90deg, rgba(25,198,200,.12), var(--panel) 70%); }
.playlist li.active b { background: var(--teal); color: #041416; }

.screen-wrap { perspective: 1400px; }
.screen {
  position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 10px solid #05070a; background: #000;
  box-shadow: 0 40px 90px -30px rgba(124,77,255,.55), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotateY(-6deg); transition: transform .6s ease;
}
.screen-wrap:hover .screen { transform: rotateY(0); }
.stand { width: 22%; height: 16px; margin: 0 auto; background: linear-gradient(#0a0d12, #151b23); border-radius: 0 0 10px 10px; }
.slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(135deg, var(--c1, var(--teal)), var(--c2, var(--violet)));
  transition: opacity .5s ease;
}
.slide.fade { opacity: 0; }
.slide.vid::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(40% 40% at 30% 40%, rgba(255,255,255,.28), transparent 70%),
              radial-gradient(35% 35% at 70% 60%, rgba(0,0,0,.25), transparent 70%);
  animation: pan 6s linear infinite;
}
@keyframes pan { from { transform: translateX(-8%) rotate(0); } to { transform: translateX(8%) rotate(8deg); } }
.slide-mark { width: 13%; position: relative; filter: drop-shadow(0 4px 18px rgba(0,0,0,.3)); }
.slide-title { position: relative; font: 800 clamp(1.3rem, 3.4vw, 2.6rem)/1.1 var(--display); text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.slide-kind { position: relative; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.screen-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.3); }
.screen-bar span { display: block; height: 100%; width: 0; background: rgba(255,255,255,.85); }
.live {
  position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: .4rem;
  padding: .3rem .6rem; border-radius: 999px; background: rgba(0,0,0,.45); font-size: .7rem; font-weight: 600; backdrop-filter: blur(6px);
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: ping 1.6s infinite; }
@keyframes ping { to { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(25,198,200,.35); transform: translateY(-3px); }
.card h3 { font-size: 1.1rem; margin: 1.1rem 0 .5rem; }
.card p { color: var(--muted); font-size: .96rem; }
.ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.teal { background: rgba(25,198,200,.14); color: var(--teal); }
.ico.violet { background: rgba(124,77,255,.18); color: #a98bff; }
.ico.magenta { background: rgba(229,71,183,.15); color: var(--magenta); }
.ico.green { background: rgba(34,197,94,.14); color: var(--green); }
.ico.amber { background: rgba(245,185,66,.14); color: var(--amber); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.pricing .section-head { margin: 0; }
.price-card {
  position: relative; background: var(--panel); border-radius: 22px; padding: 2.25rem;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--panel), var(--panel)), linear-gradient(135deg, var(--teal), var(--violet), var(--magenta));
  background-origin: border-box; background-clip: padding-box, border-box;
  box-shadow: 0 30px 80px -40px rgba(124,77,255,.6);
}
.price-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem; }
.plan { font-weight: 600; color: var(--muted); }
.price { font: 800 3.4rem/1 var(--display); }
.price span { font-size: 1.6rem; vertical-align: top; margin-right: 2px; }
.price small { font: 500 1rem/1 var(--body); color: var(--muted); margin-left: 4px; }
.ticks { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: rgba(25,198,200,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2319C6C8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.addons { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; font-size: .9rem; }
.addons p { display: flex; justify-content: space-between; gap: 1rem; }
.addons span { color: var(--muted); text-align: right; }

/* CTA band */
.cta-band {
  padding: clamp(4.5rem, 10vw, 7rem) 0; text-align: center;
  background: radial-gradient(60% 80% at 50% 100%, rgba(124,77,255,.35), transparent 70%),
              radial-gradient(40% 60% at 80% 0%, rgba(25,198,200,.12), transparent 70%);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner img { width: 150px; height: auto; margin-bottom: 2rem; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
.cta-inner p { margin-top: .9rem; color: var(--muted); max-width: 46ch; }
.cta-inner .hero-cta { justify-content: center; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 1.75rem 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a:hover { color: var(--text); }
.footer nav { flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer .credit { flex-basis: 100%; text-align: center; padding-top: 1.1rem; margin-top: .4rem; border-top: 1px solid var(--line); font-size: .82rem; }
.footer .credit a { color: var(--teal); font-weight: 600; }

/* Legal pages */
.legal { max-width: 760px; padding: calc(68px + 3rem) 0 4rem; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal-date { color: var(--muted); margin: .5rem 0 2rem; font-size: .92rem; }
.legal h2 { font-size: 1.2rem; margin: 2.2rem 0 .7rem; }
.legal h3 { font-size: 1rem; margin: 1.3rem 0 .4rem; font-family: var(--body); font-weight: 600; }
.legal p, .legal li { color: #c9d2de; }
.legal p + p { margin-top: .8rem; }
.legal ul { padding-left: 1.2rem; margin: .6rem 0; display: grid; gap: .45rem; }
.legal a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--text); }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1rem; padding: 16px; }
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.notfound p { color: var(--muted); margin-bottom: .5rem; }

/* Modal */
.modal {
  border: 1px solid var(--line); border-radius: 20px; padding: 2rem; width: min(420px, 100% - 32px);
  background: var(--panel); color: var(--text); text-align: center;
}
.modal::backdrop { background: rgba(5, 7, 10, .7); backdrop-filter: blur(4px); }
.modal img { margin: 0 auto 1rem; height: 38px; width: auto; }
.modal h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.modal p { color: var(--muted); margin-bottom: 1.5rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .demo, .pricing { grid-template-columns: 1fr; }
  .screen { transform: none; }
}
@media (max-width: 640px) {
  .steps, .grid { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  .brand span { display: none; }
  .nav { background: rgba(11, 15, 20, .9); }
  .hero { min-height: auto; justify-content: flex-start; }
  .hero-frame { width: calc(100% - 32px); border-radius: 12px; }
  .hero-actions { justify-items: stretch; width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .flow li:not(:last-child)::after { display: none; }
  .price-card { padding: 1.6rem; }
  .addons p { flex-direction: column; gap: .1rem; }
  .addons span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
