:root{
  --blueprint: #14304C;
  --blueprint-2: #1C3F63;
  --ink-deep: #0B1D30;
  --line-cyan: #6FA8C9;
  --line-cyan-dim: rgba(111,168,201,0.18);
  --paper: #F3EEE2;
  --amber: #E2963C;
  --amber-dim: rgba(226,150,60,0.15);
  --text-primary: #EAF2F8;
  --text-muted: #9FB8CC;
  --text-faint: #6C8AA2;
  --green: #6EA97C;
  --radius-panel: 2px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--blueprint);
  color:var(--text-primary);
  font-family:'IBM Plex Sans', sans-serif;
  line-height:1.55;
  overflow-x:hidden;
}
.grid-bg{
  background-image:
    linear-gradient(var(--line-cyan-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-cyan-dim) 1px, transparent 1px);
  background-size: 34px 34px;
}
h1,h2,h3{
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
}
.mono{
  font-family:'IBM Plex Mono', monospace;
}
a{color:inherit; text-decoration:none;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px;}
@media(max-width:640px){.wrap{padding:0 20px;}}

/* tick marks - engineering drawing registration marks */
.tick{position:absolute; width:16px; height:16px; pointer-events:none;}
.tick.tl{top:0; left:0; border-top:1px solid var(--line-cyan); border-left:1px solid var(--line-cyan);}
.tick.tr{top:0; right:0; border-top:1px solid var(--line-cyan); border-right:1px solid var(--line-cyan);}
.tick.bl{bottom:0; left:0; border-bottom:1px solid var(--line-cyan); border-left:1px solid var(--line-cyan);}
.tick.br{bottom:0; right:0; border-bottom:1px solid var(--line-cyan); border-right:1px solid var(--line-cyan);}

/* ===== Header ===== */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,29,48,0.88);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(111,168,201,0.22);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 0;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-size:17px; font-weight:600; font-family:'Space Grotesk', sans-serif;
}
.brand .mark{
  width:22px; height:22px; border:1.5px solid var(--amber);
  display:flex; align-items:center; justify-content:center;
  transform:rotate(45deg);
}
.brand .mark span{transform:rotate(-45deg); font-size:11px; color:var(--amber); font-family:'IBM Plex Mono';}
nav{display:flex; gap:36px; font-size:14.5px; color:var(--text-muted);}
nav a:hover{color:var(--text-primary);}
.btn-ghost{
  border:1px solid rgba(111,168,201,0.4);
  padding:9px 18px;
  font-size:14px;
  color:var(--text-primary);
  transition:border-color .15s;
}
.btn-ghost:hover{border-color:var(--amber);}
@media(max-width:800px){nav{display:none;}}

/* ===== Hero ===== */
.hero{
  position:relative;
  padding:88px 0 96px;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
@media(max-width:900px){.hero-grid{grid-template-columns:1fr; gap:52px;}}

.kicker{
  font-family:'IBM Plex Mono', monospace;
  font-size:12.5px;
  color:var(--line-cyan);
  display:flex; align-items:center; gap:10px;
  margin-bottom:22px;
  opacity:0; animation:fadeUp .7s ease forwards;
}
.kicker::before{content:''; width:22px; height:1px; background:var(--line-cyan);}

.hero h1{
  font-size:clamp(32px, 4.4vw, 52px);
  line-height:1.12;
  color:var(--text-primary);
  max-width:16ch;
  opacity:0; animation:fadeUp .7s ease .1s forwards;
}
.hero p.lede{
  margin-top:22px;
  font-size:17px;
  color:var(--text-muted);
  max-width:46ch;
  opacity:0; animation:fadeUp .7s ease .2s forwards;
}
.badge-pill{
  display:inline-flex; align-items:center; gap:8px;
  margin-top:26px;
  padding:9px 16px 9px 12px;
  background:var(--amber-dim);
  border:1px solid rgba(226,150,60,0.4);
  font-size:13.5px;
  color:var(--amber);
  font-family:'IBM Plex Mono', monospace;
  opacity:0; animation:fadeUp .7s ease .3s forwards;
}
.badge-pill .dot{width:6px;height:6px;background:var(--amber);border-radius:50%;}

.hero-ctas{
  display:flex; gap:16px; margin-top:34px; flex-wrap:wrap;
  opacity:0; animation:fadeUp .7s ease .4s forwards;
}
.btn-primary{
  background:var(--amber);
  color:var(--ink-deep);
  padding:14px 26px;
  font-size:14.5px; font-weight:600;
  font-family:'IBM Plex Sans';
  border:1px solid var(--amber);
  transition:transform .15s, box-shadow .15s;
}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 6px 18px rgba(226,150,60,0.25);}
.btn-secondary{
  padding:14px 22px;
  font-size:14.5px;
  color:var(--text-muted);
  border-bottom:1px solid rgba(111,168,201,0.35);
}
.btn-secondary:hover{color:var(--text-primary); border-color:var(--line-cyan);}

/* schematic diagram */
.schematic{
  position:relative;
  border:1px solid rgba(111,168,201,0.28);
  background:rgba(255,255,255,0.015);
  padding:26px;
  opacity:0; animation:fadeUp .8s ease .35s forwards;
}
.schematic .cap{
  font-family:'IBM Plex Mono'; font-size:11px; color:var(--text-faint);
  display:flex; justify-content:space-between; margin-bottom:14px;
}
svg.diagram{width:100%; height:auto; display:block;}
.flow-line{
  stroke:var(--line-cyan); stroke-width:1.4; fill:none;
  stroke-dasharray:6 5;
  animation:dash 22s linear infinite;
}
@keyframes dash{to{stroke-dashoffset:-500;}}
.node-box{fill:var(--ink-deep); stroke:var(--line-cyan); stroke-width:1;}
.node-label{font-family:'IBM Plex Mono', monospace; font-size:9.5px; fill:var(--text-muted);}
.pulse-dot{fill:var(--amber);}
.pulse-dot{animation:pulse 2.4s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:.35;}50%{opacity:1;}}

@keyframes fadeUp{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}
@media(prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important;}
}

/* ===== Solutions ===== */
.solutions{padding:90px 0 40px; position:relative;}
.section-head{
  display:flex; justify-content:space-between; align-items:flex-end;
  gap:24px; margin-bottom:48px; flex-wrap:wrap;
}
.section-head h2{font-size:clamp(24px,3vw,32px); max-width:20ch;}
.section-head p{color:var(--text-muted); font-size:15px; max-width:34ch;}

.sys-list{border-top:1px solid rgba(111,168,201,0.25);}
.sys-row{
  display:grid;
  grid-template-columns:110px 1fr 34px;
  gap:28px;
  align-items:center;
  padding:28px 0;
  border-bottom:1px solid rgba(111,168,201,0.25);
  transition:background .15s;
}
.sys-row:hover{background:rgba(111,168,201,0.045);}
@media(max-width:700px){
  .sys-row{grid-template-columns:1fr; gap:10px; padding:22px 0;}
  .sys-row .sys-icon{display:none;}
}
.sys-tag{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--text-faint);
}
.sys-body h3{font-size:18px; margin-bottom:6px; color:var(--text-primary); font-weight:600;}
.sys-body p{font-size:14.5px; color:var(--text-muted); max-width:58ch;}
.sys-icon{
  width:34px; height:34px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(111,168,201,0.3);
}
.sys-icon svg{width:18px; height:18px; stroke:var(--line-cyan); fill:none; stroke-width:1.4;}

/* ===== How it works ===== */
.howworks{padding:100px 0;}
.hw-panel{
  border:1px solid rgba(226,150,60,0.35);
  background:linear-gradient(180deg, rgba(226,150,60,0.05), transparent 60%);
  padding:48px;
  position:relative;
}
@media(max-width:640px){.hw-panel{padding:30px 22px;}}
.hw-top{display:flex; justify-content:space-between; align-items:flex-start; gap:24px; flex-wrap:wrap; margin-bottom:44px;}
.hw-top h2{font-size:clamp(22px,2.8vw,28px); max-width:22ch;}
.hw-tag{
  font-family:'IBM Plex Mono'; font-size:12px; color:var(--amber);
  border:1px solid rgba(226,150,60,0.45); padding:6px 12px;
  white-space:nowrap;
}
.meter{
  display:grid; grid-template-columns:repeat(3,1fr); gap:0;
  border:1px solid rgba(111,168,201,0.25);
}
@media(max-width:700px){.meter{grid-template-columns:1fr;}}
.meter-step{
  padding:26px 24px;
  border-right:1px solid rgba(111,168,201,0.25);
}
.meter-step:last-child{border-right:none;}
@media(max-width:700px){.meter-step{border-right:none; border-bottom:1px solid rgba(111,168,201,0.25);}}
.meter-step .num{font-family:'IBM Plex Mono'; font-size:12px; color:var(--text-faint); margin-bottom:10px;}
.meter-step h4{font-size:15.5px; margin-bottom:8px; font-weight:600;}
.meter-step p{font-size:13.5px; color:var(--text-muted);}
.hw-footnote{margin-top:24px; font-size:13px; color:var(--text-faint); max-width:60ch;}

/* ===== About teaser ===== */
.about-teaser{padding:20px 0 100px;}
.about-card{
  display:grid; grid-template-columns:220px 1fr; gap:40px;
  align-items:center;
  border:1px solid rgba(111,168,201,0.25);
  padding:40px;
}
@media(max-width:700px){.about-card{grid-template-columns:1fr; gap:20px; padding:28px 22px;}}
.about-portrait{
  aspect-ratio:1; border:1px solid rgba(111,168,201,0.3);
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono'; font-size:12px; color:var(--text-faint);
  text-align:center; padding:12px;
  background:rgba(255,255,255,0.02);
}
.about-card h3{font-size:20px; margin-bottom:10px;}
.about-card .role{font-family:'IBM Plex Mono'; font-size:12.5px; color:var(--amber); margin-bottom:14px; display:block;}
.about-card p{color:var(--text-muted); font-size:14.5px; max-width:62ch;}

/* ===== Footer / Contact ===== */
footer{
  background:var(--ink-deep);
  border-top:1px solid rgba(111,168,201,0.2);
  padding:64px 0 32px;
}
.footer-cta{
  display:flex; justify-content:space-between; align-items:flex-end;
  flex-wrap:wrap; gap:28px; margin-bottom:56px;
}
.footer-cta h2{font-size:clamp(24px,3vw,34px); max-width:14ch;}
.contact-links{display:flex; flex-direction:column; gap:12px;}
.contact-links a{
  font-size:15px; color:var(--text-muted);
  display:flex; align-items:center; gap:10px;
}
.contact-links a:hover{color:var(--text-primary);}
.contact-links .k{font-family:'IBM Plex Mono'; font-size:11px; color:var(--text-faint); width:64px; display:inline-block;}
.contact-form{
  display:grid; gap:14px;
}
.contact-form input, .contact-form textarea{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(111,168,201,0.3);
  color:var(--text-primary);
  font-family:'IBM Plex Sans';
  font-size:14px;
  padding:12px 14px;
  width:100%;
}
.contact-form input:focus, .contact-form textarea:focus{
  outline:none; border-color:var(--amber);
}
.contact-form label{
  font-family:'IBM Plex Mono'; font-size:11px; color:var(--text-faint);
  margin-bottom:4px; display:block;
}
.contact-form textarea{resize:vertical; min-height:88px;}
.contact-form .row2{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media(max-width:640px){.contact-form .row2{grid-template-columns:1fr;}}
.contact-form button{
  justify-self:start;
}
.footer-grid{
  display:grid; grid-template-columns:1fr 1.1fr; gap:56px;
  margin-bottom:56px;
}
@media(max-width:800px){.footer-grid{grid-template-columns:1fr; gap:36px;}}

.footer-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  padding-top:24px; border-top:1px solid rgba(111,168,201,0.15);
  font-size:12.5px; color:var(--text-faint); font-family:'IBM Plex Mono';
}

/* ===== Form status banner (server-rendered) ===== */
.form-banner{
  padding:14px 16px;
  margin-bottom:16px;
  font-size:13.5px;
  font-family:'IBM Plex Mono', monospace;
  border:1px solid;
}
.form-banner.success{
  color:var(--green);
  border-color:rgba(110,169,124,0.45);
  background:rgba(110,169,124,0.08);
}
.form-banner.error{
  color:var(--amber);
  border-color:rgba(226,150,60,0.45);
  background:var(--amber-dim);
}

/* Honeypot: off-screen, not display:none, so simple bots that
   only skip display:none/visibility:hidden still get caught. */
.hp-field{
  position:absolute;
  left:-9999px;
  top:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}
