:root {
  --ct-ink: #10141b;
  --ct-ink-soft: #343b47;
  --ct-ivory: #f3f0e8;
  --ct-paper: #fbfaf6;
  --ct-cobalt: #2255d7;
  --ct-line: rgba(16, 20, 27, 0.12);
  --ct-shadow: 0 32px 90px rgba(36, 43, 58, 0.16);
}

html {
  scroll-behavior: smooth;
  background: var(--ct-ivory);
}

body.ct-marketing {
  margin: 0;
  color: var(--ct-ink);
  background: var(--ct-ivory) !important;
  font-family: "Manrope", sans-serif !important;
  text-rendering: optimizeLegibility;
}

body.ct-marketing * {
  font-family: inherit !important;
}

.ct-skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1200;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--ct-ink);
  border-radius: 0.7rem;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.ct-skip:focus {
  transform: translateY(0);
}

body.ct-marketing .ct-nav {
  top: 0.75rem !important;
  width: min(94vw, 1320px) !important;
  margin-inline: auto !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 1rem !important;
  background: rgba(251, 250, 246, 0.82) !important;
  box-shadow: 0 16px 48px rgba(41, 48, 61, 0.1), inset 0 1px rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(22px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
}

body.ct-marketing .ct-nav a,
body.ct-marketing .ct-nav button {
  color: var(--ct-ink) !important;
  letter-spacing: -0.015em !important;
  transition: transform 220ms ease, color 220ms ease, background 220ms ease,
    box-shadow 220ms ease !important;
}

body.ct-marketing .ct-nav a *,
body.ct-marketing .ct-nav button:not(.MuiButton-containedPrimary) * {
  color: var(--ct-ink) !important;
}

body.ct-marketing .ct-nav .MuiButton-containedPrimary,
body.ct-marketing .ct-nav .MuiButton-containedPrimary * {
  color: #fff !important;
}

body.ct-marketing .ct-nav a:hover,
body.ct-marketing .ct-nav button:hover {
  transform: translateY(-1px);
}

.ct-hero {
  --ct-pointer-x: 0;
  --ct-pointer-y: 0;
  --ct-scroll: 0;
  display: grid !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  max-height: 1080px !important;
  padding: clamp(7rem, 11vh, 8.5rem) 0 clamp(2rem, 4vh, 3.5rem) !important;
  overflow: clip !important;
  color: var(--ct-ink) !important;
  background:
    radial-gradient(circle at 50% 58%, rgba(34, 85, 215, 0.14) 0, rgba(34, 85, 215, 0.055) 24%, transparent 54%),
    radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #f8f6f0 0%, var(--ct-ivory) 72%, #ece8de 100%) !important;
}

.ct-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(16, 20, 27, 0.07) 0,
    rgba(16, 20, 27, 0.07) 1px,
    transparent 1px,
    transparent min(8.333vw, 120px)
  );
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
}

.ct-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16, 20, 27, 0.16), transparent);
}

.ct-hero > .css-rzqrt1,
.ct-hero > .css-vcjyw4,
.ct-hero > .css-1ymz3q1 {
  display: none !important;
}

.ct-hero .ct-hero-grid {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: center !important;
  justify-items: center !important;
  gap: clamp(0.25rem, 0.8vh, 0.75rem) !important;
  width: min(100%, 1240px) !important;
  min-height: 0 !important;
  height: 100% !important;
  margin-inline: auto !important;
  padding-inline: clamp(1rem, 4vw, 3rem) !important;
  opacity: var(--ct-hero-fade, 1);
  transition: opacity 120ms linear;
}

.ct-hero .ct-hero-copy {
  z-index: 4;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  max-width: 1040px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  transform: translate3d(0, calc(var(--ct-scroll) * -16px), 0);
}

.ct-hero .ct-hero-copy > * {
  animation: ct-rise 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ct-hero .ct-hero-copy > :nth-child(2) { animation-delay: 80ms; }
.ct-hero .ct-hero-copy > :nth-child(3) { animation-delay: 150ms; }
.ct-hero .ct-hero-copy > :nth-child(4) { animation-delay: 220ms; }
.ct-hero .ct-hero-copy > :nth-child(5) { animation-delay: 290ms; }

.ct-hero h1 {
  max-width: 14ch;
  margin-inline: auto !important;
  color: var(--ct-ink) !important;
  font-size: clamp(3.6rem, 5.6vw, 5.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.078em !important;
  line-height: 0.9 !important;
  text-wrap: balance;
}

.ct-hero h1 + h1 {
  color: var(--ct-cobalt) !important;
  background: none !important;
  -webkit-text-fill-color: var(--ct-cobalt) !important;
}

.ct-hero .ct-hero-copy p {
  max-width: 64ch;
  width: 100% !important;
  margin-inline: auto;
  color: rgba(16, 20, 27, 0.66) !important;
  font-size: clamp(1rem, 1.35vw, 1.25rem) !important;
  line-height: 1.6 !important;
  letter-spacing: -0.02em !important;
  text-wrap: pretty;
  white-space: normal !important;
}

.ct-hero .ct-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.75rem !important;
}

.ct-hero .MuiChip-root {
  min-height: 2rem;
  color: var(--ct-cobalt) !important;
  background: rgba(34, 85, 215, 0.08) !important;
  border: 1px solid rgba(34, 85, 215, 0.16) !important;
  border-radius: 0.65rem !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

body.ct-marketing .MuiButton-containedPrimary {
  min-height: 2.9rem;
  padding-inline: 1.4rem !important;
  color: #fff !important;
  background: var(--ct-ink) !important;
  border-radius: 0.85rem !important;
  box-shadow: 0 14px 34px rgba(16, 20, 27, 0.18) !important;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    background 220ms ease, box-shadow 220ms ease !important;
}

body.ct-marketing .MuiButton-containedPrimary:hover {
  background: var(--ct-cobalt) !important;
  box-shadow: 0 18px 44px rgba(34, 85, 215, 0.25) !important;
  transform: translateY(-3px);
}

body.ct-marketing .MuiButton-containedPrimary:active {
  transform: translateY(0) scale(0.985);
}

body.ct-marketing .MuiButton-outlinedPrimary {
  min-height: 2.9rem;
  color: var(--ct-ink) !important;
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid var(--ct-line) !important;
  border-radius: 0.85rem !important;
  backdrop-filter: blur(12px);
}

body.ct-marketing .MuiButton-outlinedPrimary:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(34, 85, 215, 0.36) !important;
  transform: translateY(-2px);
}

body.ct-marketing button:focus-visible,
body.ct-marketing a:focus-visible,
body.ct-marketing input:focus-visible,
body.ct-marketing textarea:focus-visible {
  outline: 3px solid rgba(34, 85, 215, 0.34) !important;
  outline-offset: 3px !important;
}

.ct-hero .ct-hero-visual {
  position: relative !important;
  display: flex !important;
  justify-content: center !important;
  width: min(100%, 760px) !important;
  min-height: clamp(330px, 37vh, 430px) !important;
  margin: -0.75rem auto 0 !important;
  order: 2;
}

.ct-hero .ct-hero-visual > :not(.ct-hero-stage) {
  display: none !important;
}

.ct-hero .ct-hero-stage {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 1 720px !important;
  width: 100% !important;
  max-width: 720px !important;
  min-height: clamp(330px, 37vh, 430px) !important;
  perspective: 1200px;
  transform: translate3d(calc(var(--ct-pointer-x) * 2px), calc(var(--ct-pointer-y) * 2px + var(--ct-scroll) * 12px), 0) !important;
}

.ct-hero .ct-hero-stage::before,
.ct-hero .ct-hero-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 51%;
  border: 1px solid rgba(34, 85, 215, 0.18);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.ct-hero .ct-hero-stage::before {
  width: min(56vw, 590px);
  aspect-ratio: 1;
  box-shadow: 0 0 0 32px rgba(34, 85, 215, 0.02), 0 0 0 64px rgba(34, 85, 215, 0.012);
  animation: ct-orbit-pulse 7s ease-in-out infinite;
}

.ct-hero .ct-hero-stage::after {
  display: none;
}

.ct-hero .ct-hero-card {
  position: relative !important;
  z-index: 2;
  width: min(72vw, 610px) !important;
  height: clamp(330px, 37vh, 430px) !important;
  overflow: visible !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-inline: auto !important;
  transform-style: preserve-3d;
  animation: ct-float 6.5s ease-in-out infinite;
}

.ct-hero .ct-hero-card > :not(.ct-hero-people) {
  display: none !important;
}

.ct-phone-finder {
  position: relative !important;
  z-index: 7;
  width: min(100%, 670px) !important;
  max-width: 670px !important;
  margin: 2rem auto !important;
  padding: 0.85rem !important;
  border: 1px solid rgba(16, 20, 27, 0.1) !important;
  border-radius: 1.1rem !important;
  color: var(--ct-ink) !important;
  background: #fff !important;
  box-shadow: 0 24px 60px rgba(39, 45, 58, 0.12), inset 0 1px rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  transform: none !important;
}

.ct-phone-finder p,
.ct-phone-finder span,
.ct-phone-finder label,
.ct-phone-finder input {
  color: var(--ct-ink-soft) !important;
}

.ct-phone-finder input::placeholder {
  color: #667080 !important;
  opacity: 1 !important;
}

.ct-phone-finder input {
  caret-color: var(--ct-cobalt) !important;
}

.ct-phone-finder button {
  color: #fff !important;
  background: var(--ct-cobalt) !important;
  box-shadow: 0 10px 28px rgba(34, 85, 215, 0.24) !important;
}

.ct-phone-finder button * {
  color: #fff !important;
}

.ct-hero .ct-hero-people {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  filter: drop-shadow(0 34px 34px rgba(24, 30, 43, 0.2)) !important;
  transform: translate3d(calc(var(--ct-pointer-x) * 6px), calc(var(--ct-pointer-y) * 5px), 20px) !important;
  will-change: transform;
}

.ct-hero .ct-hero-card .css-1t3bzts {
  background: var(--ct-cobalt) !important;
}

.ct-hero .ct-preview-chip,
.ct-hero .ct-uptime-chip,
.ct-hero .ct-call-status {
  display: none !important;
}

.ct-hero .ct-preview-chip p,
.ct-hero .ct-uptime-chip p:first-child,
.ct-hero .ct-call-status p:first-child {
  color: #fff !important;
}

.ct-hero .ct-uptime-chip p:last-child,
.ct-hero .ct-call-status p:last-child {
  color: rgba(255, 255, 255, 0.54) !important;
}

.ct-hero .ct-preview-chip { transform: translate(-18%, -8%) !important; }
.ct-hero .ct-uptime-chip { transform: translate(20%, -14%) !important; }
.ct-hero .ct-call-status { transform: translate(6%, 12%) !important; }

.ct-stat-band {
  position: relative;
  z-index: 3;
  color: var(--ct-ink) !important;
  background: #e9e5dc !important;
  border-block: 1px solid rgba(16, 20, 27, 0.1) !important;
}

.ct-stat-grid p:first-child {
  color: var(--ct-ink) !important;
  font-variant-numeric: tabular-nums;
}

.ct-stat-grid p:last-child {
  color: rgba(16, 20, 27, 0.62) !important;
}

body.ct-marketing #features,
body.ct-marketing #how,
body.ct-marketing #pricing,
body.ct-marketing #testimonials,
body.ct-marketing #faq,
body.ct-marketing #contact {
  background: var(--ct-paper) !important;
}

.ct-reveal-section {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(48px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 900ms ease;
}

.ct-reveal-section.ct-in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

body.ct-marketing #testimonials .MuiPaper-root,
body.ct-marketing #pricing .MuiPaper-root,
body.ct-marketing #contact .MuiPaper-root {
  border-color: rgba(16, 20, 27, 0.08) !important;
  box-shadow: 0 24px 70px rgba(46, 52, 64, 0.09) !important;
}

@keyframes ct-rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes ct-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

@keyframes ct-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ct-orbit-pulse {
  0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.025); }
}

@media (min-width: 900px) and (max-height: 800px) {
  .ct-hero {
    padding: 6rem 0 0.8rem !important;
  }

  .ct-hero .ct-hero-grid {
    gap: 0 !important;
  }

  .ct-hero .ct-hero-copy > * {
    margin-bottom: 0.65rem !important;
  }

  .ct-hero .ct-hero-copy > :nth-child(3) {
    margin-bottom: 0.9rem !important;
  }

  .ct-hero .ct-hero-copy > :last-child {
    margin-bottom: 0 !important;
  }

  .ct-hero h1 {
    font-size: clamp(3.1rem, 4.7vw, 4rem) !important;
    line-height: 0.9 !important;
  }

  .ct-hero .ct-hero-copy p {
    font-size: 1rem !important;
    line-height: 1.45 !important;
  }

  .ct-hero .ct-hero-visual,
  .ct-hero .ct-hero-stage {
    min-height: clamp(190px, 31vh, 240px) !important;
  }

  .ct-hero .ct-hero-visual {
    margin-top: 1.75rem !important;
  }

  .ct-hero .ct-hero-card {
    width: min(50vw, 450px) !important;
    height: clamp(190px, 31vh, 240px) !important;
  }

  .ct-hero .ct-hero-stage::before {
    width: min(38vw, 360px);
  }
}

@media (max-width: 899px) {
  body.ct-marketing .ct-nav {
    top: 0.45rem !important;
    width: calc(100% - 0.9rem) !important;
  }

  .ct-hero {
    height: 100dvh !important;
    max-height: none !important;
    padding-top: 6.25rem !important;
    padding-bottom: 1rem !important;
  }

  .ct-hero .ct-hero-grid {
    gap: 0.25rem !important;
    min-height: 0 !important;
    padding-inline: 1rem !important;
  }

  .ct-hero .ct-hero-actions {
    width: 100% !important;
  }

  .ct-hero .ct-hero-actions > * {
    flex: 0 1 auto !important;
  }

  .ct-hero h1 {
    font-size: clamp(2.9rem, 12vw, 4.3rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.07em !important;
  }

  .ct-hero .ct-hero-visual,
  .ct-hero .ct-hero-stage {
    min-height: clamp(250px, 36vh, 340px) !important;
  }

  .ct-hero .ct-hero-card {
    width: min(100%, 500px) !important;
    height: clamp(250px, 36vh, 340px) !important;
  }

  .ct-hero .ct-hero-stage::before { width: 82vw; }
  .ct-hero .ct-hero-stage::after { width: 72vw; }
  .ct-hero .ct-preview-chip { transform: translate(-2%, -6%) scale(0.84) !important; }
  .ct-hero .ct-uptime-chip { transform: translate(6%, -8%) scale(0.84) !important; }
  .ct-hero .ct-call-status { transform: translate(2%, 4%) scale(0.84) !important; }

  .ct-phone-finder {
    width: calc(100% - 0.5rem) !important;
    margin: 1rem auto !important;
    padding: 0.65rem !important;
    overflow: hidden !important;
  }
}

@media (max-width: 520px) {
  .ct-hero .ct-hero-copy p { font-size: 0.98rem !important; }
  .ct-hero .ct-hero-actions > * {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding-inline: 0.7rem !important;
    font-size: 0.76rem !important;
  }
  .ct-hero .ct-hero-visual,
  .ct-hero .ct-hero-stage { min-height: 260px !important; }
  .ct-hero .ct-hero-card { height: 260px !important; }
  .ct-hero .ct-preview-chip,
  .ct-hero .ct-uptime-chip { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .ct-reveal-section { opacity: 1; filter: none; transform: none; }
}
