/* ============================================================================
   CyberGuard — design system
   Tokens, reset, shared components, the public landing page and the auth screen.
   The signed-in app layers app.css on top of this file.
   ========================================================================== */

:root {
  /* ---- surfaces ---- */
  --bg:        #06070a;
  --bg-soft:   #08090d;
  --panel:     #0b0d12;
  --panel-2:   #0f1218;
  --panel-3:   #161a22;
  --line:      #191d25;
  --line-2:    #262c38;

  /* ---- type ---- */
  --text:      #eef1f6;
  --text-2:    #aab2c0;
  --dim:       #79828f;
  --dim-2:     #545c69;

  /* ---- brand: a single flat accent. --grad keeps its name so every existing
     `background: var(--grad)` renders as a solid fill instead of a ramp. ---- */
  --accent:    #4f8cff;
  --accent-2:  #4f8cff;
  --accent-3:  #8fb4ff;
  --grad:      #4f8cff;
  --grad-soft: rgba(79, 140, 255, .09);

  /* ---- severity / status ---- */
  --critical:  #ff4d6d;
  --high:      #ff8a3d;
  --medium:    #ffc53d;
  --low:       #38bdf8;
  --info:      #7a828f;
  --ok:        #35c98b;
  --warn:      #e6b23c;
  --bad:       #f2555a;

  /* ---- shape ---- */
  --r-sm: 5px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 18px;

  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sans:  'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* ---- elevation ----
     Depth is built from three things at once: a shadow below, a one-pixel light
     line along the top edge, and a surface that is a shade lighter than what it
     sits on. Using all three is what stops a dark UI reading as a flat sheet. */
  --elev-1: 0 1px 2px rgba(0, 0, 0, .5);
  --elev-2: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 26px -12px rgba(0, 0, 0, .7);
  --elev-3: 0 4px 12px rgba(0, 0, 0, .4), 0 28px 64px -24px rgba(0, 0, 0, .85);
  --edge:   inset 0 1px 0 rgba(255, 255, 255, .045);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;  /* iOS must not inflate our type on rotate */
  text-size-adjust: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(79, 140, 255, .3); }

/* ---- scrollbars ---- */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: #39414f; background-clip: content-box; }

/* ============================================================================
   Utilities
   ========================================================================== */

.hidden { display: none !important; }

/* The `hidden` attribute is styled by a UA rule, which any author `display:` outranks
   - so `.btn[hidden]`, `.grid-2[hidden]` and friends stayed on screen while the code
   that set the attribute believed they were gone. The app toggles `.hidden` in 38
   places; this is what makes every one of them mean what it says. */
[hidden] { display: none !important; }

.dim { color: var(--dim); }
.small { font-size: 12.5px; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* The landing's one ambient layer: a single soft wash behind the hero. Kept in
   the markup so the page keeps its stacking context either way. */
.backdrop {
  position: fixed;
  inset: -20% 0 auto 0;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 520px at 76% 8%, rgba(79, 140, 255, .10), transparent 62%),
    radial-gradient(620px 420px at 6% 0%, rgba(79, 140, 255, .05), transparent 60%);
}

/* ============================================================================
   Brand mark
   ========================================================================== */

.brand { display: inline-flex; align-items: center; gap: 10px; }

/* The logo file is a vertical lockup — shield above a "CYBER GUARD" wordmark — so
   at header size its own wordmark would be an illegible smudge next to the real
   one. The box below crops to just the shield. Percentages are measured from the
   artwork: the shield occupies x 257-764, y 100-627 of the 1024px square, so the
   image is scaled to 1024/528 of the box and pulled up and left onto it. */
.brand-mark {
  width: 30px; height: 30px;
  position: relative;
  overflow: hidden;
  flex: none;
}
.brand-mark img {
  position: absolute;
  width: 193.94%; height: 193.94%;
  left: -46.78%; top: -18.94%;
  max-width: none;
}
.brand-name {
  font-size: 16px; font-weight: 600; letter-spacing: -.015em;
  color: var(--text);
}

/* The full lockup, for places with room to show it whole. */
.brand-lockup { display: block; width: 132px; height: auto; }

/* ============================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  color: var(--text);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--elev-1), var(--edge);
  transition: border-color .16s, background .16s, color .16s, transform .16s, box-shadow .16s;
  white-space: nowrap;
}
.btn:hover { border-color: #39414f; transform: translateY(-1px); box-shadow: var(--elev-2), var(--edge); }
.btn:active { transform: none; box-shadow: var(--elev-1); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  border-color: rgba(120, 170, 255, .55);
  background: linear-gradient(180deg, #6a9dff, var(--accent));
  color: #04060c;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -12px rgba(79, 140, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #7fabff, #5c95ff);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 16px 34px -12px rgba(79, 140, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .34);
}

.btn-ghost { background: transparent; border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--panel-2); box-shadow: var(--elev-1); }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-block { width: 100%; }

.linkish {
  background: none; border: 0; padding: 0;
  color: var(--accent-3); font-size: inherit;
  border-bottom: 1px solid transparent;
}
.linkish:hover { border-bottom-color: currentColor; }

/* ============================================================================
   Form fields
   ========================================================================== */

.field { display: block; }
.field > span {
  display: block;
  font-size: 12px; color: var(--dim);
  margin-bottom: 7px;
  letter-spacing: .02em;
}
.field input, .input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--bg-soft);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45);
  transition: border-color .16s, box-shadow .16s;
}
.field input::placeholder, .input::placeholder { color: var(--dim-2); }
.field input:focus, .input:focus {
  border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45), 0 0 0 3px rgba(79, 140, 255, .16);
}
.field-hint { display: block; margin-top: 6px; font-size: 11.5px; color: var(--dim-2); }

/* ============================================================================
   Panels, badges, pills
   ========================================================================== */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--elev-2), var(--edge);
}

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  white-space: nowrap;
}
.badge-grad {
  border-color: rgba(79, 140, 255, .28);
  background: var(--grad-soft);
  color: var(--accent-3);
}

.plan-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: 1px solid var(--line-2);
  color: var(--dim);
}
.plan-badge.plan-premium {
  border-color: transparent;
  background: var(--grad);
  color: #06070a;
  font-weight: 600;
}
.plan-badge.lg { font-size: 12px; padding: 4px 12px; }

/* severity chips, shared everywhere */
.sev {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sev-critical { background: rgba(255, 77, 109, .12); color: var(--critical); }
.sev-high     { background: rgba(255, 138, 61, .12); color: var(--high); }
.sev-medium   { background: rgba(255, 197, 61, .11); color: var(--medium); }
.sev-low      { background: rgba(56, 189, 248, .11); color: var(--low); }
.sev-info     { background: rgba(122, 130, 143, .12); color: var(--info); }

/* ============================================================================
   Public top bar (landing + auth)
   ========================================================================== */

.site-top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 10, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
/* The rule under the bar appears only once the page has moved, so the hero opens
   without a line across it. landing.js sets the flag. */
.site-top.stuck { border-bottom-color: var(--line); background: rgba(6, 7, 10, .88); }
.site-top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 15px 30px;
}
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 7px 13px;
  border-radius: var(--r-sm);
  color: var(--dim);
  font-size: 13.5px;
  transition: color .16s, background .16s;
}
.site-nav a:hover { color: var(--text); background: var(--panel-2); }
.site-actions { display: flex; align-items: center; gap: 10px; }

/* The hamburger. Hidden until the nav row collapses (≤720), where it becomes the
   only way to reach the sections and the sign-in link. */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text-2);
  box-shadow: var(--elev-1), var(--edge);
  transition: color .16s, border-color .16s, background .16s;
}
.nav-toggle:hover { color: var(--text); border-color: #39414f; }
.nav-toggle svg { display: block; }
/* A menu-only link (the sign-in that lives in the actions on desktop). */
.site-nav a.nav-cta { display: none; }

/* ============================================================================
   Landing page

   Four things, in order: what we do, how it runs, what you can run, what it
   costs. Anything that was a nice-to-have has been cut — the globe and the one
   line beside it carry the top of the page on their own.
   ========================================================================== */

.landing { position: relative; z-index: 1; }

/* ---- hero ---- */

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 30px 0;
  min-height: min(76vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: 40px;
}

.hero-copy { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(38px, 4.9vw, 58px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 500;
  margin-top: 18px;
  text-wrap: balance;
}
/* One typographic accent instead of a colour gradient. The second line is its
   own block, so the break lands in the same place at every width. */
.hero h1 em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--text);
}
.hero-lede {
  max-width: 44ch;
  margin: 24px 0 0;
  color: var(--dim);
  font-size: 16.5px;
}
.hero-cta { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.hero-note {
  margin-top: 18px;
  font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--dim-2);
}

/* ---- the globe ---- */
/* Square, centred in its column, with its own glow behind it. The canvas draws
   the sphere itself — see js/globe.js. */

.hero-globe {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
}
.hero-globe::before {
  content: '';
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, rgba(79, 140, 255, .20), rgba(79, 140, 255, .05) 42%, transparent 66%);
  filter: blur(6px);
  pointer-events: none;
}
/* A single orbit line. One is a detail; three would be a stock illustration. */
.hero-globe::after {
  content: '';
  position: absolute; inset: 2%;
  border-radius: 50%;
  border: 1px solid rgba(79, 140, 255, .10);
  transform: rotate(-21deg) scaleY(.26);
  pointer-events: none;
}
.hero-globe canvas {
  position: relative; z-index: 1;
  display: block;
  width: 100%; height: 100%;
}

/* ---- the hairline strip under the hero ---- */

.proof {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 22px 30px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.proof div { display: flex; flex-direction: column; gap: 4px; }
.proof .k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim-2);
}
.proof .v { font-size: 14.5px; color: var(--text-2); }

/* ---- sections ---- */

.section { max-width: 1180px; margin: 0 auto; padding: 118px 30px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -.035em;
  font-weight: 500;
  margin-top: 14px;
  max-width: 18ch;
}
.section-head p { color: var(--dim); font-size: 15px; max-width: 38ch; }

/* three steps, as cards with real elevation */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card {
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--elev-2), var(--edge);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.step-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--elev-3), var(--edge); }
.step-n {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent-3); letter-spacing: .14em;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 9px; }
.step-card p { color: var(--dim); font-size: 14px; }

/* modules, as a list — four lines, not four cards */
.module-list { border-top: 1px solid var(--line); }
.module-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .18s, padding-left .18s;
}
.module-row:hover { background: rgba(255, 255, 255, .016); padding-left: 16px; }
.module-row h3 { font-size: 16.5px; font-weight: 500; }
.module-row p { color: var(--dim); font-size: 14px; }
.module-row .tag {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px;
  border: 1px solid var(--line-2);
  color: var(--dim-2);
  white-space: nowrap;
}
.module-row .tag.on {
  border-color: rgba(79, 140, 255, .35);
  background: var(--grad-soft);
  color: var(--accent-3);
}

/* pricing — one card, because there is one price */
.price-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.price-card {
  padding: 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--elev-2), var(--edge);
}
.price-card.featured {
  border-color: rgba(79, 140, 255, .32);
  box-shadow: var(--elev-3), var(--edge), 0 0 0 1px rgba(79, 140, 255, .06);
}
.price-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-top h3 { font-size: 18px; font-weight: 500; }
.price-amount { font-family: var(--mono); font-size: 15px; color: var(--accent-3); }
.price-lede { color: var(--dim); font-size: 14px; margin-top: 14px; }
.price-card .btn { margin-top: 24px; }
.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.price-list li {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 14px; color: var(--text-2);
}
.price-list li::before {
  content: '';
  width: 10px; height: 1px;
  background: var(--line-2);
  margin-top: 11px; flex: none;
}

/* ---- closing ---- */

.cta-band {
  max-width: 1180px;
  margin: 128px auto 0;
  padding: 0 30px;
}
.cta-inner {
  position: relative;
  overflow: hidden;
  padding: 56px 44px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(520px 320px at 88% 0%, rgba(79, 140, 255, .14), transparent 68%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--elev-3), var(--edge);
}
.cta-inner h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -.035em; font-weight: 500; }
.cta-inner p { color: var(--dim); margin: 14px 0 28px; max-width: 46ch; }

.site-foot {
  max-width: 1180px;
  margin: 96px auto 0;
  padding: 24px 30px 44px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  color: var(--dim-2); font-size: 13px;
}
.foot-links { display: flex; gap: 18px; }
.foot-links a { transition: color .16s; }
.foot-links a:hover { color: var(--text-2); }

/* ============================================================================
   The about page

   A document, not a landing page: one column of prose with a rail of anchors
   beside it. Measure is capped near 70 characters, which is what stops a long
   page reading as a wall.
   ========================================================================== */

.doc { position: relative; z-index: 1; }

.doc-head {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 30px 0;
}
.doc-head h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 500;
  margin-top: 16px;
  max-width: 16ch;
}
.doc-head h1 em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
}
.doc-head p {
  max-width: 56ch;
  margin-top: 22px;
  color: var(--dim);
  font-size: 16.5px;
}

.doc-body {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 30px 0;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.doc-nav {
  position: sticky; top: 90px;
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.doc-nav a {
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13.5px;
  color: var(--dim-2);
  transition: color .16s, border-color .16s;
}
.doc-nav a:hover { color: var(--text-2); border-left-color: var(--line-2); }

.doc-main > section { padding-bottom: 56px; }
.doc-main > section + section { border-top: 1px solid var(--line); padding-top: 48px; }
.doc-main h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -.035em;
  font-weight: 500;
  margin-bottom: 18px;
}
.doc-main h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.doc-main p { color: var(--text-2); font-size: 15px; max-width: 68ch; }
.doc-main p + p { margin-top: 14px; }
.doc-main ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid; gap: 9px;
  max-width: 68ch;
}
.doc-main li {
  position: relative;
  padding-left: 20px;
  color: var(--dim);
  font-size: 14.5px;
}
.doc-main li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 9px; height: 1px;
  background: var(--line-2);
}

.doc-pillar {
  padding: 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--elev-2), var(--edge);
}
.doc-pillar + .doc-pillar { margin-top: 14px; }
.doc-pillar h3 { font-size: 17px; }

.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 32px; }
.doc-grid p { font-size: 14.5px; color: var(--dim); }

/* The authorization rules read as a numbered sequence, because they run in order. */
.doc-rules { display: grid; gap: 2px; margin-top: 8px; }
.doc-rules > div {
  display: grid; grid-template-columns: 34px 1fr;
  gap: 14px; align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--edge);
}
.doc-rules > div:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.doc-rules > div:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.doc-rules > div + div { border-top: 0; }
.doc-rules .k {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent-3);
  padding-top: 3px;
}
.doc-rules p { font-size: 14.5px; color: var(--text-2); }

.doc-note {
  padding: 16px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--dim) !important;
  font-size: 13.5px !important;
}
.doc-note + .doc-note { margin-top: 10px; }

/* The current page in the public bar. */
.site-nav a.on { color: var(--text); background: var(--panel-2); }

/* ============================================================================
   Auth screen — split: brand panel left, sign-in right
   ========================================================================== */

.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-art {
  position: relative;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(620px 460px at 60% 34%, rgba(79, 140, 255, .10), transparent 66%),
    var(--bg-soft);
  display: flex; flex-direction: column;
  padding: 32px 40px;
  overflow: hidden;
}
.auth-art-body {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  /* Centred, not flex-start: the panel holds the lockup and the globe and nothing
     else, so the two share one vertical axis. */
  align-items: center;
  gap: 34px;
}

/* Bigger than the header lockup. It is the only mark on the panel now, and at 132px
   it read as a leftover from a header that is not there. */
.auth-brand { align-self: center; }
.auth-brand .brand-lockup { width: clamp(150px, 15vw, 200px); }
.auth-art h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -.035em;
  font-weight: 500;
  max-width: 16ch;
}
.auth-art h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.auth-art p { color: var(--dim); max-width: 42ch; }

/* the same globe as the landing, at half the size */
.auth-globe {
  position: relative;
  width: min(320px, 60%);
  aspect-ratio: 1;
  align-self: center;
}
.auth-globe canvas { display: block; width: 100%; height: 100%; }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
}
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 29px; letter-spacing: -.035em; font-weight: 500; }
.auth-box > .auth-lede { color: var(--dim); margin: 10px 0 30px; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5);
  margin-bottom: 22px;
}
.auth-tab {
  padding: 9px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--dim);
  font-size: 13.5px;
  transition: background .16s, color .16s;
}
.auth-tab.active {
  background: var(--panel-3); color: var(--text);
  box-shadow: var(--elev-1), var(--edge);
}

.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-3), var(--panel-2));
  box-shadow: var(--elev-1), var(--edge);
  font-size: 14.5px;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.oauth-btn:hover { border-color: #39414f; box-shadow: var(--elev-2), var(--edge); }
.oauth-off {
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px dashed var(--line-2);
  color: var(--dim);
  font-size: 12.5px;
}
.oauth-off code { color: var(--accent-3); font-size: 11.5px; }

.auth-sep {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  color: var(--dim-2);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
}
.auth-sep::before, .auth-sep::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

.auth-form { display: grid; gap: 16px; }
.auth-error {
  padding: 10px 13px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(242, 85, 90, .35);
  background: rgba(242, 85, 90, .08);
  color: #ff8a8e;
  font-size: 13px;
}
.auth-foot { margin-top: 24px; color: var(--dim); font-size: 13.5px; text-align: center; }
.auth-legal { margin-top: 28px; color: var(--dim-2); font-size: 11.5px; text-align: center; }

/* The two-factor step on the sign-in screen. */
.mfa-ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: var(--r);
  color: var(--accent-3);
  border: 1px solid var(--line-2);
  background: var(--panel);
  box-shadow: var(--elev-1), var(--edge);
}
.code-input {
  font-family: var(--mono);
  letter-spacing: .22em;
  text-align: center;
}

/* ============================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
    gap: 8px;
    text-align: left;
  }
  /* Globe first on a narrow screen: it is the thing worth leading with. */
  .hero-globe { grid-row: 1; max-width: 360px; }
  .hero h1 { max-width: 14ch; }
  .steps { grid-template-columns: 1fr; }
  .module-row { grid-template-columns: 1fr auto; gap: 10px 18px; }
  .module-row p { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .doc-body { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .doc-nav a { padding: 6px 12px 6px 0; border-left: 0; }
  .doc-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 720px) {
  /* Header: brand left, primary action + hamburger grouped right. The nav row folds
     into a panel that drops from under the bar. */
  .site-top-in { padding: 12px 16px; gap: 12px; justify-content: flex-start; }
  .site-top-in .brand { margin-right: auto; }
  .nav-toggle { display: inline-flex; }
  .site-actions .btn-ghost { display: none; }   /* Log in moves into the menu */

  .site-nav {
    display: none;
    position: absolute; top: calc(100% + 1px); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(6, 7, 10, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--elev-3);
  }
  .site-top.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 12px; font-size: 15px; border-radius: var(--r-sm); }
  .site-nav a.nav-cta {
    display: block; margin-top: 8px; text-align: center;
    color: var(--accent-3);
    border: 1px solid var(--line-2);
  }
  body.is-authed .site-nav a.nav-cta { display: none; }

  .doc-head { padding: 40px 18px 0; }
  .doc-body { padding: 32px 18px 0; }
  .doc-pillar { padding: 20px; }
  .hero { padding: 16px 18px 0; }
  .hero-globe { max-width: 300px; }
  .proof { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px 0; }
  .section { padding: 76px 18px 0; }
  .section-head { margin-bottom: 28px; }
  .cta-band { margin-top: 76px; padding: 0 18px; }
  .cta-inner { padding: 34px 24px; }
  .price-card { padding: 24px; }
  .site-foot { padding: 24px 18px 36px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* Phones. The hero copy leads full-width, the two CTAs share the row as equals, and
   the closing band loses the padding that leaves it a sliver of content on a slab. */
@media (max-width: 480px) {
  .hero { min-height: 0; padding-bottom: 8px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 40px); max-width: none; }
  .hero-lede { font-size: 15.5px; max-width: none; }
  .hero-globe { max-width: 260px; }
  .hero-cta { gap: 8px; }
  .hero-cta .btn { flex: 1; }
  .section { padding-top: 60px; }
  .cta-inner { padding: 28px 20px; }
  .cta-inner p { max-width: none; }
  .price-card { padding: 20px; }
  .auth-main { padding: 32px 20px; }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Very narrow: keep only the shield so the actions never wrap under the brand. */
@media (max-width: 380px) {
  .site-top-in .brand-name { display: none; }
}

/* ---- landing: free mail check ------------------------------------------------- */
.qc-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 720px; }
.qc-form .input { flex: 1; min-width: 220px; font-size: 16px; padding: 14px 16px; }
.qc-result { margin-top: 26px; max-width: 880px; display: grid; gap: 16px; }
.qc-loading, .qc-error { padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); color: var(--text-2); display: flex; align-items: center; gap: 12px; }
.qc-error { border-color: var(--bad); color: var(--bad); }
.qc-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: qcspin .8s linear infinite; }
@keyframes qcspin { to { transform: rotate(360deg); } }
.qc-card { display: flex; gap: 24px; padding: 22px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); flex-wrap: wrap; animation: qcin .4s ease-out; }
@keyframes qcin { from { opacity: 0; transform: translateY(8px); } }
.qc-grade { width: 120px; height: 120px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 4px solid var(--g, var(--accent)); flex: none; }
.qc-grade.g-A { --g: var(--ok); } .qc-grade.g-B { --g: var(--low); } .qc-grade.g-C { --g: var(--medium); }
.qc-grade.g-D { --g: var(--high); } .qc-grade.g-F { --g: var(--critical); }
.qc-letter { font-size: 52px; font-weight: 800; line-height: 1; color: var(--g); }
.qc-score { font-size: 12px; color: var(--dim); margin-top: 4px; }
.qc-body { flex: 1; min-width: 240px; }
.qc-body h3 { margin: 4px 0 14px; font-size: 18px; }
.qc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qc-checks li { display: grid; grid-template-columns: 22px 80px 1fr; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--text-2); }
.qc-dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #000; background: var(--dim-2); }
.st-pass .qc-dot { background: var(--ok); } .st-warn .qc-dot { background: var(--warn); } .st-fail .qc-dot { background: var(--critical); }
.qc-fix { padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg-soft); color: var(--text-2); font-size: 14px; }
.qc-fix.ok { border-style: solid; border-color: var(--ok); }
.qc-fix-head { color: var(--text); margin-bottom: 6px; }
.qc-fix pre { margin: 10px 0 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--ok); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; }
.qc-more { margin: 12px 0 0; color: var(--accent-3); }
.qc-cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .qc-checks li { grid-template-columns: 22px 1fr; } .qc-checks li span:last-child { grid-column: 2; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* ===== contract-address chip (landing hero) ===== */
.ca-chip {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding: 9px 12px; cursor: pointer; max-width: 100%;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2);
}
.ca-chip:hover { border-color: var(--accent); }
.ca-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent-3);
  border: 1px solid rgba(79,140,255,.35); border-radius: 5px; padding: 2px 6px;
}
.ca-addr { font-family: var(--mono); font-size: 12px; color: var(--text-2); word-break: break-all; min-width: 0; }
.ca-copy { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.ca-chip:hover .ca-copy { color: var(--text); }
.ca-link { font-size: 11.5px; color: var(--accent-3); text-decoration: none; white-space: nowrap; }
.ca-link:hover { text-decoration: underline; }

/* ===== roadmap page ===== */
.rm-timeline { max-width: 760px; margin: 36px auto 0; padding-left: 26px; border-left: 1px solid var(--line); }
.rm-item { position: relative; padding: 0 0 36px 22px; }
.rm-item::before {
  content: ''; position: absolute; left: -31px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--panel-2); border: 2px solid var(--dim);
}
.rm-item.done::before { background: var(--ok); border-color: var(--ok); }
.rm-item.next::before { background: var(--accent); border-color: var(--accent); }
.rm-when { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; color: var(--dim); text-transform: uppercase; }
.rm-item.done .rm-when { color: var(--ok); }
.rm-item.next .rm-when { color: var(--accent-3); }
.rm-phase {
  display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; background: var(--panel-2);
}
.rm-item h2 { font-size: 21px; margin: 10px 0 10px; letter-spacing: -.02em; }
.rm-item ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.65; }
.rm-item li { margin-bottom: 4px; }
.rm-note { max-width: 760px; margin: 8px auto 48px; color: var(--dim); font-size: 13px; }
@media (max-width: 640px) { .rm-timeline { padding-left: 18px; } .rm-item { padding-left: 14px; } .rm-item::before { left: -23px; } }
