:root {
  color-scheme: dark;
  --ink: #f5f0e8;
  --muted: #b8b1a6;
  --paper: #10100e;
  --panel: #171814;
  --panel-strong: #202217;
  --line: rgba(245, 240, 232, 0.16);
  --green: #b7ff59;
  --amber: #ffbf47;
  --coral: #ff6b57;
  --teal: #5ef0d8;
  --shadow: rgba(0, 0, 0, 0.36);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(16, 16, 14, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  text-decoration: none;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(183, 255, 89, 0.48);
  background: rgba(183, 255, 89, 0.12);
  color: var(--green);
  font: 800 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.nav-links {
  gap: clamp(14px, 2.8vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 136px clamp(18px, 5vw, 72px) 64px;
  border-bottom: 1px solid var(--line);
}

#packet-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 28% 28%, rgba(183, 255, 89, 0.11), transparent 31%),
    radial-gradient(circle at 78% 18%, rgba(94, 240, 216, 0.1), transparent 28%),
    linear-gradient(145deg, #10100e 0%, #151510 55%, #0d0e0c 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(16, 16, 14, 0.12), rgba(16, 16, 14, 0.92)),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 5px
    );
}

.hero-shell {
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font: 700 13px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

h1 {
  max-width: 950px;
  margin-bottom: 24px;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
  max-width: 100%;
}

.copy-command,
.secondary-link {
  min-height: 52px;
  border: 1px solid var(--line);
  color: var(--ink);
}

.copy-command {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 100%;
  min-width: 0;
  padding: 0 9px 0 18px;
  background: rgba(245, 240, 232, 0.08);
  box-shadow: 0 18px 50px var(--shadow);
  cursor: pointer;
  white-space: normal;
}

.copy-command:hover {
  border-color: rgba(183, 255, 89, 0.64);
}

.command-text {
  display: block;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font: 700 14px/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.copy-label {
  display: grid;
  min-width: 72px;
  height: 36px;
  place-items: center;
  background: var(--green);
  color: #12130f;
  font-weight: 820;
}

.secondary-link {
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(16, 16, 14, 0.54);
}

.secondary-link:hover {
  color: var(--ink);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin-top: 34px;
}

.proof-strip span {
  border: 1px solid rgba(245, 240, 232, 0.14);
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(16, 16, 14, 0.48);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal-band,
.section {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

.terminal-band {
  background: #171711;
}

.terminal-window {
  max-width: 1160px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(183, 255, 89, 0.26);
  background: #080907;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.4);
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(183, 255, 89, 0.2);
  color: var(--muted);
  font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal-top span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.terminal-status {
  color: var(--green);
}

.terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 320px;
}

.terminal-feed {
  padding: clamp(20px, 4vw, 40px);
}

.terminal-feed p {
  display: grid;
  grid-template-columns: 64px 90px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
  color: #e8e0d4;
  font: 15px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.terminal-feed span,
.terminal-feed strong {
  color: var(--green);
}

.terminal-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-left: 1px solid rgba(245, 240, 232, 0.12);
  background: rgba(245, 240, 232, 0.03);
}

.terminal-side p {
  margin: 14px 0 0;
  color: var(--amber);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.terminal-side span,
.terminal-side strong {
  color: var(--muted);
  font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.step {
  color: var(--coral);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

h3 {
  margin: 34px 0 14px;
  font-size: 23px;
}

.feature-grid p,
.security-list p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contrast {
  max-width: none;
  background: #f5f0e8;
  color: #12130f;
}

.contrast .section-heading,
.contrast .split {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.contrast .eyebrow {
  color: #506d14;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.security-list {
  display: grid;
  gap: 14px;
}

.security-list p {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(18, 19, 15, 0.16);
  color: #3f3d36;
  background: rgba(18, 19, 15, 0.04);
}

.security-list strong {
  color: #12130f;
}

.code-panel {
  display: grid;
  align-items: center;
  overflow: auto;
  padding: 26px;
  background: #10100e;
  color: var(--green);
  box-shadow: 0 34px 80px rgba(16, 16, 14, 0.24);
}

.code-panel pre {
  margin: 0;
}

.code-panel code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 700 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  max-width: 820px;
  margin: 0 auto 28px;
}

.compact {
  margin: 0 auto;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding-top: 112px;
  }

  .hero-shell,
  .hero-copy,
  .proof-strip {
    max-width: calc(100vw - 48px);
  }

  h1 {
    font-size: clamp(46px, 15vw, 74px);
  }

  .terminal-grid,
  .feature-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .terminal-side {
    border-left: 0;
    border-top: 1px solid rgba(245, 240, 232, 0.12);
  }

  .terminal-feed p {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .terminal-feed strong {
    grid-column: 2;
  }

  .terminal-feed p {
    gap: 6px 12px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-shell,
  .proof-strip {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy {
    width: min(100%, 318px);
    max-width: 318px;
  }

  .hero-actions,
  .copy-command {
    align-items: stretch;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .proof-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .proof-strip span {
    text-align: center;
    overflow-wrap: anywhere;
  }

  .copy-command {
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
    padding: 16px;
  }

  .command-text {
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
  }

  .copy-label {
    width: 100%;
  }

  .secondary-link {
    width: 100%;
  }

  .terminal-top {
    flex-direction: column;
  }
}
