:root {
  --bg-dark: #0b0e13;
  --bg-lift: #141a22;
  --ink-on-dark: #e8edf4;
  --muted-dark: #a8b2c0;
  --hairline: rgba(232, 237, 244, 0.14);
  --slate: #f4f6f8;
  --surface: #ffffff;
  --ink: #0b0e13;
  --muted: #5a6573;
  --border: #d5dbe3;
  --signal: #00ad5e;
  --signal-deep: #008a4a;
  --signal-ink: #06120f;
  --nav-h: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

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

img { max-width: 100%; }

button, input, textarea { font: inherit; }

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

.wrap {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

/* Nav */

.nav-wrap {
  position: relative;
  z-index: 2;
}

nav {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 0;
  display: block;
  flex: none;
}

.brand span {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--ink-on-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.nav-cta:hover { background: var(--slate); }

.nav-back {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-dark);
  transition: color 0.2s ease;
}

.nav-back:hover { color: var(--ink-on-dark); }

/* Hero */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - 108px);
  min-height: calc(100svh - var(--nav-h) - 108px);
  display: flex;
  align-items: flex-start;
  padding: 64px 0 48px;
  overflow: hidden;
}

.mesh {
  position: absolute;
  top: -80px;
  right: max(-40px, calc(50% - 760px));
  width: 560px;
  height: 460px;
  background:
    radial-gradient(ellipse at 55% 45%, rgba(0, 173, 94, 0.2), transparent 58%),
    radial-gradient(ellipse at 40% 60%, rgba(0, 90, 48, 0.16), transparent 62%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 64px));
}

.eyebrow,
.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}

.eyebrow { margin-bottom: 28px; }

h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-on-dark);
}

.line { display: block; }

h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--signal);
}

.word {
  display: inline-block;
}

.lead {
  margin-top: 28px;
  max-width: 34rem;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 600;
}

.btn-primary:hover { background: var(--signal-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink-on-dark);
  border-color: rgba(232, 237, 244, 0.28);
  font-weight: 500;
}

.btn-ghost:hover { border-color: rgba(232, 237, 244, 0.55); }

.btn:disabled { cursor: default; opacity: 0.72; }

/* Bands */

.band {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 72px;
}

.label { margin-bottom: 16px; }

h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18em;
  color: var(--ink-on-dark);
}

.band .body {
  margin-top: 18px;
  max-width: 36rem;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted-dark);
}

.slate {
  background: var(--slate);
  color: var(--ink);
}

.slate .band { border-top-color: transparent; }

.slate h2 { color: var(--ink); }

.help {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.help li {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 14px;
  align-items: baseline;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.help .n {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  color: var(--signal);
}

/* Start */

.start {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.start-form {
  max-width: 720px;
}

.start h1 {
  max-width: none;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  margin-top: 16px;
}

.start .lead {
  margin-top: 16px;
  margin-bottom: 28px;
  max-width: 38rem;
  font-size: 17px;
}

form { display: grid; gap: 18px; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

input,
textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(232, 237, 244, 0.28);
  border-radius: 6px;
  color: var(--ink-on-dark);
  font-size: 15px;
  padding: 13px 14px;
  color-scheme: dark;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder { color: #7e8896; }

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--signal);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink-on-dark);
  caret-color: var(--ink-on-dark);
  box-shadow: 0 0 0 1000px var(--bg-dark) inset;
  transition: background-color 9999s ease-out;
}

form .btn { justify-self: start; margin-top: 6px; }

.form-status {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-dark);
}

.form-status[data-state="ok"] { color: var(--signal); }

.alt {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted-dark);
}

.alt a {
  color: var(--signal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */

footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--hairline);
}

.foot {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
  padding: 22px 0;
  font-size: 13px;
  color: var(--muted-dark);
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .mesh { animation: mesh 16s ease-in-out infinite; }

  .word {
    opacity: 0;
    transform: translateY(0.45em);
    animation: word-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: calc(var(--d) * 70ms + 80ms);
  }

  .hero-rise {
    opacity: 0;
    transform: translateY(16px);
    animation: rise 0.8s ease forwards;
  }

  .hero-rise.d1 { animation-delay: 0.5s; }
  .hero-rise.d2 { animation-delay: 0.64s; }

  .js .rise {
    opacity: 0;
    transform: translateY(18px);
  }

  .js .rise.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .word, .hero-rise, .rise, .mesh {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes mesh {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-32px, 18px, 0) scale(1.05); }
}

@keyframes word-in {
  to { opacity: 1; transform: none; }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .wrap,
  nav,
  .hero-inner,
  .start,
  .foot {
    width: min(1120px, calc(100% - 40px));
  }

  .hero {
    min-height: 0;
    padding: 48px 0 56px;
  }

  .line { display: inline; }
  .line + .line::before { content: " "; }

  .row { grid-template-columns: 1fr; }

  .start { padding-top: 40px; }
}
