:root {
  --navy: #1b2a3d;
  --navy-dark: #101a27;
  --blue: #2f7fc4;
  --blue-dark: #1f5f9c;
  --blue-light: #eaf3fb;
  --ink: #1f2933;
  --muted: #5b6774;
  --border: #e4e8ed;
  --bg-soft: #f6f8fa;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 40, 70, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 26, 39, 0.14);
  --container: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--blue), #6fd0ff);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  will-change: transform;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.btn {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}

.btn:hover::before { transform: translateX(120%); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(47, 127, 196, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 127, 196, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost-light:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateY(-2px);
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.section { padding: 100px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Staggered reveal for grid children */
.diff-grid .reveal:nth-child(1), .services-grid .reveal:nth-child(1), .process-list .reveal:nth-child(1), .faq-list .reveal:nth-child(1) { transition-delay: 0s; }
.diff-grid .reveal:nth-child(2), .services-grid .reveal:nth-child(2), .process-list .reveal:nth-child(2), .faq-list .reveal:nth-child(2) { transition-delay: 0.08s; }
.diff-grid .reveal:nth-child(3), .services-grid .reveal:nth-child(3), .process-list .reveal:nth-child(3), .faq-list .reveal:nth-child(3) { transition-delay: 0.16s; }
.diff-grid .reveal:nth-child(4), .services-grid .reveal:nth-child(4), .process-list .reveal:nth-child(4), .faq-list .reveal:nth-child(4) { transition-delay: 0.24s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.4s; }
.hero-actions.reveal, .trust-strip.reveal { transition-delay: 0.15s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(16, 26, 39, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.logo img { height: 34px; width: auto; }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.site-nav a {
  color: #cfd8e3;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: right 0.25s var(--ease);
}

.site-nav a:hover { color: var(--white); }
.site-nav a:hover::after,
.site-nav a.active::after { right: 0; }
.site-nav a.active { color: var(--white); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  --mx: 50%;
  --my: 30%;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(16,26,39,0.94), rgba(27,42,61,0.9)),
    radial-gradient(circle at 82% 15%, rgba(47,127,196,0.4), transparent 55%);
  color: var(--white);
  padding: 140px 0 120px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 var(--parallax, 0px);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(480px circle at var(--mx) var(--my), rgba(111, 208, 255, 0.16), transparent 70%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

@media (max-width: 720px) {
  .hero-glow { display: none; }
}

.hero-inner { position: relative; }

.hero-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc3e6;
  background: rgba(47,127,196,0.16);
  border: 1px solid rgba(47,127,196,0.35);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  margin: 0 0 20px;
  max-width: 840px;
  margin-inline: auto;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.18rem;
  color: #b9c6d4;
  margin: 0 auto 40px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.trust-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #c9d5e0;
}

.trust-strip svg { width: 18px; height: 18px; color: #6fa8dc; flex-shrink: 0; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.about-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 16px; }
.about-copy p { color: var(--muted); font-size: 1.02rem; }

.about-visual {
  position: relative;
  height: 280px;
}

.visual-card {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.visual-card--1 {
  inset: 0 20% 30% 0;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}

.visual-card--2 {
  inset: 30% 0 0 20%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

/* Differentiators */
.differentiators { background: var(--bg-soft); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.diff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.diff-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.diff-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.diff-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: rgba(47,127,196,0.35);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}

.service-card:hover .service-icon,
.diff-card:hover .service-icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08) rotate(-4deg);
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.12rem;
  margin: 0 0 10px;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 0 16px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 9px;
}

.service-list li {
  font-size: 0.88rem;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

/* Process */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: 32px 24px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -24px;
  width: 24px;
  height: 1px;
  background: var(--border);
  display: none;
}

@media (min-width: 901px) {
  .process-step:not(:last-child)::after { display: block; }
}

.process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.process-step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.process-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq { background: var(--bg-soft); }
.faq-inner { max-width: 780px; }

.faq-list { display: grid; gap: 14px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  position: relative;
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%;
  left: 50%;
}
.faq-icon::before { width: 10px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 2px; height: 10px; transform: translate(-50%, -50%); transition: opacity 0.2s ease; }

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--blue);
  color: var(--white);
  transform: rotate(180deg);
}
.faq-question[aria-expanded="true"] .faq-icon::after { opacity: 0; }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact { background: var(--white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 14px; }
.contact-info > p { color: var(--muted); margin: 0 0 28px; }

.contact-details {
  margin: 0 0 32px;
  display: grid;
  gap: 18px;
}

.contact-details dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-details dd {
  margin: 0;
  color: var(--ink);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 320px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { background: var(--blue); }
.back-to-top svg { width: 20px; height: 20px; }

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #8b96a3;
  padding: 36px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.footer-nav a {
  color: #c9d5e0;
  font-weight: 500;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}
.footer-nav a:hover { color: var(--white); }

.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .about-inner, .contact-inner {
    grid-template-columns: 1fr;
  }
  .about-visual { height: 220px; margin-top: 8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .site-nav.nav-open { display: flex; }
  .site-nav a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.06); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 104px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .back-to-top { right: 16px; bottom: 16px; }
}
