:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-deep: #05070a;
  --surface: rgba(15, 23, 42, 0.76);
  --surface-strong: rgba(15, 23, 42, 0.94);
  --panel: rgba(255, 255, 255, 0.055);
  --panel-hover: rgba(255, 255, 255, 0.085);
  --text: #f8fafc;
  --muted: #aab6c7;
  --muted-strong: #dbeafe;
  --line: rgba(148, 163, 184, 0.22);
  --line-strong: rgba(148, 163, 184, 0.36);
  --cyan: #38bdf8;
  --green: #22c55e;
  --acid: #a3e635;
  --rose: #fb7185;
  --amber: #facc15;
  --purple: #8b5cf6;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --max-width: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  background-image:
    linear-gradient(115deg, rgba(34, 197, 94, 0.16) 0%, transparent 34%),
    linear-gradient(245deg, rgba(56, 189, 248, 0.14) 0%, transparent 38%),
    linear-gradient(180deg, #080a0f 0%, #0b111a 54%, #07090d 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 72%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: #070a0f;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 9;
  display: flex;
  width: min(calc(100% - 2rem), var(--max-width));
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 15, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand,
.nav-cta,
.site-nav a,
.button {
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.5rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.brand::before {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.45);
  content: "";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.site-nav a,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.site-nav a:hover,
.nav-cta:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
}

.nav-cta {
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #dcfce7;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  align-items: center;
  overflow: hidden;
  padding: 8rem 1.25rem 4.5rem;
  isolation: isolate;
}

#vj-field,
.hero-grid {
  position: absolute;
  inset: 0;
}

#vj-field {
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-grid {
  z-index: 1;
  opacity: 0.3;
  background:
    linear-gradient(rgba(56, 189, 248, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.16) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(640px) rotateX(62deg) translateY(12%);
  transform-origin: center bottom;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.9) 0%, rgba(8, 10, 15, 0.72) 45%, rgba(8, 10, 15, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.62) 0%, transparent 34%, rgba(8, 10, 15, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.kicker,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--acid);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: 6.25rem;
  line-height: 0.9;
  text-shadow:
    0 0 28px rgba(34, 197, 94, 0.24),
    0 12px 40px rgba(0, 0, 0, 0.6);
}

.hero-title-sub {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--text);
  font-size: 2.1rem;
  font-weight: 720;
  line-height: 1.12;
}

.hero-lede {
  max-width: 700px;
  margin: 1.25rem 0 0;
  color: var(--muted-strong);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions,
.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.05rem;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.nav-cta:focus-visible,
.brand:focus-visible,
.scroll-cue:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.button.is-primary {
  background: var(--green);
  color: #03110a;
  box-shadow: 0 16px 42px rgba(34, 197, 94, 0.24);
}

.button.is-primary:hover {
  background: var(--acid);
  box-shadow: 0 18px 48px rgba(163, 230, 53, 0.24);
}

.button.is-secondary {
  border-color: var(--line-strong);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.button.is-secondary:hover {
  border-color: rgba(56, 189, 248, 0.64);
  color: #e0f2fe;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(780px, 100%);
  margin-top: 1.25rem;
}

.hero-meta span {
  display: grid;
  gap: 0.25rem;
  min-height: 78px;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.58);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  backdrop-filter: blur(12px);
}

.hero-meta strong {
  color: var(--text);
  font-size: 0.94rem;
}

.terminal-strip {
  display: grid;
  gap: 0.38rem;
  width: min(640px, 100%);
  margin-top: 1.35rem;
  padding: 1rem;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-top: 3px solid var(--green);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.78);
  box-shadow:
    inset 0 0 42px rgba(56, 189, 248, 0.08),
    0 20px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.terminal-line {
  color: #e5f7ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.prompt {
  color: var(--acid);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  color: var(--muted-strong);
  font-size: 0.86rem;
  text-decoration: none;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.scroll-cue:hover {
  border-color: rgba(34, 197, 94, 0.5);
  color: var(--text);
}

.section {
  scroll-margin-top: 5.5rem;
  padding: 5.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.96) 0%, rgba(11, 17, 26, 0.98) 100%),
    repeating-linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0 1px, transparent 1px 22px);
}

.section-dark {
  background:
    linear-gradient(135deg, #0b111a 0%, #101827 52%, #07110e 100%);
}

.section-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
}

.signal-layout,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: 2rem;
  align-items: center;
}

.section-copy p,
.section-head p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.section-head {
  max-width: 780px;
  margin-bottom: 2rem;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: 3rem;
  line-height: 1.04;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
}

.signal-steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.signal-step,
.example-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.signal-step {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem;
}

.signal-step strong {
  color: var(--acid);
}

.signal-step span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}

.poster {
  margin: 0;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
}

.poster img {
  width: 100%;
  border-radius: 6px;
}

.poster figcaption {
  margin: 0.75rem 0.25rem 0.25rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.84rem;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--cyan);
  color: #eef8ff;
  line-height: 1.6;
}

.code-stage,
.install-commands {
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: rgba(3, 7, 18, 0.84);
  box-shadow:
    inset 0 0 48px rgba(34, 197, 94, 0.06),
    0 20px 80px rgba(0, 0, 0, 0.32);
}

.code-stage pre,
.install-commands pre {
  margin: 0;
  padding: 1.2rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code-stage code,
.install-commands code {
  color: #e9fff2;
  font-size: 0.92rem;
  line-height: 1.65;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.example-item {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-height: 100%;
  padding: 1rem;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.example-item:hover {
  border-color: rgba(56, 189, 248, 0.46);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.example-item h3 {
  color: #e0f2fe;
}

.example-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.example-item code {
  display: block;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #bef264;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.install-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 1.4rem 2rem;
  align-items: start;
}

.install-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
}

.site-footer a {
  color: #bef264;
  text-decoration: none;
}

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

@media (max-width: 920px) {
  .signal-layout,
  .split-layout,
  .install-panel {
    grid-template-columns: 1fr;
  }

  .example-grid,
  .hero-meta {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-title-sub {
    font-size: 1.75rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    top: 0.75rem;
    width: calc(100% - 1.5rem);
    align-items: center;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 5.55rem 1rem 2.25rem;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-title-sub {
    margin-top: 0.75rem;
    font-size: 1.38rem;
    line-height: 1.2;
  }

  .hero-title-sub,
  .hero-lede,
  .hero-meta,
  .terminal-strip {
    max-width: 22rem;
  }

  .hero-lede,
  .section-copy p,
  .section-head p {
    font-size: 1rem;
  }

  .hero-lede {
    margin-top: 0.9rem;
    line-height: 1.62;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .hero-meta {
    gap: 0.55rem;
    margin-top: 0.95rem;
  }

  .hero-meta span {
    min-height: auto;
    padding: 0.75rem;
  }

  .section {
    padding: 3.8rem 1rem;
  }

  .terminal-strip {
    margin-top: 0.95rem;
    padding: 0.85rem;
  }

  .terminal-line {
    font-size: 0.82rem;
  }

  .scroll-cue {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .button:hover,
  .example-item:hover {
    transform: none;
  }
}
