:root {
  --bg: #050806;
  --green: #3dff8a;
  --green-2: #d8ffe8;
  --text: #e7f6ec;
  --muted: #9bb5a6;
  --line: rgba(61, 255, 138, 0.2);
  --sans: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --nav-h: 76px;
  --rail: 48px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: var(--rail);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

::selection {
  background: var(--green);
  color: #04140c;
}

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

.skip {
  position: absolute;
  left: calc(var(--rail) + 12px);
  top: -48px;
  z-index: 30;
  background: var(--green);
  color: #04140c;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

#matrix {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

#matrix.is-on {
  opacity: 0.62;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(880px 520px at 18% 8%, rgba(61, 255, 138, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(5, 8, 6, 0.2) 0%, rgba(5, 8, 6, 0.72) 42%, rgba(5, 8, 6, 0.9) 100%);
}

.rail {
  position: fixed;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px;
  border-right: 1px solid var(--line);
  background: rgba(5, 8, 6, 0.62);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}

#rail-stream {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: rgba(61, 255, 138, 0.5);
}

#rail-stream .head {
  color: #f4fff8;
}

.nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: var(--rail);
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 28px;
  background: rgba(5, 8, 6, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
}

.nav.is-scrolled {
  background: rgba(5, 8, 6, 0.9);
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.logo strong,
.logo em {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-weight: 500;
}

.logo strong {
  letter-spacing: 0.22em;
  font-size: 0.84rem;
}

.logo em {
  margin-top: 2px;
  letter-spacing: 0.32em;
  font-size: 0.58rem;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary.is-active {
  color: #04140c;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #04140c;
}

.btn-primary:hover {
  background: var(--green-2);
  color: #04140c;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(61, 255, 138, 0.4);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

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

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 {
  margin-top: 0.7rem;
  font-size: clamp(3.1rem, 7vw, 6.15rem);
}

h1 em {
  font-style: normal;
  color: var(--green);
}

h2 {
  margin-top: 0.4rem;
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.lede {
  color: var(--muted);
  text-wrap: pretty;
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 1.5rem) 0 2.5rem;
  overflow: hidden;
}

.watermark {
  position: absolute;
  z-index: 0;
  right: -1vw;
  bottom: 4vh;
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: rgba(61, 255, 138, 0.035);
  -webkit-text-stroke: 1px rgba(61, 255, 138, 0.22);
  user-select: none;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.28rem 0.7rem 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2.2s ease infinite;
}

.hero-copy .lede {
  max-width: 38rem;
  margin-top: 1.2rem;
  font-size: 1.14rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.term {
  border: 1px solid rgba(61, 255, 138, 0.28);
  border-radius: 16px;
  background: rgba(3, 6, 5, 0.8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.term-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.term-bar span:nth-child(2) {
  text-align: center;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(61, 255, 138, 0.28);
}

.dots i:first-child {
  background: var(--green);
}

.term-body {
  padding: 1.05rem 1rem 1.15rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

.cmd {
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.kv {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.15rem 0.85rem;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  color: var(--text);
}

.meter {
  height: 7px;
  margin-top: 0.95rem;
  border-radius: 99px;
  background: rgba(61, 255, 138, 0.12);
  overflow: hidden;
}

.meter span {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, #146b3a, var(--green));
  box-shadow: 0 0 16px rgba(61, 255, 138, 0.55);
}

.prompt {
  min-height: 2.8em;
  margin-top: 0.95rem;
  color: var(--green-2);
}

.prompt::before {
  content: "> ";
  color: var(--green);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--green);
  animation: blink 1.05s steps(1) infinite;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 2.8rem;
}

.hero-points li {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(61, 255, 138, 0.32);
  font-size: 1rem;
}

.hero-points span {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--green);
}

.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(5, 8, 6, 0.55);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.ticker-group {
  display: flex;
}

.ticker-group span {
  padding: 0.72rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  color: rgba(216, 255, 232, 0.88);
}

.ticker-group span.dim {
  color: rgba(61, 255, 138, 0.48);
}

section {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0;
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

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

.section-head .lede {
  margin-top: 0.9rem;
  font-size: 1.08rem;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: end;
}

.split-head .section-head {
  margin-bottom: 0;
}

.pull {
  margin: 0 0 2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--green);
}

.pull p {
  max-width: 14ch;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 8, 6, 0.72);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(61, 255, 138, 0.7);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--green);
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
}

.steps li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps span {
  font-family: var(--mono);
  color: var(--green);
  letter-spacing: 0.08em;
}

.steps p {
  margin-top: 0.3rem;
  max-width: 42rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.contact-grid .section-head {
  margin-bottom: 0;
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid rgba(61, 255, 138, 0.24);
  border-radius: 18px;
  background: rgba(3, 6, 5, 0.78);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(61, 255, 138, 0.28);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 1rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--green);
}

::placeholder {
  color: #6f8c7d;
  opacity: 1;
}

.form .btn {
  justify-self: start;
}

.status {
  min-height: 1.4em;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--green);
}

.status.is-error {
  color: #ffb4b4;
}

.fine {
  color: var(--muted);
  font-size: 0.86rem;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.18em;
}

.footer-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gate {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(61, 255, 138, 0.35);
  border-radius: 10px;
  color: var(--green);
  background: rgba(5, 8, 6, 0.65);
  box-shadow: 0 0 16px rgba(61, 255, 138, 0.14);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.gate:hover,
.gate:focus-visible {
  color: #f4fff8;
  border-color: var(--green);
  box-shadow: 0 0 22px rgba(61, 255, 138, 0.45);
  outline: none;
}

.hero-copy > * {
  animation: rise 0.7s ease both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.22s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes pulse {
  50% { opacity: 0.45; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 20px 1rem;
    background: #050806;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(61, 255, 138, 0.12);
    font-size: 1.05rem;
  }

  .nav-links a.btn {
    margin-top: 0.85rem;
    border-bottom: 0;
  }

  .hero-grid,
  .split-head,
  .contact-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .pull {
    margin-bottom: 0;
  }

  .hero {
    align-items: start;
  }
}

@media (max-width: 720px) {
  :root {
    --rail: 0px;
  }

  .rail {
    display: none;
  }

  .wrap {
    width: min(1120px, calc(100% - 36px));
  }

  .nav {
    padding: 0 14px 0 18px;
  }

  .hero-points {
    grid-template-columns: 1fr 1fr;
  }

  .form-row,
  .footer-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  section {
    padding: 3.6rem 0;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .card:hover {
    transform: none;
  }
}
