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

:root {
  --bg:            #0A0B0D;
  --surface:       #111316;
  --surface-2:     #16191D;
  --border:        #1E2228;
  --border-strong: #2A2F36;

  --text:          #E8E8E3;
  --text-muted:    #8A8F98;
  --text-dim:      #5C616A;

  --accent:        #6FAE7C;
  --accent-hover:  #8CC699;
  --accent-dim:    #3F6B4A;

  --ok:            #7BB97E;
  --error:         #D08A8A;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-brand: "Host Grotesk", "IBM Plex Sans", system-ui, sans-serif;

  --brand:         #22c55e;

  --topbar-h: 56px;
  --footbar-h: 44px;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(111, 174, 124, 0.07), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(111, 174, 124, 0.04), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #07080A 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }

/* ------- Frame: single viewport, footer below the fold ------- */
.frame {
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr var(--footbar-h);
  min-height: 100vh;
}

/* ------- Topbar ------- */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 24px;
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0;
  color: var(--text);
  border-bottom: none;
  padding-bottom: 0;
  line-height: 1;
}
.wordmark:hover { color: var(--text); }

.wordmark-mark {
  width: 36px;
  height: 36px;
  margin-right: -4px;
  display: inline-block;
}

.wordmark-text { display: inline-block; }
.wordmark-tld { color: var(--brand); }

.topbar-index {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.hairline {
  width: 28px;
  height: 1px;
  background: var(--border-strong);
  display: inline-block;
}

.topbar-status {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(111, 174, 124, 0.12);
  display: inline-block;
}

/* ------- Stage: split panels ------- */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  min-height: 0;
}

.panel {
  display: flex;
  padding: 56px 56px;
  min-height: 0;
}

.panel--intro {
  border-right: 1px solid var(--border);
  align-items: stretch;
}

.panel--form {
  background:
    linear-gradient(180deg, rgba(22, 25, 29, 0.35), rgba(17, 19, 22, 0.2));
}

.panel-inner {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.panel--intro .panel-inner { justify-content: space-between; }
.panel--form .panel-inner { justify-content: center; gap: 28px; }

/* ------- Intro panel content ------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-rule {
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
  display: inline-block;
}

.headline {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 24px 0 24px;
  color: var(--text);
}

.accent-ink {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.lede {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 56ch;
}

.meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.meta-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.meta-row dt {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.meta-num {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.meta-row dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  text-align: right;
}

/* ------- Form panel ------- */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.panel-tag--dim { color: var(--text-dim); }

.form-title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.field label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field-num {
  color: var(--accent);
  font-family: var(--font-mono);
}

.field .optional {
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: none;
}

.field .req { color: var(--accent); margin-left: 2px; }

.input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s ease;
  border-radius: 0;
  width: 100%;
}
.input:focus { border-bottom-color: var(--accent); outline: none; }
.input::placeholder { color: var(--text-dim); }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-dim);
  padding: 14px 22px;
  cursor: pointer;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.btn-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.25s ease;
  z-index: 0;
}
.btn-submit > * { position: relative; z-index: 1; }
.btn-submit:hover { color: var(--bg); border-color: var(--accent); }
.btn-submit:hover::before { transform: translateX(0); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-submit:disabled:hover::before { transform: translateX(-101%); }
.btn-submit:disabled:hover { color: var(--accent); }

.btn-arrow { font-family: var(--font-mono); color: currentColor; opacity: 0.7; }
.btn-arrow--end { opacity: 0.7; }

.form-status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 174, 124, 0.12);
  display: inline-block;
}

.form-status.is-ok { color: var(--ok); }
.form-status.is-error { color: var(--error); }
.form-status.is-error .status-dot { background: var(--error); box-shadow: 0 0 0 3px rgba(208, 138, 138, 0.14); }
.form-status.is-empty { visibility: hidden; }

/* ------- Footbar ------- */
.footbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 28px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.footbar .sep { color: var(--text-dim); }

/* ------- Responsive ------- */
@media (max-width: 1024px) {
  .panel { padding: 44px 40px; }
  .topbar { padding: 0 20px; }
}

@media (max-width: 820px) {
  :root { --topbar-h: 52px; --footbar-h: auto; }

  .frame { grid-template-rows: var(--topbar-h) 1fr auto; min-height: 100vh; }

  .topbar { grid-template-columns: 1fr auto; gap: 16px; }
  .topbar-index { display: none; }

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

  .panel--intro {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .panel { padding: 40px 24px; }
  .panel-inner { max-width: none; }

  .headline { font-size: clamp(34px, 9vw, 46px); margin-top: 20px; }

  .footbar {
    flex-wrap: wrap;
    padding: 16px 24px;
    justify-content: flex-start;
    line-height: 1.8;
  }
  .footbar .sep { display: none; }
  .footbar span { display: inline-block; width: 100%; }
}
