:root {
  --navy: #1f2d52;
  --ink: #111827;
  --muted: #5f6673;
  --yellow: #ffeb0d;
  --green: #009c58;
  --red: #cf2f3b;
  --blue: #1765b4;
  --surface: #ffffff;
  --soft: #f4f7f5;
  --line: #dce2df;
  --shadow: 0 18px 50px rgba(31, 45, 82, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-bugs {
  position: relative;
  flex: 1 1 220px;
  align-self: stretch;
  min-width: 160px;
  overflow: hidden;
  pointer-events: none;
}

.bug {
  position: absolute;
  top: 50%;
  left: -34px;
  width: 42px;
  height: 42px;
  background: url("bugsemur-bug.png") center / contain no-repeat;
  opacity: 0.86;
  transform: translateY(-50%);
  animation: bug-run 9s linear infinite;
}

.bug::before,
.bug::after {
  display: none;
}

.bug-two {
  top: 33%;
  width: 34px;
  height: 34px;
  animation-delay: -3s;
  animation-duration: 11s;
  opacity: 0.65;
}

.bug-three {
  top: 68%;
  width: 46px;
  height: 46px;
  animation-delay: -6s;
  animation-duration: 13s;
  opacity: 0.76;
}

.bug-four {
  top: 24%;
  width: 28px;
  height: 28px;
  animation-delay: -7.4s;
  animation-duration: 8s;
  opacity: 0.52;
}

.bug-five {
  top: 56%;
  width: 32px;
  height: 32px;
  animation-delay: -1.8s;
  animation-duration: 10s;
  opacity: 0.58;
}

.bug-six {
  top: 78%;
  width: 26px;
  height: 26px;
  animation-delay: -5.1s;
  animation-duration: 12s;
  opacity: 0.48;
}

@keyframes bug-run {
  0% {
    transform: translate(-40px, -50%) rotate(3deg);
  }

  45% {
    transform: translate(calc(50vw - 180px), -50%) rotate(-5deg);
  }

  100% {
    transform: translate(calc(100vw - 250px), -50%) rotate(4deg);
  }
}

.brand img {
  display: block;
  width: 150px;
  max-width: 38vw;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--navy);
  font-weight: 700;
}

nav a {
  padding: 8px 0;
  border-bottom: 3px solid transparent;
}

nav a.active,
nav a:hover {
  border-bottom-color: var(--yellow);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: auto;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 235, 13, 0.17), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--yellow) 0 9px, transparent 9px 100%);
  opacity: 0.9;
}

.hero-copy,
.hero-logo,
.hero-art {
  position: relative;
}

.page-hero {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(255, 235, 13, 0.17), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f4f7f5 100%);
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
}

.page-hero.compact {
  padding-bottom: clamp(42px, 6vw, 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  color: var(--navy);
  font-size: 1.16rem;
}

.lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--navy);
}

.button.secondary {
  color: var(--navy);
  background: #ffffff;
}

.hero-logo {
  justify-self: center;
  width: min(520px, 100%);
  padding: 22px;
}

.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 30px rgba(31, 45, 82, 0.18));
  transform: rotate(-4deg);
}

.hero-art {
  justify-self: center;
  width: min(560px, 100%);
}

.hero .hero-art {
  top: clamp(-34px, -2vw, -16px);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 28px rgba(31, 45, 82, 0.18));
}

.intro,
.section,
.band,
.contact-section,
footer {
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--navy);
}

.intro div {
  min-height: 132px;
  padding: 28px;
  color: #ffffff;
  background: var(--navy);
}

.intro strong,
.intro span {
  display: block;
}

.intro strong {
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 1.2rem;
}

.intro span {
  color: rgba(255, 255, 255, 0.78);
}

.section {
  padding-top: clamp(64px, 9vw, 104px);
  padding-bottom: clamp(64px, 9vw, 104px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

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

.feature-grid article {
  min-height: 170px;
  padding: 26px;
  border-left: 8px solid var(--yellow);
  border-radius: 8px;
  background: var(--soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.product-grid article {
  padding: 28px;
  border: 3px solid var(--navy);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.product-grid h3 {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 6px;
}

.product-grid p {
  color: var(--muted);
}

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

.benefit-grid div {
  min-height: 150px;
  padding: 24px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 8px;
}

.benefit-grid strong,
.benefit-grid span {
  display: block;
}

.benefit-grid strong {
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 1.15rem;
}

.benefit-grid span {
  color: rgba(255, 255, 255, 0.8);
}

.service-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-grid article {
  min-height: 184px;
  padding: 26px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--yellow);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 45, 82, 0.06);
}

.service-grid article:nth-child(2n) {
  border-top-color: var(--green);
}

.service-grid article:nth-child(3n) {
  border-top-color: var(--red);
}

.service-grid p,
.steps p,
.contact-section p {
  color: var(--muted);
}

.band {
  padding-top: clamp(60px, 8vw, 92px);
  padding-bottom: clamp(60px, 8vw, 92px);
  background: var(--soft);
}

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

.steps div {
  padding: 0 0 0 22px;
  border-left: 6px solid var(--yellow);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 900;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 104px);
  padding-bottom: clamp(64px, 9vw, 104px);
}

.page-contact {
  min-height: calc(100vh - 86px);
}

.contact-panel {
  padding: 28px;
  border: 3px solid var(--navy);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-panel p {
  margin-bottom: 12px;
}

.contact-panel .button {
  width: 100%;
  margin-top: 14px;
}

.contact-panel a:not(.button),
.legal-content a,
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  padding: clamp(64px, 9vw, 104px) clamp(18px, 5vw, 72px);
}

.text-stack p,
.wide-text {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(44px, 7vw, 70px) clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: var(--navy);
}

.cta-band h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: #ffffff;
}

.cta-band .eyebrow {
  color: var(--yellow);
}

.legal-content {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 72px) clamp(70px, 9vw, 110px);
}

.legal-content article {
  max-width: 880px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: #ffffff;
  background: var(--navy);
}

footer div:first-child,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

footer span:first-child {
  color: var(--yellow);
  font-weight: 900;
}

.footer-links {
  justify-content: flex-end;
}

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-bugs {
    display: none;
  }

  .hero,
  .contact-section,
  .content-split,
  .page-hero-split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-logo,
  .hero-art {
    width: min(390px, 85vw);
    padding: 0;
  }

  .hero .hero-art {
    top: 0;
  }

  .intro,
  .service-grid,
  .steps,
  .feature-grid,
  .product-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bug {
    animation: none;
    display: none;
  }
}

@media (max-width: 520px) {
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: clamp(2.1rem, 13vw, 3.6rem);
  }

  .button {
    width: 100%;
  }

  .intro div,
  .service-grid article,
  .contact-panel {
    padding: 22px;
  }
}
