:root {
  --bg: #080808;
  --sidebar: #0b0b0b;
  --content: #0e0e0e;
  --card: #141414;
  --elevated: #191919;
  --border: #242424;
  --text: #f2f2f2;
  --secondary: #929292;
  --muted: #626262;
  --accent: #35d69a;
  --on-accent: #07140f;
  --danger: #f07178;
  --font: "Segoe UI Variable Text", "Segoe UI Variable", Inter, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--text); color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(880px 420px at 78% -8%, rgba(53, 214, 154, 0.09), transparent 58%),
    radial-gradient(640px 360px at 8% 12%, rgba(53, 214, 154, 0.05), transparent 52%),
    var(--bg);
}

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

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 8;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 650;
}

.brand svg { display: block; }

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--secondary);
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-links a[aria-current="page"] { color: var(--text); }

.wrap {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 28px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(53, 214, 154, 0.55);
  animation: ping 2.4s ease-out infinite;
}

h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.lede {
  max-width: 38rem;
  margin: 18px 0 0;
  color: var(--secondary);
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 650;
  border-radius: 2px;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(53, 214, 154, 0.22);
}

.ghost {
  color: var(--secondary);
  font-size: 13px;
  transition: color 0.2s ease;
}

.ghost:hover { color: var(--text); }

.stage {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  height: auto;
  margin: 48px auto 0;
  padding: 28px 14px 96px;
  overflow: hidden;
}

.stage-glow {
  position: absolute;
  left: 16%;
  right: 10%;
  top: 12%;
  bottom: 16%;
  background: radial-gradient(ellipse at center, rgba(53, 214, 154, 0.2), transparent 68%);
  filter: blur(10px);
  animation: glow 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.tick {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 6;
  pointer-events: none;
}

.tick-nw { top: 0; left: 0; border-top: 1px solid rgba(242, 242, 242, 0.45); border-left: 1px solid rgba(242, 242, 242, 0.45); }
.tick-ne { top: 0; right: 0; border-top: 1px solid rgba(242, 242, 242, 0.45); border-right: 1px solid rgba(242, 242, 242, 0.45); }
.tick-sw { bottom: 0; left: 0; border-bottom: 1px solid rgba(242, 242, 242, 0.45); border-left: 1px solid rgba(242, 242, 242, 0.45); }
.tick-se { bottom: 0; right: 0; border-bottom: 1px solid rgba(242, 242, 242, 0.45); border-right: 1px solid rgba(242, 242, 242, 0.45); }

.pane {
  position: absolute;
  margin: 0;
  transition: translate 0.55s cubic-bezier(0.22, 1, 0.36, 1), rotate 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.pane-shot {
  overflow: hidden;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #080808;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  transition: aspect-ratio 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.55s ease;
}

.pane img {
  width: 100%;
  height: auto;
  display: block;
}

.pane figcaption {
  position: absolute;
  top: -20px;
  left: 2px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pane-home {
  position: relative;
  z-index: 2;
  width: 62%;
  margin: 18px 0 0 32%;
  opacity: 0;
  translate: 0 22px;
  animation: arrive 0.9s 0.12s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pane-home .pane-shot {
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(53, 214, 154, 0.22);
}

.pane-home .pane-shot { position: relative; }

.pane-home .pane-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.07) 50%, transparent 62%);
  translate: -120% 0;
  animation: sheen 1.15s 0.7s ease forwards;
  pointer-events: none;
}

.pane-lib,
.pane-rec {
  z-index: 3;
  opacity: 0;
  animation: arrive 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pane-lib {
  width: 34%;
  left: 10px;
  top: 22px;
  rotate: -1.6deg;
  animation-delay: 0.22s;
}

.pane-lib .pane-shot { aspect-ratio: 16 / 7.2; }
.pane-rec .pane-shot { aspect-ratio: 16 / 9.2; }

.pane-lib .pane-shot img,
.pane-rec .pane-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pane-rec {
  width: 36%;
  right: 10px;
  bottom: 12px;
  rotate: 1.4deg;
  animation-delay: 0.34s;
}

.pane-lib:hover,
.pane-rec:hover {
  z-index: 5;
  rotate: 0deg;
  translate: 0 -8px;
}

.pane-lib:hover .pane-shot,
.pane-rec:hover .pane-shot {
  aspect-ratio: 1440 / 954;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(53, 214, 154, 0.4);
}

.pane-home:hover { translate: 0 -6px; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 56px 0 72px;
}

.facts article {
  padding: 20px 18px 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%), var(--card);
  opacity: 0;
  translate: 0 16px;
  animation: arrive 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.facts article:nth-child(1) { animation-delay: 0.15s; }
.facts article:nth-child(2) { animation-delay: 0.25s; }
.facts article:nth-child(3) { animation-delay: 0.35s; }

.facts article:hover {
  border-color: rgba(53, 214, 154, 0.5);
  background: linear-gradient(180deg, rgba(53, 214, 154, 0.06), transparent 46%), var(--card);
}

.facts h2, .block h2, .page h1 {
  font-weight: 400;
}

.facts h2 {
  margin: 0 0 8px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

.facts p, .prose p, .prose li {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.page { padding: 56px 0 80px; }

.page h1 {
  font-size: 40px;
  letter-spacing: 0.08em;
  font-weight: 300;
}

.list { margin: 36px 0 0; }

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 16px 12px;
  border-top: 1px solid var(--border);
  transition: background 0.25s ease;
}

.row:hover { background: rgba(255, 255, 255, 0.025); }

.row h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.row p { margin: 0; color: var(--secondary); }

.prose { max-width: 42rem; margin-top: 28px; }

.prose h2 {
  margin: 32px 0 8px;
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--text);
}

.prose p + p { margin-top: 12px; }

.prose ul { margin: 8px 0 0; padding-left: 18px; }

.prose li + li { margin-top: 6px; }

.req {
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.site-footer {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  padding: 22px 28px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

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

.hero > .kicker,
.hero > h1,
.hero > .lede,
.hero > .actions,
.page > .kicker,
.page > h1,
.page > .lede,
.page > .actions {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero > h1,
.page > h1 { animation-delay: 0.06s; }

.hero > .lede,
.page > .lede { animation-delay: 0.12s; }

.hero > .actions,
.page > .actions { animation-delay: 0.18s; }

@keyframes fade-up {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes arrive {
  to { opacity: 1; translate: 0 0; }
}

@keyframes sheen {
  to { translate: 130% 0; }
}

@keyframes glow {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(53, 214, 154, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(53, 214, 154, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 214, 154, 0); }
}

@media (max-width: 760px) {
  h1 { font-size: 40px; }
  .facts, .row { grid-template-columns: 1fr; }
  .nav { padding: 0 16px; }
  .wrap { width: min(980px, calc(100% - 32px)); }
  .stage {
    display: grid;
    height: auto;
    gap: 28px;
    margin-top: 36px;
    overflow: visible;
  }
  .pane-home,
  .pane-lib,
  .pane-rec {
    position: relative;
    width: auto;
    height: auto;
    margin: 0;
    inset: auto;
    rotate: none;
  }
  .pane-lib .pane-shot,
  .pane-rec .pane-shot { aspect-ratio: auto; }
  .pane-lib .pane-shot img,
  .pane-rec .pane-shot img { height: auto; object-fit: fill; }
  .pane { display: flex; flex-direction: column; }
  .pane figcaption {
    position: static;
    order: -1;
    display: block;
    margin: 0 0 8px;
  }
  .stage-glow,
  .tick { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .pane-home, .pane-lib, .pane-rec, .facts article { opacity: 1; translate: none; }
}
