:root {
  --navy: #071f33;
  --navy-2: #0b2c47;
  --blue: #1565a0;
  --blue-light: #56a0de;
  --teal: #11a9c0;
  --teal-soft: #8fd8e4;
  --ink: #0f2b40;
  --muted: #4d6577;
  --line: #d8e3ec;
  --mist: #f2f7fa;
  --white: #ffffff;
  --max: 1200px;
  --head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cable: linear-gradient(90deg, var(--teal), var(--blue));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.01em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 64ch; }
.lede { font-size: 1.28rem; color: var(--muted); }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; position: relative; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 20; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand img { height: 46px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 1.05rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--teal); }
.nav .nav-cta { background: var(--navy); color: var(--white); padding: .6rem 1.2rem; border: 0; border-radius: 6px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--blue); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: .45rem .8rem; font: inherit; font-size: 1rem; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--head); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em; text-decoration: none; padding: .85rem 1.6rem; border-radius: 6px; border: 2px solid var(--teal); background: var(--teal); color: var(--navy); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-line { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-line:hover { border-color: var(--white); background: transparent; color: var(--white); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* Dark hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse 70% 90% at 78% 45%, #0f3d63 0%, var(--navy) 62%); color: #c9dbe8; padding: 7rem 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(143,216,228,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(143,216,228,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(90deg, transparent 30%, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: #b4cadb; }
.hero-mark { position: relative; justify-self: end; width: min(100%, 460px); }
.hero-mark img { width: 100%; filter: drop-shadow(0 30px 60px rgba(17,169,192,.25)); }
.hero-mark::after { content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; background: radial-gradient(circle, rgba(17,169,192,.22), transparent 70%); z-index: -1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: rise 1.2s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }

.hero .capabilities { display: block; }
.capabilities { position: relative; margin-top: 5.5rem; border-top: 1px solid rgba(143,216,228,.18); }
.capabilities ul { list-style: none; margin: 0; padding: 1.6rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.capabilities li { display: flex; align-items: center; gap: .6rem; font-family: var(--head); font-weight: 500; font-size: 1.1rem; color: #dbe8f1; }

/* Hex node marker, from the logo's cable ends */
.hex { width: 14px; height: 14px; flex: none; }
.hex polygon { fill: none; stroke: var(--teal); stroke-width: 3; }

/* The cable rule: three strands like the logo */
.strands { display: block; width: 96px; height: 14px; margin-bottom: 1.4rem; }
.strands span { display: block; height: 3px; border-radius: 3px; margin-bottom: 2px; background: var(--cable); }
.strands span:nth-child(2) { width: 82%; }
.strands span:nth-child(3) { width: 64%; }

section.block { padding: 6.5rem 0; }
section.mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 3.5rem; }

/* Services grid: ruled, not cards */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.svc { padding: 2.6rem 2.6rem 2.6rem 0; border-bottom: 1px solid var(--line); }
.svc-grid .svc:nth-child(odd) { border-right: 1px solid var(--line); }
.svc-grid .svc:nth-child(even) { padding-left: 2.6rem; padding-right: 0; }
.svc h3 { display: flex; align-items: center; gap: .7rem; }
.svc p { color: var(--muted); margin-bottom: .9rem; }
.svc a { font-weight: 600; text-decoration: none; }
.svc a:hover { text-decoration: underline; }
.svc.featured { border-top: 1px solid var(--line); padding: 3rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.svc.featured h3 { font-size: 1.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .35rem .9rem; font-size: .98rem; color: var(--navy-2); }

/* Integrator diagram */
.integrator { background: var(--navy); color: #c9dbe8; position: relative; overflow: hidden; }
.integrator h2 { color: var(--white); }
.integrator .lede { color: #b4cadb; }
.integrator .watermark { position: absolute; right: -120px; bottom: -140px; width: 520px; opacity: .06; pointer-events: none; }
.flow { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; align-items: stretch; margin-top: 3.5rem; }
.flow-col { border: 1px solid rgba(143,216,228,.2); border-radius: 10px; padding: 2rem; background: rgba(255,255,255,.03); }
.flow-col h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 1rem; }
.flow-col ul { list-style: none; margin: 0; padding: 0; }
.flow-col li { padding: .45rem 0; border-bottom: 1px solid rgba(143,216,228,.12); font-size: 1.02rem; }
.flow-col li:last-child { border-bottom: 0; }
.flow-col.core { background: linear-gradient(160deg, rgba(17,169,192,.16), rgba(21,101,160,.12)); border-color: rgba(17,169,192,.55); text-align: left; }
.flow-col.core img { width: 54px; margin-bottom: 1rem; }
.flow-link { width: 70px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.flow-link span { height: 3px; border-radius: 3px; background: var(--cable); }
.flow-link span:nth-child(2) { opacity: .7; } .flow-link span:nth-child(3) { opacity: .45; }

/* Approach: real sequence */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--cable); opacity: .35; }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.2rem; font-family: var(--head); font-weight: 600; font-size: 1.15rem; color: var(--navy); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cpolygon points='12,4 32,4 42,22 32,40 12,40 2,22' fill='white' stroke='%2311a9c0' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; position: relative; }
.steps h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: 1.02rem; margin: 0; }

/* Why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: grid; grid-template-columns: 22px 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.why-list li:first-child { border-top: 1px solid var(--line); }
.why-list .hex { margin-top: .45rem; width: 18px; height: 18px; }
.why-list h3 { font-size: 1.25rem; margin: 0 0 .25rem; }
.why-list p { margin: 0; color: var(--muted); }
.facts { display: flex; gap: 2.5rem; margin-top: 2.2rem; flex-wrap: wrap; }
.facts dt { font-size: .95rem; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-family: var(--head); font-size: 1.7rem; font-weight: 600; color: var(--navy); }

/* CTA */
.cta-band { background: linear-gradient(110deg, var(--navy) 0%, #0d3a5e 60%, #0f4f73 100%); color: #c9dbe8; padding: 5rem 0; overflow: hidden; position: relative; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: .4rem; }
.cta-band p { margin: 0; }
.cta-band .watermark { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 300px; opacity: .08; pointer-events: none; }

/* Inner page intro */
.page-intro { position: relative; overflow: hidden; background: radial-gradient(ellipse 60% 120% at 85% 50%, #0f3d63 0%, var(--navy) 65%); color: #b4cadb; padding: 5.5rem 0 5rem; }
.page-intro h1 { color: var(--white); }
.page-intro p { font-size: 1.28rem; }
.page-intro .watermark { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: 300px; opacity: .14; pointer-events: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: start; }

/* Service detail */
.service { padding: 5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.service:last-of-type { border-bottom: 0; }
.service .split { gap: 3.5rem; }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.checks .hex { margin-top: .4rem; }
.service-note { margin-top: 1.4rem; padding: 1.2rem 1.4rem; border-left: 3px solid var(--teal); background: var(--mist); color: var(--navy-2); font-size: 1.05rem; }
.service-note p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; }
.contact-details dt { font-weight: 600; color: var(--navy); margin-top: 1.5rem; }
.contact-details dd { margin: .2rem 0 0; }
.form-panel { border: 1px solid var(--line); border-radius: 12px; padding: 2.5rem; box-shadow: 0 24px 60px -30px rgba(7,31,51,.35); background: var(--white); }
form .field { margin-bottom: 1.2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: 1rem; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1px solid #b9cbd8; border-radius: 6px; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(17,169,192,.5); outline-offset: 0; border-color: var(--blue); }
textarea { min-height: 150px; resize: vertical; }
.hidden { display: none; }
.form-note { font-size: .95rem; color: var(--muted); }

.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose ul { max-width: 64ch; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb8ca; padding: 4.5rem 0 2rem; font-size: 1rem; border-top: 3px solid; border-image: var(--cable) 1; }
.site-footer a { color: #e3eef6; text-decoration: none; }
.site-footer a:hover { color: var(--teal-soft); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.site-footer h2 { font-size: 1.1rem; color: var(--white); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-logo { height: 46px; width: auto; margin-bottom: 1.2rem; }
.footer-base { border-top: 1px solid rgba(143,216,228,.15); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .92rem; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 80px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.2rem; }
  .nav li a { display: block; padding: .8rem 0; }
  .nav .nav-cta { text-align: center; margin-top: .5rem; }
  .hero { padding-top: 4rem; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { justify-self: start; width: 150px; order: -1; margin-bottom: -1rem; }
  .capabilities { margin-top: 3.5rem; }
  .capabilities ul { justify-content: flex-start; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-grid .svc, .svc-grid .svc:nth-child(even) { padding: 2.2rem 0; border-right: 0; }
  .svc.featured { grid-template-columns: 1fr; gap: 1.2rem; }
  .flow { grid-template-columns: 1fr; }
  .flow-link { width: auto; height: 46px; flex-direction: row; justify-content: center; }
  .flow-link span { width: 3px; height: 100%; background: linear-gradient(var(--teal), var(--blue)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .why, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .page-intro .watermark { width: 180px; right: -30px; opacity: .1; }
  section.block { padding: 4.5rem 0; }
}
@media (max-width: 560px) {
  .steps, .row { grid-template-columns: 1fr; }
  .brand img { height: 38px; }
  .form-panel { padding: 1.5rem; }
  .cta-band .watermark { display: none; }
}
