:root {
  --ink: #07131d;
  --ink-2: #0d1e2b;
  --panel: #102737;
  --panel-2: #132f41;
  --line: rgba(147, 194, 225, 0.17);
  --text: #f5f7f8;
  --muted: #a6b6c2;
  --blue: #5ea9ff;
  --blue-2: #3a8eea;
  --aqua: #29c6c8;
  --lime: #b7f36b;
  --shell: min(1180px, calc(100% - 40px));
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled { background: rgba(7, 19, 29, .82); border-color: var(--line); backdrop-filter: blur(18px); }
.header-inner { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-size: 19px; font-weight: 750; letter-spacing: -.025em; }
.brand-mark { width: 31px; height: 31px; fill: var(--blue); }
.brand-mark-core { fill: var(--ink); }
.brand-light { color: #aec2d1; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: #d4dfe7; text-decoration: none; font-size: 14px; font-weight: 650; }
.site-nav a:not(.nav-cta):hover { color: var(--blue); }
.site-nav .nav-cta { padding: 10px 16px; border: 1px solid rgba(94, 169, 255, .42); border-radius: 10px; color: white; }
.site-nav .nav-cta:hover { background: rgba(94, 169, 255, .12); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 11px; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 6px 0; background: white; transition: transform .2s ease; }

.hero { min-height: 780px; position: relative; overflow: hidden; display: grid; align-items: center; padding: 150px 0 90px; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 84% 42%, rgba(41,198,200,.12), transparent 28%), radial-gradient(circle at 20% 5%, rgba(94,169,255,.1), transparent 26%); }
.circuit-field { position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(rgba(94,169,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(94,169,255,.06) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.circuit-field::before, .circuit-field::after { content:""; position:absolute; height:1px; background:linear-gradient(90deg, transparent, var(--aqua), var(--blue), transparent); filter: drop-shadow(0 0 8px var(--aqua)); opacity:.55; transform:rotate(-9deg); }
.circuit-field::before { width: 62%; top: 30%; left: -10%; }
.circuit-field::after { width: 48%; right: -10%; bottom: 20%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.06fr .94fr; gap: 72px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--blue); font: 650 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 27px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 26px; font-size: clamp(50px, 6vw, 82px); line-height: .98; letter-spacing: -.057em; font-weight: 710; }
h1 em { color: var(--blue); font-style: normal; }
.hero-lede { max-width: 680px; color: #b5c3cc; font-size: clamp(18px, 2vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 36px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 11px; text-decoration: none; font-weight: 750; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #04111b; box-shadow: 0 10px 26px rgba(94,169,255,.19); }
.button-primary:hover { background: #78b7ff; box-shadow: 0 14px 32px rgba(94,169,255,.28); }
.button-quiet { color: #dce7ee; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.button-quiet:hover { background: rgba(255,255,255,.06); }
.capability-list { display: flex; gap: 28px; flex-wrap: wrap; padding: 0; margin: 44px 0 0; list-style: none; color: #8ea2b0; font-size: 13px; }
.capability-list li::before { content: "·"; color: var(--aqua); margin-right: 9px; }

.system-card { position: relative; padding: 20px; background: linear-gradient(155deg, rgba(19,47,65,.88), rgba(8,25,36,.82)); border: 1px solid rgba(94,169,255,.24); border-radius: 26px; box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.05); transform: perspective(900px) rotateY(-3deg) rotateX(2deg); }
.system-card::before { content:""; position:absolute; inset: 12px; border: 1px solid rgba(255,255,255,.045); border-radius: 17px; pointer-events:none; }
.system-card-head { display: flex; justify-content: space-between; align-items: center; color: #8aa4b5; font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.status { color: #a9e673; display: flex; gap: 7px; align-items: center; }
.status i { width: 7px; height: 7px; background: #8fe45b; border-radius: 50%; box-shadow: 0 0 10px #8fe45b; }
.signal-plot { height: 250px; margin: 20px 0 8px; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; border-radius: 12px; overflow: hidden; }
.signal-plot svg { width: 100%; height: 100%; }
.signal-plot .line { fill: none; stroke: url(#lineGlow); stroke-width: 3; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(41,198,200,.45)); stroke-dasharray: 900; stroke-dashoffset: 900; animation: trace 2.2s .4s ease forwards; }
.signal-plot .area { fill: url(#areaGlow); }
@keyframes trace { to { stroke-dashoffset: 0; } }
.system-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.system-stats div { padding: 13px; background: rgba(255,255,255,.035); border-radius: 10px; }
.system-stats span { display: block; color: #718a9b; font: 600 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.system-stats strong { display: block; margin-top: 7px; font: 700 17px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.system-stats small { color: var(--aqua); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.code-line { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 12px 13px; color: #92adbd; border: 1px solid var(--line); border-radius: 10px; font: 500 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-line span { color: var(--aqua); }
.code-line b { width: 6px; height: 14px; background: var(--blue); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.section { padding: 120px 0; }
.expertise { background: #f1f5f6; color: #122432; }
.expertise .eyebrow { color: #2278c3; }
.section-heading { display: grid; grid-template-columns: 1fr .8fr; column-gap: 70px; align-items: end; margin-bottom: 52px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section h2 { margin-bottom: 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 0; color: #5e7381; font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.service-card { position: relative; overflow: hidden; min-height: 350px; padding: 36px; background: white; border: 1px solid #dce5e9; border-radius: var(--radius); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #a9cbe5; box-shadow: 0 20px 60px rgba(26,58,78,.1); }
.service-card > svg { width: 44px; height: 44px; fill: none; stroke: #2884d4; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-index { position: absolute; right: 25px; top: 19px; color: #c0cfd7; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.service-card h3 { margin: 62px 0 14px; font-size: 25px; letter-spacing: -.025em; }
.service-card p { max-width: 500px; color: #607583; }
.service-card ul { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 28px 0 0; list-style: none; }
.service-card li { padding: 5px 10px; background: #edf5f8; border-radius: 7px; color: #466273; font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.approach-band { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; margin-top: 70px; padding: 56px; background: var(--ink-2); color: white; border-radius: 26px; box-shadow: 0 30px 80px rgba(11,31,44,.16); }
.approach-band h2 { font-size: clamp(35px, 4vw, 50px); }
.approach-band ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 0; margin: 0; list-style: none; }
.approach-band li { display: flex; flex-direction: column; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.13); }
.approach-band li > span { color: var(--aqua); font: 650 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.approach-band strong { margin: 19px 0 8px; font-size: 15px; }
.approach-band small { color: #8fa4b2; font-size: 13px; line-height: 1.55; }

.contact { padding-bottom: 0; background: linear-gradient(135deg, #081620, #0b2230); }
.contact-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: start; }
.contact-copy { padding-top: 20px; }
.contact-copy > p:not(.eyebrow) { max-width: 560px; margin-top: 28px; color: #9bb0bd; font-size: 18px; }
.fit-list { display: grid; gap: 11px; margin-top: 40px; color: #d4e0e6; font-size: 14px; }
.fit-list span::before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 11px; background: rgba(41,198,200,.12); border: 1px solid rgba(41,198,200,.35); border-radius: 50%; color: var(--aqua); font-size: 11px; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 38px; background: rgba(19,47,65,.72); border: 1px solid rgba(94,169,255,.18); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-heading, .contact-card label:nth-of-type(3), .contact-card button, .direct-email { grid-column: 1 / -1; }
.form-heading h3 { margin-bottom: 5px; font-size: 25px; }
.form-heading p { margin: 0 0 8px; color: #87a0b0; font-size: 13px; }
.contact-card label { display: grid; gap: 7px; color: #b7c7d1; font: 650 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .06em; }
.contact-card input, .contact-card textarea { width: 100%; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; outline: 0; background: rgba(4,15,23,.5); color: white; padding: 12px 13px; resize: vertical; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-card textarea { min-height: 118px; }
.contact-card input:focus, .contact-card textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(94,169,255,.13); }
.contact-card .button { width: 100%; margin-top: 3px; }
.direct-email { margin: -3px 0 0; text-align: center; color: #849aaa; font-size: 12px; }
.direct-email a { color: #b9d9f2; text-underline-offset: 3px; }
.footer { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; margin-top: 110px; padding: 28px 0 32px; border-top: 1px solid var(--line); color: #6f8796; font-size: 11px; }
.footer p { margin: 0; }
.brand-footer { font-size: 15px; }
.brand-footer .brand-mark { width: 24px; height: 24px; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 60px; }
  .hero-copy { max-width: 760px; }
  .system-card { max-width: 680px; transform: none; }
  .approach-band { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { gap: 55px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer p:nth-child(2) { display: none; }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .header-inner { height: 72px; }
  .brand { font-size: 16px; }
  .brand-mark { width: 27px; height: 27px; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; top: 72px; left: 15px; right: 15px; display: grid; gap: 0; padding: 8px; background: rgba(13,30,43,.98); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-cta { margin-top: 5px; text-align: center; }
  .hero { padding: 125px 0 70px; }
  h1 { font-size: clamp(45px, 14vw, 65px); }
  .hero-lede { font-size: 17px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .capability-list { gap: 10px 18px; margin-top: 32px; }
  .signal-plot { height: 190px; }
  .system-stats strong { font-size: 14px; }
  .section { padding: 82px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .section-heading > p:last-child { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 28px; }
  .service-card h3 { margin-top: 44px; }
  .approach-band { margin-top: 45px; padding: 33px 27px; }
  .approach-band ol { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 26px 20px; }
  .contact-card label { grid-column: 1; }
  .footer { grid-template-columns: 1fr; margin-top: 80px; }
}

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