/* Zinea USA - static rebuild of the root site.
   Structure follows netspi.com; accent is violet rather than yellow/orange.
   No build step, no framework: one stylesheet, hand-authored. */

:root {
  /* Dark-dominant like the reference. Neutrals carry a violet bias so the
     greys read as chosen rather than default mid-grey. */
  --ground:        #0A0912;
  --surface:       #12101D;
  --surface-2:     #1A1729;
  --surface-3:     #241F3A;
  --hairline:      #2A2540;
  --hairline-soft: #1F1B31;

  --ink:        #F4F2FA;
  --ink-soft:   #ADA6C6;
  --ink-faint:  #776F94;

  /* Violet replaces the reference's yellow: same job, one loud accent. */
  --accent:       #8B5CF6;
  --accent-bright:#A78BFA;
  --accent-deep:  #6D28D9;
  --accent-ink:   #12081F;
  --accent-wash:  rgba(139, 92, 246, 0.12);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1180px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0;
}
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-display); font-weight: 700; font-size: 0.97rem;
  letter-spacing: -0.005em;
  padding: 14px 26px; border-radius: 2px; border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  text-decoration: none; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.head-in { display: flex; align-items: center; gap: 30px; height: 74px; }
/* The wordmark is the company's own asset (white-on-transparent), carried
   over from the previous site rather than re-drawn. */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; opacity: .85; }
.brand img { height: 31px; width: auto; display: block; }
.site-foot .brand img { height: 28px; }
@media (max-width: 620px) { .brand img { height: 27px; } }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  color: var(--ink-soft); font-size: 0.95rem; font-weight: 600;
  text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink); border-bottom-color: var(--accent); text-decoration: none;
}
.nav .ext::after { content: "↗"; font-size: .72em; margin-left: 4px; color: var(--ink-faint); }
.head-cta { margin-left: 8px; }
.navtoggle { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .navtoggle {
    display: inline-flex; margin-left: auto; background: none;
    border: 1px solid var(--hairline); color: var(--ink);
    font-family: var(--f-mono); font-size: .8rem; padding: 9px 14px; border-radius: 2px;
  }
  .site-head.open .nav {
    display: flex; position: absolute; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gut) 18px;
  }
  .site-head.open .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--hairline-soft); }
  .head-cta { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline-soft); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; pointer-events: none;
  background: radial-gradient(circle at 60% 40%, rgba(139,92,246,.20), transparent 62%);
}
.hero-in { position: relative; padding-block: clamp(64px, 11vw, 124px) clamp(56px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 56px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline-soft);
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* The hero lattice is decoration. Once the hero stacks it becomes a row of
   its own, pushing the headline and CTA down the screen for no informational
   gain - so it is removed rather than shrunk. display:none also stops the
   pulse animation running against a phone battery for something unseen. */
@media (max-width: 900px) { .hero-art { display: none; } }

/* decorative node lattice, echoing the reference's geometric motif */
.lattice { width: 100%; height: auto; }
.lattice .edge { stroke: var(--hairline); stroke-width: 1; }
.lattice .edge-hot { stroke: var(--accent-deep); stroke-width: 1.4; }
.lattice .node { fill: var(--surface-3); stroke: var(--hairline); }
.lattice .node-hot { fill: var(--accent); stroke: none; }
.lattice .pulse { animation: pulse 3.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:.35 } 50% { opacity:1 } }

/* ---------- generic section ---------- */
.sec { padding-block: clamp(58px, 8vw, 98px); }
.sec-alt { background: var(--surface); border-block: 1px solid var(--hairline-soft); }
.sec-head { max-width: 70ch; margin-bottom: 44px; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { margin-top: 18px; color: var(--ink-soft); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline-soft); }
.card {
  background: var(--ground); padding: 32px 28px 30px;
  display: flex; flex-direction: column; gap: 13px;
  transition: background .2s ease;
}
.sec-alt .card { background: var(--surface); }
.card:hover { background: var(--surface-2); }
.card h3, .post h3 { color: var(--ink); }
.card:hover h3 { color: var(--accent-bright); }
.post:hover h3 { color: var(--accent-bright); }
.card .num { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; color: var(--accent-bright); }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card .more { margin-top: auto; padding-top: 14px; font-family: var(--f-display); font-weight: 700; font-size: .92rem; color: var(--ink); }
.card:hover .more { color: var(--accent-bright); }

/* ---------- capability strip ---------- */
.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; }
@media (max-width: 980px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .caps { grid-template-columns: 1fr; } }
.cap { display: flex; gap: 15px; align-items: flex-start; }
.cap .ico { flex: none; width: 38px; height: 38px; border: 1px solid var(--hairline); border-radius: 2px; display: grid; place-items: center; background: var(--accent-wash); }
.cap .ico svg { width: 19px; height: 19px; stroke: var(--accent-bright); fill: none; stroke-width: 1.7; }
.cap h3 { font-size: 1rem; }
.cap p { color: var(--ink-soft); font-size: .93rem; margin-top: 5px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline-soft); }
.stat { background: var(--ground); padding: 30px 26px; }
.sec-alt .stat { background: var(--surface); }
.stat .n {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.3rem, 4.6vw, 3.2rem);
  line-height: 1; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat .lbl { margin-top: 11px; font-weight: 600; }
.stat .sub { color: var(--ink-faint); font-size: .89rem; margin-top: 3px; }

/* ---------- certification chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 11px; }
.chip {
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .06em;
  padding: 9px 15px; border: 1px solid var(--hairline);
  background: var(--surface-2); color: var(--ink);
}
.sec-alt .chip { background: var(--surface-3); }

/* ---------- reasons ---------- */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); gap: 28px; }
.reason { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; }
.reason h3 { font-size: 1.08rem; }
.reason p { color: var(--ink-soft); margin-top: 9px; font-size: .97rem; }

/* ---------- blog teaser ---------- */
.blog-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--hairline-soft); border: 1px solid var(--hairline-soft); }
.post { background: var(--ground); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.sec-alt .post { background: var(--surface); }
.post .kicker { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-faint); }
.post h3 { font-size: 1.1rem; }
.post p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent-deep) 0%, #3B1D8C 55%, var(--surface-2) 100%);
  border-block: 1px solid var(--hairline);
}
.cta-in { padding-block: clamp(54px, 8vw, 88px); display: grid; grid-template-columns: minmax(0,1.3fr) auto; gap: 40px; align-items: center; }
.cta-in h2 { text-transform: none; }
.cta-in p { color: #DCD3F5; margin-top: 16px; max-width: 54ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.cta-band .btn-primary { background: #fff; color: #2A1160; }
.cta-band .btn-primary:hover { background: #EDE7FB; }
@media (max-width: 860px) { .cta-in { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--surface); border-top: 1px solid var(--hairline-soft); padding-block: 56px 30px; }
.foot-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: 40px; }
.foot-grid h4 { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 15px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink-soft); font-size: .95rem; }
.foot-grid a:hover { color: var(--ink); }
.foot-blurb { color: var(--ink-soft); font-size: .95rem; margin-top: 15px; max-width: 38ch; }
.foot-bar {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hairline-soft);
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center;
  font-size: .88rem; color: var(--ink-faint);
}
.foot-bar .spacer { margin-left: auto; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- inner page header ---------- */
.page-head { border-bottom: 1px solid var(--hairline-soft); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: auto auto -60% -10%; width: 50vw; height: 40vw;
  background: radial-gradient(circle, rgba(139,92,246,.16), transparent 65%); pointer-events: none;
}
.page-head-in { position: relative; padding-block: clamp(52px, 8vw, 86px) clamp(40px, 6vw, 64px); }
.page-head h1 { margin-top: 16px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head .lede { margin-top: 20px; }

.prose { max-width: 68ch; display: grid; gap: 20px; }
.prose h2 { margin-top: 22px; }
.prose h3 { margin-top: 14px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.prose strong { color: var(--ink); }

/* ---------- split section: heading left, body right ----------
   A single narrow column inside a 1180px wrap leaves most of the page empty
   at desktop. Splitting keeps the reading measure but uses the width, and
   gives long service pages a rhythm instead of one long left-aligned ribbon. */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 30px 64px; align-items: start; }
.split > .split-head { position: sticky; top: 104px; }
.split > .split-head h2 { margin-top: 14px; }
.split .prose { max-width: 60ch; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 22px; }
  .split > .split-head { position: static; }
}

/* ---------- legal pages ----------
   WordPress block markup carried over verbatim with the policy text, so the
   styling hooks are theirs (wp-block-*), not ours. */
.legal { max-width: 74ch; }
.legal h1 { font-size: 1.62rem; margin-top: 38px; letter-spacing: -.015em; }
.legal h2 { font-size: 1.28rem; margin-top: 28px; }
.legal h3, .legal h4 { font-size: 1.06rem; margin-top: 18px; color: var(--ink); }
.legal h1:first-child, .legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 22px; display: grid; gap: 9px; margin: 0; }
.legal strong { color: var(--ink); }
.legal a { word-break: break-word; }

/* ---------- contact form ----------
   Two-column grid matching the netspi.com layout: paired fields on each row,
   all controls the same height so left and right edges line up, and only the
   textarea spanning both columns. */
.form-panel {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--accent);
  border-radius: 3px;
  padding: 28px;
}
.sec-alt .form-panel { background: var(--ground); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; }
.field.wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--f-body); font-size: .86rem; font-weight: 600;
  color: var(--ink-soft); line-height: 1.3;
}
.field label .hint { color: var(--ink-faint); font-weight: 400; }

.field input, .field textarea {
  font-family: var(--f-body); font-size: .97rem; color: var(--ink);
  background: var(--ground); border: 1px solid var(--hairline);
  border-radius: 2px; padding: 0 14px; width: 100%;
  height: 46px;                      /* fixed so every control aligns */
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sec-alt .form-panel .field input,
.sec-alt .form-panel .field textarea { background: var(--surface); }
.field textarea { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

/* honeypot: off-screen rather than display:none, which some bots detect */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.captcha-row { grid-column: 1 / -1; min-height: 78px; }
.form-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--hairline-soft);
}
.form-note { font-size: .93rem; margin: 0; }
.form-note.ok  { color: #7FD6A4; }
.form-note.err { color: #F08A82; }
.form-privacy { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-faint); margin: 0; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

@media (max-width: 640px) {
  .form { grid-template-columns: 1fr; }
  .form-panel { padding: 22px 20px; }
}

/* reCAPTCHA v3 badge: hidden, which Google permits only when the required
   attribution text is shown instead - it sits under the submit button. */
.grecaptcha-badge { visibility: hidden; }
