:root {
  --ink: #102033;
  --muted: #5b6b7f;
  --line: #dce5ef;
  --soft: #f5f8fb;
  --panel: #ffffff;
  --navy: #0b2f55;
  --deep: #071a2e;
  --blue: #1469b8;
  --cyan: #1ba8c7;
  --green: #25a46b;
  --shadow: 0 18px 50px rgba(16, 32, 51, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: #fff;
}

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

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

p {
  margin: 0;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
  color: var(--navy);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 21px;
  color: #31445b;
  font-size: 14px;
}

.navlinks a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-weight: 600;
}

.navlinks a.active,
.navlinks a:hover {
  color: var(--blue);
}

.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  left: -18px;
  top: 100%;
  min-width: 210px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
}

.dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
}

.dropdown a:hover {
  background: var(--soft);
}

.nav-item:hover .dropdown {
  display: block;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.nav-cta,
.btn.primary {
  background: var(--blue);
  color: #fff;
}

.btn.primary:hover,
.nav-cta:hover {
  background: #0d5aa1;
}

.btn.light {
  border-color: rgba(255,255,255,.56);
  color: #fff;
  background: rgba(255,255,255,.08);
}

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

.hero,
.page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 25, 47, .94), rgba(9, 42, 75, .76), rgba(9, 42, 75, .34)),
    var(--hero-image) center/cover no-repeat;
}

.hero .wrap {
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: 72px 0;
}

.page-hero .wrap {
  min-height: 430px;
  display: grid;
  align-items: center;
  padding: 74px 0;
}

.hero-copy,
.page-copy {
  max-width: 720px;
}

.eyebrow,
.kicker {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.kicker {
  color: var(--blue);
  margin-bottom: 10px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.02;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

h2 {
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

h3 {
  color: var(--navy);
  font-size: 21px;
  line-height: 1.25;
}

h4 {
  color: var(--navy);
  font-size: 17px;
}

.hero p,
.page-hero p {
  margin-top: 22px;
  max-width: 650px;
  color: rgba(255,255,255,.86);
  font-size: 18px;
}

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

section {
  padding: 86px 0;
}

.section-soft {
  background: var(--soft);
}

.section-dark {
  color: #fff;
  background: var(--navy);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #fff;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin: 0 auto 34px;
  text-align: center;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
}

.section-dark .lead,
.section-dark .card p,
.section-dark .check-list li {
  color: rgba(255,255,255,.74);
}

.section-dark .card {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.16);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

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

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

.split {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 52px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: .96fr 1.04fr;
}

.card,
.service-card,
.metric,
.step,
.info-box,
.gallery-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card {
  padding: 22px;
}

.card p,
.service-card p,
.gallery-card p,
.step p,
.info-box p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.service-card,
.gallery-card {
  overflow: hidden;
}

.service-card img,
.gallery-card img,
.image-frame img {
  width: 100%;
  object-fit: cover;
}

.service-card img.no-crop,
.gallery-card img.no-crop,
.image-frame img.no-crop,
.post-card img.no-crop,
.image-grid img.no-crop {
  object-fit: contain;
  background: #fff;
  padding: 10px;
}

.service-card img {
  aspect-ratio: 4 / 3;
}

.gallery-card img {
  aspect-ratio: 1 / 1;
}

.service-card .body,
.gallery-card .body {
  padding: 20px;
}

.image-frame img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.image-frame.square img {
  aspect-ratio: 1 / 1;
}

.image-frame.tall img {
  aspect-ratio: 4 / 5;
}

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

.image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: -58px;
  background: var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.metric,
.stat {
  padding: 24px;
}

.metric strong,
.stat strong {
  display: block;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.1;
}

.metric span,
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 11px;
}

.check-list li {
  color: var(--muted);
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: inset 0 0 0 4px #d8f4f9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #31445b;
  font-size: 14px;
  font-weight: 700;
}

.section-dark .tag {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.18);
}

.process {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.step {
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
}

.step strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-row .info-box {
  border: 0;
  border-radius: 0;
  padding: 22px;
}

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

.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card th,
.table-card td {
  text-align: left;
  vertical-align: top;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.table-card th {
  width: 34%;
  color: var(--navy);
  background: var(--soft);
}

.table-card tr:last-child th,
.table-card tr:last-child td {
  border-bottom: 0;
}

.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255,255,255,.76);
  max-width: 720px;
  margin-top: 14px;
}

.contact-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 30px;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  margin-top: 4px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

.post-featured {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.post-featured img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.post-featured .body {
  padding: 34px;
  display: grid;
  align-content: center;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-meta .category {
  color: var(--blue);
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.post-card .body {
  padding: 20px;
}

.post-card p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 15px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  position: sticky;
  top: 96px;
}

.sidebar-card + .sidebar-card {
  margin-top: 18px;
}

.category-list,
.toc-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.category-list a,
.toc-list a {
  color: #31445b;
  font-weight: 700;
  font-size: 14px;
}

.newsletter-box {
  background: linear-gradient(135deg, rgba(20,105,184,.1), rgba(27,168,199,.12));
  border: 1px solid #cbeaf3;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 320px;
  gap: 40px;
  align-items: start;
}

.article {
  color: #24364b;
}

.article h1 {
  color: var(--navy);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.article .post-meta {
  margin-top: 18px;
  margin-bottom: 0;
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.article-content {
  margin-top: 34px;
}

.article-content h2 {
  font-size: 30px;
  margin-top: 38px;
  margin-bottom: 12px;
}

.article-content h3 {
  font-size: 22px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-content p {
  color: #31445b;
  margin: 0 0 18px;
  font-size: 17px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #31445b;
}

.article-content li {
  margin: 8px 0;
}

.article-callout {
  padding: 22px;
  border-left: 4px solid var(--cyan);
  background: var(--soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}

.article-callout strong {
  color: var(--navy);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.faq-item h3 {
  font-size: 18px;
}

.faq-item p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.author-box {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.content-checklist {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.content-checklist .card {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
}

.content-checklist .badge {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--blue);
}

.site-footer {
  background: var(--deep);
  color: rgba(255,255,255,.74);
  padding: 42px 0 26px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 12px;
}

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

.site-footer a,
.site-footer p {
  color: rgba(255,255,255,.72);
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .nav {
    flex-wrap: wrap;
  }

  .navlinks {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 3px;
  }

  .dropdown {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-stats,
  .grid-4,
  .feature-row,
  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3,
  .split,
  .split.reverse,
  .contact-panel,
  .blog-layout,
  .post-featured,
  .article-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .topbar .wrap,
  .cta-box,
  .footer-bottom {
    display: block;
  }

  .topbar span {
    display: block;
    margin: 2px 0;
  }

  .nav {
    gap: 12px;
  }

  .nav-cta {
    display: none;
  }

  .hero .wrap {
    min-height: 600px;
    padding: 56px 0;
  }

  .page-hero .wrap {
    min-height: 390px;
    padding: 54px 0;
  }

  h1 {
    font-size: 40px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-stats {
    margin-top: 0;
    border-radius: 0;
  }

  section {
    padding: 62px 0;
  }

  .grid-2,
  .grid-4,
  .image-grid,
  .hero-stats,
  .feature-row,
  .process,
  .comparison,
  .content-checklist .card,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .post-featured img,
  .article-hero-img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}
