:root {
  --navy: #2C3E55;
  --navy-deep: #1B283A;
  --navy-ink: #131E2C;
  --blue: #3B8FD0;
  --blue-dark: #2F78B2;
  --blue-light: #6FB6EE;
  --ink: #1F2A38;
  --muted: #5B6875;
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --line: #E3E1DB;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(19, 30, 44, 0.05), 0 12px 32px -12px rgba(19, 30, 44, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--navy-deep); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 8px; z-index: 10; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.98rem;
  padding: 14px 24px; border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(59, 143, 208, 0.7); }
.button-primary:hover { background: var(--blue-light); }
.button-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.button-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }
.button-lg { font-size: 1.1rem; padding: 18px 32px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(27, 40, 58, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav a { color: rgba(255,255,255,0.78); font-weight: 500; font-size: 0.95rem; transition: color 0.15s ease; }
.site-header nav a:hover { color: #fff; text-decoration: none; }
.site-header nav .nav-cta { color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 8px 16px; border-radius: 6px; }
.site-header nav .nav-cta:hover { background: var(--blue); border-color: var(--blue); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(59, 143, 208, 0.30), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(59, 143, 208, 0.14), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-ink) 100%);
  padding: 96px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--blue-light); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 .accent { color: var(--blue-light); }
.hero .lede { font-size: 1.2rem; color: rgba(255,255,255,0.78); max-width: 560px; margin-bottom: 36px; }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-copy > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.hero-art { margin: 0; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero diagram */
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art .label { font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; fill: rgba(255,255,255,0.55); }
.hero-art .tiny { font-family: var(--font); font-size: 10px; fill: rgba(255,255,255,0.55); }
.hero-art .node-text { font-family: var(--font); font-size: 11px; font-weight: 500; fill: rgba(255,255,255,0.9); }
.hero-art .region { fill: rgba(255,255,255,0.03); stroke: rgba(255,255,255,0.14); stroke-width: 1; }
.hero-art .node { fill: rgba(59, 143, 208, 0.14); stroke: rgba(111, 182, 238, 0.45); stroke-width: 1; }
.hero-art .node-accent { fill: rgba(59, 143, 208, 0.35); stroke: var(--blue-light); }
.hero-art .wire { fill: none; stroke: rgba(111, 182, 238, 0.5); stroke-width: 1.5; }
.hero-art .wire-dash { stroke-dasharray: 4 4; animation: flow 1.2s linear infinite; }
.hero-art .bar-bg { fill: rgba(255,255,255,0.06); }
.hero-art .bar { fill: var(--blue); }
.hero-art .ok { fill: #3DD68C; }
.hero-art .traffic path { animation: pulse 2.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Proof strip */
.proof { background: var(--surface); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { padding: 30px 24px 30px 0; display: flex; flex-direction: column; gap: 6px; }
.proof-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof strong { font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--navy-deep); letter-spacing: -0.03em; line-height: 1; }
.proof span { font-size: 0.92rem; color: var(--muted); line-height: 1.45; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Service cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards li {
  position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cards li:hover { transform: translateY(-3px); border-color: rgba(59, 143, 208, 0.5); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(59, 143, 208, 0.12); color: var(--blue-dark); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon svg { width: 22px; height: 22px; }
.card-num { position: absolute; top: 26px; right: 30px; font-family: var(--display); font-weight: 700; font-size: 0.85rem; color: var(--blue); letter-spacing: 0.08em; }
.cards h3 { margin-bottom: 8px; padding-right: 40px; }
.cards p { color: var(--muted); margin: 0; }

/* Industries */
.industries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.industries li { padding-top: 22px; border-top: 2px solid var(--blue); }
.industries svg { width: 28px; height: 28px; color: var(--blue-dark); margin-bottom: 14px; }
.industries h3 { margin-bottom: 6px; }
.industries p { color: var(--muted); margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.about-copy p { font-size: 1.05rem; }
.principles { margin: 36px 0 0; padding: 0; display: grid; gap: 20px; }
.principles > div { border-left: 3px solid var(--blue); padding: 4px 0 4px 20px; }
.principles dt { font-family: var(--display); font-weight: 700; color: var(--navy-deep); margin-bottom: 4px; }
.principles dd { margin: 0; color: var(--muted); }

/* CTA band */
.cta {
  color: #fff; text-align: center; padding: 104px 0;
  background:
    radial-gradient(700px 360px at 50% 100%, rgba(59, 143, 208, 0.32), transparent 65%),
    linear-gradient(180deg, var(--navy-deep), var(--navy-ink));
}
.cta-inner { max-width: 720px; }
.cta .eyebrow { color: var(--blue-light); }
.cta h2 { color: #fff; }
.cta .lede { color: rgba(255,255,255,0.75); font-size: 1.15rem; margin-bottom: 32px; }

/* Footer */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,0.6); padding: 36px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner img { width: 176px; height: auto; }
.footer-inner p { margin: 0; font-size: 0.88rem; }

/* 404 */
.notfound { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.notfound .container > * { margin-left: auto; margin-right: auto; }
.notfound .lede { color: var(--muted); font-size: 1.15rem; margin-bottom: 28px; max-width: 520px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 560px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid > div { padding: 22px 20px 22px 0; }
  .proof-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof-grid > div:nth-child(1), .proof-grid > div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-grid .section-head { position: static; }
  .industries { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 72px; }
  .section, .cta { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .site-header nav { gap: 16px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .button-lg { font-size: 1rem; padding: 16px 22px; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-art, .hero-art .wire-dash, .hero-art .traffic path { animation: none; }
  .button:hover, .cards li:hover { transform: none; }
}
