@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #07080a;
  --surface: #0e1117;
  --surface-raised: #151922;
  --surface-hover: #1c222e;
  --line: #222834;
  --line-subtle: #181d26;
  --line-active: #323b4d;
  --text: #f4f5f8;
  --text-muted: #949daf;
  --text-dim: #60687a;
  --amber: #e5a93c;
  --amber-hover: #f0be5b;
  --amber-glow: rgba(229, 169, 60, 0.16);
  --amber-tint: rgba(229, 169, 60, 0.06);
  --amber-dark: #1c1508;
  --tally: #e5484d;
  --tally-glow: rgba(229, 72, 77, 0.4);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle 900px at 50% -150px, rgba(229, 169, 60, 0.07), transparent 70%),
    radial-gradient(circle 800px at 80% 40%, rgba(30, 41, 59, 0.25), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@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;
  }
}

::selection {
  background: var(--amber);
  color: var(--amber-dark);
}

a {
  color: inherit;
  transition: color 0.15s ease;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  background: var(--amber);
  color: var(--amber-dark);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  z-index: 100;
  transition: transform 0.2s ease;
}

.skip:focus {
  transform: translateY(0.5rem);
}

.shell {
  width: min(1040px, calc(100% - 3rem));
  margin-inline: auto;
}

/* Site Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--line-subtle);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.tally {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tally);
  box-shadow: 0 0 8px var(--tally);
  animation: pulse-tally 2.8s ease-in-out infinite;
}

@keyframes pulse-tally {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.9); }
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  max-width: 54rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 750;
  font-size: clamp(2.35rem, 5.2vw, 3.85rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 28ch;
  text-wrap: balance;
}

.lede {
  max-width: 39rem;
  margin: 1.5rem 0 0;
  color: var(--text-muted);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-weight: 400;
  text-wrap: pretty;
}

/* Signup Form */
.signup {
  margin-top: 2.25rem;
  max-width: 33rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.row {
  display: flex;
  gap: 0.6rem;
}

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 3.125rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: 0.95rem var(--sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.signup input[type="email"]::placeholder {
  color: var(--text-dim);
}

.signup input[type="email"]:hover {
  border-color: var(--line-active);
}

.signup input[type="email"]:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
  background: var(--surface-raised);
}

.signup input[type="email"]:user-invalid {
  border-color: var(--tally);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15);
}

.signup button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, #edd078, var(--amber));
  color: #141005;
  font: 600 0.9375rem var(--sans);
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.signup button:hover,
.button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.signup button:active,
.button:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.signup button:disabled,
.signup input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button.secondary {
  background: var(--surface-raised);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
  font-weight: 500;
}

.button.secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.hint,
.fine {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hint[data-mode="error"] {
  color: var(--tally);
}

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

.success {
  margin-top: 2rem;
  max-width: 34rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
}

.success h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.success p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.success .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

/* Steps Section */
.steps {
  margin: 4rem 0 0;
  counter-reset: step-counter;
}

.steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.steps li {
  counter-increment: step-counter;
  margin: 0;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.steps li:hover {
  border-color: rgba(229, 169, 60, 0.25);
  transform: translateY(-2px);
}

.steps li::before {
  content: "0" counter(step-counter);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: inline-block;
}

.steps h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Proof / Field Evidence */
.proof {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.9fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.proof-intro {
  max-width: 40rem;
}

.proof-intro h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--text);
}

.proof-intro p:not(.kicker) {
  margin: 0.75rem 0;
  max-width: 54ch;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.proof-intro a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.proof-intro a:hover {
  color: var(--amber-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.proof-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: center;
}

.proof-list div {
  padding: 1.15rem 1.25rem;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.proof-list dt {
  margin-bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.proof-list dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Startup Programs */
.programs {
  margin-top: 2.5rem;
  max-width: 44rem;
}

.programs .programs-label {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.programs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.programs-note {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* Scope Section */
.scope {
  margin-top: 3.5rem;
  padding: 0;
}

.scope h2 {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.scope dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scope div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scope dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.scope dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

code {
  padding: 0.15em 0.45em;
  border: 1px solid var(--line-active);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.85em;
}

/* Company Section */
.company {
  margin: 3.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.company a,
.prose a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.company a:hover,
.prose a:hover {
  color: var(--amber);
}

/* Prose / Subpages */
.prose {
  padding-bottom: 4rem;
  max-width: 48rem;
}

.prose h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.prose .hero {
  padding-bottom: 2rem;
}

.prose h2 {
  margin: 0 0 0.5rem;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.split article {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.split article p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
}

.split article a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--amber);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.split article a:hover {
  color: var(--amber-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.stack article {
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.stack article p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.note {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--amber-tint);
  border: 1px solid rgba(229, 169, 60, 0.2);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.note a {
  color: var(--text);
  font-weight: 600;
}

/* Site Footer */
.site-footer {
  padding: 2.25rem 0 3.5rem;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line-subtle);
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

/* Responsive Media Queries */
@media (max-width: 860px) {
  .steps ol {
    grid-template-columns: 1fr;
  }
  .proof {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .scope div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 2rem);
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0 1rem;
  }
  .hero {
    padding: 3rem 0 2rem;
  }
  .row {
    flex-direction: column;
  }
  .signup input[type="email"] {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .signup button,
  .button {
    width: 100%;
  }
  .proof {
    padding: 1.25rem;
  }
  .scope div {
    padding: 1rem 1.15rem;
  }
}
