:root {
  --bg: #0A0A0A;
  --fg: #F5F5F0;
  --fg-dim: #8A8A85;
  --fg-dimmer: #5A5A55;
  --accent: #D97706;
  --accent-hover: #B45309;
  --border: #1F1F1F;
  --surface: #111111;
  --max-width: 880px;
  --gap: 1.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  flex: 1;
}

@media (min-width: 720px) {
  main {
    padding: 6rem 2rem;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

a:hover {
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  margin-bottom: 6rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 4rem;
  font-family: 'Inter', monospace;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  color: var(--accent);
  font-weight: 600;
}

.brand .name {
  color: var(--fg);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  max-width: 700px;
}

.lede {
  font-size: 1.125rem;
  color: var(--fg-dim);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.55;
}

/* Waitlist form */
.waitlist {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 480px;
}

.waitlist input[type="email"] {
  flex: 1;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 120ms ease;
}

.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist input[type="email"]::placeholder {
  color: var(--fg-dimmer);
}

.waitlist button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 120ms ease;
}

.waitlist button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.waitlist button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--fg-dim);
  min-height: 1.25rem;
}

.form-note.success {
  color: var(--accent);
}

.form-note.error {
  color: #DC2626;
}

/* Sections */
section {
  margin-bottom: 5rem;
}

h2 {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  margin-bottom: 2rem;
}

/* Primitives grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid .primitive:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
}

@media (min-width: 1000px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid .primitive:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .grid .primitive:nth-child(3n) {
    border-right: none;
  }
  .grid .primitive:nth-child(3n+1) {
    border-right: 1px solid var(--border);
  }
  .grid .primitive:nth-child(3n+2) {
    border-right: 1px solid var(--border);
  }
}

.primitive {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 720px) {
  .primitive {
    padding: 1.75rem 1.5rem;
  }
  .grid .primitive:nth-child(odd) {
    padding-left: 0;
  }
}

.primitive .num {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.5rem;
}

.primitive h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.primitive p {
  font-size: 0.9375rem;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* Thesis */
.thesis p {
  font-size: 1rem;
  color: var(--fg-dim);
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.thesis p:last-child {
  color: var(--fg);
}

/* Building in public */
.building-in-public p {
  font-size: 1rem;
  color: var(--fg-dim);
  max-width: 560px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 4rem;
}

.footer-line {
  font-size: 0.875rem;
  color: var(--fg-dimmer);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  color: var(--fg-dimmer);
}

.footer-line a {
  color: var(--fg-dim);
}

.footer-line a:hover {
  color: var(--fg);
  border-bottom-color: var(--fg-dim);
}

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