:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --ink: #14212a;
  --muted: #54616a;
  --line: #d9e0dd;
  --teal: #0c766f;
  --teal-dark: #084f4b;
  --amber: #b67822;
  --blue: #18364a;
  --shadow: 0 18px 50px rgba(20, 33, 42, 0.13);
  --radius: 8px;
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 82px;
}

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

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(247, 248, 246, 0.9);
  border-bottom: 1px solid rgba(217, 224, 221, 0.75);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 40px, var(--max));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  text-decoration: none;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}

.menu-lines::before {
  transform: translateY(-6px);
}

.menu-lines::after {
  transform: translateY(4px);
}

.hero {
  position: relative;
  min-height: 650px;
  padding-top: 72px;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/software-operations-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(247, 248, 246, 0.98) 0%, rgba(247, 248, 246, 0.88) 33%, rgba(247, 248, 246, 0.22) 66%, rgba(20, 33, 42, 0.2) 100%),
    linear-gradient(180deg, rgba(247, 248, 246, 0.15) 0%, rgba(247, 248, 246, 0.82) 100%);
}

.hero-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 42px 0 36px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4.08rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: #263a46;
  font-size: 1.22rem;
  line-height: 1.62;
}

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

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

.button-primary {
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(12, 118, 111, 0.24);
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface);
  outline: none;
}

.hero-facts {
  max-width: 850px;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(217, 224, 221, 0.85);
  background: rgba(217, 224, 221, 0.85);
  box-shadow: var(--shadow);
}

.hero-facts div {
  min-height: 92px;
  background: rgba(255, 255, 255, 0.84);
  padding: 18px;
}

.hero-facts dt,
.company-details dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-facts dd,
.company-details dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.section {
  padding: 88px 0;
}

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

.intro-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 34px;
}

.two-column {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 56px;
  align-items: start;
}

.section h2,
.section-heading h2 {
  margin: 0;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead-stack p,
.section-heading p,
.company-copy p,
.contact-layout p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.section-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.section-heading p {
  margin-top: 14px;
}

.section-heading.compact {
  max-width: 720px;
}

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

.service-card {
  min-height: 288px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.service-card h3,
.work-item h3,
.process-list h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.service-card p,
.work-item p,
.process-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-number {
  width: fit-content;
  margin-bottom: 48px;
  color: var(--amber);
  font-weight: 900;
  font-size: 0.85rem;
}

.muted-section {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.work-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 26px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: #e8f4f2;
  color: var(--teal-dark);
  font-weight: 900;
  font-size: 0.9rem;
}

.process-list {
  counter-reset: item;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 250px;
  padding: 24px;
  background: var(--surface);
}

.process-list span {
  display: block;
  margin-bottom: 44px;
  color: var(--amber);
  font-weight: 900;
  font-size: 0.86rem;
}

.split-section {
  background: #faf7f2;
  border-top: 1px solid #e5ddd1;
  border-bottom: 1px solid #e5ddd1;
}

.company-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: start;
}

.company-copy {
  display: grid;
  gap: 18px;
}

.company-details {
  background: var(--surface);
  border: 1px solid #e5ddd1;
  border-radius: var(--radius);
}

.company-details dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-details div {
  min-height: 118px;
  padding: 20px;
  border-right: 1px solid #e5ddd1;
  border-bottom: 1px solid #e5ddd1;
}

.company-details div:nth-child(2n) {
  border-right: 0;
}

.company-details div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.contact-section {
  background: var(--blue);
  color: #ffffff;
}

.contact-section .section-kicker {
  color: #8dd9d2;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  align-items: start;
}

.contact-layout h2 {
  color: #ffffff;
}

.contact-layout p {
  margin-top: 16px;
  color: #c5d2d8;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-methods a {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.contact-methods span {
  color: #c5d2d8;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(12, 118, 111, 0.16);
}

.site-footer {
  background: #0f1d25;
  color: #ffffff;
  padding: 42px 0;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
}

.site-footer p,
.footer-meta,
.footer-links a {
  color: #bac7cc;
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-meta a {
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: #ffffff;
}

.legal-main {
  padding: 138px 0 78px;
}

.legal-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-article h1 {
  margin: 0 0 12px;
  font-size: 2.6rem;
  line-height: 1.15;
}

.legal-article h2 {
  margin: 32px 0 10px;
  font-size: 1.28rem;
}

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

.legal-article a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero {
    min-height: 690px;
  }

  .hero h1 {
    max-width: 680px;
    font-size: 3.45rem;
  }

  .card-grid,
  .process-list,
  .company-layout,
  .contact-layout,
  .footer-layout {
    grid-template-columns: 1fr 1fr;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-list li {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, var(--max));
    height: 66px;
  }

  .brand-text {
    max-width: 230px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    min-height: 46px;
  }

  .hero {
    min-height: calc(100svh - 34px);
    padding-top: 66px;
    align-items: end;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(247, 248, 246, 0.52) 0%, rgba(247, 248, 246, 0.96) 54%, rgba(247, 248, 246, 1) 100%),
      linear-gradient(90deg, rgba(247, 248, 246, 0.78), rgba(247, 248, 246, 0.4));
  }

  .hero-inner,
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero-inner {
    padding: 208px 0 34px;
  }

  .hero h1 {
    font-size: 2.58rem;
    line-height: 1.06;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-facts,
  .card-grid,
  .process-list,
  .company-layout,
  .company-details dl,
  .contact-layout,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    display: none;
  }

  .hero-facts div {
    min-height: 92px;
  }

  .section {
    padding: 64px 0;
  }

  .intro-band {
    padding-top: 12px;
  }

  .section h2,
  .section-heading h2,
  .legal-article h1 {
    font-size: 2rem;
  }

  .service-card {
    min-height: auto;
  }

  .service-number,
  .process-list span {
    margin-bottom: 28px;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .work-label {
    justify-content: flex-start;
    width: fit-content;
  }

  .company-details div,
  .company-details div:nth-child(2n),
  .company-details div:nth-last-child(-n + 2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #e5ddd1;
  }

  .company-details div:last-child {
    border-bottom: 0;
  }

  .legal-main {
    padding-top: 106px;
  }

  .legal-article {
    padding: 28px;
  }
}

@media (max-width: 420px) {
  .brand-text {
    max-width: 178px;
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: 2.18rem;
  }

  .section h2,
  .section-heading h2,
  .legal-article h1 {
    font-size: 1.78rem;
  }

  .contact-form {
    padding: 18px;
  }
}
