/* AegisOps — clinical-tech dark theme */
:root {
  --bg: #060b16;
  --bg-2: #08101e;
  --panel: rgba(14, 26, 44, 0.62);
  --panel-solid: #0c1728;
  --line: rgba(148, 197, 230, 0.12);
  --line-2: rgba(148, 197, 230, 0.2);
  --text: #e6eef7;
  --muted: #9fb0c6;
  --dim: #7f91a8;
  --teal: #2dd4bf;
  --teal-2: #5eead4;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(45, 212, 191, 0.06), transparent 60%),
    var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* subtle noise */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--teal-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #99f6e4; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.grad { background: linear-gradient(100deg, var(--teal-2), var(--cyan) 60%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--teal-2); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal-2); color: #04201e; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 2 * clamp(20px, 4vw, 40px)); margin-inline: auto; position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 1rem/1 var(--sans);
  padding: .95em 1.4em; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn-primary {
  color: #03201d;
  background: linear-gradient(135deg, var(--teal-2), var(--cyan));
  box-shadow: 0 10px 30px -10px rgba(45, 212, 191, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary:hover { color: #03201d; transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(45, 212, 191, 0.75), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--text); border-color: rgba(94, 234, 212, 0.5); background: rgba(94, 234, 212, 0.06); }
.btn-sm { padding: .7em 1.1em; font-size: .92rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 11, 22, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { position: relative; width: 36px; height: 36px; flex: none; }
.brand-logo > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-logo img { object-fit: contain; border-radius: 8px; }
.brand-word { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-word span { color: var(--teal-2); }

/* Image fallback system: JS adds .js to <html>; img hidden until it actually loads */
.js .media-img { opacity: 0; transition: opacity .4s ease; }
.js .media-img.is-loaded { opacity: 1; }
[data-fallback].has-image .fallback { visibility: hidden; }
[data-fallback].is-missing .media-img { display: none; }

.site-nav ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.site-nav a:not(.btn):hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; border-radius: 10px;
    background: rgba(255,255,255,.04); border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(6, 11, 22, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 12px clamp(20px, 4vw, 40px) 24px;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { display: block; padding: 12px; font-size: 1.05rem; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
}
/* No-JS: keep the nav reachable */
html:not(.js) .site-nav { display: block; position: static; padding: 0 0 12px; background: none; border: 0; }
html:not(.js) .nav-toggle { display: none; }
@media (max-width: 980px) { html:not(.js) .header-inner { flex-wrap: wrap; } html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; } }

/* Hero */
.hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,197,230,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,197,230,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow.g1 { width: 520px; height: 520px; right: -120px; top: -80px; background: rgba(34, 211, 238, .16); }
.glow.g2 { width: 420px; height: 420px; left: -160px; bottom: -160px; background: rgba(45, 212, 191, .12); }
.hero-inner { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.status-pill {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--muted);
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgba(45, 212, 191, .07); border: 1px solid rgba(45, 212, 191, .28);
  margin-bottom: 26px;
}
.status-pill .mono { color: var(--teal-2); font-size: .78rem; text-transform: uppercase; }
.status-pill .sep { color: var(--dim); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-2); box-shadow: 0 0 0 0 rgba(94,234,212,.6); animation: pulse 2s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94,234,212,.55); } 70% { box-shadow: 0 0 0 9px rgba(94,234,212,0); } 100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); } }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 38em; }
.lede strong { color: var(--text); font-weight: 650; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .93rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg, .honest-note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--teal-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; margin: 0; aspect-ratio: 4 / 3.25; min-width: 0; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; border: 1px solid var(--line-2); box-shadow: var(--shadow); z-index: 2; }
.hero-visual.has-image .fallback { display: none; }
.caption { display: block; margin-top: 12px; font-size: .74rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.hero-visual .caption { position: absolute; left: 0; right: 0; bottom: -30px; margin: 0; }

.monitor {
  position: absolute; inset: 0;
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  padding: clamp(14px, 2vw, 20px);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(20, 38, 62, .72), rgba(8, 16, 30, .82));
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(94,234,212,.04);
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.monitor::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,.07), transparent 30%); pointer-events: none; }
.monitor-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.chip { display: inline-flex; align-items: center; font-size: .64rem; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.chip-demo { color: var(--teal-2); border-color: rgba(94,234,212,.4); background: rgba(94,234,212,.08); }
.chip-watch { color: #7dd3fc; border-color: rgba(56,189,248,.4); background: rgba(56,189,248,.08); }
.chip-esc { color: #fcd34d; border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); animation: blink 2.6s ease-in-out infinite; }
.chip-hand { color: #a7f3d0; border-color: rgba(110,231,183,.4); background: rgba(110,231,183,.07); }
@keyframes blink { 50% { background: rgba(251,191,36,.2); } }

.monitor-main { display: grid; grid-template-columns: 1fr auto; gap: 14px; min-height: 0; }
.ecg-panel, .mini-panel {
  position: relative; border-radius: 14px; background: rgba(4, 10, 20, .55); border: 1px solid var(--line); overflow: hidden;
}
.ecg-panel { padding: 12px 0 0; display: flex; flex-direction: column; }
.ecg-panel .panel-label { padding: 0 14px; }
.panel-label { font-size: .62rem; letter-spacing: .12em; color: var(--dim); display: flex; align-items: center; gap: 7px; }
.ecg { flex: 1; width: 100%; height: 100%; min-height: 90px; display: block; }
.ecg-scroll { animation: ecg-scroll 2.4s linear infinite; }
@keyframes ecg-scroll { from { transform: translateX(0); } to { transform: translateX(-200px); } }
.sweep { position: absolute; top: 0; bottom: 0; width: 60px; right: 8%; background: linear-gradient(90deg, transparent, rgba(94,234,212,.12)); border-right: 1px solid rgba(94,234,212,.5); pointer-events: none; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.live { background: #f87171; box-shadow: 0 0 10px #f87171; animation: live 1.2s steps(2) infinite; }
@keyframes live { 50% { opacity: .35; } }
.dot.ok { background: var(--teal-2); }
.dot.info { background: var(--sky); }
.dot.idle { background: transparent; border: 1.5px solid #64748b; }

.pulse-ring { position: relative; width: clamp(96px, 11vw, 132px); display: grid; place-items: center; border-radius: 14px; background: rgba(4, 10, 20, .55); border: 1px solid var(--line); }
.pulse-ring svg { position: relative; z-index: 1; animation: beat 1.2s ease-in-out infinite; }
.ring { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid rgba(94,234,212,.5); animation: ring 2.4s ease-out infinite; }
.ring.r2 { animation-delay: .8s; } .ring.r3 { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(.98); } 45% { transform: scale(1.04); } }

.monitor-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-panel { padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 112px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(to top, rgba(14,116,144,.6), var(--teal-2)); transform-origin: bottom; animation: bar 3.2s ease-in-out infinite alternate; }
.bars i:nth-child(1) { height: 45%; } .bars i:nth-child(2) { height: 70%; animation-delay: -.4s; } .bars i:nth-child(3) { height: 55%; animation-delay: -.9s; }
.bars i:nth-child(4) { height: 85%; animation-delay: -1.3s; } .bars i:nth-child(5) { height: 40%; animation-delay: -1.8s; } .bars i:nth-child(6) { height: 65%; animation-delay: -2.2s; } .bars i:nth-child(7) { height: 50%; animation-delay: -2.7s; }
@keyframes bar { from { transform: scaleY(.75); } to { transform: scaleY(1.05); } }
.axis { display: flex; justify-content: space-between; font-size: .58rem; color: var(--dim); }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue li { display: flex; align-items: center; gap: 7px; min-width: 0; }
.queue b { flex: 1; height: 6px; border-radius: 3px; background: rgba(203,213,225,.18); min-width: 10px; }
.queue em { font-style: normal; font-size: .55rem; color: var(--dim); letter-spacing: .06em; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chips .chip { font-size: .56rem; padding: 3px 7px; }
.skeleton { display: grid; gap: 6px; margin-top: auto; }
.skeleton b { height: 6px; border-radius: 3px; background: rgba(203,213,225,.14); }
.skeleton b:last-child { width: 60%; }

/* Sections */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: linear-gradient(180deg, rgba(12, 23, 40, .55), rgba(6, 11, 22, 0)); border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.eyebrow { display: inline-block; font-size: .78rem; color: var(--teal-2); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.section-lede { color: var(--muted); font-size: 1.1rem; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, rgba(45,212,191,.16), rgba(34,211,238,.04)); border: 1px solid rgba(94,234,212,.25); margin-bottom: 18px; }
.icon svg, .goal-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.platform-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.cap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cap { padding: 24px; transition: border-color .25s ease, transform .25s ease; }
.cap:hover, .svc:hover { border-color: rgba(94,234,212,.35); transform: translateY(-2px); }
.cap p, .svc p { color: var(--muted); font-size: .97rem; margin: 0; }
.dash { margin: 0; padding: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.dash-svg { display: block; width: 100%; height: auto; border-radius: 12px; }
.d-mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; fill: var(--muted); }
.d-dim { fill: var(--dim); }
.d-teal { fill: var(--teal-2); }
.d-amber { fill: var(--amber); }
.d-links path, .r-links path { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }
.d-pulse { transform-box: fill-box; transform-origin: center; animation: dpulse 2.4s ease-in-out infinite; }
@keyframes dpulse { 50% { transform: scale(1.25); opacity: .5; } }
.d-trace { stroke-dasharray: 520; stroke-dashoffset: 520; animation: trace 3.6s linear infinite; }
@keyframes trace { 0% { stroke-dashoffset: 520; } 70%, 100% { stroke-dashoffset: 0; } }
.d-grow { transform-box: fill-box; transform-origin: left; animation: grow 4s ease-in-out infinite alternate; }
.d-grow.d2 { animation-delay: -1.3s; } .d-grow.d3 { animation-delay: -2.6s; }
@keyframes grow { from { transform: scaleX(.6); } to { transform: scaleX(1); } }

.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; padding: 28px 24px; transition: border-color .25s ease, transform .25s ease; overflow: hidden; }
.svc::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(rgba(34,211,238,.12), transparent 70%); pointer-events: none; }
.svc-num { position: absolute; top: 22px; right: 22px; font-size: .78rem; color: var(--dim); }

.rural-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.goal { display: flex; gap: 18px; padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.goal h3 { margin-bottom: .3em; }
.goal p { margin: 0; color: var(--muted); font-size: .98rem; }
.goal-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(94,234,212,.3); background: rgba(45,212,191,.08); }
.goal-tag { display: inline-block; font-size: .66rem; color: var(--teal-2); text-transform: uppercase; letter-spacing: .1em; border: 1px solid rgba(94,234,212,.3); border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.rural-art { margin: 0; padding: 10px; overflow: hidden; }
.rural-art svg { display: block; width: 100%; height: auto; }
.r-ring { transform-box: fill-box; transform-origin: center; animation: dpulse 3s ease-in-out infinite; }
.stars circle { animation: twinkle 3s ease-in-out infinite alternate; }
.stars circle:nth-child(odd) { animation-delay: -1.5s; }
@keyframes twinkle { from { opacity: .3; } to { opacity: 1; } }

.privacy-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.privacy-art svg { width: 100%; max-width: 380px; display: block; margin-inline: auto; filter: drop-shadow(0 20px 60px rgba(34,211,238,.18)); }
.p-orbit { transform-origin: 160px 170px; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.principles { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.principles li { padding: 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--panel); }
.principles h3 { font-size: 1.05rem; display: flex; gap: 10px; align-items: baseline; }
.principles h3 .mono { font-size: .75rem; color: var(--teal-2); }
.principles p { margin: 0; color: var(--muted); font-size: .96rem; }
.honest-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(251,191,36,.06); border: 1px solid rgba(251,191,36,.25); color: #f3e3b5; font-size: .95rem; margin: 0; }
.honest-note svg { stroke: var(--amber); margin-top: 3px; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 10%; right: 10%; top: 11px; height: 2px; background: linear-gradient(90deg, var(--teal-2) 0%, var(--teal-2) 30%, var(--line-2) 50%); }
.step { position: relative; padding-top: 40px; text-align: center; }
.step .node { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.step.done .node { background: var(--teal-2); border-color: var(--teal-2); }
.step.current .node { border-color: var(--teal-2); box-shadow: 0 0 0 6px rgba(94,234,212,.15); }
.step.current .node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--teal-2); animation: pulse 2s infinite; }
.step-state { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
.step.done .step-state, .step.current .step-state { color: var(--teal-2); border-color: rgba(94,234,212,.4); }
.step.current .step-state { background: rgba(94,234,212,.08); }
.step.next .step-state { color: #7dd3fc; border-color: rgba(56,189,248,.4); }
.step p { color: var(--muted); font-size: .94rem; margin: 0; }
.step.current { background: var(--panel); border: 1px solid rgba(94,234,212,.3); border-radius: var(--radius); padding: 40px 16px 20px; }

.founder-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder-card { padding: 32px; text-align: center; }
.avatar { width: 150px; margin: 0 auto 18px; }
.avatar svg { display: block; width: 100%; height: auto; }
.founder-name { font-size: 1.3rem; font-weight: 750; margin: 0; letter-spacing: -0.01em; }
.founder-role { color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 18px; }
.creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.creds li { font-family: var(--mono); font-size: .76rem; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(94,234,212,.3); color: var(--teal-2); background: rgba(94,234,212,.06); }
.founder-copy p { color: var(--muted); font-size: 1.07rem; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; }
.facts div { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal-2); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; font-size: .97rem; }

.contact { background: radial-gradient(800px 400px at 20% 0%, rgba(34,211,238,.08), transparent 70%); border-top: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.email-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--panel); margin: 28px 0 22px; }
.email-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
.email-link { font-weight: 650; font-size: 1.1rem; color: var(--text); text-decoration: none; word-break: break-all; }
.email-link:hover { color: var(--teal-2); }
.copy-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 .85rem var(--sans); color: var(--teal-2); background: rgba(94,234,212,.07); border: 1px solid rgba(94,234,212,.3); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.copy-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.copy-btn:hover { background: rgba(94,234,212,.14); }
.small-note { font-size: .85rem; color: var(--dim); margin: 12px 0 0; }

.contact-form { padding: clamp(22px, 3vw, 34px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(4, 10, 20, .6); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; width: 100%; transition: border-color .2s ease, box-shadow .2s ease;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235eead4' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field select option { background: var(--panel-solid); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(94,234,212,.18); }
.field [aria-invalid="true"] { border-color: var(--rose); }
.form-error { color: #fda4af; font-size: .92rem; margin: 0 0 12px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.form-foot .small-note { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #050913; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .6fr 1.1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: .94rem; margin: 14px 0 0; max-width: 34em; }
.foot-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 500; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); }
.family li { display: flex; flex-direction: column; }
.family a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.family a:hover { color: var(--teal-2); }
.family span { color: var(--dim); font-size: .84rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .86rem; }
.footer-base p { margin: 0; }
.footer-base a { color: var(--muted); }

/* Simple pages */
.page { padding: clamp(56px, 8vw, 100px) 0; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound svg { width: min(420px, 100%); height: auto; margin: 0 auto 24px; display: block; }
.notfound p { color: var(--muted); }
.notfound .cta-row { justify-content: center; }
.flatline { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Reveal (only enabled by JS) */
.reveal-init { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal-init.revealed { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-layout { grid-template-columns: 1fr; }
  .dash { position: relative; top: 0; order: -1; }
}
@media (max-width: 980px) {
  .hero-inner, .rural-layout, .privacy-layout, .founder-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; width: 100%; margin: 10px auto 30px; }
  .privacy-art svg { max-width: 300px; }
  .roadmap { grid-template-columns: 1fr; gap: 0; padding-left: 8px; }
  .roadmap::before { left: 17px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(180deg, var(--teal-2) 0%, var(--teal-2) 30%, var(--line-2) 50%); }
  .step, .step.current { text-align: left; padding: 6px 0 28px 44px; }
  .step.current { padding: 18px 18px 18px 44px; margin: 0 0 24px; }
  .step .node { left: 10px; transform: none; top: 8px; }
  .step.current .node { top: 20px; }
  .founder-card { max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cap-grid, .svc-grid, .principles, .field-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { aspect-ratio: auto; margin-bottom: 40px; }
  .hero-visual.has-image { aspect-ratio: 4 / 3.25; }
  .monitor { position: relative; inset: auto; }
  .ecg { min-height: 110px; height: 110px; flex: none; }
  .monitor-main { grid-template-columns: minmax(0, 1fr) 76px; }
  .pulse-ring { width: 76px; }
  .pulse-ring svg { width: 40px; height: 40px; }
  .ring { width: 44px; height: 44px; }
  .monitor-panels { grid-template-columns: 1fr 1fr; }
  .monitor-panels .mini-panel:last-child { grid-column: 1 / -1; min-height: 0; }
  .mini-panel { min-height: 96px; }
  .monitor-top .tag { font-size: .62rem; }
  .copy-btn { margin-left: 0; }
  .btn { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .d-trace, .flatline { stroke-dashoffset: 0; }
  .reveal-init { opacity: 1; transform: none; }
}

/* ===================== Round 2: real brand assets, insights, socials ===================== */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand-shield { width: 30px; height: 38px; flex: none; display: block; }
.brand-shield img { width: 30px; height: 38px; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(45,212,191,.18)); }

.logo-plate { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #fffdf9, #f8f1e6); border-radius: 14px; padding: 12px 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.65) inset, 0 18px 40px -18px rgba(0,0,0,.75); }
.logo-plate img { display: block; width: 200px; height: auto; }
.logo-plate-lg { border-radius: 22px; padding: clamp(18px, 3vw, 30px) clamp(22px, 4vw, 42px); box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 30px 70px -28px rgba(0,0,0,.85), 0 0 80px -20px rgba(45,212,191,.28); }
.logo-plate-lg img { width: min(400px, 72vw); }

.brand-band { position: relative; padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: radial-gradient(700px 300px at 25% 50%, rgba(45,212,191,.10), transparent 70%), var(--bg-2); }
.brand-band-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.brand-band-line { font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 18px; color: var(--text); }
.band-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.band-chips .chip { font-size: .72rem; padding: 6px 12px; }
@media (max-width: 860px) { .brand-band-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; } .band-chips { justify-content: center; } }

/* insights */
.ins-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; }
.ins-feature { padding: clamp(26px, 4vw, 40px); display: flex; flex-direction: column; justify-content: center; background: radial-gradient(500px 260px at 100% 0%, rgba(45,212,191,.16), transparent 70%), var(--panel); }
.ins-feature h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.ins-feature p { color: var(--muted); margin: 0; }
.ins-feature .cta-row { margin: 24px 0 0; }
.ins-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-2); margin: 0 0 12px; }
.ins-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ins-product { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; }
.ins-product:hover, .ins-product:focus-visible { border-color: rgba(94,234,212,.5); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(45,212,191,.45); }
.ins-tag { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-2); }
.ins-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.ins-desc { color: var(--muted); font-size: .9rem; }
.ins-foot { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.text-link { color: var(--teal-2); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(94,234,212,.35); padding-bottom: 2px; }
.text-link:hover { color: var(--text); border-color: var(--text); }
.ins-podcasts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 18px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.ins-podcasts .ins-label { margin: 0; color: var(--dim); }
.podcast-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.podcast { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
@media (max-width: 1000px) { .ins-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ins-products { grid-template-columns: 1fr; } }

/* credential badge (founder card) */
.cred-badge { margin: 24px auto 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 260px; }
.cred-badge img { width: 168px; height: auto; display: block; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); }
.cred-badge figcaption { font-size: .82rem; line-height: 1.45; color: var(--muted); }

/* footer */
.footer-grid { grid-template-columns: 1.3fr .6fr 1.25fr .9fr; }
.foot-muted { color: var(--dim); }
.site-footer ul a { color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); }
.family li { flex-direction: row !important; align-items: center; gap: 12px; }
.fam-text { display: flex; flex-direction: column; }
.fam-text > span { color: var(--dim); font-size: .84rem; }
.family .fam-text a { color: var(--text); font-weight: 600; }
.fam-mark { width: 30px; height: 34px; flex: none; display: grid; place-items: center; }
.fam-mark img, .fam-mark svg { height: 32px; width: auto; display: block; }
.fam-mark-light { background: #f7f9fc; border-radius: 8px; height: 30px; }
.fam-mark-light img { height: 20px; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 36px; }
.footer-social .foot-h { margin: 0; }
.social-list { display: flex !important; flex-wrap: wrap; gap: 8px; }
.social-link { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted) !important; transition: color .2s, border-color .2s, background-color .2s, transform .2s; }
.social-link:hover, .social-link:focus-visible { color: #04121a !important; background: var(--teal-2); border-color: var(--teal-2); transform: translateY(-2px); }
.social-icon { width: 18px; height: 18px; fill: currentColor; display: block; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 30px 20px; } .footer-brand, .footer-grid > div:nth-child(3) { grid-column: 1 / -1; } .social-link { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .ins-product, .social-link { transition: none; } }
/* badge artwork has an opaque white background: present it on an intentional white tile */
.cred-badge picture { display: block; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.6) inset, 0 16px 34px -16px rgba(0,0,0,.8), 0 0 40px -12px rgba(45,212,191,.3); }
.cred-badge img { width: 148px; filter: none; }
@media (max-width: 760px) { .social-list { gap: 6px; } .social-link { width: 42px !important; height: 42px !important; } }
