/* ---------- Design tokens ---------- */
:root {
  --navy-900: #071528;
  --navy-800: #0b1f3a;
  --navy-700: #13305a;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #526077;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(800px, 100% - 2.5rem); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-800); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .75rem;
}
.accent {
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--blue); color: #fff; font-weight: 600; font-size: 1rem;
  font-family: inherit; cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(15, 23, 42, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--navy-800); font-size: 1.2rem; font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .98rem; }
.site-nav a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.site-nav .btn { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(37, 99, 235, .25), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem;
  align-items: center; padding: clamp(4rem, 9vw, 7rem) 0;
}
.hero .eyebrow { color: var(--cyan); }
.lead { font-size: 1.2rem; color: #c6d3e6; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: #c6d3e6; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: rgba(34, 211, 238, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.network-art { width: 100%; max-width: 440px; margin-inline: auto; filter: drop-shadow(0 0 30px rgba(34, 211, 238, .25)); }
.pulse-lines path { stroke-dasharray: 18 400; animation: pulse 3.2s linear infinite; }
.pulse-lines path:nth-child(2) { animation-delay: 1s; }
.pulse-lines path:nth-child(3) { animation-delay: 2s; }
@keyframes pulse { from { stroke-dashoffset: 418; } to { stroke-dashoffset: 0; } }

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-inner { display: flex; align-items: center; gap: 2rem; padding: 1.4rem 0; flex-wrap: wrap; }
.trust-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.trust-list li {
  font-size: .9rem; font-weight: 600; color: var(--navy-700);
  padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }

/* Services */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7d6ec; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(37, 99, 235, .16));
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Why us */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.split > div > p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.feature-list li { background: var(--bg); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border-top: 3px solid var(--blue); }
.feature-list p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { position: relative; padding-top: 1rem; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 2.4rem; left: 3.75rem; right: -.75rem; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--line));
}
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin-bottom: 1.1rem;
  background: var(--navy-800); color: var(--cyan); font-weight: 800; font-size: 1.1rem;
}
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--blue); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-info > p { color: var(--muted); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list .label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.1rem; }

.contact-form { background: var(--bg); padding: 2rem; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.field .invalid { border-color: #dc2626; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 1rem 0 0; font-size: .95rem; color: var(--muted); min-height: 1.5em; }
.form-note.error { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb0c8; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand-light { color: #fff; margin-bottom: .75rem; }
.site-footer nav, .footer-contact { display: grid; gap: .5rem; align-content: start; }
.site-footer a { color: #cfdaea; }
.site-footer a:hover { color: #fff; }
.footer-legal { padding-top: 1.5rem; font-size: .85rem; }
.footer-legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, .08); display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .container, .narrow { width: calc(100% - 2rem); }
  .card-grid, .feature-list, .steps, .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.5rem; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
