@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.v1.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0a0c17;
  --surface: #101423;
  --border: #283250;
  --text: #f3f5ff;
  --muted: #b4bed5;
  --accent: #aab7ff;
  --accent-strong: #c6d0ff;
  --mint: #77dcc2;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: var(--sans);
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.56; }
main { display: block; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .26em; }
img { display: block; max-width: 100%; }
a:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 5px; border-radius: 4px; }
section[id] { scroll-margin-top: 18px; }
.shell { width: min(100% - 56px, 1192px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: 12px; left: 12px; padding: 10px 15px; background: var(--accent); color: #101329; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { background: #0b0e1a; border-bottom: 1px solid #252d46; }
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand strong { color: var(--accent-strong); }
.brand img { object-fit: contain; flex: none; }
.topbar nav { display: flex; gap: clamp(18px, 3.3vw, 38px); align-items: center; }
.topbar nav a, .repository { font-weight: 600; font-size: 14px; text-decoration: none; color: var(--muted); }
.topbar nav a:hover, .repository:hover { color: var(--text); }
.repository { flex: none; padding: 8px 13px; border: 1px solid #384363; border-radius: 8px; }
.repository:hover { border-color: var(--accent); }
.repository span { color: var(--accent); margin-left: 3px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #252d46;
  background:
    radial-gradient(ellipse at 79% 49%, #253264 0%, #151d39 28%, transparent 65%),
    linear-gradient(130deg, #11162a, #0c101e 75%);
}
.hero::before {
  position: absolute; z-index: -1; content: ""; inset: 0;
  background: linear-gradient(#aec0ff0d 1px, transparent 1px), linear-gradient(90deg, #aec0ff0d 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at 78% 46%, black, transparent 80%);
}
.hero-layout {
  min-height: 573px;
  padding-block: 77px 81px;
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.41fr);
  align-items: center;
  gap: clamp(28px, 5vw, 71px);
}
.hero-copy { min-width: 0; }
.studio { color: var(--accent-strong); font-family: var(--mono); font-size: 12px; font-weight: 650; text-underline-offset: 5px; }
.hero h1 {
  margin-top: 27px;
  font-size: clamp(64px, 7.55vw, 113px);
  letter-spacing: -.078em;
  font-weight: 700;
  line-height: .9;
}
.hero h1 span { color: var(--accent); display: block; }
.hero-lead { margin-top: 25px; color: #d4ddf4; max-width: 37ch; font-size: clamp(16px, 1.46vw, 20px); line-height: 1.49; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; text-decoration: none; transition: background .16s, border-color .16s, transform .16s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.primary { color: #10142a; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #d5dcff; }
.secondary { color: #edf0ff; background: #151d33; border-color: #4a587e; }
.secondary:hover { background: #202b4c; border-color: var(--accent); }
.release { display: flex; align-items: center; gap: 9px; margin-top: 21px; color: #b8c4e2; font-family: var(--mono); font-size: 12px; }
.release > span, .diff-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px #77dcc24d; flex: none; }

.preview {
  background: #080b13;
  border: 1px solid #59688f;
  border-radius: 13px;
  box-shadow: 0 25px 70px -27px #02040d, 0 0 42px #8c9eff16;
  overflow: hidden;
  min-width: 0;
}
.preview-head { display: flex; gap: 12px; align-items: center; padding: 10px 13px; background: #141b2d; border-bottom: 1px solid #343d5c; color: #c8d0e7; font-family: var(--mono); font-size: clamp(9px, 1.05vw, 12px); }
.window-dots { flex: none; display: flex; gap: 4px; }
.window-dots i { width: 6px; height: 6px; border-radius: 50%; background: #8492c2; }
.window-dots i:nth-child(2) { background: #6877a3; }
.window-dots i:last-child { background: #526286; }
.preview img { width: 100%; height: auto; }
.preview figcaption { padding: 10px 13px; border-top: 1px solid #343d5c; background: #111728; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: #e1e7fd; font-size: 12px; }
.caption-detail { margin-left: auto; color: #b8c4dd; font-family: var(--mono); font-size: 10px; }

.workflow { padding-block: 70px 66px; }
.section-heading { margin-bottom: 23px; }
.section-heading h2 { font-size: clamp(33px, 4.3vw, 49px); font-weight: 700; line-height: 1.05; letter-spacing: -.055em; }
.section-heading p { margin-top: 9px; color: var(--muted); }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.flow-card { padding: 21px 22px 23px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.flow-symbol { display: inline-grid; place-items: center; min-width: 37px; height: 36px; padding-inline: 7px; border: 1px solid #3d4f84; border-radius: 7px; background: #1a2441; color: var(--accent-strong); font: 700 15px var(--mono); }
.diff-symbol { color: var(--mint); }
.flow-card h3, .roadmap-list h3 { font-size: 20px; line-height: 1.18; letter-spacing: -.023em; }
.flow-card h3 { margin-top: 13px; }
.flow-card p, .roadmap-list p { margin-top: 7px; color: var(--muted); font-size: 15px; }
.flow-card strong { color: var(--text); font-weight: 650; }

.roadmap { padding-block: 0 74px; }
.roadmap-list { display: grid; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); background: var(--surface); border-radius: 11px; }
.roadmap-list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 17px 22px; }
.roadmap-list li + li { border-top: 1px solid var(--border); }
.stage { align-self: start; justify-self: start; padding: 3px 8px; border: 1px solid; border-radius: 5px; font: 600 11px/1.5 var(--mono); white-space: nowrap; }
.current { background: #112a2b; color: #9de7d2; border-color: #30605a; }
.next { background: #242849; color: #c2c9ff; border-color: #46548c; }
.later { background: #22283b; color: #c4cee5; border-color: #434c65; }

.site-footer { border-top: 1px solid var(--border); background: #0b0e1a; }
.footer-content { min-height: 85px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.footer-content .brand { margin-right: auto; }
.footer-content > a:not(.brand) { color: var(--muted); font-size: 14px; }
.footer-content > a:hover { color: var(--text); }
.not-found { padding-block: 80px; }
.not-found h1 { font-size: clamp(44px, 7vw, 78px); line-height: 1; letter-spacing: -.06em; }
.not-found .button { margin-top: 20px; }

@media (max-width: 850px) {
  .hero-layout { padding-block: 61px 67px; min-height: 0; gap: 32px; }
  .hero h1 { font-size: clamp(55px, 8vw, 78px); }
  .flow-card { padding-inline: 16px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 34px); }
  .topbar { min-height: 0; padding-block: 10px; gap: 7px 13px; flex-wrap: wrap; }
  .topbar .repository { margin-left: auto; }
  .topbar nav { order: 3; width: 100%; gap: 23px; padding: 2px 4px; }
  .hero-layout { padding-block: 39px 37px; grid-template-columns: minmax(0, 1fr); }
  .hero h1 { margin-top: 19px; font-size: clamp(58px, 14vw, 88px); }
  .hero-lead { margin-top: 18px; }
  .actions { margin-top: 18px; }
  .release { margin-top: 14px; }
  .workflow { padding-block: 46px; }
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .roadmap { padding-bottom: 50px; }
  .roadmap-list li { padding: 15px; grid-template-columns: 80px minmax(0, 1fr); }
  .footer-content { padding-block: 13px; gap: 9px 17px; }
  .footer-content .brand { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover, .button:active { transform: none; }
}
