:root {
  --bg: #f4f8ff;
  --surface: rgba(255, 255, 255, 0.82);
  --text: #171717;
  --muted: #5f625d;
  --line: rgba(23, 23, 23, 0.08);
  --accent: #0067f4;
  --accent-strong: #086cf4;
  --accent-soft: #2bdbdc;
  --shadow: 0 24px 60px rgba(25, 27, 26, 0.08);
  --radius: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 103, 244, 0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(43, 219, 220, 0.04), transparent 20%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 23, 23, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 23, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.26), transparent 75%);
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(249, 251, 255, 0.72);
  border-bottom: 1px solid rgba(23, 23, 23, 0.03);
}

.header-row,
.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.header-row {
  position: relative;
  min-height: 84px;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.7fr) minmax(180px, 0.45fr);
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  position: relative;
  z-index: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: auto;
}

.brand-mark-header {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.brand-wordmark {
  font-size: 1.8rem;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text);
}

.brand-logo-footer {
  max-width: min(100%, 320px);
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.footer-note {
  max-width: 34ch;
  margin: 0;
}

.footer-meta {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  align-content: start;
  align-self: start;
}

.footer-social {
  justify-self: start;
}

.footer-heading {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-meta p,
.footer-meta a {
  margin: 0;
  color: var(--muted);
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  line-height: 1.45;
}

.footer-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
  opacity: 0.8;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem !important;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(0, 103, 244, 0.12);
  border-radius: 18px;
  background: rgba(0, 103, 244, 0.06);
  color: var(--accent) !important;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  background: rgba(0, 103, 244, 0.1);
  border-color: rgba(0, 103, 244, 0.2);
  transform: translateY(-1px);
}

.site-footer {
  padding: 1rem 0 2.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.82rem 1.05rem;
  border-radius: 999px;
  background: var(--text);
  color: #f8f6f1 !important;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid,
.about-grid,
.contact-grid,
.approach-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: start;
  gap: 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

h1 {
  max-width: 10.5ch;
  margin-bottom: 1rem;
  font-size: clamp(2.55rem, 4.2vw, 4.45rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.1rem, 3vw, 3.45rem);
  line-height: 0.98;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
}

.hero-text,
.about-copy p,
.contact-lead,
.service-card p,
.timeline-item p,
.metric-card span {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-text {
  max-width: 54ch;
}

.hero-subline {
  max-width: 48ch;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #f8f6f1;
  box-shadow: var(--shadow);
}

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

.hero-panel {
  position: relative;
  display: grid;
  gap: 1rem;
}

.panel-card {
  padding: 1.35rem;
  border: 1px solid rgba(23, 23, 23, 0.05);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
}

.panel-card p,
.metric-label,
.service-index,
.timeline-item span,
.contact-label,
.contact-card p {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-card strong,
.metric-card strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.4;
}

.panel-card-main {
  padding: 1.65rem;
  background: linear-gradient(135deg, #005ad5 0%, #0067f4 100%);
  color: #f7f4ee;
}

.panel-card-main p {
  color: rgba(247, 244, 238, 0.7);
}

.diagram-card {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 28px minmax(70px, 1fr) 28px minmax(70px, 1fr);
  align-items: center;
  gap: 0.35rem;
  min-height: 100%;
}

.diagram-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 0.45rem;
  border-radius: 18px;
  background: #f4f8ff;
  border: 1px solid rgba(0, 103, 244, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.diagram-node-mid {
  background: rgba(0, 103, 244, 0.08);
  color: var(--accent);
}

.diagram-line {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 103, 244, 0.28), rgba(43, 219, 220, 0.5));
}

.hero-notes {
  display: grid;
  gap: 0.9rem;
}

.hero-notes div {
  padding: 0.15rem 0 0.95rem;
  border-bottom: 1px solid rgba(23, 23, 23, 0.08);
}

.hero-notes div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-notes p {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-notes strong {
  display: block;
  max-width: 34ch;
  font-size: 1.05rem;
  line-height: 1.45;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(23, 23, 23, 0.05);
  border-bottom: 1px solid rgba(23, 23, 23, 0.05);
}

.section-heading {
  max-width: 64rem;
  margin-bottom: 2.8rem;
}

.section-heading.compact {
  margin-bottom: 0;
}

.proof-section {
  padding-top: 0;
}

.proof-grid {
  display: grid;
  gap: 2rem;
}

.proof-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 2rem;
  align-items: end;
}

.proof-intro-copy {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.proof-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.proof-card {
  min-height: 100%;
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.proof-title {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.proof-list li + li {
  margin-top: 0.55rem;
}

.proof-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.metrics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.metric-card,
.service-card,
.contact-card {
  padding: 1.65rem;
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: 22px;
  background: var(--surface);
}

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

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

.approach-grid,
.about-grid,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem 2rem;
}

.approach-grid {
  grid-template-columns: 1fr;
}

.approach-heading {
  max-width: 46rem;
  margin-bottom: 0.4rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 1rem;
  min-height: 100%;
  padding: 1.45rem 1.35rem 1.5rem;
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.timeline-item span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(0, 103, 244, 0.1);
  color: var(--accent);
  letter-spacing: 0;
  font-size: 0.96rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin-bottom: 0.65rem;
}

.timeline-item p {
  margin-bottom: 0;
  line-height: 1.62;
}

.about-panel {
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(140deg, #0049ae, #0067f4 100%);
  color: #f7f4ee;
  min-height: 100%;
}

.about-panel .eyebrow {
  color: rgba(247, 244, 238, 0.68);
}

.contact-card {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.contact-label {
  margin-bottom: 0;
}

.contact-status {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  font-size: 0.96rem;
  line-height: 1.5;
}

.contact-status[data-state="success"] {
  background: rgba(0, 103, 244, 0.08);
  color: #0d4fb1;
}

.contact-status[data-state="error"] {
  background: rgba(185, 40, 40, 0.08);
  color: #8d2323;
}

.contact-card a {
  font-size: 1.15rem;
  font-weight: 700;
}

.contact-button {
  margin-top: 0.5rem;
}

.site-footer {
  padding: 1.4rem 0 2rem;
  background: linear-gradient(180deg, rgba(8, 108, 244, 0.02), rgba(8, 108, 244, 0.05));
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.44);
  backdrop-filter: blur(8px);
}

.contact-modal-dialog {
  position: relative;
  width: min(calc(100% - 2rem), 760px);
  margin: 5vh auto 0;
  border-radius: calc(var(--radius) + 10px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 23, 23, 0.08);
  box-shadow: 0 28px 90px rgba(15, 20, 28, 0.22);
  overflow: hidden;
}

.contact-form-shell {
  padding: 2rem;
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0;
  cursor: pointer;
}

.contact-modal-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.contact-modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.contact-modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-form {
  margin-top: 1.5rem;
}

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

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 16px;
  background: #fff;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: rgba(0, 103, 244, 0.34);
  box-shadow: 0 0 0 4px rgba(0, 103, 244, 0.08);
}

.form-full {
  margin-top: 1rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}

.form-note {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.site-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  min-width: min(320px, calc(100vw - 32px));
  max-width: 420px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 220ms ease;
  backdrop-filter: blur(14px);
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-toast[data-state="info"] {
  border-color: rgba(27, 102, 227, 0.12);
}

.site-toast[data-state="success"] {
  border-color: rgba(28, 122, 74, 0.18);
}

.site-toast[data-state="error"] {
  border-color: rgba(185, 28, 28, 0.16);
}

.contact-form button[disabled] {
  opacity: 0.74;
  cursor: wait;
}

.final-cta {
  padding-top: 0;
}

.final-cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  padding: 2rem;
  border: 1px solid rgba(23, 23, 23, 0.07);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.95)),
    linear-gradient(135deg, rgba(0, 103, 244, 0.05), rgba(43, 219, 220, 0.03));
  box-shadow: var(--shadow);
}

.final-cta-copy {
  display: grid;
  align-content: center;
  gap: 1.25rem;
}

.final-cta-copy p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.72;
}

@media (max-width: 1100px) {
  .hero-grid,
  .metrics-grid,
  .proof-intro,
  .proof-cards,
  .services-grid,
  .timeline,
  .approach-grid,
  .about-grid,
  .contact-grid,
  .final-cta-shell,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 780px) {
  .header-row {
    display: flex;
    justify-content: space-between;
    min-height: 76px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-actions {
    gap: 0.75rem;
  }

  .header-kicker,
  .nav-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.9rem 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-points {
    flex-direction: column;
  }

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

  .panel-card-wide {
    grid-column: auto;
  }

  .diagram-card {
    grid-template-columns: 1fr;
  }

  .diagram-line {
    height: 28px;
    width: 2px;
    justify-self: center;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .proof-card {
    border-right: 0;
    padding-right: 0;
  }

  .contact-form-shell {
    padding: 1.5rem;
  }

  .brand-mark-header {
    width: 28px;
    height: 28px;
  }

  .brand-wordmark {
    font-size: 1.6rem;
  }

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

  .site-toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    min-width: 0;
    max-width: none;
  }

  .footer-note {
    max-width: none;
  }

}
