/* One Step North – Register Your Interest */
:root {
  --bg: #070a0f;
  --bg-2: #0e131a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #e8edf3;
  --muted: #98a4b3;
  --accent: #00d2ff;
  --accent-2: #3a7bd5;
  --accent-ink: #06202a;
  --danger: #ff6b6b;
  --success: #38d996;
  --radius: 16px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 210, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 100%, rgba(58, 123, 213, 0.18), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: #fff; }
::selection { background: rgba(0, 210, 255, 0.35); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { height: 40px; width: auto; display: block; }
.header-links { display: flex; gap: 22px; font-size: 14px; }
.header-links a { color: var(--muted); text-decoration: none; }
.header-links a:hover { color: #fff; }

/* ---------- Layout ---------- */
main { flex: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0 80px;
}
.intro { position: sticky; top: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}
h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 32px; max-width: 46ch; }
.steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.steps li strong { color: var(--text); display: block; font-weight: 600; }
.steps .num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.trust { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--panel-border); border-radius: 999px; background: var(--panel); }
.trust svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Card / form ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  position: relative;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.card .sub { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 600; color: #cfd7e1; }
label .req { color: var(--accent); margin-left: 3px; }
label .opt { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 12px; }
.input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: rgba(7, 10, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  outline: none;
}
.input::placeholder { color: #5d6b7a; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.15); background: rgba(7, 10, 15, 0.85); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 120px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--muted); }
.error { font-size: 12.5px; color: var(--danger); min-height: 0; }
.counter { text-align: right; }

.checks { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 4px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: #cfd7e1; font-weight: 400; cursor: pointer; }
.check input {
  appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(7, 10, 15, 0.6); display: grid; place-items: center;
}
.check input:checked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check input:focus-visible { box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.2); }
.check a { text-decoration: underline; }
.check .error { grid-column: 2; }

.actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.btn {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border: 0; border-radius: 10px; padding: 13px 26px;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.25);
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 210, 255, 0.35); color: var(--accent-ink); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--panel-border); box-shadow: none; }
.btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(6, 32, 42, 0.3); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.secure-note { font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.secure-note svg { width: 14px; height: 14px; color: var(--success); }

.alert { border-radius: 10px; padding: 14px 16px; font-size: 14px; margin-bottom: 20px; border: 1px solid; }
.alert-error { background: rgba(255, 107, 107, 0.08); border-color: rgba(255, 107, 107, 0.35); color: #ffb3b3; }
.alert-success { background: rgba(56, 217, 150, 0.08); border-color: rgba(56, 217, 150, 0.35); color: #b8f2d8; }

/* honeypot – off-screen, still "visible" to naive bots */
.hp-wrap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 20px 8px; }
.success .tick { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--success), #1fb37a); color: #062a1c; box-shadow: 0 16px 40px rgba(56, 217, 150, 0.3); }
.success .tick svg { width: 34px; height: 34px; }
.success h2 { font-size: 26px; margin-bottom: 8px; }
.success p { color: var(--muted); max-width: 44ch; margin: 0 auto 12px; }
.success .ref { display: inline-block; margin: 10px 0 22px; padding: 8px 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--panel-border); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 34px 0 120px; font-size: 13px; color: var(--muted); background: rgba(0, 0, 0, 0.25); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; align-items: start; }
.site-footer img { height: 28px; width: auto; opacity: 0.85; margin-bottom: 12px; }
.site-footer h4 { margin: 0 0 8px; color: var(--text); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }

/* ---------- Privacy modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 8, 0.72); backdrop-filter: blur(4px); }
.modal-dialog {
  position: relative; width: min(860px, 100%); max-height: min(88vh, 900px); display: flex; flex-direction: column;
  background: #0f151d; border: 1px solid var(--panel-border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--panel-border); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-close { background: transparent; border: 1px solid var(--panel-border); color: var(--text); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 18px; line-height: 1; }
.modal-close:hover { border-color: #fff; }
.modal-body { overflow: auto; padding: 8px 24px 24px; scrollbar-width: thin; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid var(--panel-border); background: rgba(255, 255, 255, 0.02); font-size: 13px; color: var(--muted); }

/* policy typography (modal + privacy page) */
.policy { font-size: 14.5px; color: #cfd7e1; }
.policy-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); padding: 14px 0 4px; }
.policy h3 { font-size: 19px; margin: 30px 0 10px; color: #fff; letter-spacing: -0.01em; }
.policy h4 { font-size: 15.5px; margin: 22px 0 6px; color: #fff; }
.policy h5 { font-size: 14px; margin: 16px 0 4px; color: var(--accent); font-weight: 600; }
.policy p { margin: 0 0 10px; }
.policy ul { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin-bottom: 4px; }
.policy hr { border: 0; border-top: 1px solid var(--panel-border); margin: 30px 0; }

.page-narrow { width: min(860px, 100% - 32px); margin: 48px auto 80px; }
.page-narrow .card { padding: 40px; }

/* ---------- Accept bar ---------- */
.consent-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(10, 14, 20, 0.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--panel-border);
  padding: 16px 0;
  transform: translateY(0); transition: transform 0.3s ease;
}
.consent-bar.hide { transform: translateY(110%); }
.consent-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.consent-inner p { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 72ch; }
.consent-inner p a { text-decoration: underline; }
.consent-actions { display: flex; gap: 10px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 60px; }
  .intro { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .header-links { display: none; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .site-footer { padding-bottom: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Source chip (QR-tagged visit) ---------- */
.source-chip { display: inline-flex; align-items: center; gap: 8px; margin: -14px 0 22px; padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--accent); background: rgba(0, 210, 255, 0.08); border: 1px solid rgba(0, 210, 255, 0.3); }
.source-chip svg { width: 14px; height: 14px; }
.source-chip strong { color: #fff; font-weight: 600; }
