:root {
  --crm-bg: #07070a;
  --crm-surface: #101014;
  --crm-surface-2: #17171c;
  --crm-ink: #f8f6f2;
  --crm-muted: #aaa7b2;
  --crm-line: rgba(255,255,255,.12);
  --crm-purple: #cb99ff;
  --crm-purple-2: #9d62e8;
  --crm-mint: #78e4bb;
  --crm-coral: #ff947d;
}

html { scroll-behavior: smooth; }
body.crm-page { margin: 0; overflow-x: hidden; background: var(--crm-bg); color: var(--crm-ink); font-family: Poppins, sans-serif; }
.crm-page * { box-sizing: border-box; }
.crm-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.crm-kicker { color: var(--crm-purple); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.crm-kicker::before { content: ''; display: inline-block; width: 28px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.crm-section { position: relative; padding: 112px 0; border-top: 1px solid var(--crm-line); }
.crm-section-head { max-width: 760px; margin-bottom: 52px; }
.crm-section h2 { margin: 12px 0 16px; font-size: clamp(2rem, 4.4vw, 4.1rem); line-height: 1.03; letter-spacing: 0; }
.crm-section-head p { margin: 0; color: var(--crm-muted); font-size: 1.08rem; line-height: 1.75; }

.crm-header { position: fixed; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.crm-header.is-scrolled { background: rgba(7,7,10,.86); border-color: var(--crm-line); backdrop-filter: blur(18px); }
.crm-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.crm-logo img { display: block; width: 154px; height: auto; }
.crm-nav-links { display: flex; align-items: center; gap: 28px; }
.crm-nav-links a { color: #d8d5dd; font-size: .84rem; font-weight: 600; text-decoration: none; }
.crm-nav-links a:hover { color: #fff; }
.crm-nav-links .crm-button { color: #0b080f; }
.crm-login-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid rgba(203,153,255,.4); border-radius: 6px; background: rgba(203,153,255,.1); box-shadow: 0 0 0 1px rgba(203,153,255,.04), 0 8px 24px rgba(157,98,232,.1); }
.crm-login-link:hover { border-color: rgba(203,153,255,.72); background: rgba(203,153,255,.16); }
.crm-login-short { display: none; }
.crm-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid transparent; border-radius: 6px; background: var(--crm-purple); color: #0b080f; font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.crm-button:hover { transform: translateY(-2px); background: #d8b2ff; box-shadow: 0 12px 40px rgba(203,153,255,.24); }
.crm-button.secondary { border-color: var(--crm-line); background: rgba(255,255,255,.05); color: #fff; }
.crm-button.secondary:hover { background: rgba(255,255,255,.1); box-shadow: none; }

.crm-hero { min-height: 940px; padding: 148px 0 70px; overflow: hidden; }
.crm-hero::before { content: ''; position: absolute; inset: 0; opacity: .2; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 72%); }
.crm-hero-copy { position: relative; z-index: 2; max-width: 840px; margin-inline: auto; text-align: center; }
.crm-hero h1 { margin: 18px auto 24px; max-width: 820px; font-size: clamp(2.9rem, 6.8vw, 6.3rem); line-height: .94; letter-spacing: 0; }
.crm-hero h1 em { color: var(--crm-purple); font-style: normal; }
.crm-hero-copy > p { max-width: 720px; margin: 0 auto; color: #c4c0c9; font-size: clamp(1rem, 1.7vw, 1.24rem); line-height: 1.7; }
.crm-hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.crm-trial-note { margin-top: 14px !important; color: #898690 !important; font-size: .78rem !important; }
.crm-product-stage { position: relative; z-index: 2; width: min(1120px, 92vw); margin: 62px auto 0; transform: perspective(1500px) rotateX(4deg); transform-origin: center top; transition: transform .5s ease; }
.crm-product-stage:hover { transform: perspective(1500px) rotateX(1deg) translateY(-6px); }
.crm-browser { overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #111116; box-shadow: 0 42px 110px rgba(0,0,0,.55), 0 0 90px rgba(203,153,255,.08); }
.crm-browser-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 15px; border-bottom: 1px solid var(--crm-line); background: #18181d; }
.crm-browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: #55515d; }
.crm-browser-bar span:first-child { background: var(--crm-coral); }
.crm-browser-bar span:nth-child(2) { background: #ebc96d; }
.crm-browser-bar span:nth-child(3) { background: var(--crm-mint); }
.crm-browser img, .crm-browser video { display: block; width: 100%; height: auto; aspect-ratio: 1918 / 908; object-fit: contain; object-position: center; background: transparent; }
.crm-float-stat { position: absolute; right: -22px; bottom: 10%; width: 210px; padding: 16px; border: 1px solid rgba(120,228,187,.35); border-radius: 6px; background: rgba(13,17,16,.94); box-shadow: 0 20px 55px rgba(0,0,0,.4); }
.crm-float-stat strong { display: block; color: var(--crm-mint); font-size: 1.35rem; }
.crm-float-stat span { color: #c9cfcc; font-size: .72rem; }

.crm-proof-band { border-block: 1px solid var(--crm-line); background: #0b0b0e; }
.crm-proof-grid { min-height: 96px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.crm-proof-grid div { padding: 18px 28px; border-right: 1px solid var(--crm-line); }
.crm-proof-grid div:last-child { border-right: 0; }
.crm-proof-grid strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.crm-proof-grid span { color: var(--crm-muted); font-size: .72rem; }

.crm-story { background: #f1efeb; color: #151419; }
.crm-story .crm-kicker { color: #7943b7; }
.crm-story .crm-section-head p { color: #615f67; }
.crm-story-layout { display: grid; grid-template-columns: .82fr 1.38fr; gap: 72px; align-items: start; }
.crm-feature-nav { position: sticky; top: 112px; display: grid; gap: 0; border-top: 1px solid #cfcbd1; }
.crm-feature-button { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 22px 0; border: 0; border-bottom: 1px solid #cfcbd1; background: transparent; color: #615f67; text-align: left; cursor: pointer; }
.crm-feature-button b { color: inherit; font-size: .95rem; }
.crm-feature-button small { display: block; margin-top: 4px; color: #85818a; line-height: 1.5; }
.crm-feature-button i { font-size: 1.2rem; }
.crm-feature-button .crm-feature-index { font-size: .72rem; font-weight: 700; }
.crm-feature-button.is-active { color: #17141a; }
.crm-feature-button.is-active .crm-feature-index { color: #7943b7; }
.crm-feature-button.is-active i { color: #7943b7; transform: translateX(4px); }
.crm-demo-frame { position: sticky; top: 112px; overflow: hidden; border: 1px solid #cdc9cf; border-radius: 8px; background: #141419; box-shadow: 0 32px 70px rgba(18,14,25,.18); }
.crm-demo-media { position: relative; width: 100%; aspect-ratio: var(--crm-media-ratio, 59 / 36); transition: aspect-ratio .35s ease; }
.crm-demo-media img, .crm-demo-media video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; background: transparent; opacity: 0; transform: scale(.985); transition: opacity .35s, transform .55s; }
.crm-demo-media .is-active { opacity: 1; transform: scale(1); }
.crm-demo-caption { position: relative; z-index: 3; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.12); background: #141419; color: #fff; }
.crm-demo-caption strong { font-size: 1rem; }
.crm-demo-caption span { display: block; margin-top: 4px; color: #bbb7c1; font-size: .78rem; }

.crm-outcomes-grid { display: grid; grid-template-columns: repeat(12,1fr); border-top: 1px solid var(--crm-line); }
.crm-outcome { min-height: 245px; grid-column: span 4; padding: 34px 28px; border-right: 1px solid var(--crm-line); border-bottom: 1px solid var(--crm-line); }
.crm-outcome:nth-child(3n) { border-right: 0; }
.crm-outcome i { color: var(--crm-purple); font-size: 1.6rem; }
.crm-outcome h3 { margin: 54px 0 10px; font-size: 1.15rem; }
.crm-outcome p { margin: 0; color: var(--crm-muted); font-size: .86rem; line-height: 1.65; }

.crm-plans { background: #0c0c10; }
.crm-plan-grid { display: grid; grid-template-columns: repeat(3,1fr); align-items: stretch; gap: 14px; }
.crm-plan { position: relative; min-height: 620px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--crm-line); border-radius: 8px; background: var(--crm-surface); }
.crm-plan.recommended { border-color: var(--crm-purple); background: #15101b; box-shadow: 0 26px 80px rgba(203,153,255,.1); }
.crm-plan-badge { position: absolute; top: 0; right: 20px; padding: 7px 11px; border-radius: 0 0 5px 5px; background: var(--crm-purple); color: #0b080f; font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.crm-plan h3 { margin: 0 0 10px; font-size: 1.55rem; }
.crm-plan-intro { min-height: 66px; margin: 0; color: var(--crm-muted); font-size: .8rem; line-height: 1.55; }
.crm-price { margin: 28px 0 4px; font-size: 2.65rem; font-weight: 800; }
.crm-price small { font-size: .8rem; font-weight: 500; color: var(--crm-muted); }
.crm-plan-user { display: block; color: #aaa6b0; font-size: .74rem; }
.crm-plan-user strong { color: #f2eef5; font-weight: 700; }
.crm-plan ul { display: grid; gap: 12px; margin: 28px 0 32px; padding: 24px 0 0; border-top: 1px solid var(--crm-line); list-style: none; }
.crm-plan li { display: flex; gap: 10px; align-items: flex-start; color: #d7d3dc; font-size: .8rem; line-height: 1.45; }
.crm-plan li i { color: var(--crm-mint); }
.crm-plan .crm-button { width: 100%; margin-top: auto; }
.crm-plan-foot { display: block; margin-top: 12px; color: #817e88; font-size: .67rem; text-align: center; }

.crm-agency-band { padding: 0 0 112px; background: #0c0c10; }
.crm-agency-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; padding: 48px; border: 1px solid rgba(120,228,187,.25); border-radius: 8px; background: #101713; }
.crm-agency-panel h3 { margin: 0 0 12px; font-size: 2rem; }
.crm-agency-panel p { margin: 0; color: #b7c7c0; line-height: 1.7; }
.crm-agency-panel .crm-button { align-self: center; justify-self: end; background: var(--crm-mint); }

.crm-faq { display: grid; grid-template-columns: .72fr 1.28fr; gap: 70px; }
.crm-faq details { overflow: hidden; border-top: 1px solid var(--crm-line); }
.crm-faq details:last-child { border-bottom: 1px solid var(--crm-line); }
.crm-faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0; cursor: pointer; font-size: .95rem; font-weight: 600; list-style: none; }
.crm-faq summary i { color: var(--crm-purple); transition: transform .2s; }
.crm-faq details[open] summary i { transform: rotate(45deg); }
.crm-faq details p { margin: -5px 0 24px; color: var(--crm-muted); font-size: .84rem; line-height: 1.7; }
.crm-faq details.is-animating { pointer-events: none; }
.crm-final { padding: 118px 0; text-align: center; background: #f1efeb; color: #151419; }
.crm-final h2 { max-width: 820px; margin: 0 auto 20px; font-size: clamp(2.2rem,5vw,4.7rem); line-height: 1; }
.crm-final p { max-width: 600px; margin: 0 auto 30px; color: #615f67; }
.crm-footer { padding: 56px 0 32px; border-top: 1px solid var(--crm-line); background: #09090c; }
.crm-footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-bottom: 36px; }
.crm-footer-brand img { display: block; width: 154px; height: auto; margin-bottom: 16px; }
.crm-footer-brand p { margin: 0 0 6px; color: #bdb9c2; font-size: .78rem; }
.crm-footer-brand small { color: #6f6c75; font-size: .66rem; }
.crm-footer-social { display: grid; justify-items: end; gap: 13px; }
.crm-footer-social strong { color: #f8f6f2; font-size: .68rem; text-transform: uppercase; }
.crm-social-links { display: flex; gap: 15px; }
.crm-social-links a { color: #8d8993; font-size: 1.15rem; transition: color .2s, transform .2s; }
.crm-social-links a:hover { color: var(--crm-purple); transform: translateY(-2px); }
.crm-footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07); }
.crm-footer-nav { display: flex; flex-wrap: wrap; gap: 12px 22px; max-width: 760px; }
.crm-footer-meta { flex: 0 0 auto; display: grid; justify-items: end; gap: 8px; text-align: right; }
.crm-footer-credit { display: flex; align-items: center; gap: 7px; }
.crm-footer-credit img { width: 55px; height: auto; opacity: .72; }
.crm-footer-row { display: flex; justify-content: space-between; gap: 20px; color: #7e7b84; font-size: .72rem; }
.crm-footer a { color: #bdb9c2; text-decoration: none; }
.crm-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.crm-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .crm-nav-links > a:not(.crm-button):not(.crm-login-link) { display: none; }
  .crm-nav-links { gap: 14px; }
  .crm-hero { min-height: 780px; }
  .crm-float-stat { display: none; }
  .crm-proof-grid { grid-template-columns: repeat(2,1fr); }
  .crm-proof-grid div:nth-child(2) { border-right: 0; }
  .crm-proof-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--crm-line); }
  .crm-story-layout, .crm-faq { grid-template-columns: 1fr; gap: 42px; }
  .crm-feature-nav, .crm-demo-frame { position: relative; top: auto; }

  .crm-outcome { grid-column: span 6; }
  .crm-outcome:nth-child(3n) { border-right: 1px solid var(--crm-line); }
  .crm-outcome:nth-child(2n) { border-right: 0; }
  .crm-plan-grid { grid-template-columns: 1fr; }
  .crm-plan { min-height: 0; }
  .crm-agency-panel { grid-template-columns: 1fr; }
  .crm-agency-panel .crm-button { justify-self: start; }
}

@media (max-width: 600px) {
  .crm-shell { width: min(100% - 28px, 1180px); }
  .crm-section { padding: 80px 0; }
  .crm-nav { min-height: 64px; }
  .crm-logo img { width: 132px; }
  .crm-nav .crm-button { min-height: 42px; padding-inline: 14px; font-size: .73rem; }
  .crm-login-long { display: none; }
  .crm-login-short { display: inline; }
  .crm-hero { min-height: 690px; padding-top: 116px; }
  .crm-hero h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .crm-product-stage { width: calc(100% + 70px); margin-left: -35px; }
  .crm-browser-bar { height: 28px; }
  .crm-proof-grid div { padding: 16px; }
  .crm-story-layout { gap: 28px; }
  .crm-feature-button { grid-template-columns: 30px 1fr auto; padding: 17px 0; }
  .crm-feature-button small { display: none; }

  .crm-demo-caption { padding: 14px; }
  .crm-outcome { min-height: 220px; grid-column: span 12; border-right: 0 !important; padding: 28px 10px; }
  .crm-outcome h3 { margin-top: 36px; }
  .crm-plan { padding: 25px 22px; }
  .crm-agency-panel { padding: 28px 22px; }
  .crm-footer-main, .crm-footer-bottom { align-items: flex-start; flex-direction: column; }
  .crm-footer-social, .crm-footer-meta { justify-items: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crm-reveal { opacity: 1; transform: none; transition: none; }
  .crm-product-stage, .crm-button { transition: none; }
}


.crm-client-proof {
  position: relative;
  overflow: hidden;
  padding: 78px 0 86px;
  border-top: 1px solid var(--crm-line);
  background: #0a0a0e;
}

.crm-client-proof::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, transparent, #000 28%, #000 72%, transparent);
}

.crm-client-proof-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 38px;
}

.crm-client-proof-head h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 4.1vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.crm-client-proof-head p {
  margin: 0;
  color: var(--crm-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.crm-client-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--crm-line);
  border-left: 1px solid var(--crm-line);
}

.crm-client-logo {
  min-width: 0;
  min-height: 116px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px 18px;
  border-right: 1px solid var(--crm-line);
  border-bottom: 1px solid var(--crm-line);
  background: rgba(255,255,255,.015);
  transition: background .25s ease;
}

.crm-client-logo:hover {
  background: rgba(203,153,255,.06);
}

.crm-client-logo img {
  display: block;
  max-width: 118px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(1.5);
  opacity: .68;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.crm-client-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .crm-client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .crm-client-proof { padding: 64px 0 70px; }
  .crm-client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-client-logo { min-height: 98px; padding: 18px 14px; }
  .crm-client-logo img { max-width: 104px; max-height: 46px; }
}



/* Muted editorial client wall. */
.crm-client-grid { border-color: rgba(255,255,255,.07); }
.crm-client-logo { min-height: 104px; background: transparent; border-color: rgba(255,255,255,.07); }
.crm-client-logo img { opacity: .48; filter: grayscale(1) brightness(1.35) contrast(.86); }
.crm-client-logo:hover { background: rgba(203,153,255,.025); }
.crm-client-logo:hover img { opacity: .7; filter: grayscale(1) brightness(1.55) contrast(.9); transform: none; }


@media (max-width: 1120px) and (min-width: 901px) {
  .crm-nav-links > a:not(.crm-button):not(.crm-login-link) { display: none; }
}

@media (min-width: 901px) {
  .crm-client-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .crm-client-logo { grid-column: span 2; }
  .crm-client-logo:nth-child(7) { grid-column: 2 / span 2; }
}


/* Mobile CRM media remains fully visible at its native aspect ratio. */
@media (max-width: 600px) {
  .crm-hero h1 {
    font-size: clamp(2.65rem, 12.5vw, 3.25rem);
    line-height: .98;
  }

  .crm-product-stage {
    width: calc(100% - 28px);
    margin: 44px auto 0;
    transform: none;
  }

  .crm-product-stage:hover { transform: none; }

  .crm-feature-button {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }

  .crm-feature-button > span { min-width: 0; }
}


/* Keep the three mobile header actions inside narrow 320px viewports. */
@media (max-width: 360px) {
  .crm-shell { width: calc(100% - 20px); }
  .crm-nav { gap: 10px; }
  .crm-logo img { width: 120px; }
  .crm-nav-links { gap: 8px; }
  .crm-login-link { min-height: 38px; padding-inline: 11px; }
  .crm-nav .crm-button { min-height: 40px; padding-inline: 10px; font-size: .68rem; }
}
