:root {
  --page-bg: #f4f1ec;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text-main: #202020;
  --text-soft: #6d6a68;
  --accent: #c91d2e;
  --accent-dark: #981120;
  --line: rgba(32, 32, 32, 0.08);
  --shadow: 0 24px 55px rgba(72, 56, 45, 0.12);
  --radius-xl: 34px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #f7f3ef 0%, #f2eee9 100%);
}

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

input,
button {
  font: inherit;
}

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

.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;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px clamp(18px, 2.6vw, 34px) 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66)),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: clip;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  position: relative;
  z-index: 10;
}

.brand img {
  width: clamp(108px, 11vw, 138px);
  height: auto;
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  font-size: 0.95rem;
  color: var(--text-soft);
}

.site-nav a,
.footer-nav a {
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.footer-nav a:hover,
.footer-nav .is-active {
  color: var(--text-main);
}

.footer-nav .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.header-actions,
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-soft);
}

.icon,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

.social-links a {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: rgba(201, 29, 46, 0.3);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-section,
.cta-section {
  position: relative;
  display: grid;
  align-items: center;
}

.hero-section {
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr);
}

.hero-section {
  min-height: clamp(420px, 72vh, 720px);
  padding: clamp(48px, 9vw, 96px) 0 28px;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-rotate: 0deg;
  --hero-scale: 1;
}

.hero-copy,
.cta-copy {
  position: relative;
  z-index: 1;
}

.hero-copy {
  justify-self: start;
  margin-left: 0;
  padding-left: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(32, 32, 32, 0.45);
}

.hero-copy h1,
.cta-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  max-width: 6.6ch;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-text {
  max-width: 28rem;
  margin: 20px 0 0;
  font-size: 1.02rem;
  color: var(--text-soft);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #da2134, var(--accent));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 32px rgba(201, 29, 46, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(201, 29, 46, 0.28);
  background: linear-gradient(180deg, #e22a3d, var(--accent-dark));
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: -4% -10% -8% 34%;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.94) 18%, rgba(255, 255, 255, 0) 40%),
    url("hero-bg.png") no-repeat right top / min(84%, 980px) auto;
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) rotate(var(--hero-rotate)) scale(var(--hero-scale));
  transform-origin: 82% 40%;
  transition: transform 0.22s ease-out;
  filter: saturate(1.01) brightness(1.01);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.92) 20%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 72% 100%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0) 34%);
  pointer-events: none;
}

.services-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin: 14px 0 clamp(40px, 7vw, 90px);
}

.service-card {
  min-height: 188px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
  box-shadow: 0 18px 35px rgba(77, 66, 57, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card h2 {
  margin: 0 0 14px;
  font-size: 1.22rem;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.95rem;
}

.service-card::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(201, 29, 46, 0.15));
}

.card-link,
.page-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
}

.cta-section {
  min-height: clamp(260px, 34vw, 430px);
  margin-top: 10px;
  padding: clamp(34px, 4vw, 48px) clamp(10px, 1vw, 12px) clamp(26px, 3vw, 34px) 0;
  grid-template-columns: minmax(280px, 420px) 1fr;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  --flag-shift-x: 0px;
  --flag-shift-y: 0px;
  --flag-rotate: 0deg;
  --flag-scale: 1;
}

.cta-copy h2 {
  max-width: 7ch;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.cta-copy {
  padding-left: 6px;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: -6% -14% -10% 28%;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.96) 16%, rgba(255, 255, 255, 0) 38%),
    url("hero-bg1.png") no-repeat right top / min(86%, 900px) auto;
  transform: translate3d(var(--flag-shift-x), var(--flag-shift-y), 0) rotate(var(--flag-rotate)) scale(var(--flag-scale));
  transform-origin: 82% 46%;
  transition: transform 0.22s ease-out;
  filter: saturate(1.01) brightness(1.01);
}

.cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 18%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 18%),
    radial-gradient(circle at 76% 100%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 32%);
  pointer-events: none;
}

.site-footer {
  padding-top: 28px;
  padding-bottom: 0;
}

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

.page-card {
  padding: 24px;
  border: 1px solid rgba(21, 40, 76, 0.08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(25, 44, 82, 0.06);
}

.page-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.page-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.tracking-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.section-heading p:last-child,
.tracking-panel p {
  color: var(--text-soft);
}

.tracking-section,
.benefits-section,
.stats-section,
.business-section {
  padding: 48px 0;
}

.tracking-section {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
}

.tracking-panel,
.info-card,
.benefit-card,
.stat-card,
.business-card {
  border: 1px solid rgba(21, 40, 76, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(25, 44, 82, 0.06);
}

.tracking-panel {
  padding: 32px;
  border-radius: 24px;
}

.tracking-form {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.tracking-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(21, 40, 76, 0.14);
  border-radius: 14px;
  background: #fbfbfc;
}

.tracking-highlights {
  display: grid;
  gap: 16px;
}

.info-card,
.benefit-card,
.stat-card,
.business-card {
  padding: 24px;
  border-radius: 20px;
}

.info-card h3,
.benefit-card h3,
.business-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.info-card p,
.benefit-card p,
.stat-card span,
.business-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.benefits-grid,
.stats-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  display: grid;
  gap: 10px;
  background: linear-gradient(180deg, #18376f, #0f2852);
  color: #ffffff;
}

.stat-card strong {
  font-size: 1.5rem;
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.76);
}

.business-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
}

.feature-large {
  background: linear-gradient(135deg, #f7f9ff, #ffffff);
}

.business-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 700;
}

.page-hero::before,
.page-hero::after {
  display: none;
}

.page-hero {
  min-height: 320px;
  padding: 56px 0 24px;
  background: linear-gradient(135deg, #f5f8ff, #ffffff);
}

.stacked-form {
  display: grid;
  grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
  .services-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .cta-section {
    min-height: 320px;
    padding-top: 26px;
  }

  .cta-section::before {
    inset: 0 -12% -6% 12%;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.84) 22%, rgba(255, 255, 255, 0) 42%),
      url("hero-bg1.png") no-repeat right top / min(104%, 780px) auto;
  }

  .hero-section::before {
    inset: 0 -10% -6% 18%;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.82) 22%, rgba(255, 255, 255, 0) 42%),
      url("hero-bg.png") no-repeat right top / min(102%, 860px) auto;
  }

  .tracking-section,
  .business-layout,
  .benefits-grid,
  .stats-section,
  .page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: 100%;
    margin: 0;
    padding: 18px 14px 0;
  }

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

  .header-actions {
    display: none;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

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

  .hero-copy h1 {
    font-size: clamp(2.8rem, 12vw, 4.1rem);
  }

  .hero-section::before {
    inset: 12% -24% -12% 6%;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 24%, rgba(255, 255, 255, 0.26) 42%, rgba(255, 255, 255, 0) 58%),
      url("hero-bg.png") no-repeat right top / 130% auto;
  }

  .cta-section {
    min-height: 280px;
    padding: 18px 0 20px;
  }

  .cta-section::before {
    inset: 10% -34% -12% 0;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.92) 24%, rgba(255, 255, 255, 0.28) 42%, rgba(255, 255, 255, 0) 58%),
      url("hero-bg1.png") no-repeat right top / 132% auto;
  }

  .services-section {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }

  .tracking-section,
  .benefits-section,
  .stats-section,
  .business-section {
    padding: 34px 0;
  }

  .tracking-panel {
    padding: 22px;
  }

  .tracking-form {
    flex-direction: column;
  }

  .cta-copy {
    padding-left: 0;
    padding-top: 6px;
  }

  .cta-copy h2 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
    max-width: 6.5ch;
  }

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

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px 22px;
  }
}
