/* ============================================================
   smbpentest.com — shared styles
   Palette: blue primary · red micro-accent · off-white · charcoal
   ============================================================ */

:root {
  --bg:         #0c0e12;   /* dark charcoal */
  --bg-2:       #101319;
  --ink:        #f3f1ea;   /* warm off-white */
  --muted:      #a7afbd;
  --muted-2:    #6b7280;
  --charcoal:   #15181e;   /* borders / dark surfaces */
  --accent:     #2c63d6;   /* blue — primary (darker hue) */
  --accent-2:   #4f86ee;   /* highlight blue */
  --blue-deep:  #2452c4;   /* deep navy — solid fills */
  --accent-red: #f23a2c;   /* red — intense accent */
  --card:       rgba(243, 241, 234, 0.04);
  --card-bd:    rgba(243, 241, 234, 0.10);
  --card-bd-2:  rgba(243, 241, 234, 0.20);
  --err:        #f2503f;
  --radius:     4px;
  --shadow:     0 28px 70px -28px rgba(59, 130, 246, 0.5);
  --font-disp:  "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body:  "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- top nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand .dot {
  width: 10px; height: 10px;
  /* sharp angled chip instead of a round dot */
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  background: var(--accent);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.9);
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ============================================================
   Hero + circuit-glow background
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px clamp(20px, 6vw, 60px) 80px;
  overflow: hidden;
  isolation: isolate;
}
/* soft ambient blooms — same gentle intensity as before, recolored
   to a blue primary with a faint red micro-accent. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -3;
  background:
    radial-gradient(42% 55% at 18% 22%, rgba(36, 82, 196, 0.22) 0%, transparent 60%),
    radial-gradient(38% 46% at 82% 28%, rgba(242, 58, 44, 0.15) 0%, transparent 60%),
    radial-gradient(52% 60% at 62% 96%, rgba(36, 82, 196, 0.16) 0%, transparent 65%),
    linear-gradient(160deg, #0f121a, #0a0c10 72%);
  background-size: 180% 180%;
  animation: drift 28s ease-in-out infinite alternate;
}
/* vignette: keeps the glow from reaching/overwhelming the edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(125% 85% at 50% 0%, transparent 52%, rgba(8, 9, 12, 0.9) 100%);
  pointer-events: none;
}
@keyframes drift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* circuit traces + traveling glows (SVG injected by circuit.js) */
.circuit-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.circuit-bg svg { width: 100%; height: 100%; display: block; }
.circuit-bg .trace {
  fill: none;
  stroke: rgba(176, 186, 206, 0.09);   /* faint charcoal-blue linework */
  stroke-width: 1.4;
}
.circuit-bg .pad {
  fill: none;
  stroke: rgba(176, 186, 206, 0.16);
  stroke-width: 1.3;
}
.circuit-bg .node-blue { fill: var(--accent); }
.circuit-bg .node-red  { fill: var(--accent-red); }
.circuit-bg .pulse {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 14 150;
  opacity: 0;
  animation: flow var(--dur, 8s) linear infinite var(--delay, 0s);
}
.circuit-bg .pulse-blue {
  stroke: #6fa0f5;
  filter: drop-shadow(0 0 4px #2c63d6) drop-shadow(0 0 8px rgba(44, 99, 214, 0.55));
}
.circuit-bg .pulse-red {
  stroke: #ff6b5e;
  filter: drop-shadow(0 0 5px #f23a2c) drop-shadow(0 0 11px rgba(242, 58, 44, 0.62));
}
/* travel + a quick fade-in / quicker fade-out (peak ~0.8 = ~10% softer) */
@keyframes flow {
  0%   { stroke-dashoffset: 100; opacity: 0; }
  10%  { opacity: 0.8; }
  55%  { opacity: 0.8; }
  72%  { opacity: 0; }
  100% { stroke-dashoffset: -50; opacity: 0; }
}
/* fixed full-page variant (about page), a touch calmer */
.circuit-fixed { position: fixed; z-index: -1; opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  .circuit-bg .pulse { animation: none; opacity: 0.45; }
  .hero::before { animation: none; }
  .eyebrow .pulse, .page li::before { animation: none; }
}

.hero-inner { max-width: 980px; }

.eyebrow {
  --cut: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(243, 241, 234, 0.06);
  backdrop-filter: blur(8px);
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 30px;
}
/* solid red chip that blinks — the "live" indicator for NO BOTS */
.eyebrow .pulse {
  width: 11px; height: 11px; border-radius: 0;
  background: var(--accent-red);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  box-shadow: 0 0 7px rgba(242, 58, 44, 0.9);
  animation: blink 1.3s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.16; }
}

.hero h1 {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  /* flat off-white — no gradient */
  color: #f6f5f0;
}
.hero h1 .grad {
  /* solid blue accent word, like a single livery colour */
  color: var(--accent-2);
}
.hero p.sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 42px;
  line-height: 1.55;
}

/* ---------- buttons ---------- */
.btn {
  --cut: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  border-radius: 0;
  /* keen-angled parallelogram (racing livery) */
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform .15s ease, filter .2s ease, background .2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-primary {
  --cut: 16px;
  position: relative;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  padding: 17px 48px;
  color: #fff;
  background: var(--blue-deep);   /* flat deep navy body */
  /* drop-shadow (not box-shadow) so the glow follows the clipped shape */
  filter: drop-shadow(0 16px 26px rgba(36, 82, 196, 0.5));
}
.btn-primary:hover { transform: translateY(-2px); filter: drop-shadow(0 22px 34px rgba(36, 82, 196, 0.78)); }
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { transition: transform .2s ease; }
.btn-primary:hover svg { transform: translateX(4px); }
/* solid red corner segments (color as blocks, not lines) */
.btn-primary::before,
.btn-primary::after {
  content: ""; position: absolute; width: 28px; height: 6px; background: var(--accent-red);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  pointer-events: none;
}
.btn-primary::before { top: 9px; right: 16px; }
.btn-primary::after  { bottom: 9px; left: 16px; }

.btn-ghost {
  --cut: 12px;
  font-size: 1rem;
  padding: 14px 32px;
  color: var(--ink);
  background: rgba(243, 241, 234, 0.07);
}
.btn-ghost:hover { background: rgba(243, 241, 234, 0.15); }

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }


.hero .trust {
  margin-top: 34px;
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 14px;
}
.hero .trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero .trust svg { color: var(--accent-2); }

/* ============================================================
   Questionnaire overlay
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 8, 11, 0.74);
  backdrop-filter: blur(10px);
  animation: fade .25s ease;
}
.overlay.open { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.wiz {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--card-bd);
  border-radius: 6px;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .9);
  overflow: hidden;
  animation: pop .3s cubic-bezier(.2,.9,.3,1.3);
}
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

.wiz-progress {
  height: 4px;
  background: rgba(243, 241, 234, .07);
  flex: none;
}
.wiz-progress > i {
  display: block;
  height: 100%;
  width: 0%;
  /* flat blue fill with a hard red leading edge */
  background: linear-gradient(90deg, var(--accent) 0 calc(100% - 5px), var(--accent-red) calc(100% - 5px) 100%);
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

.wiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 4px;
  flex: none;
}
.wiz-step-count { font-size: 13px; color: var(--muted-2); font-weight: 500; letter-spacing: .03em; }
.wiz-close {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 26px; line-height: 1;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; transition: all .15s ease;
}
.wiz-close:hover { background: rgba(243, 241, 234, .08); color: var(--ink); }

.wiz-body {
  padding: 10px 24px 6px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.wiz-body h2 {
  font-family: var(--font-disp);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 6px 0 6px;
  line-height: 1.2;
}
.wiz-help { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }

/* form sections (single-page form) */
.form-section { margin: 0 0 22px; }
.form-section + .form-section { border-top: 1px solid rgba(243, 241, 234, .06); padding-top: 20px; }
.form-q { font-family: var(--font-disp); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; margin: 0 0 5px; }
.form-help { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.section-err { margin-top: 8px; }

/* option cards */
.opts { display: grid; gap: 12px; margin-bottom: 8px; }
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  padding: 17px 18px;
  border-radius: 3px;
  border: 1px solid var(--card-bd);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.opt:hover { border-color: var(--card-bd-2); background: rgba(243, 241, 234, .07); transform: translateY(-1px); }
.opt.sel { border-color: var(--accent); background: rgba(59, 130, 246, .14); box-shadow: inset 3px 0 0 var(--accent); }
.opt .tick {
  margin-left: auto;
  width: 22px; height: 22px; border-radius: 3px;
  border: 1px solid var(--card-bd-2);
  display: grid; place-items: center;
  flex: none;
  transition: all .15s ease;
}
.opt.sel .tick { background: var(--accent); border-color: var(--accent); }
.opt .tick svg { opacity: 0; transition: opacity .15s ease; }
.opt.sel .tick svg { opacity: 1; }
.opt .o-emoji { font-size: 20px; }
.opt .o-text { display: flex; flex-direction: column; gap: 2px; }
.opt .o-text small { color: var(--muted); font-weight: 400; font-size: 13px; }

/* inputs */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.field .req { color: var(--accent-red); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input, textarea.input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 3px;
  border: 1px solid var(--card-bd);
  background: rgba(0, 0, 0, .25);
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .22);
}
.input::placeholder { color: var(--muted-2); }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.5; }
.input-wrap .suffix {
  position: absolute; right: 16px; color: var(--muted-2); font-size: 14px; pointer-events: none;
}
.input.num { padding-right: 92px; }

.field-err { color: var(--err); font-size: 13px; margin-top: 6px; display: none; }
.field.invalid .input { border-color: var(--err); }
.field.invalid .field-err { display: block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .grid-2 { grid-template-columns: 1fr; } }

/* small selectable chips (web-app environment) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn {
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 11px 17px; border-radius: 3px;
  border: 1px solid var(--card-bd); background: var(--card); color: var(--ink);
  cursor: pointer; transition: all .15s ease;
}
.chip-btn:hover { border-color: var(--card-bd-2); background: rgba(243, 241, 234, .07); }
.chip-btn.sel { border-color: var(--accent); background: rgba(59, 130, 246, .14); box-shadow: inset 3px 0 0 var(--accent); }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* review */
.review-list { display: grid; gap: 2px; margin-bottom: 8px; }
.review-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 2px; border-bottom: 1px solid rgba(243, 241, 234, .06);
  font-size: 15px;
}
.review-row .k { color: var(--muted); flex: none; }
.review-row .v { text-align: right; font-weight: 500; }

/* footer of wizard */
.wiz-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px 22px;
  flex: none;
  border-top: 1px solid rgba(243, 241, 234, .06);
  background: rgba(0, 0, 0, .2);
}
.wiz-back {
  background: transparent; border: none; color: var(--muted); cursor: pointer;
  font-size: 15px; font-family: inherit; font-weight: 500; padding: 10px 4px;
  display: inline-flex; align-items: center; gap: 6px; transition: color .15s ease;
}
.wiz-back:hover { color: var(--ink); }

/* success / error states */
.wiz-result { text-align: center; padding: 36px 28px 40px; }
.wiz-result .badge {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, .4), rgba(59, 130, 246, .08));
  border: 1px solid rgba(59, 130, 246, .5);
}
.wiz-result.is-err .badge {
  background: radial-gradient(circle at 30% 30%, rgba(224, 89, 79, .4), rgba(224, 89, 79, .08));
  border-color: rgba(224, 89, 79, .5);
}
.wiz-result h2 { font-family: var(--font-disp); font-size: 1.7rem; margin: 0 0 10px; letter-spacing: -.02em; }
.wiz-result p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 420px; margin: 0 auto 26px; }
.wiz-result .actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(243, 241, 234, .25); border-top-color: var(--accent-2);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   About page
   ============================================================ */
.page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 140px clamp(22px, 6vw, 40px) 100px;
}
/* ambient blooms behind the fixed circuit layer */
.page::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(48% 42% at 82% 2%, rgba(36, 82, 196, 0.18) 0%, transparent 58%),
    radial-gradient(42% 40% at 2% 100%, rgba(242, 58, 44, 0.12) 0%, transparent 58%),
    var(--bg);
}
.page h1 {
  font-family: var(--font-disp); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -.03em;
  margin: 0 0 8px; line-height: 1.05;
}
.page .lede { color: var(--muted); font-size: 1.2rem; line-height: 1.6; margin: 0 0 40px; }
.page h2 {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-disp); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -.02em; margin: 40px 0 12px;
}
/* solid chip marker before each heading (color as a block) */
.page h2::before {
  content: ""; flex: none; width: 11px; height: 11px;
  background: var(--accent-2);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.page p { color: #d8d8d0; font-size: 1.05rem; line-height: 1.75; margin: 0 0 18px; }
.page ul { color: #d8d8d0; line-height: 1.7; list-style: none; padding-left: 22px; margin: 28px 0 32px; }
.page li { position: relative; margin-bottom: 13px; padding-left: 28px; }
/* the "NO BOTS" red blinker chip, reused as the list bullet */
.page li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 13px; height: 13px;
  background: var(--accent-red);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
  box-shadow: 0 0 7px rgba(242, 58, 44, 0.85);
  animation: blink 1.3s ease-in-out infinite;
}
.page li:nth-child(2)::before { animation-delay: .22s; }
.page li:nth-child(3)::before { animation-delay: .44s; }
.page li:nth-child(4)::before { animation-delay: .66s; }
.page li:nth-child(5)::before { animation-delay: .88s; }
.page li:nth-child(6)::before { animation-delay: 1.1s; }
.page strong { color: var(--ink); font-weight: 600; }
.page a.inline { color: var(--accent-2); text-decoration: none; border-bottom: 1px solid rgba(91, 155, 255, .4); }
.page a.inline:hover { border-color: var(--accent-2); }
.cta-band {
  margin-top: 50px; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--card-bd); border-left: 3px solid var(--accent); background: var(--card);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cta-band p { margin: 0; font-size: 1.15rem; color: var(--ink); font-weight: 500; }
.avatar {
  position: relative;
  width: 96px; height: 96px; margin-bottom: 22px;
  border-radius: 0;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  display: grid; place-items: center; font-family: var(--font-disp); font-weight: 700; font-size: 34px;
  color: #ffffff;
  background: var(--blue-deep);
  filter: drop-shadow(0 16px 26px rgba(36, 82, 196, 0.45));
}
.avatar::after {
  content: ""; position: absolute; bottom: 12px; left: 26px;
  width: 22px; height: 5px; background: var(--accent-red);
  clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.site-foot {
  position: relative;
  z-index: 1;
  text-align: center; color: var(--muted-2); font-size: 14px;
  padding: 30px 20px 40px;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
