/* ============================================================
   Ninja Metrics — rebuilt
   Palette & fonts preserved from original site:
   bg #1a1a1a · text #f5f5f5 · accent #FFD700
   Headings: Montserrat · Body: Inter
   ============================================================ */

:root {
  --bg: #1a1a1a;
  --bg-2: #212121;
  --bg-3: #282828;
  --text: #f5f5f5;
  --text-dim: #b5b5b5;
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.15; }

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin: 0 auto; }

section { position: relative; padding: 110px 0; z-index: 2; }
section.hero, section.cta { z-index: auto; } /* these own background canvases */

/* conditional form fields */
.cond-hidden { display: none !important; }

.section-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-title { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 18px; }
.section-sub { color: var(--text-dim); max-width: 640px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 18px 0;
  transition: background 0.35s, padding 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: rgba(26, 26, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links a:not(.btn):hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.btn-gold { color: #1a1a1a; }
.nav-links .btn { padding: 10px 24px; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 1001;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px auto; transition: 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
  will-change: transform;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: #1a1a1a; }
.btn-gold:hover { box-shadow: 0 10px 34px rgba(255, 215, 0, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

/* ---------- Ninja application steps / fee ---------- */
.form-step.hidden { display: none; }
.fee-box {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--gold-dim);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
.fee-amount {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  white-space: nowrap;
}
.fee-copy strong { display: block; margin-bottom: 6px; font-size: 15px; }
.fee-copy p { color: var(--text-dim); font-size: 13.5px; margin: 0; line-height: 1.5; }

/* ---------- Hero ---------- */
.hero {
  min-height: 70svh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  height: 70svh;
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 30% 40%, transparent 0%, rgba(26,26,26,0.55) 75%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero .container {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 62px);
  margin-bottom: 24px;
}
.hero h1 .gold { color: var(--gold); display: inline-block; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }
.hero p { color: var(--text-dim); font-size: 18px; max-width: 540px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-visual img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}
.hero-visual::before {
  content: '';
  position: absolute; inset: -40px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.10), transparent 65%);
  z-index: -1;
}
.hero-card {
  position: absolute;
  background: rgba(33, 33, 33, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 13px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.hero-card strong { color: var(--gold); font-size: 22px; font-family: var(--font-head); display: block; }
.hero-card.c1 { top: -22px; right: -14px; }
.hero-card.c2 { bottom: -24px; left: -18px; }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg-2);
  white-space: nowrap;
}
.ticker-track { display: inline-flex; gap: 60px; will-change: transform; }
.ticker-item {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.ticker-item .gold { color: var(--gold); }
.ticker-item .dot { color: var(--gold); margin: 0 0 0 58px; }

/* ---------- Dual panels (Ninja / Client) ---------- */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.panel {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 42px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.panel:hover { transform: translateY(-6px); border-color: rgba(255, 215, 0, 0.35); }
.panel::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.panel .kicker {
  font-size: 12px; letter-spacing: 0.24em; color: var(--gold);
  font-weight: 700; text-transform: uppercase; margin-bottom: 14px;
}
.panel h3 { font-size: 24px; margin-bottom: 20px; text-transform: uppercase; line-height: 1.3; }
.panel p { color: var(--text-dim); margin-bottom: 18px; font-size: 16px; }
.panel blockquote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 18px;
  font-style: italic;
  color: var(--text-dim);
  font-size: 15px;
  margin: 26px 0;
}
.panel .btn { margin-top: 8px; }

/* ---------- Feature cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 56px; }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  will-change: transform;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 215, 0, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
}
.card .icon svg { width: 26px; height: 26px; }
.card h4 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 56px 0 44px; counter-reset: step; position: relative; }
.step {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 28px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.step:hover { transform: translateY(-8px); border-color: rgba(255, 215, 0, 0.4); }
.step .num {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(255, 215, 0, 0.35);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  line-height: 1;
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease);
}
.step:hover .num {
  background: var(--gold);
  color: #1a1a1a;
  transform: scale(1.08);
}
.step h4 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15px; }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.check-list { list-style: none; margin-top: 30px; }
.check-list li {
  padding: 12px 0 12px 40px;
  position: relative;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gold-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- System banner ---------- */
.system-banner {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(255, 215, 0, 0.08), transparent),
    var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.system-banner h2 { font-size: clamp(28px, 4vw, 44px); max-width: 800px; margin: 0 auto 18px; }
.system-banner h2 .gold { color: var(--gold); }
.system-banner p { color: var(--text-dim); font-size: 19px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 60px; }
.stat { text-align: center; padding: 28px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.stat .value { font-family: var(--font-head); font-size: 44px; font-weight: 800; color: var(--gold); line-height: 1; }
.stat .value sup { font-size: 22px; }
.stat .label { color: var(--text-dim); font-size: 14px; margin-top: 10px; }

/* ---------- Group ---------- */
.group-strip { text-align: center; }
.group-strip p { max-width: 680px; margin: 0 auto 30px; color: var(--text-dim); }
.group-links { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.group-links a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  transition: color 0.25s;
}
.group-links a:hover { color: var(--gold); }
.group-links .dot { color: var(--gold); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  overflow: hidden;
}
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.5; }
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4.6vw, 52px); max-width: 760px; margin: 0 auto 20px; }
.cta p { color: var(--text-dim); max-width: 560px; margin: 0 auto 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 70px 0 34px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  display: inline-block;
  padding: 5px 0;
  transition: color 0.25s, transform 0.25s var(--ease);
}
.footer-col a:hover { color: var(--gold); transform: translateX(4px); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-dim);
  font-size: 14px;
}
.socials { display: flex; gap: 14px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 44px;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s var(--ease);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--gold), rgba(255, 215, 0, 0.15));
}
.modal h3 { font-size: 26px; margin-bottom: 8px; }
.modal .modal-sub { color: var(--text-dim); font-size: 15px; margin-bottom: 30px; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: 0;
  color: var(--text-dim);
  font-size: 26px;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, transform 0.3s var(--ease);
}
.modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); transform: rotate(90deg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13.5px; font-weight: 600; color: var(--text); }
.form-field label .req { color: var(--gold); }
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  width: 100%;
}
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5b5b5' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.12);
}
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; }
.form-note { font-size: 12.5px; color: var(--text-dim); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  display: none;
}
.form-status.success { display: block; background: rgba(80, 200, 120, 0.12); border: 1px solid rgba(80, 200, 120, 0.4); color: #7ee2a0; }
.form-status.error { display: block; background: rgba(230, 80, 80, 0.1); border: 1px solid rgba(230, 80, 80, 0.4); color: #f09a9a; }

.btn.loading { pointer-events: none; opacity: 0.7; }
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(26,26,26,0.3);
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal defaults (JS toggles) ---------- */
.reveal { opacity: 0; }
.no-js .reveal, .reduced-motion .reveal { opacity: 1; }

/* ---------- Scroll progress ---------- */
#progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 100%;
  background: var(--gold);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 950;
}

/* ---------- Nav hide-on-scroll ----------
   NOTE: no will-change/transform on .nav in its resting state — a transformed
   (or will-change: transform) ancestor becomes the containing block for the
   position:fixed mobile menu, which would break the fullscreen overlay. */
.nav.nav-hidden { transform: translateY(-110%); }
.nav, .nav.nav-hidden {
  transition: transform 0.4s var(--ease), background 0.35s, padding 0.35s, box-shadow 0.35s, top 0.3s;
}

/* ---------- Portal ---------- */
.portal-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.portal-nav { position: sticky; top: 0; transform: none !important; }
.portal-main { flex: 1; padding: 60px 0 90px; }
.portal-narrow { max-width: 560px; }
.portal-card { padding: 38px 34px; }
.portal-card:hover { transform: none; }
.portal-user { color: var(--text-dim); font-size: 14px; }
.portal-user strong { color: var(--text); }
.portal-h3 {
  font-size: 20px;
  margin: 46px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.portal-empty { color: var(--text-dim); font-size: 15px; }
.portal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.portal-table { width: 100%; border-collapse: collapse; background: var(--bg-2); font-size: 14.5px; }
.portal-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.portal-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
.portal-table tr:last-child td { border-bottom: 0; }
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}
.badge-assigned, .badge-new, .badge-pending, .badge-reviewing { background: rgba(138, 180, 255, 0.14); color: #8ab4ff; }
.badge-in_progress, .badge-scoping, .badge-reporting { background: var(--gold-dim); color: var(--gold); }
.badge-submitted { background: rgba(255, 170, 80, 0.14); color: #ffc37d; }
.badge-approved, .badge-completed, .badge-accepted { background: rgba(80, 200, 120, 0.14); color: #7ee2a0; }
.badge-declined, .badge-disabled { background: rgba(230, 80, 80, 0.12); color: #f09a9a; }
.mission-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mission-form select, .mission-form input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 10px;
}
.mission-form input[type="text"] { width: 170px; }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.portal-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 0;
  color: var(--text-dim);
  font-size: 13.5px;
}
.portal-footer a { color: var(--text-dim); }
.portal-footer a:hover { color: var(--gold); }
.stats-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px) { .stats-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats-6 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Pricing / Blog / Legal pages ---------- */
.page-section { padding-top: 150px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 42px 0 14px; }
.prose h3 { font-size: 19px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--text-dim); font-size: 16px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.price-card { position: relative; }
.price-card .price {
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--gold);
  margin: 14px 0 4px;
}
.price-card .per { color: var(--text-dim); font-size: 13.5px; margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 0 0 26px; }
.price-card li { padding: 8px 0 8px 28px; position: relative; color: var(--text-dim); font-size: 14.5px; border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: '✓'; position: absolute; left: 4px; color: var(--gold); font-weight: 700; }
.price-card.featured { border-color: rgba(255, 215, 0, 0.5); }
.price-card .tag {
  position: absolute; top: -13px; right: 22px;
  background: var(--gold); color: #1a1a1a;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.article { max-width: 760px; margin: 0 auto 70px; }
.article .meta { color: var(--gold); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.article h2 { font-size: 28px; margin-bottom: 16px; }
.article p { color: var(--text-dim); margin-bottom: 16px; }
.article + .article { border-top: 1px solid var(--line); padding-top: 60px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); margin-bottom: 14px; overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  position: relative;
  padding-right: 54px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 22px;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 20px; color: var(--text-dim); font-size: 15px; }

/* ---------- Interior pages ---------- */
.note-bar {
  background: var(--gold);
  color: #1a1a1a;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  position: relative;
  z-index: 960;
}
.note-bar ~ .nav { top: 40px; }
.note-bar ~ .nav.scrolled { top: 0; }
.nav { transition: background 0.35s, padding 0.35s, box-shadow 0.35s, top 0.3s; }
.page-hero { min-height: 72vh; padding: 150px 0 70px; }
.page-hero .container { grid-template-columns: 1fr; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  section { padding: 80px 0; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 130px; }
  .cards-3 { grid-template-columns: 1fr; }
  .cards-4, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .dual, .split, .split.reverse { grid-template-columns: 1fr; }
  .split { gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(26, 26, 26, 0.97);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-size: 20px;
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
    z-index: 1000;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .cards-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 32px 24px; }
  .hero-card.c1 { top: -16px; right: 0; }
  .hero-card.c2 { bottom: -16px; left: 0; }
  /* stat blocks: compact 2×2 instead of full-width stack */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat { padding: 18px 8px; }
  .stat .value { font-size: 26px; }
  .stat .value sup { font-size: 14px; }
  .stat .label { font-size: 12px; margin-top: 6px; }
  .fee-box { flex-wrap: wrap; }
  .form-actions { flex-wrap: wrap; gap: 12px; }
  .nav-logo img { height: 34px; }
}

/* ---------- Portal mobile ---------- */
@media (max-width: 980px) {
  /* portal has no hamburger — keep its links as a compact inline row
     (overrides the fullscreen mobile menu rules that apply to the public nav) */
  .portal-nav-links {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    background: none;
    font-size: 14px;
    flex-wrap: wrap;
  }
  .portal-nav .nav-toggle { display: none; }
  .portal-nav .nav-inner { gap: 12px; }
}
@media (max-width: 640px) {
  .portal-main { padding: 36px 0 60px; }
  .portal-card { padding: 26px 20px; }
  .portal-h3 { font-size: 18px; margin-top: 38px; }
  .portal-user { display: none; } /* name shown in dashboard heading anyway */
  .portal-table { font-size: 13px; }
  .portal-table th, .portal-table td { padding: 10px 12px; }
  .mission-form { width: 100%; }
  .mission-form input[type="text"] { flex: 1 1 140px; width: auto; }
  .portal-nav-links .btn { padding: 8px 16px; font-size: 13px; }
  .portal-nav-links a:not(.btn) { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
