:root {
  --bg: #F5F4F0; --surface: #FFFFFF; --band: #EAE7DF; --ink: #14233A; --muted: #45505E; --line: #DAD5CA; --field: #8A8F99;
  --hero: #16304F; --hero-ink: #FFFFFF; --hero-muted: #C9D3E0; --hero-label: #F4C7A8; --mark: #FF9B85;
  --accent: #C0392B; --accent-ink: #FFFFFF; --label: #A8322A; --radius: 8px;
  --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--sans); }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 16px; }
.section > h2, .section h2 { font-size: 44px; line-height: 1.1; }
.narrow { max-width: 760px; }
.label { font: 500 14px/1.4 var(--mono); letter-spacing: 2px; text-transform: uppercase; color: var(--label); }
.muted { color: var(--muted); }
.big { font-size: 20px; }

/* hero */
.hero { background: var(--hero); color: var(--hero-ink); }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--hero); color: var(--hero-ink); transition: box-shadow .2s ease; }
.topbar.scrolled { box-shadow: 0 2px 14px rgba(8, 20, 36, .35); }
.topbar .bar { padding-top: 16px; padding-bottom: 16px; }
nav a { position: relative; padding: 4px 0; opacity: .85; }
nav a:hover { opacity: 1; }
nav a.current { opacity: 1; text-decoration: underline; text-decoration-color: var(--mark); text-decoration-thickness: 3px; text-underline-offset: 9px; }
section[id] { scroll-margin-top: 80px; }
.bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.logo { font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--mark); }
nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 16px; }
nav a { text-decoration: none; }
nav a.signin { padding: 4px 12px; border: 1px solid var(--hero-muted); border-radius: var(--radius); }
nav a.signin:hover { border-color: var(--hero-ink); }
.logo:hover { opacity: .8; }
.intro { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.intro .label { color: var(--hero-label); }
h1 { font-size: 64px; line-height: 1.05; max-width: 900px; letter-spacing: -1px; }
.lead { font-size: 21px; max-width: 720px; color: var(--hero-muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }

.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 12px 28px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font: 600 18px/1.2 var(--sans); text-decoration: none; border: 2px solid var(--accent); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn[disabled] { opacity: .6; cursor: default; }

/* cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 24px; }
.card { flex: 1 1 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card p { color: var(--muted); }
.card h3 { font-size: 24px; }
.card .num { font-size: 40px; font-weight: 700; color: var(--label); line-height: 1; }
.cards.two .card { flex-basis: 360px; }
.aside { margin-top: 8px; font-weight: 600; }

.band { background: var(--band); }
.split { flex-direction: row; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.ticks { margin: 0; padding: 0; list-style: none; gap: 24px; }
.ticks li { border-top: 2px solid var(--ink); padding-top: 16px; }

/* apps */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 24px; margin-top: 24px; }
.app { flex: 1 1 420px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.app.on { border-color: var(--accent); }
.thumb { all: unset; box-sizing: border-box; cursor: pointer; height: 220px; background: var(--hero); color: var(--hero-muted);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; background-size: cover; background-position: center; }
.thumb:focus-visible { outline: 3px solid var(--mark); outline-offset: -3px; }
.thumb svg, .screen svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.thumb:hover svg { transform: scale(1.08); }
.thumb.poster { align-items: flex-end; justify-content: flex-start; padding: 14px 18px; color: #fff; }
.thumb.poster span { background: rgba(11,26,44,.75); padding: 4px 10px; border-radius: 6px; }
.thumb.poster svg { width: 36px; height: 36px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.app-text { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.app-text h3 { font-size: 22px; }
.app-text p { color: var(--muted); }

.player { width: min(1000px, 94vw); max-height: 94vh; padding: 0; border: none; border-radius: var(--radius); overflow: hidden;
  background: var(--hero); color: var(--hero-ink); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.player::backdrop { background: rgba(8, 20, 36, .78); }
.player.opening { animation: pop-out .32s cubic-bezier(.2,.8,.2,1); }
.player.closing { animation: pop-in .24s ease-in forwards; }
.player.opening::backdrop { animation: fade-in .32s ease; }
.player.closing::backdrop { animation: fade-in .24s ease reverse forwards; }
@keyframes pop-out { from { transform: translate(var(--dx), var(--dy)) scale(var(--s)); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes pop-in { to { transform: translate(var(--dx), var(--dy)) scale(var(--s)); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.screen { aspect-ratio: 16 / 9; width: 100%; background: #0B1A2C; color: var(--hero-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen svg { width: 64px; height: 64px; }
.player-info { padding: 20px 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.player-info h3 { font-size: 24px; }
.player-info p { color: var(--hero-muted); max-width: 760px; }

/* form */
form { gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
input, textarea { font: inherit; font-size: 18px; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--radius); background: var(--surface); color: var(--ink); min-height: 44px; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--hero-label); outline-offset: 1px; }
form .btn { align-self: flex-start; }
.status { min-height: 1.6em; font-weight: 600; }
.status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { background: var(--hero); color: var(--hero-muted); }
.small { font-size: 15px; padding-top: 32px; padding-bottom: 32px; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 40px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section > h2, .section h2 { font-size: 32px; }
  .intro { padding-top: 32px; padding-bottom: 64px; }
  .topbar .bar { padding-top: 10px; padding-bottom: 10px; gap: 6px 16px; }
  .logo { font-size: 22px; }
  nav { gap: 16px; font-size: 15px; }
  .topbar .bar { position: relative; }
  nav a.signin { position: absolute; top: 10px; right: 20px; padding: 3px 10px; }
  section[id] { scroll-margin-top: 100px; }
  .app, .split > * { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .player.opening, .player.closing, .player.opening::backdrop, .player.closing::backdrop { animation: none; } }
