:root {
  --ink: #111827;
  --muted: #5b677a;
  --line: #d9e1ea;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --navy: #0f172a;
  --blue: #2563eb;
  --cyan: #036981;
  --green: #15803d;
  --amber: #b45309;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --card-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbff 0, var(--soft) 360px),
    var(--soft);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 220px;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  border-radius: 4px;
  border: 0;
  background: transparent;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--navy);
  border: 2px solid var(--cyan);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-top: 2px solid rgba(56, 189, 248, 0.85);
  border-bottom: 2px solid rgba(34, 197, 94, 0.8);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav a,
.nav-dropdown-trigger {
  padding: 8px 12px;
  border-radius: 6px;
  color: #263244;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a.active,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown:hover .nav-dropdown-trigger {
  background: #e8f1ff;
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  padding: 0;
  color: #263244;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav-dropdown-toggle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus,
.nav-dropdown.is-open .nav-dropdown-toggle {
  background: #e8f1ff;
  color: var(--blue);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 320px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: #263244;
  line-height: 1.25;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus,
.nav-dropdown-menu a.active {
  background: #f0f6ff;
  color: var(--blue);
}

.hero,
.page-hero,
.section,
.band,
.cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(52px, 8vw, 96px) 0 34px;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2.2rem, 5vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: #334155;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1d4ed8);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.button:hover {
  transform: translateY(-1px);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0 0;
}

.quick-facts div {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts dt {
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 4px 0 0;
  color: #263244;
  font-weight: 700;
}

.hero-visual {
  margin: 0;
  box-shadow: var(--shadow);
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.hero-visual figcaption {
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.proof-strip,
.service-hub {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-strip span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  color: #1f2937;
  font-weight: 800;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero .hero-actions {
  margin: 22px 0 0;
}

.breadcrumb {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}

.section {
  padding: 56px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2,
.band h2,
.cta h2,
.split h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-list,
.problem-grid,
.trust-grid {
  display: grid;
  gap: 14px;
}

.feature-list article,
.problem-grid div,
.trust-grid div {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-list h3 {
  margin: 0 0 6px;
}

.feature-list p,
.problem-grid span,
.trust-grid span {
  color: var(--muted);
}

.problem-grid {
  grid-template-columns: repeat(3, 1fr);
}

.problem-grid strong,
.trust-grid strong {
  display: block;
  margin-bottom: 6px;
}

.service-hub {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 18px;
}

.service-hub a,
.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.service-hub a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.service-hub a:hover {
  border-color: rgba(37, 99, 235, 0.45);
  background: #f8fbff;
}

.text-link {
  display: inline-flex;
  margin-right: 12px;
}

.service-grid.wide {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.case-card,
.profile-panel,
.contact-form,
.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.card {
  min-height: 220px;
  padding: 24px;
}

.card,
.case-card,
.profile-panel,
.contact-form,
.contact-panel,
.service-detail > div,
.service-detail .visual-support {
  border-color: #cfd9e5;
}

.card h2,
.card h3,
.contact-panel h2,
.profile-panel h3 {
  margin-top: 0;
  line-height: 1.18;
}

.card p,
.muted,
.site-footer p {
  color: var(--muted);
}

.card ul,
.profile-panel ul,
.contact-panel ul {
  padding-left: 20px;
}

.band,
.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  padding: 40px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.band p,
.cta p {
  color: #cbd5e1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 28px;
}

.case-list {
  display: grid;
  gap: 12px;
}

.case-link {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.case-link:hover {
  border-color: var(--blue);
}

.case-link span {
  color: var(--muted);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-cloud li {
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #1f2937;
  font-weight: 700;
}

.cta {
  align-items: center;
  margin-bottom: 56px;
}

.case-stack {
  display: grid;
  gap: 18px;
}

.page-hero.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding-bottom: 20px;
}

.case-hero .inline-image {
  margin: 0;
}

.case-hero .inline-image img {
  max-height: 360px;
  box-shadow: var(--shadow);
}

.case-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.case-highlights a {
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.case-card {
  padding: 28px;
}

.case-card h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

.case-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
}

.case-card dl div {
  padding: 14px;
  background: var(--soft);
  border-radius: 8px;
}

.case-card dt {
  font-weight: 800;
  color: var(--cyan);
}

.case-card dd {
  margin: 6px 0 0;
}

.case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.case-detail-grid section {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-detail-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.case-detail-grid p {
  margin: 0;
  color: var(--muted);
}

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

.process-list li {
  counter-increment: process;
  position: relative;
  padding: 52px 18px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-list li::before {
  content: counter(process);
  position: absolute;
  top: 16px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 6px;
  color: var(--muted);
}

.trust-layout,
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: 28px;
}

.trust-grid {
  grid-template-columns: repeat(2, 1fr);
}

.service-detail > div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.035);
}

.service-detail h2 {
  margin-top: 0;
}

.service-detail .service-faq {
  grid-column: 1 / -1;
}

.service-detail .full-width {
  grid-column: 1 / -1;
}

.service-detail .visual-support {
  padding: 0;
  overflow: hidden;
}

.visual-support img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.visual-support figcaption {
  padding: 12px 16px;
  color: var(--muted);
  background: #fff;
  font-size: 0.84rem;
}

.service-faq details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.service-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.service-faq p {
  color: var(--muted);
}

.inline-image {
  margin: 18px 0 0;
}

.inline-image img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.inline-image figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.profile-panel {
  padding: 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.page-hero.contact-hero {
  padding-bottom: 12px;
}

.section.contact-layout {
  padding-top: 24px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #263244;
  font-weight: 800;
}

.contact-form label:has(textarea),
.contact-form button {
  grid-column: 1 / -1;
}

.status-message {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.status-message.error {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.status-message.is-visible {
  display: block;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c5d4;
  border-radius: 6px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.18);
  border-color: var(--blue);
}

.contact-panel {
  padding: 24px;
}

.contact-panel a {
  color: var(--blue);
  font-weight: 800;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h2 {
  margin-top: 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 64px);
  color: #cbd5e1;
  background: var(--navy);
}

.site-footer strong {
  color: #fff;
}

.site-footer p,
.site-footer .muted {
  color: #d6e0ee;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .band,
  .cta,
  .split,
  .contact-layout,
  .page-hero.case-hero {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .service-grid.wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-hub,
  .case-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-facts,
  .case-card dl,
  .case-detail-grid,
  .process-list,
  .trust-layout,
  .trust-grid,
  .service-detail,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  html,
  body,
  main {
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero,
  .page-hero,
  .section,
  .band,
  .cta,
  .proof-strip,
  .service-hub,
  .breadcrumb {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 10px 18px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 5px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 0 4px;
  }

  .site-header.nav-open .nav {
    display: grid;
  }

  .nav a,
  .nav-dropdown-trigger {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.96rem;
  }

  .nav-dropdown {
    display: grid;
  }

  .nav-dropdown-toggle {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin: 2px 0 4px;
    padding: 6px;
    background: #f8fbff;
    border-color: #dbe7f5;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 10px 12px;
    color: #334155;
    font-size: 0.92rem;
  }

  .hero {
    padding-top: 36px;
  }

  .page-hero {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8.2vw, 2.12rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .lead,
  .quick-facts dd,
  .card,
  .case-card,
  .profile-panel,
  .contact-panel {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .service-grid.wide,
  .contact-form,
  .problem-grid,
  .service-hub,
  .case-highlights {
    grid-template-columns: 1fr;
  }

  .service-hub a {
    min-height: 52px;
  }

  .section.contact-layout {
    padding-top: 18px;
  }

  .card h2,
  .card h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .band,
  .cta {
    padding: 28px;
  }
}

@media (max-width: 500px) {
  .hero,
  .page-hero,
  .section,
  .band,
  .cta,
  .proof-strip,
  .service-hub,
  .breadcrumb {
    margin-left: 18px;
    margin-right: 18px;
    max-width: 354px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(1.65rem, 7.8vw, 2rem);
  }
}
