:root {
  color-scheme: light dark;

  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 120ms;

  --navy: #0f1b2d;
  --navy-2: #172740;
  --navy-line: #2e4267;
  --navy-fg: #eef1f6;
  --navy-fg-2: #a8b3c7;
  --navy-clear: #5ccf8a;
  --primary: #f5a35c;
  --primary-hover: #f39443;
  --primary-ink: #0f1b2d;
  --secondary: light-dark(#e3e7ee, #22355a);
  --secondary-hover: light-dark(#d6dce6, #2b4069);
  --dither-ink: light-dark(#0f1b2d, #8ea0bd);
  --dither: repeating-conic-gradient(var(--dither-ink) 0% 25%, transparent 0% 50%) 0 0 / 2px 2px;
  --box-border: light-dark(#0f1b2d, #c9d3e2);

  --bg-canvas: light-dark(#f5f6f8, #0b1524);
  --bg: light-dark(#ffffff, #101d30);
  --border: light-dark(#cdd4df, #2a3b56);
  --border-strong: light-dark(#0f1b2d, #c9d3e2);

  --fg: light-dark(#0f1b2d, #e9edf3);
  --fg-2: light-dark(#3c4a60, #b3bdcd);
  --fg-3: light-dark(#5f6b80, #8592a8);
  --fg-on-ink: light-dark(#ffffff, #0b1524);
  --ink: light-dark(#0f1b2d, #e9edf3);

  --accent: light-dark(#b85f12, #f5a35c);
  --accent-bg: light-dark(#fdf0e3, #2b2216);
  --accent-text: light-dark(#a35410, #f5a35c);
  --clear: light-dark(#1a7a42, #5ccf8a);
  --stop: light-dark(#bf2c2c, #f47c7c);

  --focus: var(--accent);
  --wrap: 1200px;
  --gutter: var(--space-5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg-canvas);
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-5);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-mono);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-ligatures: none;
  overflow-wrap: break-word;
}

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

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

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--accent-bg);
  color: var(--fg);
}

:focus {
  outline: none;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.faint {
  color: var(--fg-3);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 100;
  padding: var(--space-2) var(--space-3);
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: var(--space-3);
  outline: 2px solid var(--navy-fg);
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font: inherit;
  font-weight: 700;
  font-size: var(--text-md);
  line-height: 1.4;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 2px 2px 0 0 rgb(0 0 0 / 0.35);
  transition:
    transform var(--duration-fast) var(--ease-out),
    background var(--duration-fast);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 rgb(0 0 0 / 0.35);
}

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--focus);
}

.btn[data-variant="primary"] {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn[data-variant="primary"]:hover {
  background: var(--primary-hover);
}

.btn[data-variant="secondary"] {
  background: var(--secondary);
  color: var(--fg);
}

.btn[data-variant="secondary"]:hover {
  background: var(--secondary-hover);
}

.hero .btn[data-variant="secondary"] {
  background: #e3e7ee;
  color: var(--navy);
}

.hero .btn[data-variant="secondary"]:hover {
  background: #d6dce6;
}

.btn[data-size="sm"] {
  padding: 6px 12px;
  font-size: var(--text-sm);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.logo rect {
  fill: var(--ink);
}

.logo path {
  fill: none;
  stroke: var(--fg-on-ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.topbar {
  --bg: var(--navy);
  --focus: var(--primary);
  background: var(--navy);
  color: var(--navy-fg);
  border-bottom: 1px solid var(--navy-line);
}

.topbarInner {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 56px;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mainNav {
  display: flex;
  gap: var(--space-5);
  min-width: 0;
}

.mainNav a {
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.mainNav a:hover {
  border-bottom-color: var(--primary);
}

.signIn {
  margin-left: auto;
}

.hero {
  --bg: var(--navy);
  --focus: var(--primary);
  --ink: var(--navy-fg);
  --fg-on-ink: var(--navy);
  background: var(--navy);
  color: var(--navy-fg);
  padding: var(--space-8) 0;
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-7);
  align-items: center;
}

.heroText {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.kicker {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary);
}

.headline {
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--navy-fg-2);
  max-width: 58ch;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.cta {
  font-size: var(--text-lg);
  padding: 14px 26px;
}

.heroNote {
  font-size: var(--text-sm);
  color: var(--navy-fg-2);
}

.heroNote a {
  color: var(--navy-fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.heroNote a:hover {
  text-decoration-color: var(--primary);
}

.yard {
  display: block;
  width: 520px;
  max-width: 100%;
  height: auto;
  font-family: var(--font-mono);
  overflow: visible;
}

.yard .ditherInk {
  fill: var(--navy-fg-2);
}

.yard .rails path {
  fill: none;
  stroke: var(--navy-fg-2);
  stroke-width: 2;
}

.yard .packets path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 4;
  stroke-dasharray: 8 300;
  stroke-dashoffset: 300;
  animation: run 3.2s linear infinite;
}

.yard .packets path:nth-child(2) {
  animation-delay: 1.1s;
}

.yard .packets path:nth-child(3) {
  animation-delay: 2.2s;
}

@keyframes run {
  to {
    stroke-dashoffset: 0;
  }
}

.yard .arrowHead {
  fill: var(--navy-fg-2);
}

.yard .face {
  fill: var(--navy);
  stroke: var(--navy-fg);
  stroke-width: 2;
}

.yard .face.main {
  fill: var(--navy-fg);
}

.yard text {
  fill: var(--navy-fg);
  font-size: 13px;
}

.yard .name {
  font-weight: 700;
}

.yard .onMain {
  fill: var(--navy);
}

.yard .note,
.yard .label {
  fill: var(--navy-fg-2);
  font-size: 11px;
}

.yard .clear {
  fill: var(--navy-clear);
  font-size: 12px;
  font-weight: 700;
}

.yard .signal text {
  fill: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.yard .signal rect {
  fill: var(--primary);
}

.yard .signalLine {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.section {
  padding: var(--space-8) 0 0;
}

.rule {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-md);
  margin-bottom: var(--space-7);
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
}

.rule span {
  text-align: center;
}

.grid {
  display: grid;
  gap: var(--space-7) var(--space-6);
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.box {
  position: relative;
  border: 2px solid var(--box-border);
  background: var(--bg-canvas);
  padding: var(--space-6) var(--space-5) var(--space-5);
  margin: 0 8px 8px 0;
  min-width: 0;
}

.box::after {
  content: "";
  position: absolute;
  inset: 6px -10px -10px 6px;
  background: var(--dither);
  z-index: -1;
  pointer-events: none;
}

.box p {
  color: var(--fg-2);
  line-height: 1.7;
}

.boxTitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 var(--space-2);
  width: fit-content;
  max-width: 100%;
  margin: calc(-1 * var(--space-6) - 0.75em - 1px) 0 var(--space-4) calc(-1 * var(--space-2));
  padding: 0 var(--space-2);
  background: var(--bg-canvas);
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--fg);
}

.step {
  color: var(--accent-text);
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  padding: 0 6px;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.6;
  color: var(--accent-text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: var(--space-4);
  border-left: 1px solid var(--border);
  min-width: 0;
}

.stat:first-child {
  padding-left: 0;
  border-left: none;
}

.stat dt {
  order: 2;
  color: var(--fg-2);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.statValue {
  order: 1;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.caption {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.products li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 2px solid var(--box-border);
  min-width: 0;
}

.products strong {
  font-size: var(--text-lg);
}

.products strong::before {
  content: "▪ " / "";
  color: var(--primary);
}

.products span {
  color: var(--fg-2);
  line-height: 1.7;
}

.waitlist {
  padding-bottom: var(--space-8);
}

.waitlistBox {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-7);
  padding: var(--space-7) var(--space-6);
}

.waitlistText {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.waitlistText h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  letter-spacing: -0.02em;
}

.waitlistText p {
  max-width: 48ch;
}

.waitlistText .faint {
  color: var(--fg-3);
  font-size: var(--text-sm);
}

form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
}

.field label .faint {
  font-weight: 400;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--fg-3);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: var(--text-lg);
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg-2) 50%),
    linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position:
    right 20px center,
    right 15px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field input:hover,
.field select:hover {
  border-color: var(--fg-2);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: var(--border-strong);
}

.field [aria-invalid="true"] {
  border-color: var(--stop);
}

.fieldError {
  color: var(--stop);
  font-size: var(--text-sm);
  font-weight: 500;
}

.fieldError:empty {
  display: none;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form .btn {
  align-self: flex-start;
  margin-top: var(--space-2);
  font-size: var(--text-lg);
  padding: 12px 26px;
}

.formStatus {
  color: var(--stop);
  font-size: var(--text-sm);
  font-weight: 500;
}

.formStatus:empty {
  display: none;
}

.joined {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 2px solid var(--clear);
  background: var(--bg);
}

.joined h3 {
  font-size: var(--text-xl);
  color: var(--clear);
}

.joined h3::before {
  content: "✓ " / "";
}

.joined p {
  color: var(--fg-2);
}

.joined a,
.notice a:not(.btn) {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-8) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

.notice h1 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.02em;
}

.notice p {
  color: var(--fg-2);
  font-size: var(--text-lg);
}

.footer {
  background: var(--navy);
  color: var(--navy-fg);
  border-top: 1px solid var(--navy-line);
  padding: var(--space-7) 0;
  --bg: var(--navy);
  --focus: var(--primary);
  --ink: var(--navy-fg);
  --fg-on-ink: var(--navy);
}

.footerInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5) var(--space-7);
  align-items: start;
}

.footerBrand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footerBrand p,
.copyright {
  color: var(--navy-fg-2);
  font-size: var(--text-sm);
  max-width: 52ch;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.footerLinks a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 4px 0;
}

.footerLinks a:hover {
  border-bottom-color: var(--primary);
}


@media (max-width: 1080px) {
  .heroGrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stats,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }

  .waitlistBox {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: var(--space-4);
  }

  .mainNav {
    display: none;
  }

  .grid.two {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-6);
  }

  .hero {
    padding: var(--space-7) 0;
  }

  .section {
    padding-top: var(--space-7);
  }

  .rule {
    margin-bottom: var(--space-6);
  }

  .box {
    padding: var(--space-6) var(--space-4) var(--space-4);
  }

  .waitlistBox {
    padding: var(--space-6) var(--space-4) var(--space-5);
  }

  .footerInner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .yard {
    display: none;
  }

  .ctas .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 480px) {
  .stats,
  .products {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat {
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
  }

  .stat:first-child {
    padding-top: 0;
    border-top: none;
  }
}

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

  .yard .packets {
    display: none;
  }

  .btn {
    transition: none;
  }
}
