/* ---------- Tokens (same palette and type as bluemountainweb.com) ---------- */
:root {
  --blue: #1264ff;        /* buttons, eyebrows, active states */
  --navy: #010937;        /* brand navy (logo) */
  --dark: #000210;        /* dark sections, headings on light */
  --text: #6c6f8a;        /* body text on light */
  --heading: #2a2a2a;     /* headings on light */
  --light: #ededed;       /* borders and fills on light */
  --line-dark: rgba(237, 237, 237, 0.37); /* borders on dark */
  --white: #ffffff;

  --font: "Poppins", system-ui, sans-serif;

  --gap: 20px;            /* default column and row gap */
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 104px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius);
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.375rem, 4.6vw, 3.4375rem); /* 55px max, like BMW */
  font-weight: 700;
}
h2 {
  font-size: clamp(1.75rem, 3vw, 2.1875rem); /* 35px max */
  font-weight: 500;
}
h3 {
  font-size: 1.375rem;
  font-weight: 500;
}
.eyebrow {
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* dark sections */
.is-dark {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
}
.is-dark h1,
.is-dark h2,
.is-dark h3 {
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}
.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}
.is-dark .btn-outline {
  color: var(--white);
  border-color: var(--white);
}
.is-dark .btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--light);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap);
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.25rem;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.875rem;
}
.nav a:hover {
  color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--section-y);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: var(--gap);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap);
  padding-bottom: var(--section-y);
}
.lede {
  font-size: 1.0625rem;
  max-width: 36em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-top: 8px;
}
.trust {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.875rem;
}
.trust li {
  border: 1px solid var(--line-dark);
  padding: 6px 12px;
  border-radius: var(--radius);
}
.stars {
  color: #fbbf24;
}
.hero-photo img {
  /* the photo's background is near #000210, so lighten blends it into the section */
  mix-blend-mode: lighten;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

/* ---------- Sections, grids, cards ---------- */
.section {
  padding-block: var(--section-y);
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap);
  max-width: 44em;
}
.section > .wrap > .section-head {
  margin-bottom: 48px;
}
.section-head-row {
  max-width: none;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
}
.section-head-row > .section-head {
  margin-bottom: 0;
}
.grid {
  display: grid;
  gap: var(--gap);
  list-style: none;
  padding: 0;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap);
  border: 1px solid var(--light);
  border-radius: var(--radius);
}
.is-dark .card {
  border-color: var(--line-dark);
}
.icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* work */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}
.work-card img {
  width: 100%;
  aspect-ratio: 355 / 400;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--light);
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.work-card h3 {
  font-size: 1.125rem;
}
.work-tag {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.work-link {
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: auto;
}
.work-link::after {
  content: " →";
}
.work-card:hover h3,
.work-card:hover .work-link {
  color: var(--blue);
}
/* light band, BMW's #EDEDED at 37% */
.is-tinted {
  background: rgba(237, 237, 237, 0.37);
}
.feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 40px;
  padding: var(--gap);
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
}
.feature-copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  padding: var(--gap);
}
.feature-copy h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
}
.feature-media {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--light);
}

/* results */
.stat {
  gap: 8px;
  padding: 32px var(--gap);
}
.stat-num {
  color: var(--white);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
}
.stat-meta {
  font-size: 0.875rem;
}

/* process */
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
}

/* reviews */
.review {
  margin: 0;
  justify-content: space-between;
}
.review blockquote {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
}
.review figcaption {
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
}
.review figcaption b {
  color: var(--white);
  font-weight: 600;
}

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  gap: 40px;
}
.chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  color: var(--dark);
  font-size: 0.875rem;
  background: rgba(237, 237, 237, 0.6);
  padding: 6px 12px;
  border-radius: var(--radius);
}

/* final CTA + footer */
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  text-align: center;
}
.cta-inner p {
  max-width: 36em;
}
.cta-inner .hero-actions {
  justify-content: center;
}
.site-footer {
  border-top: 1px solid var(--line-dark);
  padding-block: 32px;
  font-size: 0.875rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap);
}
.site-footer .brand {
  color: var(--white);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  margin-left: auto;
}
.footer-nav a {
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--white);
}
.copyright {
  width: 100%;
}

/* ---------- Flow ---------- */
.flow-head {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  max-width: 40em;
}
.flow-track {
  --dot-x: 0px;
  --dot-y: 0px;
  list-style: none;
  padding: 0;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
  position: relative;
}
/* the wire */
.flow-track::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 16px;
  height: 2px;
  background: var(--light);
}
/* the moving pulse (positioned by JS), slides under the labels */
.flow-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(var(--dot-x), var(--dot-y));
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.node {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.node-label {
  align-self: center;
  position: relative;
  z-index: 1;
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 14px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.node-ui {
  min-height: 150px;
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: var(--gap);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.8125rem;
  transition: border-color 0.4s, box-shadow 0.4s, opacity 0.4s;
}
.node p {
  font-size: 0.9375rem;
}

/* idle/live states, only when JS runs the animation */
.flow-track.is-animated .node-ui {
  opacity: 0.5;
}
.flow-track.is-animated .node.is-live .node-ui {
  opacity: 1;
  border-color: var(--blue);
  box-shadow: 0 10px 30px -12px rgba(1, 9, 55, 0.25);
}
.flow-track.is-animated .node.is-live .node-label,
.flow-track:not(.is-animated) .node-label {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* mini UIs */
.skeleton {
  display: block;
  height: 8px;
  width: 100%;
  border-radius: 4px;
  background: var(--light);
}
.skeleton.short {
  width: 65%;
}
.ui-ad .ad-title {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin-bottom: 4px;
}
.browser-dots {
  display: flex;
  gap: 4px;
}
.browser-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light);
}
.ui-site .site-title {
  color: var(--heading);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.ui-site .site-btn {
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 4px;
}
.node.is-live .site-btn {
  animation: press 0.5s 0.5s ease;
}
@keyframes press {
  50% {
    transform: scale(0.92);
  }
}
.lead-badge {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(18, 100, 255, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}
.lead-name {
  color: var(--heading);
  font-weight: 600;
  font-size: 1rem;
}
.ui-auto {
  gap: 8px;
}
.task {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--light);
  border-radius: 4px;
  padding: 5px 8px;
  color: var(--heading);
  font-size: 0.75rem;
}
.task::after {
  content: "✓";
  color: var(--blue);
  font-weight: 600;
  margin-left: auto;
}
.flow-track.is-animated .task {
  opacity: 0.35;
  transition: opacity 0.3s;
}
.flow-track.is-animated .node.is-live .task {
  opacity: 1;
}
.flow-track.is-animated .node.is-live .task:nth-child(2) {
  transition-delay: 0.3s;
}
.flow-track.is-animated .node.is-live .task:nth-child(3) {
  transition-delay: 0.6s;
}
.report-num {
  color: var(--heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
}
.report-num small {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text);
}
.bars {
  flex: 1;
  min-height: 50px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  transform-origin: bottom;
  transition: transform 0.6s ease;
}
.bars i:nth-child(-n + 3) {
  background: rgba(18, 100, 255, 0.35);
}
.flow-track.is-animated .node:not(.is-live) .bars i {
  transform: scaleY(0.2);
}
.flow-note {
  margin-top: 40px;
  color: var(--heading);
  font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .header-inner .btn {
    margin-left: auto;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .feature,
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--gap);
  }
}
@media (max-width: 900px) {
  .flow-track {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-left: 36px;
  }
  .flow-track::before {
    left: 11px;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 2px;
    height: auto;
  }
  .node-label {
    align-self: flex-start;
    margin-left: -36px;
  }
  .node-ui {
    min-height: 0;
  }
}
@media (max-width: 700px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .feature-copy {
    padding: 0;
  }
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-card h3 {
    font-size: 0.9375rem;
  }
  .footer-nav {
    margin-left: 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-copy {
    padding-bottom: 8px;
  }
  .hero-photo img {
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
