:root {
  color-scheme: dark;
  --bg: #050506;
  --ink: #fff4dc;
  --muted: #c9c1a8;
  --red: #ff3d24;
  --green: #00f49a;
  --amber: #ffb000;
  --cyan: #5ecbff;
  --line: rgba(255, 244, 220, 0.22);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.72;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 2px,
      rgba(0, 0, 0, 0.30) 3px,
      rgba(0, 0, 0, 0.30) 9px
    );
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  position: fixed;
  inset: -16%;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 46%, transparent 0 42%, rgba(0, 0, 0, 0.62) 78%),
    linear-gradient(90deg, rgba(255, 61, 36, 0.07), rgba(0, 244, 154, 0.04), rgba(94, 203, 255, 0.06));
  filter: blur(0.8px);
}

#metaballs {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  filter: blur(18px) contrast(2.55) saturate(1.42);
  transform: scale(1.08);
}

.signal {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.44;
  background:
    linear-gradient(90deg, rgba(255, 61, 36, 0.24), transparent 28%, rgba(0, 244, 154, 0.12) 58%, transparent 78%),
    radial-gradient(circle at 72% 28%, rgba(94, 203, 255, 0.14), transparent 34%);
  mix-blend-mode: screen;
  animation: signal-drift 16s steps(6, end) infinite;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.76), rgba(5, 5, 6, 0));
}

.brand,
.topbar a,
.nav-button {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  font-size: 0.94rem;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0.06em 0 var(--red), -0.05em 0 var(--green);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar nav a {
  color: rgba(255, 244, 220, 0.86);
}

.topbar nav a:hover,
.topbar nav a:focus-visible,
.nav-button:hover,
.nav-button:focus-visible,
.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--green);
  outline: none;
}

.nav-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-transform: inherit;
}

.hero {
  position: relative;
  z-index: 5;
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 98px clamp(18px, 5vw, 72px) 72px;
}

@supports (min-height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}

.hero-copy {
  max-width: min(1040px, 96vw);
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0.07em 0 var(--red);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-bottom: clamp(18px, 3vw, 32px);
  font-family: Arial Black, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.6rem, 17vw, 15rem);
  font-weight: 950;
  line-height: 0.76;
  text-transform: uppercase;
  text-shadow:
    0.035em 0 var(--red),
    -0.03em 0 var(--green),
    0 0 38px rgba(255, 176, 0, 0.28);
}

h1 span {
  display: block;
}

.lede {
  max-width: 920px;
  margin-bottom: 28px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3.2vw, 3.25rem);
  font-weight: 950;
  line-height: 1.18;
  text-transform: uppercase;
}

.lede span {
  padding: 0.02em 0.18em 0.12em;
  background: rgba(42, 42, 42, 0.78);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.55);
}

.actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(5, 5, 6, 0.62);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.28);
}

.action:hover,
.action:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.action.primary {
  border-color: transparent;
  background: var(--ink);
  color: var(--bg);
}

.action.ghost {
  color: var(--green);
}

.scroll-cue {
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: clamp(76px, 11vh, 118px);
  color: rgba(255, 244, 220, 0.68);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.about {
  position: relative;
  z-index: 5;
  min-height: 92vh;
  scroll-margin-top: 92px;
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(82px, 10vw, 126px);
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0), rgba(5, 5, 6, 0.86) 16%, rgba(5, 5, 6, 0.98) 88%, var(--bg)),
    rgba(5, 5, 6, 0.82);
  overflow: hidden;
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.about h2,
.modal h2 {
  margin-bottom: 18px;
  font-family: Arial Black, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2.25rem, 6vw, 5.6rem);
  font-weight: 950;
  line-height: 0.86;
  text-transform: uppercase;
  text-shadow: 0.04em 0 var(--red), -0.03em 0 var(--cyan);
}

.about-copy {
  color: rgba(255, 244, 220, 0.84);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 560;
  line-height: 1.52;
}

code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

.terminal-demo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: stretch;
  margin-top: clamp(8px, 2vw, 18px);
}

.terminal-window,
.command-info {
  border: 1px solid rgba(255, 244, 220, 0.28);
  background: rgba(5, 5, 6, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  height: clamp(300px, 29vw, 390px);
}

.terminal-window {
  padding: clamp(16px, 3vw, 28px);
  overflow: hidden;
}

.terminal-line {
  display: grid;
  grid-template-columns: 1.1em minmax(6.5em, auto) minmax(0, 1fr);
  gap: 0.65em;
  align-items: baseline;
  min-height: 38px;
  color: rgba(255, 244, 220, 0.95);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.42rem);
  font-weight: 850;
  line-height: 1.25;
}

.terminal-suggest {
  color: rgba(255, 244, 220, 0.46);
}

.prompt {
  color: var(--green);
  text-shadow: 0.08em 0 var(--red);
}

.binary {
  color: var(--ink);
}

.command-option {
  width: fit-content;
  min-width: 6.3em;
  border: 0;
  padding: 0 0.18em;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: inherit;
  font-weight: 850;
  line-height: inherit;
  text-align: left;
  text-transform: uppercase;
}

.command-option:hover,
.command-option:focus-visible,
.command-option.is-active {
  outline: none;
  background: rgba(0, 244, 154, 0.16);
  color: var(--green);
  text-shadow: 0.08em 0 var(--red);
}

.command-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 30px);
}

.command-info h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: Arial Black, Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.9rem);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0.04em 0 var(--red), -0.03em 0 var(--cyan);
  min-height: 3.8em;
}

.command-info p:last-child {
  margin-bottom: 0;
  color: rgba(255, 244, 220, 0.84);
  font-size: clamp(0.98rem, 1.5vw, 1.18rem);
  font-weight: 560;
  line-height: 1.48;
  min-height: 4.45em;
}

.site-foot {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  min-height: 38px;
  padding: 10px clamp(18px, 4vw, 56px) 14px;
  background: var(--bg);
  color: rgba(255, 244, 220, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
}

.site-foot a {
  color: rgba(255, 244, 220, 0.7);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-foot a:hover,
.site-foot a:focus-visible {
  color: var(--green);
  outline: none;
}

.modal {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid var(--line);
  padding: 0;
  background: rgba(5, 5, 6, 0.96);
  color: var(--ink);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.72);
}

.modal::backdrop {
  background: rgba(5, 5, 6, 0.76);
  backdrop-filter: blur(8px);
}

.modal form {
  position: relative;
  padding: clamp(22px, 5vw, 44px);
}

.modal p {
  color: rgba(255, 244, 220, 0.84);
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  font-weight: 950;
}

@keyframes signal-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-2%, 1%, 0);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    padding: 14px clamp(18px, 5vw, 24px) 22px;
    background:
      linear-gradient(180deg, rgba(5, 5, 6, 0.98) 0%, rgba(5, 5, 6, 0.92) 72%, rgba(5, 5, 6, 0) 100%);
    backdrop-filter: blur(12px);
  }

  .topbar nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    max-width: 210px;
    gap: 10px;
    line-height: 1.15;
    text-align: right;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: clamp(118px, 15vh, 148px);
    padding-bottom: max(112px, calc(env(safe-area-inset-bottom) + 104px));
  }

  @supports (min-height: 100dvh) {
    .hero {
      min-height: 100dvh;
    }
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 430px);
    gap: 12px;
  }

  .action {
    width: 100%;
    min-height: 52px;
    flex: none;
    padding: 15px 16px;
  }

  .scroll-cue {
    display: none;
  }

  .about {
    scroll-margin-top: 118px;
    padding-top: clamp(136px, 20vh, 176px);
  }

  .about-inner,
  .terminal-demo {
    grid-template-columns: 1fr;
  }

  .terminal-window,
  .command-info {
    height: auto;
  }

  .command-info h3,
  .command-info p:last-child {
    min-height: 0;
  }

  .terminal-line {
    grid-template-columns: 0.85em minmax(5.7em, auto) minmax(0, 1fr);
    gap: 0.45em;
  }

  .command-option {
    min-width: 5.4em;
  }
}

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

  .signal {
    animation: none;
  }
}
