:root {
  --bg: #f6f8f8;
  --paper: #ffffff;
  --ink: #101415;
  --muted: #5b6566;
  --line: #dce4e3;
  --deep: #111b1d;
  --deep-2: #172426;
  --teal: #1aa6a6;
  --teal-dark: #0d7377;
  --copper: #b87434;
  --copper-soft: #f4e8da;
  --ice: #eaf7f7;
  --shadow: 0 18px 52px rgba(16, 20, 21, 0.1);
  --max: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 46%, #ffffff 100%);
}

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

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

p,
li {
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  font-size: 3.65rem;
  max-width: 12ch;
}

h2 {
  font-size: 2.65rem;
  max-width: 13ch;
}

h3 {
  font-size: 1.36rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 228, 227, 0.9);
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
}

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

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.brand-copy span {
  margin-top: 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.nav a:not(.button):hover {
  color: var(--ink);
}

.contact-button {
  background: var(--teal);
  border-color: var(--teal);
  color: #071112;
}

.contact-button.secondary {
  background: transparent;
  border-color: rgba(13, 115, 119, 0.28);
  color: var(--teal-dark);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 13px 18px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button.small {
  min-height: 40px;
  padding: 10px 14px;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost.dark {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.button.light {
  background: #ffffff;
  color: var(--deep);
  border-color: #ffffff;
}

.button.subtle {
  background: var(--ice);
  color: var(--teal-dark);
  border-color: rgba(26, 166, 166, 0.26);
  white-space: nowrap;
}

.text-link {
  color: var(--teal-dark);
  font-weight: 800;
}

.hero {
  padding: 70px 0 84px;
  background:
    linear-gradient(135deg, rgba(17, 27, 29, 0.98), rgba(23, 36, 38, 0.96)),
    var(--deep);
  color: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.86fr);
  gap: 64px;
  align-items: center;
  min-height: calc(100svh - 170px);
}

.hero-copy p {
  max-width: 40rem;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
}

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

.hero .button:not(.ghost),
.final-band .button:not(.ghost) {
  background: var(--teal);
  border-color: var(--teal);
  color: #071112;
}

.hero .button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hero-points span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
  font-size: 0.88rem;
}

.system-preview {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.preview-top,
.automation-card,
.inbox-row,
.priority-item,
.package-head,
.audit-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.preview-top {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.preview-top strong,
.automation-card strong,
.inbox-row strong {
  display: block;
}

.mini-label,
.status-dot,
.section-number,
.service-card span,
.process-step span,
.package-head span,
.article > span {
  display: inline-block;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .mini-label,
.hero .status-dot {
  color: rgba(255, 255, 255, 0.62);
}

.status-dot {
  position: relative;
  padding-left: 16px;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-50%);
}

.inbox-row {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

.inbox-row.hot {
  border-left: 4px solid var(--teal);
}

.inbox-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
}

.channel {
  width: 58px;
  flex: 0 0 auto;
  padding: 8px 0;
  border-radius: 6px;
  background: var(--ice);
  color: var(--teal-dark);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.pipeline div,
.automation-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pipeline div {
  padding: 14px;
}

.pipeline span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pipeline strong {
  display: block;
  margin-top: 8px;
  font-size: 0.94rem;
}

.automation-card {
  margin-top: 16px;
  padding: 18px;
  background: #ffffff;
  color: var(--ink);
}

main section:not(.hero) {
  padding: 92px 0 0;
}

.section-intro {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.section-intro p,
.lead {
  max-width: 47rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-number {
  color: var(--copper);
}

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

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

.category-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(16, 20, 21, 0.04);
}

.category-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-card p {
  color: var(--muted);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.priority-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(16, 20, 21, 0.04);
}

.priority-item > div:nth-child(2) {
  flex: 1;
}

.priority-item p,
.service-card p,
.process-step p,
.package-card p,
.article p {
  color: var(--muted);
}

.rank {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 116, 52, 0.28);
  border-radius: var(--radius);
  background: var(--copper-soft);
  color: var(--copper);
  font-weight: 900;
}

.band {
  margin-top: 92px;
  padding: 86px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.9fr);
  gap: 54px;
  align-items: start;
}

.split h2 {
  margin-top: 16px;
}

.split .lead {
  margin-top: 22px;
}

.stack-map {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow);
}

.stack-node {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.stack-node span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.service-card,
.package-card,
.process-step,
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(16, 20, 21, 0.04);
}

.service-card h3,
.process-step h3 {
  margin-top: 14px;
}

.service-card span,
.process-step span,
.package-head span,
.article > span {
  color: var(--copper);
}

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

.process-step {
  position: relative;
  min-height: 250px;
}

.process-step::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 18px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.package-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.package-card.featured {
  background: var(--deep);
  color: #ffffff;
  border-color: var(--deep);
  box-shadow: var(--shadow);
}

.package-card.featured p,
.package-card.featured li {
  color: rgba(255, 255, 255, 0.74);
}

.package-card ul,
.notes,
.article ul {
  padding-left: 20px;
  margin: 18px 0 24px;
  color: var(--muted);
}

.package-card .button {
  margin-top: auto;
}

.final-band {
  margin-top: 92px;
  padding: 84px 0;
  background: var(--deep);
  color: #ffffff;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(310px, 0.62fr);
  gap: 44px;
  align-items: start;
}

.final-cta h2 {
  max-width: 13ch;
}

.final-cta p {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.contact-panel div,
.audit-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-panel div:last-child,
.audit-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-panel span,
.audit-list span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: 0.94rem;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.88fr);
  gap: 28px;
  align-items: start;
  padding-top: 58px;
  padding-bottom: 82px;
}

.request-intro h1,
.subhero h1 {
  margin-top: 16px;
  font-size: 2.9rem;
  max-width: 13ch;
}

.request-intro .lead,
.subhero p {
  margin-top: 20px;
}

.request-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.request-intro.panel {
  padding: clamp(32px, 4vw, 44px);
}

.request-intro .section-number {
  display: block;
  margin-bottom: 18px;
}

form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

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

.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.request-side .audit-list span {
  color: var(--copper);
}

.request-side .audit-list div {
  border-color: var(--line);
}

.request-side .audit-list strong {
  text-align: right;
}

.subhero {
  padding-top: 74px;
}

.subhero p {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.services-hero {
  padding-bottom: 18px;
}

.service-hub {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 64px;
}

.service-hub-copy {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 16px;
}

.service-hub-copy h2 {
  max-width: 12ch;
}

.service-hub-copy p {
  margin: 0;
  color: var(--muted);
}

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

.service-columns .service-card {
  min-height: 100%;
}

.service-columns .service-card h3 {
  margin-top: 0;
}

.service-columns .service-card ul {
  padding-left: 19px;
  margin-bottom: 0;
  color: var(--muted);
}

main section.services-final {
  border-radius: var(--radius);
  margin-bottom: 48px;
  padding: 54px;
  overflow: hidden;
}

.services-final .final-cta {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
}

.services-final .final-cta h2 {
  max-width: 14ch;
}

.insights-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 0.9fr);
  gap: 24px;
  padding-bottom: 88px;
}

.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 38px rgba(16, 20, 21, 0.05);
}

.toc strong {
  display: block;
  margin-bottom: 14px;
}

.toc a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
  font-weight: 800;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

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

.article h2 {
  margin-top: 14px;
  font-size: 2.1rem;
  max-width: 14ch;
}

.article .button {
  margin-top: 6px;
}

.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, var(--bg));
}

.thanks .panel {
  width: min(720px, 100%);
  text-align: center;
}

.thanks .panel img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 22px;
}

.thanks h1 {
  margin: 18px auto 0;
  font-size: 2.65rem;
  max-width: 14ch;
}

.thanks .lead {
  margin: 20px auto 0;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  button,
  .reveal {
    transition: none;
  }

  .button:hover,
  button:hover {
    transform: none;
  }
}

@media (max-width: 1080px) {
  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-grid,
  .split,
  .final-cta,
  .request-layout,
  .insights-layout,
  .service-hub {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .grid.three,
  .process-track,
  .compact-grid,
  .service-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc,
  .service-hub-copy {
    position: static;
  }
}

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

  h1,
  .request-intro h1,
  .subhero h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .article h2 {
    font-size: 1.75rem;
  }

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

  .nav {
    gap: 12px;
  }

  .hero {
    padding: 46px 0 60px;
  }

  .hero-grid {
    gap: 36px;
  }

  main section:not(.hero),
  .band {
    padding-top: 66px;
  }

  .band,
  .final-band {
    margin-top: 66px;
    padding-bottom: 66px;
  }

  main section.services-final {
    padding: 24px;
  }

  main section.services-final .final-cta {
    grid-template-columns: 1fr;
  }

  .priority-item,
  .preview-top,
  .automation-card,
  .inbox-row,
  .audit-list div,
  .package-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .button.subtle,
  .request-side .audit-list strong {
    text-align: left;
  }

  .grid.three,
  .process-track,
  .pipeline,
  .form-grid,
  .compact-grid,
  .service-columns {
    grid-template-columns: 1fr;
  }

  .system-preview,
  .panel,
  .service-card,
  .category-card,
  .package-card,
  .process-step,
  .priority-item,
  .contact-panel,
  .toc,
  .stack-map {
    padding: 18px;
  }

  .stack-node {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .brand {
    min-width: 0;
  }

  .brand-copy span {
    font-size: 0.86rem;
  }

  h1,
  .request-intro h1,
  .subhero h1 {
    font-size: 2.1rem;
  }

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

  .button,
  button {
    width: 100%;
  }
}
