/* ============================================
   dev.fast — homepage
   Dark single-column document · Geist Mono + Inter Tight
   ============================================ */

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

:root {
  /* Surfaces */
  --bg: #070809;
  --surface: #0a0d0b;
  --border: #18201b;

  /* Text */
  --text-bright: #e6eae8;
  --text-mid: #9ba29c;
  --text-muted: #5c635f;
  --text-faint: #4d544e;

  /* Accent */
  --mint: #7cf5b0;
  --on-mint: #07120b;

  /* Type — swap --font-display to "Inter Tight" or "Inter" */
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Inter Tight", "Inter", -apple-system, sans-serif;

  --col: 620px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text-bright);
  font-family: var(--font-mono);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Page shell --- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.content {
  display: flex;
  flex-direction: column;
  width: var(--col);
  max-width: 100%;
  padding: 64px 0 0;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    filter 0.28s ease;
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .content {
  opacity: 0.18;
  transform: translateY(10px);
  filter: blur(1px);
}

body.intro-complete .content {
  animation: page-in 0.32s ease both;
}

@keyframes page-in {
  from {
    opacity: 0.82;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text-bright);
}

.logo-accent {
  color: var(--mint);
}

.cursor {
  width: 9px;
  height: 17px;
  margin-left: 4px;
  background: var(--mint);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.nav-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-mid);
}

.nav-tag .sep {
  color: var(--text-faint);
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 42px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 49px;
  letter-spacing: -0.03em;
  color: var(--text-bright);
}

.tagline {
  font-size: 15.5px;
  line-height: 25px;
  color: var(--text-mid);
  max-width: 600px;
}

.tagline .hl {
  color: var(--mint);
}

.lede {
  font-size: 13.5px;
  line-height: 23px;
  color: var(--text-muted);
  max-width: 600px;
}

/* --- Early access --- */
.access {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-bottom: 50px;
}

.section-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.access-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
  height: 47px;
}

.access-input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-bright);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.access-input::placeholder {
  color: var(--text-faint);
}

.access-input:focus {
  border-color: #2c3a31;
}

.access-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 22px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--on-mint);
  background: var(--mint);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.access-btn:hover {
  opacity: 0.88;
}

.access-success {
  font-size: 13.5px;
  color: var(--mint);
  height: 47px;
  display: none;
  align-items: center;
}

.access.is-done .access-form {
  display: none;
}

.access.is-done .access-success {
  display: flex;
}

/* --- What we're building --- */
.building {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding: 26px 0 44px;
}

.building .section-label {
  letter-spacing: 0.08em;
}

.row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
}

body.intro-complete .building .row {
  opacity: 0;
  transform: translateY(-8px);
  animation: waterfall-fade-in 0.45s ease-out forwards;
  animation-delay: calc(380ms + ((sibling-index() - 2) * 75ms));
}

@keyframes waterfall-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row-num {
  width: 28px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--mint);
}

.row-mid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.row-title {
  font-size: 15px;
  color: var(--text-bright);
}

.row-blurb {
  font-size: 13px;
  line-height: 21px;
  color: var(--text-muted);
}

.row-status {
  width: 46px;
  flex-shrink: 0;
  text-align: right;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.row-status.live {
  color: var(--mint);
}

.row-status.soon {
  color: var(--text-faint);
}

/* --- Footer --- */
.footer {
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-top: 1px solid var(--border);
  padding: 26px 0 64px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-mid);
}

.footer-tagline .muted {
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--mint);
}

.footer-links a {
  transition: opacity 0.15s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}

.yc-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yc-logo {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.yc-badge span {
  font-size: 12px;
  color: var(--text-mid);
}

/* --- Intro terminal --- */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 8, 9, 0.9);
  opacity: 1;
  transition: opacity 0.28s ease;
}

body.intro-active .intro-overlay {
  display: flex;
}

.intro-overlay.is-dismissing {
  opacity: 0;
  pointer-events: none;
}

.intro-terminal {
  width: min(560px, 100%);
  overflow: hidden;
  color: var(--text-mid);
  background: rgba(10, 13, 11, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow:
    0 0 0 1px rgba(124, 245, 176, 0.03),
    0 22px 70px rgba(0, 0, 0, 0.42);
}

.intro-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.intro-dots {
  display: flex;
  gap: 8px;
}

.intro-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #27312b;
}

.intro-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-faint);
}

.intro-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 162px;
  padding: 25px 22px 24px;
  font-size: 14px;
  line-height: 20px;
}

.intro-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 20px;
  white-space: nowrap;
}

.intro-prompt,
.intro-ok {
  color: var(--mint);
}

.intro-command {
  color: var(--text-bright);
}

.intro-typed::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 15px;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--mint);
  animation: blink 1.1s step-end infinite;
}

.intro-status {
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.intro-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-arrow {
  color: var(--text-faint);
}

.intro-cursor {
  width: 8px;
  height: 15px;
  background: var(--mint);
  animation: blink 1.1s step-end infinite;
}

/* --- Responsive --- */
@media (max-width: 680px) {
  .content {
    padding: 40px 24px 0;
  }

  .nav {
    position: relative;
    margin-bottom: 34px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
  }

  .nav-tag {
    display: none;
  }

  .headline {
    font-size: 36px;
    line-height: 39px;
  }

  .access {
    gap: 10px;
  }

  .access .section-label {
    font-size: 10.5px;
    line-height: 16px;
    letter-spacing: 0.08em;
  }

  .access-form {
    flex-direction: column;
    gap: 9px;
    height: auto;
  }

  .access-input,
  .access-btn {
    flex: none;
    width: 100%;
    height: 42px;
  }

  .access-input {
    padding: 0 12px;
    font-size: 12px;
  }

  .access-btn {
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.01em;
  }

  .row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 46px;
    column-gap: 18px;
    row-gap: 8px;
    align-items: baseline;
  }

  .row-mid {
    display: contents;
  }

  .row-title {
    grid-column: 2;
    grid-row: 1;
  }

  .row-blurb {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .row-status {
    grid-column: 3;
    grid-row: 1;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-links {
    align-self: center;
    width: min(210px, 100%);
    justify-content: space-between;
    gap: 0;
  }

  .yc-badge {
    align-self: center;
  }

  .intro-overlay {
    align-items: flex-start;
    padding-top: 31vh;
  }

  .intro-body {
    gap: 10px;
    min-height: 154px;
    padding: 22px 17px 21px;
    font-size: 12px;
    line-height: 18px;
  }

  .intro-line {
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .intro-terminal {
    border-radius: 7px;
  }

  .intro-line {
    white-space: normal;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
