/* =========================================================
   AVANTRI — Design Tokens
   Palette: deep-space navy canvas, faceted electric-blue mark
   Type: Space Grotesk (display, angular — echoes the faceted A),
         Inter (body), IBM Plex Mono (utility / system labels)
   ========================================================= */

:root {
  --bg-void: #060b14;
  --bg-panel: #0d1728;
  --bg-panel-2: #101d33;
  --line: #1e2c42;
  --line-soft: rgba(46, 111, 240, 0.18);

  --brand-blue: #2f6ff0;
  --brand-blue-2: #1a4fd6;
  --brand-cyan: #4fd1ff;

  --text-primary: #f2f5fa;
  --text-muted: #8c9ab3;
  --text-faint: #576480;

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(47, 111, 240, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(79, 209, 255, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-primary);
}

p { margin: 0; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-cyan);
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--brand-cyan);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(47, 111, 240, 0.6);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(47, 111, 240, 0.75); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--brand-cyan); color: var(--brand-cyan); transform: translateY(-2px); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1160px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan));
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    padding: 20px 32px 28px;
    gap: 20px;
  }
}

/* ---------- Sections ---------- */

section { position: relative; z-index: 1; }

.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { font-size: 34px; margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 16.5px; }

hr.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 60px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  margin-top: 18px;
}

.hero h1 .accent { color: var(--brand-cyan); }

.hero p.lead {
  margin-top: 22px;
  font-size: 17.5px;
  max-width: 480px;
  color: var(--text-muted);
}

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

.hero-trust-item svg { width: 15px; height: 15px; color: var(--brand-cyan); flex-shrink: 0; }

.hero-visual { position: relative; }

.hero-visual svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto 20px; }
}

/* ---------- Service cards (system-node style) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}

.svc-card:hover {
  border-color: var(--line-soft);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(47, 111, 240, 0.5);
}

.svc-code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-cyan);
  letter-spacing: 0.1em;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 3px 8px;
  display: inline-block;
}

.svc-card .svc-icon {
  width: 34px;
  height: 34px;
  margin: 18px 0 14px;
  color: var(--brand-cyan);
}

.svc-card h3 { font-size: 18px; margin-bottom: 8px; }
.svc-card p { font-size: 14.5px; }

/* ---------- Interactive service explorer (home) ---------- */

.svc-explorer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-panel);
}

.svc-tablist {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--bg-void);
}

.svc-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 20px 22px;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  position: relative;
}

.svc-tab:last-child { border-bottom: none; }

.svc-tab .svc-code {
  flex-shrink: 0;
  border-color: var(--line);
  color: var(--text-faint);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.svc-tab:hover { color: var(--text-primary); background: rgba(47, 111, 240, 0.05); }

.svc-tab[aria-selected="true"] {
  color: var(--text-primary);
  background: linear-gradient(90deg, rgba(47, 111, 240, 0.14), transparent);
  border-left-color: var(--brand-cyan);
}

.svc-tab[aria-selected="true"] .svc-code {
  color: var(--brand-cyan);
  border-color: var(--line-soft);
}

.svc-tab-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--brand-cyan);
  opacity: 0;
  transition: opacity 0.2s;
}

.svc-tab[aria-selected="true"] .svc-tab-progress {
  opacity: 0.9;
  animation: tabProgress 7s linear forwards;
}

@keyframes tabProgress { from { width: 0%; } to { width: 100%; } }

.svc-panels { padding: 40px 44px; position: relative; min-height: 320px; }

.svc-panel {
  display: none;
  animation: panelIn 0.4s var(--ease);
}

.svc-panel.active { display: block; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.svc-panel-head { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }

.svc-panel .svc-icon-lg {
  width: 44px; height: 44px;
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.svc-panel h3 { font-size: 22px; }

.svc-panel > p.desc { margin: 16px 0 22px; font-size: 15px; max-width: 520px; }

.svc-panel-caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.svc-panel-caps li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.svc-panel-caps li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--brand-blue);
  transform: rotate(45deg);
}

@media (max-width: 760px) {
  .svc-explorer { grid-template-columns: 1fr; }
  .svc-tablist { flex-direction: row; overflow-x: auto; border-right: none; }
  .svc-tab { border-bottom: none; border-left: none; border-bottom: 2px solid transparent; flex-shrink: 0; }
  .svc-tab[aria-selected="true"] { border-left-color: transparent; border-bottom-color: var(--brand-cyan); }
  .svc-panels { padding: 28px 24px; }
  .svc-panel-caps { grid-template-columns: 1fr; }
}

/* ---------- Accordion + linked node map (services page) ---------- */

.svc-map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  padding: 28px clamp(16px, 4vw, 44px);
  margin-bottom: 56px;
}

.svc-map-wrap svg { width: 100%; height: auto; display: block; }

.svc-map-node { cursor: pointer; }
.svc-map-node .node-hit { fill: transparent; }
.svc-map-node .node-dot { transition: r 0.25s var(--ease), fill 0.25s var(--ease); }
.svc-map-node .node-label { transition: fill 0.25s var(--ease); font-family: var(--font-mono); font-size: 12px; fill: var(--text-muted); }
.svc-map-node:hover .node-dot, .svc-map-node.is-active .node-dot { fill: #4fd1ff; r: 7; }
.svc-map-node:hover .node-label, .svc-map-node.is-active .node-label { fill: #f2f5fa; }
.svc-map-node:focus-visible { outline: none; }
.svc-map-node:focus-visible .node-dot { stroke: #4fd1ff; stroke-width: 2; }
.svc-map-hint {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 4px;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.accordion-item:last-of-type { border-bottom: none; }

.accordion-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 30px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
}

.accordion-trigger .svc-detail-label { display: flex; align-items: center; gap: 14px; }

.accordion-trigger h3 { font-size: 20px; }

.accordion-chevron {
  width: 18px; height: 18px;
  color: var(--text-faint);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-chevron { transform: rotate(180deg); color: var(--brand-cyan); }
.accordion-item.is-open .accordion-trigger { color: var(--brand-cyan); }
.accordion-item.is-open .accordion-trigger h3 { color: var(--text-primary); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.accordion-panel-inner { padding: 0 0 34px 0; max-width: 640px; }
.accordion-panel-inner p { margin-bottom: 16px; }

.accordion-panel-inner ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.accordion-panel-inner li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.accordion-panel-inner li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--brand-blue);
  transform: rotate(45deg);
}

@media (max-width: 720px) {
  .accordion-trigger { grid-template-columns: 1fr auto; }
  .accordion-trigger .svc-detail-label span:not(.svc-code) { display: none; }
}

/* ---------- Detailed service block (services page) ---------- */

.svc-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.svc-detail:last-of-type { border-bottom: none; }

.svc-detail-label { display: flex; align-items: flex-start; gap: 14px; }

.svc-detail h3 { font-size: 22px; margin: 4px 0 12px; }

.svc-detail ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }

.svc-detail li {
  font-size: 14.5px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.svc-detail li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--brand-blue);
  transform: rotate(45deg);
}

@media (max-width: 720px) {
  .svc-detail { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Tag chips (supporting services) ---------- */

.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  transition: color 0.25s, border-color 0.25s;
}

.chip:hover { color: var(--brand-cyan); border-color: var(--line-soft); }

/* ---------- Stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text-primary);
}

.stat-num .unit { color: var(--brand-cyan); }

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 6px;
}

/* ---------- Why AVANTRI (home) ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  margin-bottom: 28px;
}

.why-item { display: flex; gap: 16px; }
.why-item h4 { font-size: 16px; margin-bottom: 6px; }
.why-item p { font-size: 14px; }

@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; gap: 22px; } }

.why-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-cyan);
  transition: gap 0.25s var(--ease);
}
.why-more svg { width: 15px; height: 15px; }
.why-more:hover { gap: 12px; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 { font-size: 28px; max-width: 480px; }

@media (max-width: 680px) { .cta-banner { padding: 36px 28px; } }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-col a, .footer-col span {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--brand-cyan); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (non-home pages) ---------- */

.page-header { padding: 72px 0 20px; }
.page-header h1 { font-size: 42px; margin-top: 16px; max-width: 640px; }
.page-header p.lead { margin-top: 16px; font-size: 16.5px; max-width: 560px; color: var(--text-muted); }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.value-list { display: grid; gap: 22px; }

.value-item { display: flex; gap: 16px; }

.value-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand-cyan);
  padding-top: 3px;
}

.value-item h4 { font-size: 16px; margin-bottom: 6px; }
.value-item p { font-size: 14.5px; }

.col-title { font-size: 26px; margin-bottom: 20px; }
.title-center { text-align: center; }
.title-tight { font-size: 20px; margin-bottom: 28px; }

.prose > p { margin-bottom: 16px; }
.prose > p:last-child { margin-bottom: 0; }

.form-submit { justify-self: start; }

.founder-note {
  border-left: 2px solid var(--brand-cyan);
  padding: 4px 0 4px 20px;
  margin-top: 8px;
}
.founder-note p {
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}
.founder-note span {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand-cyan);
}

.cert-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .cert-strip { grid-template-columns: 1fr; } }

.cert-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.cert-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-2));
}
.cert-item h4 { font-size: 14.5px; margin-bottom: 2px; }
.cert-item p { font-size: 13px; color: var(--text-muted); }

/* ---------- Hero network SVG motion ---------- */

.pulse-dot {
  animation: pulseGlow 2.6s ease-in-out infinite;
  transform-origin: center;
}
.pulse-dot.delay-1 { animation-delay: 0.4s; }
.pulse-dot.delay-2 { animation-delay: 0.8s; }
.pulse-dot.delay-3 { animation-delay: 1.2s; }

@keyframes pulseGlow {
  0%, 100% { opacity: 0.55; r: 4; }
  50% { opacity: 1; r: 5.5; }
}

.trail-line {
  stroke-dasharray: 6 10;
  animation: trailFlow 6s linear infinite;
}

@keyframes trailFlow {
  to { stroke-dashoffset: -160; }
}

/* ---------- Process steps (home) ---------- */

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}

.process-row::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.process-step { position: relative; z-index: 1; }

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  color: var(--brand-cyan);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 18px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.process-step:hover .process-num {
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(79, 209, 255, 0.1);
}

.process-num svg { width: 17px; height: 17px; }

.process-step h4 { font-size: 16.5px; margin-bottom: 8px; }
.process-step p { font-size: 14px; max-width: 240px; }

@media (max-width: 760px) {
  .process-row { grid-template-columns: 1fr; gap: 32px; }
  .process-row::before { top: 0; bottom: 0; left: 19px; right: auto; width: 1px; height: auto; }
  .process-step p { max-width: none; }
}

/* ---------- Mobile refinements ---------- */

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 14px 20px; }
  .nav-toggle { padding: 10px 12px; }
  .brand { font-size: 18px; }

  .hero { padding: 56px 0 36px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }

  .page-header { padding: 52px 0 12px; }
  .page-header h1 { font-size: 27px; }

  .section { padding: 64px 0; }
  .section-tight { padding: 44px 0; }
  .section-head h2 { font-size: 24px; }

  .svc-panels { padding: 24px 20px; }
  .svc-panel h3 { font-size: 19px; }

  .cta-banner { flex-direction: column; align-items: flex-start; padding: 30px 22px; }
  .cta-banner h2 { font-size: 22px; }
  .cta-banner .btn { width: 100%; justify-content: center; }

  .stat-row { gap: 22px 16px; }
  .stat-num { font-size: 30px; }

  .footer-grid { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 28px; }

  .cert-item { padding: 14px 16px; }

  .accordion-trigger { padding: 22px 0; gap: 18px; }
  .svc-map-wrap { padding: 20px 16px; margin-bottom: 40px; }
  .founder-note p { font-size: 14px; }

  .hero-trust { gap: 14px 20px; margin-top: 22px; }
  .why-grid { margin-bottom: 22px; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
}

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 26px; align-content: start; }

.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }

.contact-info-item .icon { width: 20px; height: 20px; color: var(--brand-cyan); margin-top: 2px; flex-shrink: 0; }

.contact-info-item h4 { font-size: 14px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--text-muted); }

form.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text-primary);
  transition: border-color 0.25s var(--ease);
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(79, 209, 255, 0.12);
}

textarea { resize: vertical; min-height: 130px; }

.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
}

.field-error {
  font-size: 12px;
  color: #ff8686;
  margin-top: 6px;
  display: none;
}

.field-error.show { display: block; }

.form-success {
  display: none;
  background: rgba(79, 209, 255, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--brand-cyan);
}

.form-success.show { display: block; }
