@font-face {
  font-family: Sora;
  src: url("assets/sora.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #111;
  --surface: #191919;
  --line: #2c2c2c;
  --text: #f3f3f3;
  --secondary: #b3b3b3;
  --focus: #ccc;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.22, .75, .25, 1);
  font: 400 100%/1.55 Sora, sans-serif;
  background: var(--page);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
svg {
  display: block;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.shell { width: min(76rem, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: .5rem;
  left: var(--gutter);
  transform: translateY(-150%);
  color: var(--page);
  background: var(--text);
  padding: .5rem .75rem;
}
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer { display: flex; align-items: center; }
.masthead-inner { min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.125rem; font-weight: 550; letter-spacing: -.045em; text-decoration: none; }
.brand img { flex: none; }
.footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.875rem, 3vw, 2.5rem); }
.footer a:not(.brand) { color: var(--secondary); font-size: .875rem; text-decoration: none; transition: color 140ms; }
.footer a:not(.brand):hover { color: var(--text); }

.hero { padding-block: clamp(2.25rem, 4.6vw, 4.25rem) clamp(3rem, 6vw, 5.5rem); }
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: end;
  gap: 1.5rem clamp(1.75rem, 5vw, 4.75rem);
  margin-bottom: clamp(1.5rem, 3.1vw, 2.5rem);
}
h1, h2 { font-weight: 500; letter-spacing: -.05em; line-height: 1.02; }
.hero-title {
  display: grid;
  font-size: clamp(3rem, 5.6vw, 5.5rem);
  text-wrap: balance;
}
.hero-title > span { grid-area: 1 / 1; }
.hero-title > span:not(:first-child) { display: none; }
.headline-word { white-space: nowrap; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.hero-copy { padding-bottom: .125rem; }
.hero-copy > p:first-child { max-width: 29rem; font-size: clamp(1rem, 1.35vw, 1.125rem); color: var(--secondary); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .625rem .8125rem; margin-top: 1.25rem; }
.download, .github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 3.25rem;
  border-radius: .5rem;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 550;
  transition: background 140ms, border-color 140ms, transform 140ms;
}
.download { padding: .75rem 1.4rem; background: var(--text); color: var(--page); }
.download:hover { background: #fff; }
.download:active, .github-link:active { transform: translateY(1px); }
.github-link { padding: .75rem 1.4rem; border: 1px solid #3b3b3b; }
.github-link:hover { background: #202020; border-color: #595959; }
.download-note { display: flex; align-items: center; flex-wrap: wrap; gap: .4375rem; margin-top: .875rem; color: var(--secondary); font-size: .8125rem; }
.download-note svg { width: .875rem; height: .875rem; }
.download-note span { width: .1875rem; height: .1875rem; margin-inline: .125rem; background: #777; border-radius: 50%; }

.showcase {
  display: grid;
  grid-template-columns: minmax(11.5rem, .48fr) minmax(0, 1.52fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  min-width: 0;
  padding: clamp(1rem, 2.7vw, 2.25rem);
  border: 1px solid #363636;
  border-radius: 1.125rem;
  background:
    radial-gradient(circle, #ffffff15 .75px, transparent .85px) 0 0 / 16px 16px,
    linear-gradient(128deg, #202020, #1b1b1b 64%, #181818);
  --app-height: 526px;
}
.showcase-rail {
  min-width: 0;
  padding: 1.1875rem;
  border: 1px solid #363636;
  border-radius: .875rem;
  background: var(--surface);
}
.showcase-rail h2 { font-size: 1.125rem; line-height: 1.25; font-weight: 550; letter-spacing: -.025em; }
.demo-steps { display: flex; flex-direction: column; padding: 0; margin-top: .875rem; list-style: none; gap: .5rem; }
.demo-steps li,
.playback-control {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.5625rem;
  padding: .4375rem .625rem;
  border-radius: .4375rem;
  color: var(--secondary);
  font-size: .875rem;
  line-height: 1.25;
  transition: color 240ms, background 240ms;
}
.demo-steps svg, .playback-control svg { width: 1rem; height: 1rem; }
.demo-steps li[aria-current="step"],
.playback-control {
  background: #2e2e2e;
  color: var(--text);
  box-shadow: inset 0 0 0 1px #3d3d3d;
}
.playback-control {
  margin-top: .8125rem;
  border: 0;
  cursor: pointer;
}
.playback-control:hover { background: #383838; }
.playback-control .lucide-play, .playback-control[data-paused="true"] .lucide-pause { display: none; }
.playback-control[data-paused="true"] .lucide-play { display: block; }

.app-space { min-width: 0; }
.app-frame {
  position: relative;
  width: min(100%, 700px);
  height: var(--app-height);
  margin-inline: auto;
  border-radius: .6875rem;
  outline: 1px solid #424242;
  background: #111;
  box-shadow: 0 16px 48px #0007;
  overflow: hidden;
}
.app-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.workflow { border-top: 1px solid var(--line); padding-block: clamp(2.75rem, 5.4vw, 5rem); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2rem; }
.steps li { border-top: 1px solid var(--line); padding-block: 1.125rem 0; }
.steps h3 { font-size: 1rem; font-weight: 550; margin-top: .75rem; }
.steps p { font-size: 1rem; color: var(--secondary); margin-top: .35rem; max-width: 21rem; }
.step-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: #232323; color: #d7d7d7; }

.method { --focus: #555; color-scheme: light; background: #eee; color: #191919; }
.method-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 5vw, 4.75rem); align-items: start; padding-block: clamp(2.75rem, 5.4vw, 5rem); }
.method p { max-width: 38rem; color: #474747; }
.method a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin-top: .5rem; font-size: .875rem; font-weight: 550; text-underline-offset: .25em; }

.footer { min-height: 6rem; justify-content: space-between; gap: 1rem; }
.footer p { color: var(--secondary); font-size: .875rem; }
.footer p a { text-decoration: underline !important; text-underline-offset: .2em; }

.showcase { animation: enter 520ms var(--ease) 85ms both; }
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-intro { animation: enter 520ms var(--ease) both; }
  .hero-title > span {
    align-self: start;
    animation: hero-headline 14s var(--ease) infinite both;
  }
  .hero-title > span:not(:first-child) { display: block; }
  .hero-title > span:nth-child(2) { animation-delay: 3.5s; }
  .hero-title > span:nth-child(3) { animation-delay: 7s; }
  .hero-title > span:nth-child(4) { animation-delay: 10.5s; }
  .hero:has(.playback-control[data-paused="true"]) .hero-title > span { animation-play-state: paused; }
  @keyframes hero-headline {
    0% { opacity: 0; transform: translateY(.22em); }
    3%, 23% { opacity: 1; transform: translateY(0); }
    26%, 100% { opacity: 0; transform: translateY(-.22em); }
  }
}
.motion-ready [data-reveal]:not(.is-visible):not(:focus-within) { opacity: 0; transform: translateY(10px); }
.motion-ready [data-reveal] { transition: opacity 440ms var(--ease), transform 440ms var(--ease); }
.steps li:nth-child(2) { transition-delay: 65ms; }
.steps li:nth-child(3) { transition-delay: 130ms; }

@media (max-width: 65rem) {
  .hero-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions { gap: .5rem; }
  .hero-actions a { gap: .4375rem; padding-inline: .625rem; font-size: .8125rem; }
  .showcase { grid-template-columns: minmax(0, 1fr); gap: .875rem; }
  .app-space { grid-row: 1; }
  .showcase-rail { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; align-items: center; width: min(100%, 700px); margin-inline: auto; padding: .75rem .875rem; }
  .showcase-rail h2 { font-size: 1rem; }
  .demo-steps { order: 2; flex-basis: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; margin-top: 0; }
  .demo-steps li, .playback-control { font-size: .78125rem; }
  .demo-steps li { padding: .4375rem .625rem; }
  .playback-control { margin: 0; }
}
@media (max-width: 54rem) {
  .hero-intro { align-items: start; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 37rem) {
  :root { --gutter: 1rem; }
  .masthead-inner { min-height: 3.75rem; }
  .brand img { width: 28px; height: 28px; }
  .hero { padding-block: 1.75rem 2.25rem; }
  .hero-intro { gap: .75rem; margin-bottom: 1.5rem; }
  .hero-title {
    font-size: clamp(2rem, 8.5vw, 3.125rem);
    line-height: 1.08;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 1rem;
  }
  .hero-actions a { min-height: 2.875rem; padding-block: .625rem; font-size: .875rem; text-align: center; }
  .download-platform { display: none; }
  .download-note { margin-top: .625rem; }
  .showcase {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem .5rem;
    padding: .75rem;
    border-radius: .875rem;
    background: var(--surface);
  }
  .showcase-rail { display: contents; }
  .showcase-rail h2 { grid-area: 1 / 1; }
  .playback-control {
    grid-area: 1 / 2;
    min-height: 2.75rem;
    font-size: .875rem;
    white-space: nowrap;
  }
  .app-space { grid-area: 2 / 1 / auto / -1; }
  .app-frame { height: clamp(19rem, 83vw, 24rem); border-radius: .5625rem; box-shadow: none; }
  .demo-steps {
    grid-area: 3 / 1 / auto / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-steps li { gap: .375rem; padding-inline: .375rem; font-size: .875rem; }
  .steps, .method-inner { grid-template-columns: minmax(0, 1fr); }
  .workflow, .method-inner { padding-block: 2rem; }
  .method-inner { gap: .875rem; }
  .steps { gap: 0; margin-top: 1.125rem; }
  .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .1875rem .75rem; padding-block: .875rem; }
  .step-icon { grid-row: span 2; }
  .steps h3, .steps p { margin: 0; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:nth-child(n) { transition-delay: 0s; }
  .footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 1.25rem;
    gap: .5rem 1rem;
  }
  .footer p { grid-area: 2 / 1 / auto / -1; }
}
