:root {
  --ink: #142031;
  --muted: #536173;
  --line: #d9e0e8;
  --surface: #ffffff;
  --surface-alt: #f4f7fa;
  --brand: #0c69b7;
  --brand-dark: #074b82;
  --accent: #14a38b;
  --accent-soft: #dff7f1;
  --shadow: 0 18px 45px rgba(20, 32, 49, 0.12);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 224, 232, 0.8);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: clamp(86px, 10vw, 132px);
  height: auto;
  object-fit: contain;
}

.brand-mark:not([src]),
.brand-mark[src=""] {
  display: none;
}

.brand-fallback {
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark:is([alt]) + .brand-fallback {
  margin-left: 12px;
}

.brand.logo-loaded .brand-fallback {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--brand-dark);
  background: var(--surface-alt);
  outline: none;
}

.nav-menu .nav-cta {
  color: #fff;
  background: var(--brand);
}

.nav-menu .nav-cta:hover,
.nav-menu .nav-cta:focus-visible {
  color: #fff;
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  content: "";
}

.nav-toggle-line::before {
  transform: translateY(-7px);
}

.nav-toggle-line::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 100px) 0 clamp(44px, 7vw, 78px);
  background:
    linear-gradient(135deg, rgba(12, 105, 183, 0.1), rgba(20, 163, 139, 0.1)),
    linear-gradient(180deg, #fff, #eef5fa);
}

.hero::after {
  position: absolute;
  inset: auto -15% -34% 45%;
  height: 360px;
  background: radial-gradient(circle, rgba(20, 163, 139, 0.18), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  line-height: 1.22;
}

.hero-lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

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

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--brand);
}

.hero-logo-panel {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: clamp(24px, 4vw, 44px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-logo {
  width: min(100%, 390px);
  height: auto;
  object-fit: contain;
}

.hero-logo-fallback {
  display: none;
  width: min(100%, 390px);
  padding: 30px 16px;
  color: var(--brand-dark);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-logo-panel.logo-missing .hero-logo {
  display: none;
}

.hero-logo-panel.logo-missing .hero-logo-fallback {
  display: grid;
  place-items: center;
}

.hero-logo-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

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

.trust-grid div {
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.trust-grid div:first-child {
  border-left: 1px solid var(--line);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 124px;
}

.section-heading {
  max-width: 820px;
}

.section-heading p:not(.eyebrow),
.split p,
.blog-preview p,
.contact-grid p {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.featured-post,
.contact-card,
.post-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(20, 32, 49, 0.06);
}

.service-card p,
.featured-post p,
.post-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.metrics {
  display: grid;
  gap: 14px;
  margin: 0;
}

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

.metrics dt {
  color: var(--brand);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.metrics dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.cloud-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.cloud-list li {
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 16px;
  font-weight: 900;
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 163, 139, 0.24);
  border-radius: 8px;
}

.blog-preview,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.featured-post a,
.post-card a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.post-date,
.small-note {
  font-size: 0.9rem;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(12, 105, 183, 0.08), rgba(20, 163, 139, 0.08)),
    #fff;
}

.contact-card {
  border-top: 5px solid var(--brand);
}

.contact-card .button {
  margin-top: 8px;
}

code {
  padding: 2px 5px;
  background: var(--surface-alt);
  border-radius: 4px;
}

.site-footer {
  padding: 28px 0;
  color: #dbe8f3;
  background: var(--ink);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid nav {
  display: flex;
  gap: 18px;
}

.footer-grid a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.page-hero {
  padding: clamp(48px, 7vw, 86px) 0;
  background: linear-gradient(135deg, #eef5fa, #fff);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.post-content {
  font-size: 1.08rem;
}

.post-content h2 {
  margin-top: 42px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.post-content p,
.post-content li {
  color: var(--muted);
}

.post-content a {
  color: var(--brand-dark);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav {
    min-height: 76px;
  }

  .brand-mark {
    width: 88px;
  }

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

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    justify-content: center;
  }

  .hero-grid,
  .section-grid,
  .split,
  .blog-preview,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    position: static;
  }

  .hero-logo-panel {
    min-height: 300px;
  }

  .hero-logo {
    width: min(100%, 280px);
  }

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

  .cloud-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .hero {
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .trust-grid,
  .cards-grid,
  .cloud-list {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .trust-grid div:first-child {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

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