/* ==========================================================================
   OTegrity, LLC — Interim marketing site
   Aesthetic: "Signal Integrity" — instrument-grade dark UI, brand gradient
   reads as a live signal trace. Brand palette from official guidelines:
   mint #63BD9D · cyan #0DB8E4 · navy #1B4182
   ========================================================================== */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Brand */
  --mint: #63BD9D;
  --cyan: #0DB8E4;
  --navy: #1B4182;
  --blue-bright: #3f86d8;          /* lifted navy for gradients on dark */

  /* Canvas */
  --bg: #070c1c;
  --bg-2: #0a1126;
  --surface: #0e1730;
  --surface-2: #122042;
  --surface-3: #16264c;

  /* Lines & text */
  --line: rgba(125, 170, 205, 0.12);
  --line-strong: rgba(125, 170, 205, 0.22);
  --text: #eaf1fb;
  --muted: #9db1d2;
  --dim: #6075a0;

  /* Signal gradient (legible on dark) */
  --grad: linear-gradient(105deg, var(--mint) 0%, var(--cyan) 50%, var(--blue-bright) 100%);
  --grad-soft: linear-gradient(105deg, rgba(99,189,157,.16), rgba(13,184,228,.16) 50%, rgba(63,134,216,.16));

  /* Type */
  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Geometry */
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  /* Shadows */
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --glow-cyan: 0 0 0 1px rgba(13, 184, 228, 0.25), 0 18px 50px -22px rgba(13, 184, 228, 0.45);
}

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(13, 184, 228, 0.3); color: #fff; }

/* ----- Background atmosphere -------------------------------------------- */
/* Fixed engineering grid + brand glows + subtle grain, all behind content. */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(99, 189, 157, 0.14), transparent 60%),
    radial-gradient(1000px 700px at 92% 4%, rgba(13, 184, 228, 0.14), transparent 60%),
    radial-gradient(1100px 900px at 50% 112%, rgba(27, 65, 130, 0.30), transparent 60%),
    var(--bg);
}
.bg-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 170, 205, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 170, 205, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 80%);
}
/* faint grain via repeating gradient — no external image */
.bg-field::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}

/* ----- Layout primitives ------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.4vw, 50px); }
h3 { font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; letter-spacing: -0.01em; }
p { color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c4d3ec; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  --b: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary {
  color: #051018;
  background: var(--grad);
  box-shadow: var(--glow-cyan);
  font-weight: 700;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(13,184,228,.4), 0 22px 50px -18px rgba(13,184,228,.6); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Header ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 12, 28, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
/* white-knockout treatment of full-color logo for the dark header */
.brand img { height: 30px; width: auto; filter: brightness(0) invert(1); transition: opacity .2s; }
.brand:hover img { opacity: .85; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 15px;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 5px;
  background: var(--grad); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; color: var(--text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative; margin: 0 auto; transition: transform .3s, opacity .3s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ----- Hero ------------------------------------------------------------- */
.hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 76px); }
.hero .lead { margin-top: 24px; max-width: 38ch; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 26px;
  font-family: var(--font-mono); font-size: 13px; color: var(--dim);
  border-top: 1px solid var(--line); padding-top: 24px;
}
.hero-meta b { color: var(--text); font-weight: 600; }

/* staggered reveal on load */
.rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.3,1) forwards; }
.rise:nth-child(1) { animation-delay: .05s; }
.rise:nth-child(2) { animation-delay: .15s; }
.rise:nth-child(3) { animation-delay: .25s; }
.rise:nth-child(4) { animation-delay: .35s; }
.rise:nth-child(5) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero instrument panel — animated signal trace */
.panel {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(13,184,228,.12), transparent 55%);
  pointer-events: none;
}
.panel-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 16px;
}
.dot-row { display: flex; gap: 6px; }
.dot-row i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); display: block; }
.dot-row i.live { background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.scope { width: 100%; height: 168px; display: block; }
.scope .trace { stroke: url(#sig); stroke-width: 2.5; fill: none; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s ease-out forwards .4s; }
.scope .trace2 { stroke: rgba(99,189,157,.35); stroke-width: 1.5; fill: none;
  stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.6s ease-out forwards .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.panel-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.stat {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  background: rgba(255,255,255,.015);
}
.stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stat .v { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 4px; }
.stat .v.ok { color: var(--mint); }
.stat .v.cy { color: var(--cyan); }

/* ----- Generic cards / grids ------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(10,17,38,.6));
  padding: 26px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card:hover::after { transform: scaleX(1); }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong); margin-bottom: 18px; color: var(--mint);
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15.5px; }
.card .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 14px; display: block;
}

/* numbered list cards (how it works) */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step .num {
  counter-increment: step; flex: 0 0 auto;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  color: var(--cyan); border: 1px solid var(--line-strong); background: rgba(13,184,228,.06);
}
.step .num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 15.5px; }

/* ----- Feature split ---------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.checks { list-style: none; padding: 0; margin-top: 22px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #c4d3ec; font-size: 15.5px; }
.checks li svg { flex: 0 0 auto; margin-top: 3px; color: var(--mint); }

/* ----- Versus list (competitive one-liners) ---------------------------- */
.vs-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; }
.vs-list li {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: rgba(255,255,255,.015); transition: border-color .25s;
}
.vs-list li:hover { border-color: var(--line-strong); }
.vs-list .a { color: var(--dim); font-size: 15px; }
.vs-list .b { color: #fff; font-weight: 600; font-size: 16px; margin-top: 6px; display: flex; gap: 10px; align-items: baseline; }
.vs-list .b::before { content: "→"; color: var(--cyan); font-weight: 700; }

/* ----- Standards / compliance band ------------------------------------- */
.bandwrap { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(13,184,228,.04), transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; color: #c4d3ec;
  background: rgba(255,255,255,.02); transition: border-color .25s, color .25s;
}
.chip:hover { border-color: var(--cyan); color: #fff; }

/* ----- CTA band --------------------------------------------------------- */
.cta {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(99,189,157,.16), transparent 50%),
    radial-gradient(120% 140% at 100% 100%, rgba(13,184,228,.18), transparent 55%),
    var(--surface);
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta p { max-width: 56ch; margin: 16px auto 0; }
.cta .hero-actions { justify-content: center; }

/* ----- Contact / HubSpot ------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.contact-aside .card { padding: 24px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { margin: 0; flex: 0 0 auto; width: 42px; height: 42px; }
.contact-list .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.contact-list a { color: var(--cyan); font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.form-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}
/* HubSpot embed lives inside .hs-form-frame — give it room and theme-friendly text */
.hs-form-frame { min-height: 320px; color: var(--text); }
.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--dim); margin-top: 16px; }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 54px 36px; margin-top: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; }
.footer-cols { display: flex; gap: clamp(28px, 6vw, 80px); flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 500; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--dim);
}

/* ----- Demo modal (HubSpot form) --------------------------------------- */
/* Hidden via visibility/opacity (not display:none) so the embedded HubSpot
   form renders with real dimensions on load and is ready when opened. */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 40px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 20, .72); backdrop-filter: blur(6px); }
.modal-dialog {
  position: relative;
  width: min(560px, 100%); max-height: 90vh; overflow: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
  transform: translateY(14px) scale(.985);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.modal.open .modal-dialog { transform: none; }
.modal-dialog h3 { margin: 12px 0 18px; }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong); color: var(--muted);
  font-size: 22px; line-height: 1; display: grid; place-items: center;
  transition: color .2s, border-color .2s, background .2s;
}
.modal-close:hover { color: #fff; border-color: var(--cyan); }
.modal-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
body.modal-open { overflow: hidden; }

/* ----- Product screenshots (app-window frames) ------------------------- */
.shot-fig { margin: 0; }
.shot {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
}
.shot:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(13,184,228,.25), 0 26px 60px -28px rgba(13,184,228,.4); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.shot-bar .t { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--dim); }
.shot img { display: block; width: 100%; height: auto; }
.shot-cap { font-size: 14.5px; color: var(--muted); margin-top: 14px; max-width: 64ch; }
.shot-cap b { color: var(--text); font-weight: 600; }
.shots-feature { margin-bottom: 30px; }
.shots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 940px) { .shots-grid { grid-template-columns: 1fr; } }

/* ----- Stylized UI mockups (clean, simplified product representations) --- */
/* All mockups are the SAME fixed size so grids lay out evenly. No left nav. */
.mockups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; align-items: start; }
.mockups.one { grid-template-columns: minmax(0, 540px); justify-content: center; }
.mock {
  height: 384px; display: flex; flex-direction: column;
  border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2)); box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
}
.mock:hover { transform: translateY(-4px); border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(13,184,228,.25), 0 26px 60px -28px rgba(13,184,228,.4); }
.mock .shot-bar { flex: 0 0 auto; }
.mock-body { flex: 1; min-height: 0; padding: 15px; display: flex; flex-direction: column; gap: 11px; }
.mock-cap { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.mock-cap b { color: var(--text); font-weight: 600; }

/* shared bits */
.mk-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: rgba(255,255,255,.012); }
.mk-card-h { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--dim); margin-bottom: 9px; }
.mk-legend { display: flex; gap: 9px; }
.mk-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mk-legend i { width: 8px; height: 2px; border-radius: 2px; display: inline-block; }

/* dashboard */
.mk-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; flex: 0 0 auto; }
.mk-stat { border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; background: rgba(255,255,255,.015); }
.mk-stat .k { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: block; }
.mk-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-top: 4px; line-height: 1; color: var(--text); }
.mk-stat .v small { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 500; font-size: 9px; color: var(--mint); letter-spacing: 0; }
.mk-stat.ok .v { color: var(--mint); }
.mk-stat.warn .v, .mk-stat.warn .v small { color: #f5a524; }
.mk-chart { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.mk-chart svg { flex: 1; width: 100%; min-height: 0; display: block; }
.mk-foot { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; flex: 0 0 auto; }
.mk-ring { display: flex; align-items: center; gap: 11px; }
.mk-ring .n { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #f5a524; line-height: 1; }
.mk-ring .t { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-top: 3px; }
.mk-hex { display: grid; place-items: center; }

/* graph mocks (topology, relationships) */
.mk-graph { flex: 1; min-height: 0; }
.mk-graph svg { width: 100%; height: 100%; display: block; }

/* alert / diagnosis card */
.mk-alert { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mk-badge { display: inline-flex; align-items: center; gap: 8px; }
.mk-badge .sev { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; padding: 3px 9px; border-radius: 6px; background: rgba(245,165,36,.16); color: #f5a524; border: 1px solid rgba(245,165,36,.4); }
.mk-badge .ttl { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); }
.mk-what { font-size: 13px; color: #c4d3ec; line-height: 1.5; }
.mk-klabel { font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.mk-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.mk-tag { font-family: var(--font-mono); font-size: 11px; color: var(--mint); border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; background: rgba(99,189,157,.08); }
.mk-bar { height: 7px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; }
.mk-bar i { display: block; height: 100%; background: var(--grad); border-radius: 5px; }
.mk-rec { font-size: 12px; color: var(--muted); line-height: 1.5; border-left: 2px solid var(--cyan); padding-left: 10px; margin-top: auto; }

/* process knowledge card */
.mk-know { flex: 1; display: flex; flex-direction: column; gap: 11px; }
.mk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mk-kpi { border: 1px solid var(--line); border-radius: 9px; padding: 9px 6px; text-align: center; background: rgba(255,255,255,.012); }
.mk-kpi .n { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--cyan); line-height: 1; }
.mk-kpi.mint .n { color: var(--mint); }
.mk-kpi .l { font-family: var(--font-mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.mk-lines { display: flex; flex-direction: column; gap: 9px; }
.mk-line { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.mk-line svg { flex: 0 0 auto; margin-top: 2px; color: var(--mint); }

@media (max-width: 860px) { .mockups { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .mk-status, .mk-kpis { grid-template-columns: repeat(2, 1fr); } }

/* ----- HubSpot form (embedded iframe) ----------------------------------- */
/* HubSpot renders this form in a cross-origin iframe, so its label/button
   colors (a dark theme on a transparent background) can't be reached by our
   CSS. We put it on a light surface so those default labels stay readable.
   For a fully dark-themed form, set the colors in HubSpot's form Style editor. */
.hs-form-frame {
  background: #f4f7fb;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 20px;
  min-height: 320px;
}

/* ----- Scroll reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .panel { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(7,12,28,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px; gap: 2px;
  }
  .nav-links.open a { padding: 12px 8px; font-size: 16px; }
  .nav-links.open a.active::after { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
