/* VyseTV's site. The app's own palette (near-black blue, white pill buttons, a thin amber accent),
   the trailer leaning back at the top of the page, and screenshots that travel as you scroll. */
:root {
  --bg: #07080f;
  --card: #0c0e17;
  --card-hi: #131623;
  --line: rgba(255, 255, 255, .08);
  --line-hi: rgba(255, 255, 255, .16);
  --text: #f4f5fb;
  --dim: #a3a8c3;
  --faint: #6b7092;
  --accent: #ffa53a;
  --pad: clamp(18px, 4.4vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg .solid { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(255, 165, 58, .35); }

/* the room everything sits in: dark, with a little warm light from the screen up top */
.room { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% -6%, rgba(255, 132, 32, .2), transparent 72%),
    radial-gradient(42% 34% at 4% 46%, rgba(44, 76, 150, .2), transparent 72%),
    radial-gradient(40% 32% at 98% 78%, rgba(122, 92, 255, .12), transparent 72%); }

/* ───────── top bar ───────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 30px; padding: 0 var(--pad); padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.solid { background: rgba(7, 8, 15, .76); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand svg { width: 28px; height: 28px; }
.brand b { color: var(--accent); font-weight: 700; }
.nav nav { display: flex; gap: 2px; }
.nav nav a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--dim); transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--dim); transition: color .2s, background .2s; }
/* Discord's own mark; it takes Discord's colour when you point at it */
.icon:hover { color: #7289ff; background: rgba(88, 101, 242, .16); }
.icon svg { width: 23px; height: 23px; }

/* ───────── buttons, the app's way ───────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition: background .2s, transform .25s var(--ease), box-shadow .25s;
}
.pill svg { width: 18px; height: 18px; flex: none; stroke-width: 2.1; }
.pill.light { background: #fff; color: #07080f; }
.pill.light:hover { background: #e6e8f2; transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(255, 255, 255, .55); }
.pill.dark { background: rgba(255, 255, 255, .09); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.pill.dark:hover { background: rgba(255, 255, 255, .15); transform: translateY(-2px); }
.pill.small { padding: 9px 16px; font-size: 14px; }
.pill.big { padding: 16px 30px; font-size: 16.5px; }
.pill.big svg { width: 20px; height: 20px; }
.pill[aria-disabled="true"] { opacity: .5; cursor: default; transform: none !important; box-shadow: none !important; }

/* ───────── the trailer, first thing on the page ───────── */
.hero { padding-top: calc(78px + env(safe-area-inset-top)); text-align: center; }
/* as wide as the page allows, but never so tall that the headline under it is pushed off the first screen */
.stage { position: relative; width: min(1180px, 100% - 2 * var(--pad), max(560px, (100vh - 310px) * 1.7778)); margin: 0 auto; perspective: 1500px; perspective-origin: 50% 20%; }
/* the screen's own light, spilling onto the room (the picture, tiny and blurred) */
.ambient { position: absolute; inset: -7% -5% -12%; width: 110%; height: 119%; filter: blur(72px) saturate(1.6); opacity: 0; transition: opacity 1.4s; pointer-events: none; }
.stage.lit .ambient { opacity: .72; }
/* it leans back a little; the script eases the lean and the size as you scroll */
.frame {
  position: relative; border-radius: clamp(12px, 1.6vw, 20px); overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-hi), 0 70px 150px -50px #000, 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform: rotateX(var(--tilt, 9deg)) scale(var(--zoom, .97)); transform-origin: 50% 100%; will-change: transform;
}
.frame video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; cursor: pointer; }
/* top left: the video writes its own section names bottom left and its logo top right */
.sound {
  position: absolute; left: clamp(10px, 1.6vw, 18px); top: clamp(10px, 1.6vw, 18px);
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; background: rgba(8, 9, 16, .7); box-shadow: inset 0 0 0 1px var(--line-hi);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .2s, transform .25s var(--ease);
}
.sound:hover { background: rgba(8, 9, 16, .9); transform: scale(1.04); }
.sound svg { width: 20px; height: 20px; }
.sound .on { display: none; }
.sound[aria-pressed="true"] { color: var(--accent); }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }
.sound[aria-pressed="false"] { animation: nudge 2.6s ease-in-out 1.6s 4; }
@keyframes nudge { 50% { box-shadow: inset 0 0 0 1px rgba(255, 165, 58, .8), 0 0 0 8px rgba(255, 165, 58, .14); } }
.bar { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; gap: 10px; padding: 40px clamp(10px, 1.6vw, 18px) 10px; background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent); opacity: 0; transition: opacity .3s; }
.frame:hover .bar, .frame:focus-within .bar, .frame.paused .bar { opacity: 1; }
.bar button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; transition: background .2s; }
.bar button:hover { background: rgba(255, 255, 255, .14); }
.bar svg { width: 20px; height: 20px; }
.bar #toggle svg { stroke-width: 2.6; }
.i-play { display: none; }
.frame.paused .i-play { display: block; }
.frame.paused .i-pause { display: none; }
.seek { flex: 1; height: 18px; display: flex; align-items: center; cursor: pointer; }
.seek i { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .24); overflow: hidden; transition: height .15s; }
.seek:hover i { height: 5px; }
.seek i::after { content: ""; position: absolute; inset: 0; width: var(--at, 0%); background: var(--accent); }
.center { position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; display: grid; place-items: center; border-radius: 24px; background: #fff; color: #07080f; transition: transform .2s var(--ease); }
.center:hover { transform: scale(1.06); }
.center svg { width: 30px; height: 30px; margin-left: 3px; fill: currentColor; stroke: none; }
.center[hidden] { display: none; }

.hero-copy { max-width: 1160px; margin: clamp(34px, 4.6vw, 64px) auto 0; padding: 0 var(--pad); }
.tagline { font-size: 12.5px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--dim); }
.tagline b { color: var(--accent); font-weight: 600; }
h1 { margin-top: 18px; font-size: clamp(36px, 6vw, 86px); font-weight: 600; line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
.lede { margin: 22px auto 0; max-width: 640px; font-size: clamp(16px, 1.35vw, 18.5px); color: var(--dim); text-wrap: pretty; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.meta { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; font-size: 13px; color: var(--faint); }
.meta span + span::before { content: "·"; margin: 0 10px; }
.meta b { color: var(--dim); font-weight: 600; }

/* ───────── sections ───────── */
.block, .feature, .showcase { padding: 0 var(--pad); margin-top: clamp(96px, 13vw, 190px); }
/* the app's section heading: a thin amber bar, then the name */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; }
.label::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: var(--accent); }
h3 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 50px); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.copy > p, .sub { margin-top: 16px; max-width: 54ch; color: var(--dim); font-size: 16.5px; text-wrap: pretty; }
.sub b, .copy > p b { color: var(--text); font-weight: 600; }

/* a window onto the app */
.window { position: relative; border-radius: 14px; overflow: hidden; background: #05060b; box-shadow: 0 0 0 1px var(--line-hi), 0 60px 140px -60px #000, 0 24px 50px -30px rgba(0, 0, 0, .9); }
.window img { width: 100%; }
.window[data-zoom] { cursor: zoom-in; }
/* pictures travel as you scroll: pulled up into place, a touch smaller as they go (the script sets these) */
.float { transform: translate3d(0, var(--y, 0px), 0) scale(var(--s, 1)); opacity: var(--o, 1); will-change: transform, opacity; }

.showcase { text-align: center; }
.showcase .sub { margin-inline: auto; }
.window.wide { max-width: 1240px; margin: clamp(34px, 4vw, 56px) auto 0; aspect-ratio: 1920 / 1056; }
.window.wide .shot { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.window.wide .shot.on { opacity: 1; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.4vw, 80px); align-items: center; max-width: 1500px; margin-inline: auto; }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .copy { order: 2; }
.specs { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.specs li { padding-top: 14px; border-top: 1px solid var(--line); }
.specs b { display: block; font-size: 14.5px; font-weight: 600; }
.specs span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
/* the format badges that sit above the player's seek bar */
.badges { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 7px; }
.badges i { padding: 3px 8px; border-radius: 5px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .07em; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(255, 165, 58, .5); }
/* the app's tab pills */
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips i { padding: 7px 14px; border-radius: 999px; font-style: normal; font-size: 13px; font-weight: 600; color: var(--dim); background: rgba(255, 255, 255, .06); }
.chips i.on { background: #fff; color: #07080f; }

/* ───────── also inside ───────── */
.block { max-width: 1500px; margin-inline: auto; }
.tiles { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tiles article, .platform { padding: 20px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s, transform .3s var(--ease); }
.tiles article:hover { background: var(--card-hi); box-shadow: inset 0 0 0 1px var(--line-hi); transform: translateY(-3px); }
.tiles svg { width: 22px; height: 22px; color: var(--accent); }
.tiles b { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; }
.tiles span { display: block; margin-top: 3px; font-size: 13px; color: var(--dim); line-height: 1.45; }

/* ───────── download ───────── */
h3.big { font-size: clamp(32px, 4.8vw, 66px); }
.platforms { margin-top: 34px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.platform { position: relative; display: flex; flex-direction: column; gap: 8px; }
.platform:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-hi); }
.platform header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.platform header svg { width: 26px; height: 26px; color: var(--dim); flex: none; }
.platform header b { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.platform header span { display: block; font-size: 12.5px; color: var(--faint); }
.platform .pill { width: 100%; padding: 11px 16px; font-size: 14px; }
/* the visitor's own platform, first and marked */
.platform.yours { order: -1; background: var(--card-hi); box-shadow: inset 0 0 0 1px rgba(255, 165, 58, .55); }
.platform.yours header svg { color: var(--accent); }
.platform.yours::after { content: "Your device"; position: absolute; top: 14px; right: 14px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--accent); background: rgba(255, 165, 58, .14); }
/* arriving from a Download button: the section says hello */
#download.arrived .platform { animation: hello .9s var(--ease) both; }
#download.arrived .platform:nth-child(2) { animation-delay: .06s; } #download.arrived .platform:nth-child(3) { animation-delay: .12s; }
#download.arrived .platform:nth-child(4) { animation-delay: .18s; } #download.arrived .platform:nth-child(5) { animation-delay: .24s; }
@keyframes hello { 0% { transform: translateY(16px); } 55% { box-shadow: inset 0 0 0 1px rgba(255, 165, 58, .7); } 100% { transform: none; } }
.fine { margin-top: 20px; max-width: 760px; font-size: 13px; color: var(--faint); }

.foot { margin-top: clamp(80px, 10vw, 140px); padding: 26px var(--pad) max(30px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--faint); }
.foot .brand { margin-right: auto; color: var(--text); }
.foot a:not(.brand):hover { color: var(--text); }

/* ───────── a screenshot, opened large ───────── */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 3vmin; background: rgba(4, 5, 10, .93); cursor: zoom-out; animation: fade .2s ease; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 94vh; width: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-hi); }
.lightbox button { position: absolute; top: 18px; right: 18px; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .12); }
@keyframes fade { from { opacity: 0; } }

/* ───────── words arriving ───────── */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }
.tiles article.rise.in:hover, .platform.rise.in:hover { transform: translateY(-3px); }

/* ───────── narrower windows and phones ───────── */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .copy { order: 0; }
}
@media (max-width: 640px) {
  .nav { height: 56px; }
  .hero { padding-top: calc(66px + env(safe-area-inset-top)); }
  .stage { width: calc(100% - 20px); }
  .actions .pill { flex: 1 1 100%; }
  .specs { grid-template-columns: 1fr; gap: 14px; }
  .sound { font-size: 13px; padding: 8px 13px 8px 10px; }
  .sound svg { width: 18px; height: 18px; }
  .bar { padding-top: 26px; }
  .meta span + span::before { margin: 0 7px; }
  .meta span:last-child { flex-basis: 100%; }
  .meta span:last-child::before { display: none; }
  /* show the lively part of a wide screenshot rather than a tiny whole one */
  .feature .window img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 12% 40%; }
  .window.wide { aspect-ratio: 4 / 3; }
  .window.wide .shot { object-position: 24% 50%; }
}
@media (hover: none) { .bar { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .frame { transform: none; }
  .float { transform: none; opacity: 1; }
}
