/* ===================================================================
   REAL MSB — design tokens
   Palette: near-black ink, gold seal accent, slate-blue interactive accent
   Type: Space Grotesk (display) / Source Sans 3 (body) / IBM Plex Mono (data)
=================================================================== */

:root {
  --ink: #0A0D12;
  --panel: #12161D;
  --panel-2: #171C25;
  --line: #232B36;
  --line-soft: #1A2029;
  --text: #EDF1F5;
  --text-muted: #8D97A6;
  --text-dim: #5C6675;
  --gold: #D4A24E;
  --gold-soft: rgba(212, 162, 78, 0.14);
  --blue: #5C7CFA;
  --blue-soft: rgba(92, 124, 250, 0.14);
  --confirm: #34D399;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", "Source Sans 3", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 13, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.94rem;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: var(--text);
  background: var(--panel-2);
}

.navlinks a.active {
  color: var(--text);
}

.navlinks .soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
}

.navlinks .soon .tag {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 2px 7px;
  color: var(--text-dim);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line-soft);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero p.lead {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #17130A;
}
.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-muted); }

/* ---------- Seal / signature element ---------- */

.seal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal {
  width: 100%;
  max-width: 300px;
  animation: seal-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes seal-in {
  from { opacity: 0; transform: scale(0.9) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.seal-reg-number {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
}

/* Registration strip */

.reg-strip {
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}

.reg-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  flex-wrap: wrap;
}

.reg-strip .flag {
  color: var(--gold);
}

/* ---------- Sections ---------- */

section {
  padding: 76px 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  color: var(--blue);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin: 0;
}

/* Why / trust list */

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.trust-item .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 3px;
}

.trust-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.trust-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 48px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

footer .foot-left {
  max-width: 42ch;
}

footer .foot-left p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 10px 0 0;
}

footer .foot-links {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .foot-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

footer .foot-links a:hover { color: var(--text); }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line-soft);
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}

.page-hero p.lead {
  color: var(--text-muted);
  max-width: 60ch;
  font-size: 1.03rem;
}

/* ---------- About page specifics ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 56px;
  align-items: start;
}

.about-grid p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

.about-grid h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.side-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.side-card .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.side-card .value {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 22px;
  display: block;
  word-break: break-word;
}

.side-card .value:last-child { margin-bottom: 0; }

/* ---------- Services page ---------- */

.service-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}

.service-row:last-child { border-bottom: 1px solid var(--line-soft); }

.service-row .icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
}

.service-row h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-row p {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 14px;
}

.service-row .tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 10px;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card .icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  margin-bottom: 18px;
}

.contact-card .label {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "IBM Plex Mono", monospace;
  margin-bottom: 8px;
  display: block;
}

.contact-card a.value {
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  font-family: "Space Grotesk", sans-serif;
}

.contact-card a.value:hover { color: var(--blue); }

.contact-note {
  margin-top: 40px;
  padding: 22px 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ---------- Login skeleton ---------- */

.login-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.login-card .soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  background: var(--gold-soft);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

.login-card h1 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.login-card p.sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.95rem;
}

.field input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.login-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.login-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.login-foot a { color: var(--blue); text-decoration: none; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .navlinks { display: none; }
  .hero .wrap { grid-template-columns: 1fr; }
  .seal-wrap { order: -1; max-width: 200px; margin: 0 auto 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  footer .wrap { flex-direction: column; }
}
