:root {
  --blue: #0E6CB5;
  --sky: #5BA4E8;
  --navy: #0A325C;
  --navy-2: #072646;
  --white: #FFFFFF;
  --powder: #7EAFD4;
  --ice: #F3F8FD;
  --ice-2: #E6F0FA;
  --ink: #0B2340;
  --text: #2A4565;
  --line: #D6E4F2;
  --glow: rgba(91, 164, 232, .45);
  --radius: 14px;
  --font-head: "Orbitron", "Exo 2", system-ui, sans-serif;
  --font-body: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 10px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), #1A82D4); color: #fff; box-shadow: 0 6px 20px rgba(14,108,181,.28), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(14,108,181,.38), 0 0 0 4px rgba(91,164,232,.18); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(91,164,232,.14); }
.btn-sm { padding: 10px 16px; font-size: .74rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(214,228,242,.8);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 76px; width: auto; margin-left: -16px; }
.site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 6px 0; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; box-shadow: 0 0 8px var(--glow); }
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn):focus-visible::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle .bar { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 80px 0 72px; background: radial-gradient(1100px 520px at 80% 20%, #E3F0FC 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #F7FBFF 0%, #FFFFFF 100%); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(14,108,181,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(14,108,181,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}
.hero-traces { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(91,164,232,.45); }
.hero-traces path { stroke-dasharray: 6 10; animation: dash 18s linear infinite; }
.hero-traces .nodes circle { fill: var(--sky); filter: drop-shadow(0 0 6px var(--sky)); }
@keyframes dash { to { stroke-dashoffset: -320; } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .8rem; color: var(--blue); background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 26px; box-shadow: 0 2px 10px rgba(14,108,181,.06); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91,164,232,.6); } 70% { box-shadow: 0 0 0 10px rgba(91,164,232,0); } 100% { box-shadow: 0 0 0 0 rgba(91,164,232,0); } }
.grad-text { background: linear-gradient(90deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.16rem; max-width: 36em; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-badges li { font-family: var(--font-mono); font-size: .76rem; color: var(--navy); background: var(--ice-2); border: 1px solid #CFE2F5; padding: 5px 11px; border-radius: 6px; }
.hero-visual { position: relative; min-height: 470px; }
.chip-stage { position: absolute; top: -10px; right: -10px; width: min(88%, 380px); aspect-ratio: 1; }
.chip-stage img { position: relative; width: 100%; height: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 22px 36px rgba(14,108,181,.25)); }
.chip-glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(91,164,232,.45), rgba(91,164,232,0) 70%); filter: blur(16px); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.terminal { position: absolute; left: -10px; bottom: 0; width: min(80%, 300px); background: var(--navy); border-radius: 12px; box-shadow: 0 24px 50px rgba(10,50,92,.35), 0 0 0 1px rgba(91,164,232,.25); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--navy-2); }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #2B5A8A; }
.terminal-bar em { margin-left: 8px; font-style: normal; font-family: var(--font-mono); font-size: .7rem; color: var(--powder); }
.terminal pre { margin: 0; padding: 14px 16px 16px; font-family: var(--font-mono); font-size: .78rem; line-height: 1.75; color: #CFE3F7; white-space: pre; }
.t-prompt { color: var(--sky); }
.t-ok { color: #7FE0B4; }
.cursor { display: inline-block; width: 8px; height: 1em; vertical-align: -2px; background: var(--sky); box-shadow: 0 0 8px var(--sky); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Sections */
.section { position: relative; padding: 104px 0; }
.section-tint { background: var(--ice); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.kicker { font-family: var(--font-mono); font-size: .86rem; color: var(--blue); margin-bottom: 12px; letter-spacing: .02em; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card::before { content: ""; position: absolute; top: 0; left: 28px; width: 46px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--sky)); border-radius: 0 0 3px 3px; }
.card:hover { transform: translateY(-4px); border-color: #B9D5EF; box-shadow: 0 18px 40px rgba(14,108,181,.12), 0 0 0 1px rgba(91,164,232,.25); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #E8F2FC, #D6E8F9); margin-bottom: 20px; box-shadow: inset 0 0 0 1px #C9DFF4; }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; font-size: .98rem; }

/* Why (dark) */
.section-dark { background: radial-gradient(900px 500px at 15% 0%, #0F4A82 0%, rgba(15,74,130,0) 60%), var(--navy); color: #C9DCF0; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .kicker { color: var(--sky); }
.section-dark strong { color: #fff; }
.circuit-bg {
  position: absolute; inset: 0; opacity: .35;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(126,175,212,.5) 1px, transparent 1.6px),
    linear-gradient(rgba(91,164,232,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,164,232,.08) 1px, transparent 1px);
  background-size: 22px 22px, 88px 88px, 88px 88px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
}
.why-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-list > li { background: rgba(255,255,255,.04); border: 1px solid rgba(126,175,212,.22); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.why-list > li::before { content: ""; position: absolute; left: -1px; top: 24px; width: 3px; height: 28px; background: var(--sky); border-radius: 0 3px 3px 0; box-shadow: 0 0 12px var(--sky); }
.why-list p { margin: 0; font-size: .97rem; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0 0; }
.cert-chips li { font-family: var(--font-mono); font-size: .72rem; color: #fff; border: 1px solid rgba(91,164,232,.55); background: rgba(91,164,232,.12); padding: 3px 9px; border-radius: 5px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 8px, transparent 8px 16px); opacity: .55; }
.step { position: relative; padding-top: 0; }
.step-num { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; font-family: var(--font-head); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky)); clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px); }
.step p { font-size: .98rem; margin: 0; }

/* Area */
.area-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.area-list { list-style: none; padding: 0; margin: 24px 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.area-list li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font-weight: 600; color: var(--navy); font-size: .93rem; }
.muted-note { font-size: .93rem; color: #4E6A8A; }
.area-map { display: grid; justify-items: center; gap: 14px; }
.radar { position: relative; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff 0%, #EAF3FC 70%); border: 1px solid #CFE2F5; overflow: hidden; box-shadow: 0 20px 50px rgba(14,108,181,.12); }
.ring { position: absolute; border: 1px dashed rgba(14,108,181,.28); border-radius: 50%; inset: 0; margin: auto; }
.r1 { width: 33%; height: 33%; } .r2 { width: 63%; height: 63%; } .r3 { width: 92%; height: 92%; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(91,164,232,.35), rgba(91,164,232,0) 22%); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hub { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: 0 0 0 6px rgba(91,164,232,.15), 0 6px 18px rgba(14,108,181,.2); }
.hub img { width: 60px; height: 60px; }
.blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 10px var(--sky); }
.b1 { top: 22%; left: 30%; } .b2 { top: 34%; right: 18%; } .b3 { bottom: 24%; left: 22%; } .b4 { bottom: 18%; right: 32%; }
.radar-label { font-family: var(--font-head); font-size: .78rem; letter-spacing: .2em; color: var(--blue); margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-list { margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-list dt { font-family: var(--font-mono); font-size: .8rem; color: #4E6A8A; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.contact-list dd { margin: 0; font-weight: 600; color: var(--ink); }
.contact-list dd a { color: var(--blue); text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.placeholder { font-family: var(--font-mono); font-size: .9em; background: #FFF6D6; color: #6B5200; border: 1px dashed #D9B23A; padding: 1px 6px; border-radius: 4px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: 0 24px 60px rgba(14,108,181,.10); position: relative; }
.contact-form::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; background: linear-gradient(135deg, var(--sky), transparent 40%, transparent 60%, var(--blue)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #FAFCFF; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px rgba(91,164,232,.2); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: #4E6A8A; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #0F7A4F; }
.form-status.err { color: #B42318; }

/* Footer */
.site-footer { background: var(--navy-2); color: #A9C4DE; padding: 64px 0 28px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--sky), transparent); box-shadow: 0 0 16px var(--sky); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(126,175,212,.18); }
.footer-brand img { height: 74px; width: auto; margin: -12px 0 6px -14px; }
.footer-brand p { max-width: 30em; font-size: .95rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { color: #DCEAF7; text-decoration: none; }
.footer-nav a:hover { color: var(--sky); text-decoration: underline; }
.footer-contact p { margin: 0 0 10px; }
.footer-contact a { color: #DCEAF7; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--sky); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .86rem; }
.footer-base p { margin: 0; }
.mono { font-family: var(--font-mono); color: var(--powder); }

/* Responsive */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 84px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(10,50,92,.08); display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--ice-2); }
  .site-nav li .btn { margin-top: 14px; width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .cards, .why-list, .steps, .field-row { grid-template-columns: 1fr; }
  .field-row { gap: 0; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 400px; }
  .chip-stage { width: 74%; right: 0; left: 0; margin: 0 auto; top: 0; }
  .terminal { left: 0; right: 0; margin: 0 auto; width: 92%; }
  .contact-form { padding: 24px 20px; }
  .brand img { height: 64px; }
  .header-inner { height: 76px; }
  .site-nav { top: 76px; }
}

/* 404 */
.page-404 { text-align: center; min-height: 80vh; display: grid; place-items: center; }
.page-404 img { margin: 0 auto 24px; }
