/* Naijm Onboarding — design language adapted from naijm.com
   Palette: void #05070d · navy #0b1426 · dune #26364d · lapis #245abb
            starlight #eaf1f8 · mist #a2adbf · line #3b4f70 · gold #e4b95b
   Type:    Space Grotesk (display) · IBM Plex Sans (body) — self-hosted */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --void: #05070d;
  --navy: #0b1426;
  --panel: #0a1120;
  --dune: #26364d;
  --dune-bright: #4a6290;
  --lapis: #245abb;
  --lapis-hover: #2e6ad0;
  --link: #7da4ff;
  --starlight: #eaf1f8;
  --mist: #a2adbf;
  --line: #3b4f70;
  --gold: #e4b95b;
  --byaku: #83ccd2;

  --body: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Space Grotesk", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-control: 5px;
  --r-field: 10px;
  --r-pill: 99px;
  --edge: clamp(1.25rem, 5.2vw, 6rem);
  --section-pad: clamp(4rem, 8vw, 7rem);
  --action-ease: cubic-bezier(.22, 1, .36, 1);
  --action-transition: color .3s ease, background-color .3s ease, border-color .3s ease, transform .3s var(--action-ease);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--starlight);
  background: var(--void);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lapis); color: #fff; }

:focus-visible { outline: 2px solid var(--dune-bright); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; }

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
  margin: 0 0 10px;
}

h3 { font-size: 1.08rem; line-height: 1.35; margin: 0 0 8px; letter-spacing: -.01em; }

p { margin: 0 0 12px; }

code {
  font-family: var(--mono);
  font-size: .86em;
  background: #0a0f1c;
  border: 1px solid var(--line);
  color: #cfe0f4;
  padding: 2px 7px;
  border-radius: var(--r-control);
  word-break: break-all;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--starlight); text-decoration: underline; }

.muted { color: var(--mist); font-size: .92rem; }

section[id] { scroll-margin-top: 88px; }

/* ---------- Shell & nav ---------- */

.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--edge); }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dune);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  color: var(--starlight);
  white-space: nowrap;
  font-size: 1.02rem;
}
.brand:hover { text-decoration: none; }
.brand em { color: var(--link); font-style: normal; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-control);
  background: var(--lapis);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.nav-links { display: flex; gap: 4px; overflow-x: auto; }
.nav-links a {
  color: var(--mist);
  font-size: .88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--r-control);
  white-space: nowrap;
  transition: var(--action-transition);
}
.nav-links a:hover { background: rgba(38, 54, 77, .45); color: var(--starlight); text-decoration: none; }

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

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1000px 460px at 12% -12%, rgba(36, 90, 187, .34), transparent 62%),
    radial-gradient(900px 460px at 88% -4%, rgba(38, 54, 77, .55), transparent 58%),
    linear-gradient(180deg, #081020, var(--void));
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  border-bottom: 1px solid var(--dune);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  text-wrap: balance;
  margin: 0 0 20px;
  color: var(--starlight);
}

.grad {
  background: linear-gradient(92deg, #7da4ff, var(--byaku));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { max-width: 620px; color: var(--mist); font-size: 1.04rem; }
.hero-sub strong { color: var(--starlight); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 48px;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--action-transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--lapis); color: #fff; }
.btn-primary:hover { background: var(--lapis-hover); color: #fff; }
.btn-ghost { border-color: var(--dune); color: var(--starlight); background: transparent; }
.btn-ghost:hover { border-color: var(--dune-bright); background: rgba(11, 20, 38, .6); color: var(--starlight); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: rgba(11, 20, 38, .55);
  border: 1px solid var(--line);
  color: var(--mist);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .84rem;
  transition: var(--action-transition);
}
.chip:hover { border-color: var(--dune-bright); color: var(--starlight); }
.chip strong { color: var(--starlight); font-weight: 600; }

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

.section { padding: var(--section-pad) 0; }
.section.alt {
  background: linear-gradient(180deg, #081020, #070d18);
  border-top: 1px solid var(--dune);
  border-bottom: 1px solid var(--dune);
}

.section-sub { color: var(--mist); max-width: 620px; margin-bottom: 34px; }

/* ---------- Cards / grids ---------- */

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

.card {
  background: var(--navy);
  border: 1px solid var(--dune);
  border-radius: var(--r-field);
  padding: 24px;
  transition: border-color .3s ease, transform .3s var(--action-ease);
}
.card:hover { border-color: var(--dune-bright); transform: translateY(-2px); }
.card.slim:hover { transform: none; }
.card h3 { margin-top: 4px; }
.card p { color: var(--mist); font-size: .94rem; }
.card p strong { color: var(--starlight); }

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--link);
  background: rgba(36, 90, 187, .16);
  border: 1px solid rgba(74, 98, 144, .5);
  border-radius: 8px;
  margin-bottom: 14px;
}
.card-icon svg { width: 20px; height: 20px; }

.panel {
  background: var(--navy);
  border: 1px solid var(--dune);
  border-radius: var(--r-field);
  padding: 24px;
}
.panel h3 { color: var(--starlight); }
.panel ul { margin: 0; padding-left: 18px; }
.panel li { margin-bottom: 10px; color: var(--mist); font-size: .95rem; }
.panel li strong { color: var(--starlight); }

.ticks li::marker { color: var(--byaku); }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps.compact .step { padding: 18px 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(38, 54, 77, .55);
}
.step:last-child { border-bottom: 0; }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gold);
  background: var(--panel);
  border: 1px solid var(--dune);
}

.step-body h3 { margin-bottom: 6px; }
.step-body h3 .tag { font-family: var(--body); }
.step-body p, .step-body li { color: var(--mist); font-size: .95rem; }
.step-body p strong, .step-body li strong { color: var(--starlight); }
.step-body ul, .step-body ol { margin: 8px 0 0; padding-left: 18px; }
.step-body li { margin-bottom: 6px; }
.step-body ul li::marker, .step-body ol li::marker { color: var(--dune-bright); }
.step-body em { color: #c3cede; }

.tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(228, 185, 91, .09);
  border: 1px solid rgba(228, 185, 91, .32);
  padding: 2px 9px;
  border-radius: var(--r-pill);
}

.mini-steps { margin: 10px 0 12px; padding-left: 18px; }
.mini-steps li { margin-bottom: 6px; font-size: .95rem; color: var(--mist); }
.mini-steps li strong { color: var(--starlight); }
.mini-steps li::marker { color: var(--gold); }

/* ---------- URL cards & callouts ---------- */

.url-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  background: var(--navy);
  border: 1px solid var(--dune);
  border-left: 3px solid var(--lapis);
  border-radius: var(--r-field);
  padding: 15px 18px;
  margin-bottom: 26px;
}
.url-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mist);
}
.url-value {
  background: none;
  border: 0;
  color: var(--starlight);
  font-size: 1.02rem;
  padding: 0;
}

.callout {
  margin-top: 24px;
  background: rgba(131, 204, 210, .06);
  border: 1px solid rgba(131, 204, 210, .28);
  border-left: 3px solid var(--byaku);
  border-radius: var(--r-field);
  padding: 15px 18px;
  color: #d6ecef;
  font-size: .95rem;
}
.callout strong { color: #fff; }

/* ---------- Quick reference ---------- */

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

.ref-item {
  background: var(--navy);
  border: 1px solid var(--dune);
  border-radius: var(--r-field);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color .3s ease;
}
.ref-item:hover { border-color: var(--dune-bright); }
.ref-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--mist);
}
.ref-item code {
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--starlight);
  font-size: .86rem;
  padding: 6px 10px;
  border-radius: var(--r-control);
}
.ref-note { color: var(--mist); font-size: .82rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; }

.faq {
  background: var(--navy);
  border: 1px solid var(--dune);
  border-radius: var(--r-field);
  padding: 4px 18px;
  margin-bottom: 10px;
  transition: border-color .3s ease;
}
.faq[open] { border-color: var(--dune-bright); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--starlight);
  padding: 13px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--link);
  font-weight: 500;
}
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--mist); font-size: .94rem; padding-bottom: 14px; margin: 0; }
.faq p strong { color: var(--starlight); }

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

.footer {
  border-top: 1px solid var(--dune);
  color: var(--mist);
  padding: 34px 0 42px;
  font-size: .8rem;
  background: var(--void);
}
.footer strong { color: var(--starlight); font-family: var(--display); font-weight: 500; }
.footer .muted { color: rgba(162, 173, 191, .72); font-size: .8rem; }

/* ---------- Ext link arrow ---------- */

.ext::after { content: " ↗"; font-size: .8em; }

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

@media (max-width: 900px) {
  .grid-3, .ref-grid { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-3, .ref-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 56px 0; }
  .step { grid-template-columns: 44px 1fr; gap: 12px; }
  .step-num { width: 36px; height: 36px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover { transform: none; }
}
