/* RBrooks Solutions — tokens and components taken from the portfolio (stiekuit/romano-techops-portfolio). */
:root {
  --bg: #070c17;
  --bg-alt: #0a1120;
  --card: #0e1626;
  --card-border: #1c2740;
  --accent: #38bdf8;
  --accent-soft: #0b2536;
  --accent-solid: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #e7ecf5;
  --text-dim: #94a3b8;
  --text-faint: #5b6b85;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; line-height: 1.6;
}
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* nav */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(7,12,23,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--card-border); }
.topnav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-row { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.logo { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-solid); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.brand-text b { display: block; font-size: 15px; font-weight: 800; }
.brand-text span { display: block; font-size: 11.5px; color: var(--text-dim); }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-dim); text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--card-border); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 14px; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav-links { display: none; width: 100%; flex-direction: column; gap: 12px; padding: 8px 0 4px; }
  .nav-links.open { display: flex; }
}

/* type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 { font-size: 38px; line-height: 1.18; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: 24px; margin: 36px 0 12px; font-weight: 800; }
h3 { font-size: 17px; margin: 24px 0 8px; font-weight: 800; }
@media (max-width: 520px) { h1 { font-size: 29px; } }
.lede { color: var(--text-dim); font-size: 16px; max-width: 640px; }
.dim { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 13px; }
section { padding: 56px 0; }
.hero { padding: 64px 0 24px; text-align: center; }
.hero .lede { margin: 0 auto 8px; }

/* cards & buttons */
.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .grid2 { grid-template-columns: 1fr; } }
.card h3 { margin-top: 0; }
.card p { color: var(--text-dim); font-size: 14px; margin: 0 0 10px; }
.card.link { text-decoration: none; color: var(--text); display: block; transition: border-color .15s; }
.card.link:hover { border-color: var(--accent); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent-solid); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--card-border); }
.btn.secondary:hover { border-color: var(--accent); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: #b91c1c; }
.pill { white-space: nowrap; display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill.ok { background: #06281f; color: var(--ok); }
.pill.warn { background: #2d2206; color: var(--warn); }
.pill.bad { background: #2c0b0b; color: var(--bad); }

/* form */
.form-card { max-width: 760px; margin: 0 auto; }
.steps { display: flex; gap: 6px; margin-bottom: 22px; }
.steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--card-border); }
.steps span.on { background: var(--accent); }
.step-title { font-size: 12.5px; color: var(--accent); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.req { color: var(--accent); }
input, select, textarea {
  width: 100%; background: var(--bg-alt); color: var(--text); border: 1px solid var(--card-border); border-radius: 10px;
  padding: 11px 12px; font-size: 15px; font-family: inherit;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 12.5px; margin-top: 4px; display: none; }
.field.invalid .err { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-dim); }
.check input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.inline { display: flex; gap: 10px; }
.inline input { flex: 1; }
.notice { background: var(--accent-soft); border: 1px solid #12405a; color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 10px 0; }
.notice.bad { background: #2c0b0b; border-color: #5b1a1a; }
.notice.ok { background: #06281f; border-color: #0f5a43; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hidden { display: none !important; }

/* docs */
.doc { max-width: 820px; }
.doc h1 { font-size: 30px; }
.doc p, .doc li { color: #cbd5e1; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--card-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--card); }
.doc hr { border: 0; border-top: 1px solid var(--card-border); margin: 28px 0; }
.doc code { background: var(--card); padding: 1px 5px; border-radius: 5px; }
.table-scroll { overflow-x: auto; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 24px; }

/* footer */
footer { border-top: 1px solid var(--card-border); padding: 28px 0 40px; color: var(--text-faint); font-size: 13px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--text-dim); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--text); }

/* Short intake: the project�s existing navy/cyan palette and native controls. */
:root { --scroll-thumb: #5b6b85; --scroll-track: #0a1120; --scroll-hover: #94a3b8; --scroll-active: #38bdf8; }
* { scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: auto; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid var(--scroll-track); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }
::-webkit-scrollbar-thumb:active { background: var(--scroll-active); }
html { scrollbar-gutter: stable; }
.nav-links a.nav-cta { color: #fff; background: var(--accent-solid); padding: 6px 12px; border-radius: 8px; }
.nav-links a.nav-cta:hover { background: var(--accent-hover); color: #fff; }
.form-heading { margin-top: 0; }
.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: st; flex-wrap: wrap; }
.stepper li { counter-increment: st; font-size: 13px; font-weight: 700; color: var(--text-faint); display: flex; align-items: center; gap: 6px; }
.stepper li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--card-border); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.stepper li + li::after { content: none; }
.stepper li.on { color: var(--accent); }
.stepper li.on::before { background: var(--accent-solid); border-color: var(--accent-solid); color: #fff; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.linkish:disabled { color: var(--text-faint); cursor: default; text-decoration: none; }
details.help summary { cursor: pointer; color: var(--text-dim); font-size: 14px; }
.request-group { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.request-group legend { padding: 0; margin-bottom: 16px; color: var(--accent); font-weight: 700; }
.form-card .hint { color: var(--text-dim); }
.field .err { display: block; min-height: 20px; }
.field label.check { display: flex; }
input, select, .inline { min-width: 0; }
select, a, button:not(:disabled), input[type="date"], input[type="checkbox"] { cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a:active, button:not(:disabled):active { filter: brightness(.9); }
.field, #lead-form { scroll-margin-top: 110px; }
#submit { min-width: 160px; }
#send-code { min-width: 100px; }
#verify-code { min-width: 76px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 520px) { .hero { padding: 36px 16px 20px; } .form-card { padding: 20px 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media (forced-colors: active) { * { scrollbar-color: auto; } }
