:root {
  --ink: #101828;
  --muted: #5c667a;
  --line: #dbe4ef;
  --paper: #f7fafc;
  --paper-strong: #edf5fb;
  --white: #ffffff;
  --blue: #1769e0;
  --cyan: #19bfd3;
  --green: #19a974;
  --coral: #f16b4f;
  --navy: #0b1f3a;
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 44%, rgba(237, 245, 251, 0.92) 100%),
    radial-gradient(circle at 85% 20%, rgba(25, 191, 211, 0.18), transparent 34%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 10px 24px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 1px solid rgba(219, 228, 239, 0.8);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 700;
}

.nav-menu a {
  color: var(--muted);
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--blue);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--white) !important;
  background: var(--blue);
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  align-items: center;
  gap: 52px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 92px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.hero-tags span {
  padding: 7px 10px;
  color: #164b60;
  background: rgba(25, 191, 211, 0.12);
  border: 1px solid rgba(25, 191, 211, 0.28);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.contact-card {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

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

.button.primary {
  color: var(--white);
  background: var(--blue);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 31, 58, 0.45));
}

.hero-panel img {
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-metrics {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 1;
}

.hero-metrics span {
  min-height: 86px;
  padding: 14px;
  color: var(--white);
  background: rgba(16, 24, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  font-size: 14px;
}

.hero-metrics strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.capabilities,
.team {
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 30px 58px;
}

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

.section-copy {
  color: var(--muted);
  font-size: 18px;
}

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

.service-card,
.capability-list article,
.team-grid article,
.process-grid article,
.faq details,
.contact-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
}

.card-link:focus {
  outline: 3px solid rgba(23, 105, 224, 0.3);
  outline-offset: 3px;
}

.service-card {
  min-height: 210px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:nth-child(2n) .icon {
  background: var(--blue);
}

.service-card:nth-child(3n) .icon {
  background: var(--coral);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 105, 224, 0.35);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
}

.service-card p,
.process-grid p,
.faq p,
.split p,
.contact-band p {
  color: var(--muted);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 70px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.image-stack {
  position: relative;
  min-height: 500px;
}

.main-photo,
.small-photo {
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.main-photo {
  width: 82%;
  height: 420px;
}

.small-photo {
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 48%;
  height: 240px;
  border: 8px solid var(--white);
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px var(--white), 0 0 0 1px var(--cyan);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 4px;
}

.mission-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mission-grid h3,
.mission-grid p {
  margin-bottom: 0;
}

.portfolio {
  border-top: 1px solid var(--line);
}

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

.capability-list article {
  min-height: 230px;
  padding: 24px;
  background: var(--paper);
}

.capability-list h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.capability-list h3::before {
  width: 10px;
  height: 10px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(25, 191, 211, 0.14);
}

.capability-list p {
  color: var(--muted);
}

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

.portfolio-grid article {
  position: relative;
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), var(--paper));
  transition: transform 180ms ease, border-color 180ms ease;
}

.portfolio-grid article:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 169, 116, 0.42);
}

.portfolio-grid span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-bottom: 22px;
  padding: 7px 10px;
  color: #14543d;
  background: rgba(25, 169, 116, 0.11);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.portfolio-grid p {
  position: relative;
  z-index: 2;
  color: var(--muted);
}

.portfolio-grid h3,
.service-card h3,
.service-card p,
.service-card .icon {
  position: relative;
  z-index: 2;
}

.page-shell {
  min-height: 100vh;
  background: var(--paper);
}

.subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.subhero {
  padding: 72px max(20px, calc((100vw - 1160px) / 2));
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(11, 31, 58, 0.94), rgba(23, 105, 224, 0.76)),
    url("img/contact-bg.jpg") center / cover;
}

.subhero h1 {
  max-width: 860px;
}

.subhero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.content-panel {
  display: grid;
  gap: 22px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

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

.content-card,
.feature-list,
.project-detail,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.content-card,
.project-detail,
.cta-panel {
  padding: 26px;
}

.content-card p,
.project-detail p,
.feature-list li,
.cta-panel p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.feature-list li {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.feature-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: var(--white);
}

.cta-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.project-detail {
  display: grid;
  gap: 16px;
}

.project-detail ol,
.project-detail ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.process {
  border-top: 1px solid var(--line);
}

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

.team-grid article {
  min-height: 190px;
  padding: 22px;
  background: var(--white);
}

.team-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  color: var(--white);
  background: var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.team-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

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

.process-grid article {
  min-height: 230px;
  padding: 24px;
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: var(--white);
  background: var(--coral);
  border-radius: 8px;
  font-weight: 800;
}

.faq {
  border-top: 1px solid var(--line);
}

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

.faq details {
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 800;
}

.faq details[open] {
  border-color: rgba(23, 105, 224, 0.35);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.06);
}

.contact-band {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 48px;
  align-items: center;
  padding: 70px max(20px, calc((100vw - 1160px) / 2));
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(16, 24, 40, 0.92), rgba(20, 72, 122, 0.9)),
    url("img/contact-bg.jpg") center / cover;
}

.contact-band .eyebrow,
.contact-band p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-band h2 {
  max-width: 760px;
}

.contact-card {
  flex-direction: column;
  padding: 28px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-card a:not(.button),
.contact-card span {
  color: var(--muted);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.footer img {
  width: 34px;
  height: 34px;
}

.footer p {
  margin: 0;
}

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

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 0.7fr);
  gap: 34px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
  font-weight: 800;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

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

.site-footer h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 16px;
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

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

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

.legal-page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.legal-brand {
  margin-bottom: 34px;
}

.legal-content {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}

.legal-hero {
  padding: 46px 46px 36px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 15, 36, 0.96), rgba(20, 78, 125, 0.92)),
    url("img/software-consulting.jpg") center/cover;
}

.legal-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.legal-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(38px, 6vw, 60px);
}

.legal-hero p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
}

.legal-body {
  padding: 42px 46px 48px;
}

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.legal-summary div,
.legal-callout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.legal-summary div {
  padding: 18px;
}

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

.legal-summary span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 28px;
}

.legal-content h3 {
  margin-top: 22px;
  color: var(--navy);
  font-size: 18px;
}

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

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-content li::marker {
  color: var(--blue);
}

.legal-callout {
  margin: 28px 0;
  padding: 22px;
}

.legal-callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.legal-updated {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .nav-menu a {
    padding: 12px;
  }

  .hero,
  .intro,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-panel img {
    min-height: 340px;
  }

  .services-grid,
  .capability-list,
  .content-grid,
  .process-grid,
  .portfolio-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

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

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

  .legal-summary {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .topbar {
    justify-content: flex-start;
  }

  .hero,
  .section,
  .nav,
  .footer {
    width: min(100% - 28px, 1160px);
  }

  .hero-metrics,
  .services-grid,
  .capability-list,
  .content-grid,
  .process-grid,
  .portfolio-grid,
  .team-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    position: static;
    padding: 12px;
    background: var(--ink);
  }

  .hero-panel img {
    min-height: 260px;
  }

  .image-stack {
    min-height: 0;
  }

  .main-photo,
  .small-photo {
    position: static;
    width: 100%;
    height: auto;
    border: 0;
  }

  .small-photo {
    margin-top: 14px;
  }

  .section {
    padding: 62px 0;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list li:nth-child(odd) {
    border-right: 0;
  }

  .cta-panel,
  .subnav {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-page {
    width: min(100% - 28px, 1040px);
    padding-top: 24px;
  }

  .legal-brand {
    margin-bottom: 24px;
  }

  .legal-hero,
  .legal-body {
    padding: 26px;
  }

  .legal-content h2 {
    font-size: 24px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}
