:root {
  --bg: #050507;
  --bg-elev: #0c0c10;
  --bg-soft: #121218;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f2f4;
  --muted: #8b8b96;
  --accent: #f2f2f4;
  --accent-soft: #c8c8d0;
  --cyan: #9aa4b2;
  --blue: #a8b0bd;
  --pink: #b4b4be;
  --ok: #d0d0d8;
  --warn: #c4c4cc;
  --bad: #a87880;
  --font: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--accent-soft);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(16px);
  background: rgba(5, 5, 7, 0.82);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link-quiet {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  background: var(--text);
  color: #050507;
}

.btn-primary {
  background: var(--text);
  color: #050507;
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.7;
}

.hero-title {
  margin: 0 auto 1.1rem;
  max-width: 12ch;
  font-size: clamp(2.7rem, 8.5vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero-title em {
  font-style: normal;
  color: var(--muted);
}

.hero-sub {
  margin: 0 auto 1.75rem;
  max-width: 40ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-meta {
  margin: 1rem 0 0;
  color: #6f6f7a;
  font-size: 0.88rem;
}

.hero-visual {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.demo-frame,
.shot-frame {
  margin: 0;
  width: min(960px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.demo-frame {
  animation: frame-in 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.shot-frame {
  width: min(820px, 100%);
}

.demo-frame img,
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.c-dim { color: #6a6a74; }
.c-cyan { color: var(--cyan); }
.c-blue { color: var(--blue); }
.c-pink { color: var(--pink); }
.c-green { color: var(--ok); }
.c-ok { color: var(--ok); }
.c-warn { color: var(--warn); }
.c-path { color: #b0b0ba; }
.c-cmd { color: #c8c8d0; }
.c-prompt { color: var(--text); font-weight: 600; }
.c-amber { color: var(--accent-soft); }
.c-bad { color: var(--bad); }

.band {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.25rem 0;
}

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: 1.35rem;
}

.band h2,
.cta-final h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.band-head p,
.cta-final p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 42ch;
}

.harness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.harness {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
}

.harness strong {
  letter-spacing: -0.02em;
  font-size: 0.98rem;
}

.harness code {
  color: var(--muted);
  font-size: 0.78rem;
}

.band-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.band-split .band-head {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
  gap: 0.55rem;
}

#fork.band-split {
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
}

.band-panel,
.term-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #09090d;
  overflow: hidden;
}

.band-panel pre,
.term-block pre {
  margin: 0;
  padding: 1.1rem 1.15rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.55;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 2rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
}

.feature-row h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-final {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0.5rem auto 3.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.install-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: min(760px, 100%);
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #050507;
}

.install-box code {
  overflow-x: auto;
  white-space: nowrap;
  color: var(--accent-soft);
  font-size: 0.76rem;
  text-align: left;
}

.install-hint {
  margin: 0 !important;
  font-size: 0.92rem !important;
  color: var(--muted);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 2.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer strong {
  color: var(--text);
  margin-right: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

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

@keyframes frame-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 860px) {
  .nav {
    padding-inline: 2rem;
  }
}

@media (max-width: 900px) {
  .harness-grid,
  .feature-row,
  .band-split,
  #fork.band-split {
    grid-template-columns: 1fr;
  }

  .band-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #fork .btn {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .install-box {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-frame {
    animation: none !important;
  }
}
