/* ---------- Investors page ---------- */

body.inv {
  /* override the home page's strict viewport-fit so the form can scroll */
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Investors page doesn't use the framework PNG background — keep focus on the form */
.bg-framework { display: none; }

/* ---------- Header ---------- */

.inv-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.back-link {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.85);
  outline: none;
}

.inv-wordmark {
  height: 32px;
  width: auto;
  display: block;
}

/* ---------- Main ---------- */

.inv-main {
  position: relative;
  z-index: 4;
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

/* ---------- Intro ---------- */

.inv-intro {
  text-align: center;
  margin: 16px 0 40px;
  animation: fade-up 0.6s ease both;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid rgba(232, 82, 31, 0.3);
  border-radius: 4px;
  background: rgba(232, 82, 31, 0.06);
}

.inv-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.inv-lede {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Form ---------- */

.inv-form {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 50px -30px rgba(31, 41, 55, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fade-up 0.7s ease 0.1s both;
}

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

.field label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field label .opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.7;
  margin-left: 4px;
}

.field input,
.field textarea {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 15px;
  color: var(--ink);
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  resize: vertical;
}

.field textarea {
  min-height: 110px;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 82, 31, 0.12);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

/* ---------- Submit ---------- */

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 11px 22px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, gap 0.2s ease;
  box-shadow: 0 6px 16px -8px rgba(232, 82, 31, 0.6);
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: #c8451a;
  outline: none;
  gap: 12px;
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn[disabled] {
  background: var(--muted);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.submit-btn:hover .btn-arrow,
.submit-btn:focus-visible .btn-arrow {
  transform: translateX(2px);
}

.form-status {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  min-height: 1.2em;
}

.form-status.is-success { color: #15803d; }
.form-status.is-error   { color: #dc2626; }

/* ---------- Mobile ---------- */

@media (max-width: 560px) {
  .inv-header { padding: 18px 20px; }
  .inv-wordmark { height: 28px; }
  .inv-main { padding: 16px 20px 60px; }
  .inv-form { padding: 22px 20px 20px; }
  .form-actions { justify-content: center; }
}

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  .inv-intro,
  .inv-form { animation: none; }
}
