/* FreezeFrame Animator — landing page
   Palette and type follow the app's own theme (charcoal surfaces, amber accent). */

:root {
  --bg: #0b0b0c;
  --surface-0: #141414;
  --surface-1: #1b1b1c;
  --surface-2: #232324;
  --surface-3: #2b2b2d;
  --stage: #0e0e0f;
  --border: #2a2a2c;
  --border-strong: #3d3d40;

  --text: #ededed;
  --muted: #a0a0a4;
  --faint: #6c6c70;

  --accent: #e0a030;
  --accent-hi: #f2c35c;
  --accent-lo: #dc9c2c;
  --accent-text: #1a1206;
  --accent-soft: rgba(224, 160, 48, 0.14);

  --font-ui: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1120px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, select, input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.15s;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.45em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  color: var(--accent-text);
  box-shadow: 0 6px 24px -6px rgba(224, 160, 48, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -6px rgba(224, 160, 48, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 15px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 17px;
}

.btn small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.75;
}

.btn[aria-disabled='true'] {
  cursor: default;
}

.btn[aria-disabled='true']:hover {
  transform: none;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand b {
  color: var(--accent);
  font-weight: 600;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bars {
  position: relative;
  margin: auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}

.hero-glow {
  position: absolute;
  inset: -20% 0 auto;
  height: 720px;
  background:
    radial-gradient(600px 320px at 50% 28%, rgba(224, 160, 48, 0.22), transparent 70%),
    radial-gradient(900px 500px at 15% 10%, rgba(224, 160, 48, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 820px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7.4vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 28px;
}

.chips li {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
  text-align: center;
}

/* App window mock-up */

.app {
  position: relative;
  max-width: 1040px;
  margin: 64px auto 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 50px 120px -30px rgba(0, 0, 0, 0.9),
    0 30px 100px -40px rgba(224, 160, 48, 0.35);
  font-size: 12px;
  line-height: 1.35;
  user-select: none;
  -webkit-user-select: none;
}

.app-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}

.lights {
  display: flex;
  gap: 7px;
}

.lights i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a3c;
}

.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

.app-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  white-space: nowrap;
}

.app-title b {
  color: var(--text);
  font-weight: 600;
}

.app-title .sep {
  color: var(--faint);
}

.app-saved {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.app-saved .ico {
  width: 13px;
  height: 13px;
  color: #6bc46d;
}

.app-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 210px;
}

.app-tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-right: 1px solid var(--border);
  background: var(--surface-1);
}

.tool {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--muted);
}

.tool .ico {
  width: 16px;
  height: 16px;
}

.tool.on {
  background: var(--accent-soft);
  color: var(--accent);
}

.app-stage {
  position: relative;
  background: var(--stage);
  aspect-ratio: 16 / 9;
}

.scene {
  display: block;
  width: 100%;
  height: 100%;
}

.thirds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.1) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.1) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to right, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.1) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.1) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.1) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.1) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.1) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.1) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}

.stage-badge,
.stage-frame {
  position: absolute;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  pointer-events: none;
}

.stage-badge {
  top: 10px;
  left: 10px;
  color: var(--accent);
}

.stage-frame {
  bottom: 10px;
  left: 10px;
}

.app-props {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px;
  border-left: 1px solid var(--border);
  background: var(--surface-1);
}

.prop-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prop-label {
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.seg {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
}

.seg i {
  flex: 1;
  padding: 3px 0;
  border-right: 1px solid var(--border-strong);
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  text-align: center;
}

.seg i:last-child {
  border-right: 0;
}

.seg i.on {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.slider {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
}

.slider b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--accent);
}

.prop-hint {
  color: var(--muted);
  font-size: 11px;
}

.prop-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.lock {
  color: var(--accent);
}

.app-transport {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}

.tbtn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.tbtn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.tbtn .ico {
  width: 16px;
  height: 16px;
}

.tbtn-play {
  width: 36px;
  background: var(--accent);
  color: var(--accent-text);
}

.tbtn-play:hover {
  background: var(--accent-hi);
  color: var(--accent-text);
}

.tbtn.on {
  color: var(--accent);
}

.tc {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.app-timeline {
  background: var(--surface-0);
}

.tl-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.tl-track {
  position: relative;
  min-width: 100%;
  width: max-content;
}

.tl-frames {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(48px, 1fr);
  gap: 3px;
}

.tl-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--stage);
  cursor: pointer;
}

.tl-frame:hover {
  border-color: var(--border-strong);
}

.tl-frame.current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Absolutely positioned so the SVG's intrinsic size can't stretch the grid track. */
.tl-frame svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tl-audio {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--surface-1);
}

.tl-playhead {
  position: absolute;
  top: -4px;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--accent-hi);
  pointer-events: none;
}

.app-status {
  display: flex;
  gap: 18px;
  height: 24px;
  padding: 0 12px;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--faint);
  font-size: 11px;
}

.app-status .grow {
  flex: 1;
}

/* Sections */

.section {
  padding: 104px 0;
}

.section-alt {
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-0), #101011);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
}

h1,
h2 {
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sub {
  text-wrap: pretty;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

/* Capture loop */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-0);
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  color: var(--accent-text);
  font-weight: 700;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

/* Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.card:hover {
  border-color: rgba(224, 160, 48, 0.5);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card-ico {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Split layout */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 64px;
}

.split-flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
  font-size: 16px;
}

.ticks .ico {
  margin-top: 3px;
  color: var(--accent);
}

/* Demos */

.demo {
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-1);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.demo-stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--stage);
  aspect-ratio: 16 / 9;
}

.demo-play {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
}

.demo-play:hover {
  background: var(--accent-hi);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  margin-top: 16px;
  padding: 0 4px;
}

.ctl {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted);
  font-size: 14px;
}

.ctl-wide {
  grid-column: 1 / -1;
}

.ctl > span:first-child {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.ctl input[type='range'] {
  grid-column: 1 / -1;
  grid-row: 2;
}

.ctl output {
  grid-column: 2;
  grid-row: 1;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.ctl select {
  grid-column: 1 / -1;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-2);
}

.ctl-wide {
  grid-template-columns: auto 1fr;
}

.ctl-wide input[type='range'] {
  grid-column: 1 / -1;
}

input[type='range'] {
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  accent-color: var(--accent);
  cursor: pointer;
}

.demo-note {
  margin-top: 14px;
  padding: 0 4px;
  color: var(--faint);
  font-size: 13px;
}

.hold-strip {
  display: flex;
  margin-top: 12px;
  padding: 8px;
  border-radius: 8px;
  background: var(--surface-0);
}

/* Each block is one drawing; its width is how long it is held, scaled against the longest possible hold. */
.hold-block {
  flex: none;
  padding: 0 1px;
}

.hold-block span {
  display: block;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface-3);
  transition: background 0.1s, border-color 0.1s;
}

.hold-block.current span {
  border-color: var(--accent);
  background: var(--accent);
}

.seg-btns {
  display: inline-flex;
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.seg-btns button {
  min-width: 52px;
  padding: 7px 14px;
  border: 0;
  border-right: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.seg-btns button:last-child {
  border-right: 0;
}

.seg-btns button:hover {
  color: var(--text);
}

.seg-btns button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}

.readout {
  margin-top: 14px;
  padding: 0 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.readout b {
  color: var(--accent);
  font-weight: 600;
}

/* LensLink */

.pair-steps {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pair-steps li {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 16px;
}

.pair-steps li > span {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.pair-steps b {
  color: var(--text);
  font-weight: 600;
}

.lens {
  padding: 28px 24px 22px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(224, 160, 48, 0.12), transparent 70%),
    var(--surface-1);
}

.lens-svg {
  display: block;
  width: 100%;
  height: auto;
}

.lens-caption {
  margin-top: 14px;
  color: var(--faint);
  font-size: 14px;
  text-align: center;
}

.lens-link {
  animation: dash 1.2s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -22; }
}

/* Keyboard */

.keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.key-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
}

.key-card h3 {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.key-card dl {
  display: grid;
  gap: 14px;
}

.key-card dl > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.key-card dt {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.key-card dd {
  color: var(--muted);
  font-size: 14.5px;
}

/* Export */

.formats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.format {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 28px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.format:hover {
  border-color: rgba(224, 160, 48, 0.5);
  transform: translateY(-2px);
}

.format b {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--accent-hi), var(--accent-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.format span {
  color: var(--muted);
  font-size: 14px;
}

/* Roadmap */

.road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.road-col {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
}

.road-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.dot-pro {
  background: #6aa7e8;
}

.dot-adv {
  background: #b58cf0;
}

.road-col ul {
  display: grid;
  gap: 16px;
}

.road-col li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.road-col li b {
  display: block;
  color: var(--text);
  font-weight: 600;
}

/* Download */

.download {
  padding-bottom: 120px;
}

.download-box {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(224, 160, 48, 0.2), transparent 70%),
    var(--surface-1);
  text-align: center;
}

.download-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--accent);
}

.download-box .sub {
  max-width: 560px;
  margin-inline: auto;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.fine {
  max-width: 560px;
  margin: 26px auto 0;
  color: var(--faint);
  font-size: 14px;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer nav {
  display: flex;
  gap: 22px;
}

.footer nav a:hover {
  color: var(--text);
}

/* Reveal on scroll */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.2s, background 0.2s;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .card.reveal.in:hover {
  transform: translateY(-2px);
}

/* Responsive */

@media (max-width: 980px) {
  .grid,
  .road {
    grid-template-columns: repeat(2, 1fr);
  }

  .road-col:last-child {
    grid-column: 1 / -1;
  }

  .keys {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .split-flip {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-main {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .app-props {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 64px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 11, 12, 0.96);
    font-size: 17px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn) {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .formats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 48px;
  }

  .grid,
  .road,
  .keys {
    grid-template-columns: 1fr;
  }

  .app-title {
    display: none;
  }

  .app-tools,
  .tc {
    display: none;
  }

  .app-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-status span:nth-child(3) {
    display: none;
  }

  .formats {
    grid-template-columns: repeat(2, 1fr);
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .download-box {
    padding: 48px 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
