:root {
  --bg: #f7f8fa;
  --ink: #111316;
  --muted: #606873;
  --line: #dfe4ea;
  --dark: #111316;
  --cyan: #00b8d9;
  --green: #26c485;
  --coral: #ff5c5c;
  --amber: #f6b73c;
  --shadow: 0 24px 70px rgba(17, 19, 22, 0.12);
  --radius: 8px;
  --container: min(1120px, calc(100% - 40px));
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 19, 22, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, var(--bg) 46%, #fff 100%);
  background-size: 72px 72px, auto;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(0, 184, 217, 0.75);
  outline-offset: 4px;
}

::selection {
  color: #ffffff;
  background: var(--dark);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber), var(--coral));
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(223, 228, 234, 0.86);
  backdrop-filter: blur(18px);
  isolation: isolate;
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 35px rgba(17, 19, 22, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.main-nav {
  position: fixed;
  top: calc(var(--header-height) + 14px);
  right: max(20px, calc((100vw - 1120px) / 2));
  z-index: 880;
  display: grid;
  width: min(390px, calc(100vw - 40px));
  gap: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px);
}

.main-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.main-nav a {
  display: flex;
  min-height: 56px;
  align-items: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  color: #252a31;
  background: #f7f8fa;
  font-size: 1rem;
  font-weight: 850;
  padding: 0 18px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.main-nav a:hover {
  color: var(--dark);
  background: #ffffff;
  border-color: rgba(0, 184, 217, 0.45);
  transform: translateX(4px);
}

.nav-toggle {
  position: relative;
  z-index: 901;
  display: inline-flex;
  width: 48px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 19, 22, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  border-color: rgba(0, 184, 217, 0.55);
  box-shadow: 0 14px 30px rgba(17, 19, 22, 0.1);
  transform: translateY(-1px);
}

.nav-toggle-icon {
  display: grid;
  width: 22px;
  gap: 5px;
}

.nav-toggle-icon span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-pad {
  padding: 108px 0;
}

.hero {
  position: relative;
  display: block;
  width: var(--container);
  min-height: calc(92vh - var(--header-height));
  margin: 0 auto;
  padding-top: 100px;
  padding-bottom: 96px;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #29414b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

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

h1 {
  margin-bottom: 22px;
  max-width: 100%;
  font-size: 6.05rem;
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.7rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lead {
  margin-bottom: 18px;
  color: #20242a;
  font-size: 1.5rem;
  line-height: 1.35;
  font-weight: 700;
}

.hero-copy,
.section-heading p,
.contact-content > p {
  color: var(--muted);
  font-size: 1.02rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  padding: 0 20px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn-primary {
  color: #ffffff;
  background: var(--dark);
  box-shadow: 7px 7px 0 var(--cyan);
}

.btn-primary:hover {
  background: #000000;
  box-shadow: 7px 7px 0 var(--green);
}

.btn-secondary {
  color: var(--dark);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 7px 7px 0 rgba(246, 183, 60, 0.72);
}

.btn-secondary:hover {
  border-color: var(--dark);
  box-shadow: 7px 7px 0 rgba(255, 92, 92, 0.72);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 42px 0 0;
}

.hero-stats div {
  min-width: 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(17, 19, 22, 0.07);
}

.hero-stats dt {
  margin-bottom: 4px;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-heading {
  width: var(--container);
  max-width: 780px;
  margin: 0 auto 44px;
}

.features-grid,
.services-grid,
.process-list {
  width: var(--container);
  margin-inline: auto;
}

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

.feature-card,
.service-card,
.process-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 45px rgba(17, 19, 22, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.service-card:hover,
.process-step:hover {
  border-color: rgba(0, 184, 217, 0.55);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.feature-card {
  min-height: 240px;
  padding: 24px;
}

.feature-number {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 900;
}

.feature-card p,
.service-card p,
.process-step p {
  color: var(--muted);
  margin-bottom: 0;
}

.services {
  background:
    linear-gradient(180deg, rgba(17, 19, 22, 0.04), rgba(17, 19, 22, 0)),
    #ffffff;
}

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

.service-card {
  min-height: 260px;
  padding: 24px;
}

.service-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 26px;
  color: var(--dark);
  background: #f3fbfd;
  border: 1px solid rgba(0, 184, 217, 0.35);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 950;
}

.service-card:nth-child(3n + 2) .service-icon {
  background: #f7fff8;
  border-color: rgba(38, 196, 133, 0.4);
}

.service-card:nth-child(3n) .service-icon {
  background: #fff8ea;
  border-color: rgba(246, 183, 60, 0.52);
}

.why {
  color: #ffffff;
  background: var(--dark);
}

.why-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  width: var(--container);
  margin: 0 auto;
}

.why .eyebrow {
  color: #d6f9ff;
}

.why h2 {
  margin-bottom: 0;
}

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

.check-list li {
  position: relative;
  padding: 18px 18px 18px 56px;
  color: #ecf3f7;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--dark);
  background: var(--green);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
}

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

.process-step {
  min-height: 260px;
  padding: 26px;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--coral);
  font-size: 0.9rem;
  font-weight: 950;
}

.contact {
  padding-bottom: 70px;
}

.contact-card {
  width: var(--container);
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 56px);
  color: #ffffff;
  background: var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-content {
  padding: clamp(18px, 4vw, 34px);
}

.contact .eyebrow {
  color: #d6f9ff;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: #e9eef2;
  font-style: normal;
}

.contact-details a,
.contact-details span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding-left: 18px;
  border-left: 3px solid var(--cyan);
}

.contact-details a {
  width: fit-content;
  font-weight: 900;
}

.contact-details a:hover {
  color: #bdf8ff;
}

.contact .btn-secondary {
  color: #ffffff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 24px auto 0;
  padding: 28px max(20px, calc((100vw - 1120px) / 2)) 34px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.site-footer p {
  margin-bottom: 0;
}

.back-to-top {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: #ffffff;
  background: var(--dark);
  border: 1px solid rgba(17, 19, 22, 0.12);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--cyan);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.back-to-top:hover {
  background: #000000;
  box-shadow: 6px 6px 0 var(--green);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

@media (max-width: 1040px) {
  .why-panel,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 82px;
  }

  h1 {
    font-size: 5.1rem;
  }

  h2 {
    font-size: 3rem;
  }

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

@media (max-width: 820px) {
  :root {
    --container: min(100% - 28px, 1120px);
    --header-height: 70px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .main-nav {
    top: calc(var(--header-height) + 10px);
    right: 14px;
    left: 14px;
    width: auto;
    transform-origin: top center;
  }

  .main-nav a {
    min-height: 52px;
    font-size: 1rem;
  }

  .section-pad {
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: 4.05rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-lead {
    font-size: 1.28rem;
  }

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

  .hero-stats div {
    padding: 16px;
  }
}

@media (max-width: 620px) {
  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .features-grid,
  .services-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .service-card,
  .process-step {
    min-height: auto;
  }

  .hero-stats {
    gap: 10px;
  }

  .contact-content {
    padding: 0;
  }

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

@media (max-width: 430px) {
  .nav-toggle {
    width: 46px;
  }

  h1 {
    font-size: 2.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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