/* ---------- Fonts (self-hosted, latin + latin-ext subsets) ---------- */
@font-face { font-family: 'Manrope'; font-weight: 300 600; font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 300 600; font-display: swap;
  src: url('assets/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Raleway'; font-weight: 600; font-display: swap;
  src: url('assets/fonts/raleway-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Raleway'; font-weight: 600; font-display: swap;
  src: url('assets/fonts/raleway-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap;
  src: url('assets/fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --bg: #05070a;
  --text: #f2f4f7;
  --text-soft: #e6eaf0;
  --label: #c3cbd6;
  --muted: #8a94a1;
  --placeholder: #7d8794;
  --accent: #b8d4f2;
  --accent-btn: #e6eef8;
  --error: #ff9b8f;
  --field-bg: rgba(10, 14, 20, 0.72);
  --field-border: rgba(184, 212, 242, 0.28);
  --shadow-strong: 0 1px 3px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.9), 0 0 28px rgba(0,0,0,0.7);
  --shadow-label: 0 1px 3px rgba(0,0,0,0.95), 0 0 12px rgba(0,0,0,0.85);
  --mobile-bp: 820px; /* reference only; media queries below hardcode it */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body { font-family: 'Manrope', system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); } a:hover { color: #fff; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px #0b0f15 inset; }

/* ---------- Layout ---------- */
.page { position: relative; min-height: 100vh; width: 100%; overflow: hidden; background: var(--bg); }

.bg {
  position: absolute; inset: 0;
  background: url('assets/bg-desktop.webp') no-repeat;
  background-size: cover;
  background-position: 70% center;
}
.overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,7,10,0.85) 0%, rgba(5,7,10,0.55) 35%, rgba(5,7,10,0) 60%);
}
.content {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(28px, 6vw, 96px) clamp(22px, 7vw, 120px);
}
.stack { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: clamp(28px, 4vw, 44px); }

@media (max-width: 819.98px) {
  .bg { background-image: url('assets/bg-mobile.webp'); background-size: 210% auto; background-position: 88% 0%; }
  .overlay { background: linear-gradient(180deg, rgba(5,7,10,0) 0px, rgba(5,7,10,0) 160px, rgba(5,7,10,0.7) 320px, var(--bg) 440px); }
  .content { justify-content: flex-end; }
}

/* ---------- Intro ---------- */
.intro { display: flex; flex-direction: column; gap: 20px; }
.intro h1 {
  margin: 0; font-family: 'Raleway', sans-serif; font-weight: 600; text-transform: uppercase;
  font-size: clamp(44px, 6.4vw, 84px); letter-spacing: -0.03em; line-height: 0.95;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.9);
}
.intro p {
  margin: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--text-soft);
  text-shadow: var(--shadow-strong); text-wrap: pretty;
}

/* ---------- Form ---------- */
form { display: flex; flex-direction: column; gap: 22px; }
/* Needed because the rule above outranks the UA's [hidden] { display: none }. */
form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.label, .eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.label { color: var(--label); text-shadow: var(--shadow-label); }
.req { color: var(--accent); }
.opt { text-transform: none; letter-spacing: 0; color: var(--muted); }

input, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--field-bg); border: 1px solid var(--field-border); border-radius: 4px;
  outline: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: border-color .15s;
}
input { height: 50px; padding: 0 16px; }
textarea { min-height: 112px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--error); }

.error { font-size: 13px; color: var(--error); }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }

.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 4px; }
.btn {
  height: 52px; padding: 0 30px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid var(--accent-btn); border-radius: 4px; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn--solid { background: var(--accent-btn); color: var(--bg); }
.btn--outline { background: transparent; color: var(--text); }
.btn:hover:not(:disabled) { background: #fff; color: var(--bg); }
.btn:disabled { cursor: progress; opacity: .8; }

/* ---------- Success ---------- */
.success { display: flex; flex-direction: column; gap: 10px; padding: 24px 0; border-top: 1px solid rgba(184,212,242,0.35); }
.success[hidden] { display: none; }
.eyebrow { color: var(--accent); }
.success p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-soft); }
