@font-face {
  font-family: Inter;
  src: url("./assets/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("./assets/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #142344;
  --muted: #4f5d75;
  --blue: #2449d8;
  --blue-deep: #193ab6;
  --pale: #f4f6fc;
  --line: #dbe2ef;
  --white: #ffffff;
  --night: #13213e;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: #2449d820; }
button:enabled { cursor: pointer; }
button:disabled { cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible + span, iframe:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
::selection { background: #dce5ff; color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; }
p { line-height: 1.65; }
section[id], figure[id] { scroll-margin-top: 1.5rem; }

.container { width: min(76rem, calc(100% - 5rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; inset: .75rem auto auto .75rem; z-index: 1; padding: .6rem; background: var(--white); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}
.brand img { display: block; }
.site-nav { display: flex; gap: clamp(1rem, 3vw, 2rem); margin-left: auto; }
.site-nav a, .footer-inner > a:not(.brand) { font-size: .875rem; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .footer-inner > a:not(.brand):hover { color: var(--blue); text-decoration: underline; }
.language {
  display: inline-flex;
  gap: .125rem;
  padding: .2rem;
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: .5rem;
}
.language button {
  min-width: 2.15rem;
  min-height: 2.05rem;
  border: 0;
  border-radius: .3rem;
  color: var(--muted);
  background: transparent;
  font-size: .8125rem;
  font-weight: 700;
}
.language button[aria-pressed="true"] { color: var(--blue-deep); background: var(--white); }
.language button:hover { color: var(--blue-deep); }

.hero { padding-block: clamp(3.5rem, 7vw, 6.75rem) clamp(3rem, 6vw, 5rem); background: var(--pale); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5.25vw, 5rem);
}
.intro { padding-bottom: 1.625rem; }
h1 { font-size: clamp(3.15rem, 4.75vw, 4.8rem); letter-spacing: -.04em; }
.accent { display: block; color: var(--blue); }
.lede { margin-top: 1.35rem; max-width: 34ch; color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.75rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.125rem;
  padding: .6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease;
}
.button.primary { color: var(--white); background: var(--blue); }
.button.primary:hover { background: var(--blue-deep); }
.button.secondary { border-color: var(--line); background: var(--white); }
.button.secondary:hover { border-color: #aebfe4; background: #fafdff; }
.platform { margin-top: 1rem; font-size: .875rem; color: var(--muted); }

.player {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 16px 42px #18233324, 0 2px 6px #18233314;
}
.player-head, .player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .45rem .85rem;
}
.player-file, .player-navigation { display: inline-flex; align-items: center; gap: .45rem; }
.player-file { font-weight: 700; font-size: .9375rem; }
.player-file svg { color: var(--blue); width: 1.25rem; height: 1.25rem; }
svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-button {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  flex-shrink: 0;
  border: 0;
  border-radius: .45rem;
  padding: 0;
  color: var(--ink);
  background: transparent;
}
.icon-button svg { width: 1.25rem; height: 1.25rem; }
.icon-button:disabled { color: #8995a9; }
.icon-button:not(:disabled):hover { color: var(--blue); background: var(--pale); }
.slide-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #112945;
}
.player-navigation output { min-width: 3rem; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.download { color: var(--blue-deep); font-size: .875rem; text-decoration: none; }
.download:hover { text-decoration: underline; }
figcaption { margin-top: .9rem; color: var(--muted); font-size: .875rem; text-align: center; }

.section { padding-block: clamp(3.75rem, 7vw, 6rem); }
.section-heading h2 { font-size: clamp(2.1rem, 4.1vw, 3.55rem); letter-spacing: -.04em; }
.section-heading > p { margin-top: .9rem; max-width: 57ch; color: var(--muted); font-size: 1.0625rem; }
.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.75rem;
  border-top: 1px solid var(--line);
}
.feature { padding: 1.65rem 1.5rem 0 0; }
.feature + .feature { border-inline-start: 1px solid var(--line); padding-inline-start: 1.5rem; }
.feature-icon { display: block; width: 2rem; height: 2rem; margin-bottom: .9rem; color: var(--blue); }
.feature h3 { font-size: 1.18rem; letter-spacing: -.015em; }
.feature p { margin-top: .55rem; color: var(--muted); }

.integration { padding-block: clamp(3.75rem, 7vw, 6rem); background: var(--pale); border-block: 1px solid var(--line); }
.integration-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.section-heading > .requirements { font-size: .9375rem; margin-top: 1.45rem; }
.terminal { min-width: 0; overflow: hidden; color: #eef3ff; background: var(--night); border-radius: .875rem; }
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid #41506e;
}
.examples { display: flex; gap: .3rem; border: 0; padding: 0; margin: 0; }
.examples label { position: relative; cursor: pointer; }
.examples input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.examples span, .copy-button {
  display: block;
  padding: .55rem .7rem;
  border-radius: .35rem;
  border: 0;
  background: transparent;
  color: #d4dff6;
  font-size: .875rem;
}
.examples input:checked + span, .examples label:hover span, .copy-button:hover { background: #273b61; color: var(--white); }
.terminal :focus-visible, .terminal input:focus-visible + span { outline-color: #a5b8ff; }
.copy-button { color: #eef3ff; }
.terminal pre {
  min-height: 9.75rem;
  overflow-x: auto;
  margin: 0;
  padding: 1.3rem .95rem;
  font: .875rem / 1.65 "Cascadia Code", Consolas, monospace;
}
.terminal code { font: inherit; }
.footer-inner { flex-wrap: wrap; padding-block: .85rem; }
.footer-inner .brand { margin-right: auto; }

@media (max-width: 900px) {
  .container { width: min(52rem, calc(100% - 3rem)); }
  .hero-grid, .integration-grid { grid-template-columns: 1fr; }
  .intro { padding-bottom: 0; }
  h1 { max-width: 13ch; font-size: clamp(3.2rem, 7.8vw, 5.35rem); }
  .lede { max-width: 46ch; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 2rem); }
  .header-inner, .footer-inner { gap: .85rem; }
  .header-inner { flex-wrap: wrap; justify-content: space-between; padding-block: .7rem; }
  .site-nav { order: 1; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .65rem; }
  .hero { padding-top: 2.9rem; }
  .hero-grid { gap: 1.9rem; }
  h1 { font-size: clamp(2.65rem, 10.5vw, 3.5rem); }
  .hero-actions { margin-top: 1.4rem; }
  .player { border-radius: .75rem; }
  .player-head, .player-controls { padding-inline: .45rem; }
  .icon-button { width: 2.5rem; height: 2.5rem; }
  .feature-list { grid-template-columns: 1fr; margin-top: 1.75rem; border: 0; }
  .feature, .feature + .feature { border: 0; border-top: 1px solid var(--line); padding: 1.25rem 0; }
  .feature:last-child { padding-bottom: 0; }
  .footer-inner .brand { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
