/* Brand tokens taken from stellarcyber.ai (Elementor/Astra theme): orange primary
   #f69220 with #dc7b0d hover, pill buttons, Inter, slate neutrals. */
:root {
  --orange: #f69220;
  --orange-hover: #dc7b0d;
  --orange-grad: linear-gradient(90deg, #ff9b1d 0%, #f05b2a 100%);
  --blue: #1f59e0;
  --night: #05070d;
  --night-2: #0d1220;
  --ink: #1e293b;
  --ink-mid: #334155;
  --ink-soft: #64748b;
  --rule: #e2e8f0;
  --rule-firm: #cbd5e1;
  --ground: #f9fafb;
  --surface: #ffffff;
  --err: #b42318;
  --err-bg: #fef3f2;
  --err-rule: #fecdca;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --ok-rule: #abefc6;
  --radius-pill: 39px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font); color: var(--ink); background: var(--ground);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--blue); }
a:hover { color: var(--orange-hover); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

/* top bar ------------------------------------------------------------- */
.topbar { background: var(--night); border-bottom: 1px solid rgba(255,255,255,0.08); }
.topbar-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; min-height: 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { display: block; height: 44px; width: auto; }
.envlabel { margin-right: auto; margin-left: 4px; padding: 4px 10px; border-radius: 6px; background: #fbbf24; color: #111827;
  font: 700 12px/1 var(--font); letter-spacing: 0.12em; }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; }
.topnav a:not(.btn):hover { color: var(--orange); }

/* buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 16px/1 var(--font); color: #fff; background: var(--orange);
  border: 0; padding: 15px 30px; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus-visible { background: var(--orange-hover); color: #000; }
.btn:focus-visible { outline: 3px solid rgba(246,146,32,0.45); outline-offset: 2px; }
.btn-pill { border-radius: var(--radius-pill); }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-firm); }
.btn-outline:hover { background: var(--orange); color: #000; box-shadow: none; }
.btn[disabled] { background: var(--rule-firm); color: var(--ink-soft); cursor: default; }

/* auth split ---------------------------------------------------------- */
.split { flex: 1; display: grid; grid-template-columns: 1.05fr 1fr; }
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 0% 100%, #121a33 0%, var(--night) 60%);
  padding: 96px clamp(24px, 6vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-glow {
  position: absolute; width: 560px; height: 560px; right: -180px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,146,32,0.35) 0%, rgba(240,91,42,0.12) 40%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  margin: 0 0 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange);
}
.hero h1 {
  position: relative; margin: 0 0 20px; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08;
}
.grad { background: var(--orange-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { position: relative; max-width: 30rem; margin: 0 0 32px; color: #cbd5e1; font-size: 18px; }
.hero-notice {
  position: relative; max-width: 30rem; margin: 0 0 28px; padding: 12px 16px; border-radius: 10px;
  border-left: 3px solid var(--orange); background: rgba(246,146,32,0.10); color: #f1f5f9; font-size: 15px;
}
.hero-note { position: relative; max-width: 30rem; margin: 24px 0 0; color: #cbd5e1; font-size: 15px; }
.hero-note a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.hero-note a:hover { color: #fff; }
.hero-points { position: relative; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { padding-left: 30px; position: relative; color: #e2e8f0; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange-grad); box-shadow: 0 0 0 4px rgba(246,146,32,0.18);
}

.panel { display: flex; align-items: center; justify-content: center; padding: 64px 24px; background: var(--ground); }
.card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 40px 36px; box-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.18);
}
.step { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--orange-hover); letter-spacing: 0.04em; }
.card h2 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.lede { margin: 0 0 24px; color: var(--ink-soft); }
.lede strong { color: var(--ink); font-weight: 600; }

/* form ---------------------------------------------------------------- */
.form { display: grid; gap: 8px; }
.form label { font-size: 14px; font-weight: 600; color: var(--ink-mid); }
.form input[type="email"], .form input[type="text"] {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--rule-firm); border-radius: 10px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(246,146,32,0.18); }
.form input[aria-invalid="true"] { border-color: var(--err); }
.form .btn { margin-top: 16px; }
.code-input { text-align: center; letter-spacing: 0.5em; font-size: 26px !important; font-weight: 600 !important; padding-left: calc(16px + 0.5em) !important; }

.msg { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid var(--rule); background: var(--ground); }
.msg.err { color: var(--err); background: var(--err-bg); border-color: var(--err-rule); }
.msg.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-rule); }

.alt-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; font-size: 14px; flex-wrap: wrap; }
.alt-actions form { margin: 0; }
.linkbtn { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--orange-hover); }
.fine { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-soft); }

.badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: #fff4e6; border: 1px solid #fbd7ab; color: var(--orange-hover); }
.badge svg { width: 24px; height: 24px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 20px; padding: 12px 14px;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 10px; font-size: 14px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; font-weight: 500; }

/* plain pages (dev mock, outbox) ------------------------------------- */
.page { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 64px 24px; }
.page-title { margin: 0 0 12px; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; }
.page .lede { font-size: 17px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0 0 24px;
  padding: 20px 24px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.facts dt { color: var(--ink-soft); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; word-break: break-all; }
.tbl { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); background: var(--ground); }
tr:last-child td { border-bottom: 0; }
td.mono { font-size: 15px; font-weight: 600; }

/* docs site (dev mock) ------------------------------------------------ */
.inline { display: inline; margin: 0; }
.whoami { color: #cbd5e1; font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.btn-ghost:hover { background: var(--orange); color: #000; box-shadow: none; }
.site-shell { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.site-nav { border-right: 1px solid var(--rule); padding: 32px 20px 48px 24px; background: var(--surface); }
.nav-heading { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 2px; }
.site-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px;
  border-radius: 8px; color: var(--ink-mid); text-decoration: none; font-size: 15px; }
.site-nav a:hover { background: var(--ground); color: var(--ink); }
.site-nav a[aria-current="page"] { background: #fff4e6; color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--orange); }
.lock { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; }
.site-content { padding: 40px clamp(16px, 4vw, 56px) 64px; min-width: 0; max-width: 860px; }
.site-content h2 { font-size: 22px; margin: 32px 0 8px; letter-spacing: -0.01em; }
.site-content ul { padding-left: 20px; }
.site-content li { margin-bottom: 6px; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  margin: 0 0 28px; padding: 12px 16px; border-radius: 10px; background: #fff4e6; border: 1px solid #fbd7ab;
  font-size: 14px; color: var(--ink-mid); }
.banner a { font-weight: 600; color: var(--orange-hover); white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 28px; }
.tile { display: grid; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.tile:hover { border-color: var(--orange); box-shadow: 0 8px 20px -14px rgba(15,23,42,0.35); color: var(--ink); }
.tile-tag { justify-self: start; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px; }
.tile-tag.open { background: var(--ok-bg); color: var(--ok); }
.tile-tag.locked { background: var(--ground); color: var(--ink-soft); border: 1px solid var(--rule); }
.tile-path { color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
.mock-note { margin-top: 48px; font-size: 12px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .site-shell { grid-template-columns: minmax(0, 1fr); }
  .site-nav { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px; }
  .site-nav ul { margin-bottom: 12px; }
  .whoami { display: none; }
}

/* footer -------------------------------------------------------------- */
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; background: var(--night); color: #94a3b8; font-size: 13px;
}
.foot-links { display: flex; gap: 20px; }
.foot a { color: #cbd5e1; text-decoration: none; }
.foot a:hover { color: var(--orange); }
.devbar {
  position: fixed; right: 16px; bottom: 16px; z-index: 10; padding: 8px 14px; border-radius: var(--radius-pill);
  background: #111827; color: #fbbf24; font: 600 12px/1 var(--font); letter-spacing: 0.06em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.devbar a { color: #fff; }

/* responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .hero { padding: 48px 16px 40px; }
  .hero-points { display: none; }
  .hero-lede { margin-bottom: 20px; font-size: 16px; }
  .hero-notice { margin-bottom: 0; font-size: 14px; }
  .hero-note { margin-top: 16px; font-size: 14px; }
  .panel { padding: 32px 16px 56px; align-items: flex-start; }
  .card { padding: 28px 20px; }
  .topbar-inner { padding: 0 16px; min-height: 64px; }
  .brand img { height: 36px; }
  .topnav a:not(.btn) { display: none; }
}
