:root {
  --navy-950: #050d17;
  --navy-900: #07131f;
  --navy-800: #0c1d2e;
  --navy-700: #14304a;
  --ink: #132238;
  --ink-soft: #4a5b70;
  --muted: #6b7a8c;
  --line: #e3e8ef;
  --line-dark: rgba(148, 178, 214, 0.16);
  --surface: #ffffff;
  --tint: #f5f8fc;
  --blue: #1d5be6;
  --blue-600: #1748c2;
  --blue-300: #8ab4ff;
  --teal: #19b39a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(16, 32, 56, 0.04), 0 8px 24px rgba(16, 32, 56, 0.06);
  --shadow-lg: 0 24px 60px rgba(5, 13, 23, 0.35);
  --midnight: #071827;
  --navy: #102a43;
  --cobalt: #1457d9;
  --sky: #79b9ff;
  --slate: #5b6b7d;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.narrow { max-width: 720px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 12px; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.85em 1.4em; border-radius: 10px; font-weight: 650; font-size: 0.97rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit; line-height: 1.2; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.6em 1.05em; font-size: 0.9rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(29, 91, 230, 0.25); }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { color: var(--navy-900); background: #eef3fb; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.text-link { font-weight: 650; display: inline-flex; gap: 6px; align-items: center; }
.text-link span { transition: transform .15s ease; }
.text-link:hover span { transform: translateX(3px); }

/* Header: frosted white bar from the original theme */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(216, 225, 235, 0.82); box-shadow: 0 1px 0 rgba(7, 24, 39, 0.02);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 14px 40px rgba(7, 24, 39, 0.08); }
.header-inner { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--midnight); }
.brand:hover { color: var(--midnight); }
.brand-mark {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 7px;
  background: var(--midnight); color: #fff; font-weight: 800; font-size: 0.72rem; letter-spacing: -0.05em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { margin-top: 0.15rem; font-size: 0.68rem; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate); }
.nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); margin-left: auto; }
.nav a { position: relative; color: var(--ink); font-weight: 550; font-size: 0.95rem; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cobalt); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta.btn { background: var(--midnight); border-color: var(--midnight); color: #fff; box-shadow: none; padding: 0.75rem 1.1rem; }
.header-cta.btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 10px; border: 1px solid var(--line); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span { display: block; width: 18px; height: 2px; background: var(--midnight); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.mobile-nav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav[open] summary span:nth-child(2) { opacity: 0; }
.mobile-nav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav-panel {
  position: absolute; left: 0; right: 0; top: 100%; padding: 8px 20px 22px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(7, 24, 39, 0.1); display: grid; gap: 4px;
}
.mobile-nav-panel a:not(.btn) { color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.1rem; }
.mobile-nav-panel .btn { margin-top: 14px; background: var(--midnight); box-shadow: none; }

/* Shared section bits */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy-900); color: #fff; }
.section-dark .eyebrow { color: var(--blue-300); }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.68); }
.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, 0.74); max-width: 640px; }
.lead-dark { font-size: 1.1rem; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.num-chip {
  display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 8px; border-radius: 8px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--blue); background: #eaf0ff; margin-bottom: 20px;
}
.step-num { font-family: var(--mono); font-size: 0.75rem; color: var(--blue-300); }

/* Hero: the original theme's gradient, glow, grid and rings, with a live canvas layer on top (public/hero-bg.js) */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background:
    radial-gradient(circle at 84% 20%, rgba(121, 185, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #071827 0%, #102a43 58%, #0d46a7 100%);
}
.page-hero { background: radial-gradient(circle at 86% 30%, rgba(121, 185, 255, 0.22), transparent 25%), linear-gradient(135deg, #071827 0%, #0c2238 70%, #0d3a86 100%); }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -2;
  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: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%); mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; top: 14%; right: -14rem; width: 34rem; height: 34rem; border-radius: 50%;
  border: 1px solid rgba(121, 185, 255, 0.22);
  box-shadow: 0 0 0 5rem rgba(121, 185, 255, 0.035), 0 0 0 10rem rgba(121, 185, 255, 0.025);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero-canvas.is-ready { opacity: 1; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--sky); }
.hero { padding: clamp(80px, 10vw, 136px) 0 64px; color: rgba(255, 255, 255, 0.78); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 800px; font-size: clamp(3rem, 6.2vw, 5.6rem); letter-spacing: -0.055em; line-height: 1.02; margin-bottom: 1.5rem; color: #fff; }
.hero h1 .accent { color: var(--sky); text-shadow: 0 0 40px rgba(121, 185, 255, 0.35); }
.badges { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; list-style: none; padding: 0; margin: 2.5rem 0 0; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.74); }
.badges li { display: inline-flex; align-items: center; gap: 0.5rem; }
.badges li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(40, 184, 169, 0.13); }
.page-hero { padding: clamp(80px, 9vw, 120px) 0 clamp(72px, 8vw, 104px); }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 920px; font-size: clamp(2.4rem, 4.8vw, 4rem); letter-spacing: -0.045em; }

.panel {
  position: relative; border-radius: var(--radius-lg); padding: 22px 24px 26px;
  background: linear-gradient(180deg, rgba(20, 48, 74, 0.72), rgba(12, 29, 46, 0.86));
  border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg);
}
.panel-bar { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.panel-bar span { margin-right: auto; }
.panel-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.panel-label { margin: 20px 0 4px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-300); }
.panel-title { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.03em; margin-bottom: 18px; }
.decision-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.decision-steps li {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(148, 178, 214, 0.1); font-size: 0.93rem;
}
.step-name { font-weight: 600; }
.step-state { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #5fd4c1; }
.principles { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 72px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.principles div { background: rgba(7, 19, 31, 0.9); padding: 20px 22px; display: grid; gap: 2px; }
.principles strong { font-size: 0.95rem; }
.principles span { font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); }

/* Cards */
.card-grid { display: grid; gap: 22px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #cfd9e8; box-shadow: 0 2px 4px rgba(16, 32, 56, 0.04), 0 18px 40px rgba(16, 32, 56, 0.09); }
.card p { color: var(--ink-soft); margin-bottom: 1.2em; }
.card p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(25, 179, 154, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2319b39a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Scorecard */
.scorecard { margin: 0; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(16, 32, 56, 0.14); overflow: hidden; }
.scorecard-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--navy-800); color: rgba(255, 255, 255, 0.75); font-family: var(--mono); font-size: 0.74rem; }
.scorecard-head .tag { color: #5fd4c1; }
.scorecard-body { padding: 24px 24px 12px; }
.scorecard-title { font-weight: 750; font-size: 1.15rem; margin: 0; }
.scorecard-sub { color: var(--muted); font-size: 0.9rem; }
.scorecard table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.scorecard th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.78rem; padding: 10px 0; border-bottom: 1px solid var(--line); }
.scorecard td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.scorecard tr:last-child td { border-bottom: 0; }
.scorecard td:nth-child(2) { color: var(--muted); }
.score { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.score i { display: block; width: 64px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue) var(--w), #e6ecf5 var(--w)); }
.scorecard figcaption { padding: 0 24px 16px; font-size: 0.75rem; color: var(--muted); }

/* Method */
.method-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.method-grid li { background: var(--navy-900); padding: 28px 26px 30px; transition: background .2s ease; }
.method-grid li:hover { background: var(--navy-800); }
.method-grid h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.method-grid p { color: rgba(255, 255, 255, 0.64); font-size: 0.94rem; margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stats div { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; gap: 8px; }
.stats strong { font-size: clamp(2.4rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; font-weight: 800; }
.stats span { color: var(--ink-soft); }

/* Services */
.service-list { display: grid; gap: 0; }
.service { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; padding: 52px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.service:first-child { border-top: 0; padding-top: 0; }
.service-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.service .checks { margin-bottom: 0; }

/* CTA band */
.cta-band { padding: clamp(64px, 8vw, 104px) 0; color: #fff; background: radial-gradient(800px 400px at 100% 0%, rgba(29, 91, 230, 0.45), transparent 60%), var(--navy-950); }
.cta-band .eyebrow { color: var(--blue-300); }
.cta-inner { display: grid; grid-template-columns: 1.4fr auto; gap: 48px; align-items: end; }
.cta-inner h2 { max-width: 760px; }
.cta-inner p { color: rgba(255, 255, 255, 0.7); max-width: 640px; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 18px; padding: 36px; }
.contact-form:hover { transform: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid #d4dce7; border-radius: 10px; background: #fbfcfe; transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 230, 0.12); background: #fff; }
.contact-form button { justify-self: start; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { margin: 0; padding: 14px 16px; border-radius: 10px; font-weight: 550; }
.notice.success { background: #e7f8f4; color: #0d6e5e; }
.notice.error { background: #fdecec; color: #a12a2a; }
.form-status { margin: 0; min-height: 1.4em; font-weight: 550; }
.form-status.success { color: #0d6e5e; }
.form-status.error { color: #a12a2a; }
.contact-aside h2 { font-size: 1.4rem; }
.next-steps { padding-left: 1.2em; display: grid; gap: 14px; color: var(--ink-soft); }
.next-steps strong { color: var(--ink); }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.66); padding: 72px 0 28px; font-size: 0.93rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { color: #fff; font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.footer-grid > div:not(.footer-brand) { display: grid; gap: 10px; align-content: start; }
.footer-grid a:not(.brand) { color: rgba(255, 255, 255, 0.66); }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-brand p { max-width: 340px; margin-top: 18px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: rgba(255, 255, 255, 0.45); }

/* Responsive */
@media (max-width: 1040px) {
  .nav, .header-cta { display: none; }
  .mobile-nav { display: block; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .principles, .method-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .principles, .method-grid, .card-grid.three, .card-grid.two, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .service { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
  .card { padding: 24px; }
  .contact-form { padding: 24px; }
  .brand-text small { display: none; }
  .decision-steps li { grid-template-columns: 26px 1fr; }
  .decision-steps .step-state { display: none; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Footer keeps the light logo on its dark background */
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-mark { background: var(--cobalt); }
.site-footer .brand-text small { color: rgba(255, 255, 255, 0.55); }

/* Decision panel: frosted glass with steady status lights */
.decision-panel { overflow: hidden; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.decision-steps .step-state::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: currentColor; vertical-align: 1px; }

/* Keep the headline crisp over the live background */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; inset: -60px -80px -60px -120px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 35% 50%, rgba(7, 24, 39, 0.62), rgba(7, 24, 39, 0.25) 55%, transparent 75%);
}
.page-hero .container::before {
  content: ""; position: absolute; inset: -60px 20% -60px -120px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(7, 24, 39, 0.55), transparent 72%);
}
