/* ============================================================
   REVERT — Hero + Showcase (one continuous pinned journey)
   Font: Zimula Trial Medium (weight 500)
   ============================================================ */

@font-face {
  font-family: "Zimula";
  src: url("../assets/fonts/Zimula-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #FEFE46;
  --yellow-ink: #141414;
  --green: #28CE68;
  --ink: #0e0f12;
  --ink-soft: #3a3d44;
  --muted: #6b7078;
  --line: rgba(14, 15, 18, 0.10);
  --radius: 18px;
  --maxw: 1240px;
  --header-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Zimula", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: #eef4fb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html { overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ======================= BUTTONS ======================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn--yellow {
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.btn--yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.12); }
.btn--lg { padding: 15px 34px; font-size: 16px; }

/* ======================= HEADER ======================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .38s cubic-bezier(.4,0,.2,1), background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled { height: 78px; }

.header-inner {
  width: 100%;
  max-width: var(--maxw);
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-radius: 20px;
  transition: max-width .4s cubic-bezier(.4,0,.2,1),
              height .4s cubic-bezier(.4,0,.2,1),
              padding .4s cubic-bezier(.4,0,.2,1),
              background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled .header-inner {
  max-width: 700px;
  height: 56px;
  padding: 0 14px 0 24px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 12px 34px rgba(16,24,40,.12),
    inset 0 0 0 1px rgba(255,255,255,.55);
}

.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.10));
  transition: height .38s cubic-bezier(.4,0,.2,1), filter .35s ease;
}
.logo-mark { fill: #28CE68; }
.logo-word { fill: #ffffff; transition: fill .35s ease; }
.site-header.scrolled .brand-logo { height: 24px; filter: none; }
.site-header.scrolled .logo-word { fill: #141414; }

.nav {
  justify-self: center;
  display: flex;
  gap: 34px;
  transition: gap .38s cubic-bezier(.4,0,.2,1);
}
.site-header.scrolled .nav { gap: 26px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink); }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}
.header-actions .header-cta {
  position: relative;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  max-width: 340px;
  overflow: hidden;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.4px;
  background-image: linear-gradient(198deg, #ffff7a, #fefe46 45%, #e6e62a);
  transition: max-width .42s cubic-bezier(.76,0,.24,1),
              padding .42s cubic-bezier(.76,0,.24,1),
              border-radius .42s ease,
              transform .25s ease,
              box-shadow .25s ease;
}
.hc-text { white-space: nowrap; opacity: 1; transition: opacity .22s ease; }
.hc-arrow {
  position: absolute;
  left: 50%; top: 50%;
  width: 19px; height: 19px;
  color: #141414;
  transform: translate(-50%, -50%) scale(.4) rotate(-12deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .4s cubic-bezier(.34,1.56,.64,1);
}
.site-header.scrolled .header-cta {
  max-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 11px;
  outline: 1px solid rgba(255,255,255,.6);
  outline-offset: -1px;
  box-shadow:
    -3px 3px 5px rgba(70,62,0,.18),
    -1px 1px 2px rgba(70,62,0,.25),
    inset 0 -2px 0 rgba(120,110,0,.18);
}
.site-header.scrolled .hc-text { opacity: 0; }
.site-header.scrolled .hc-arrow { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px;
  letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--ink-soft);
}
.lang svg { display: block; opacity: .7; }

/* ======================= JOURNEY (pinned stage) ======================= */
.journey {
  position: relative;
  height: 620vh;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(238,244,251,0) 58%, #eef4fb 100%),
    url("../assets/img/background.png") center top / cover no-repeat;
}

/* ---- hero text layer ---- */
.hero-ui {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 24px 0;
  will-change: transform, opacity;
}

/* social proof */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.avatars { display: flex; }
.avatars img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  margin-left: -16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}
.avatars img:first-child { margin-left: 0; }

.reviews {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.reviews-top { display: inline-flex; align-items: center; gap: 7px; }
.google-ic { width: 17px; height: 17px; }
.stars { display: inline-flex; gap: 1px; }
.stars svg { width: 15px; height: 15px; fill: #FBBC04; }
.reviews-text { font-size: 13px; color: var(--ink-soft); }

/* title */
.hero-title {
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.05rem);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
}
.h1-line { display: block; }
.h1-line:first-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .26em;
}
@media (min-width: 861px) {
  .h1-line:last-child { white-space: nowrap; }
}

/* rotator pill — roomy, no cramped text */
.rotator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.2em;
  padding: 0 .42em;
  border-radius: .28em;
  background: var(--yellow);
  color: var(--yellow-ink);
  overflow: hidden;
  vertical-align: middle;
  letter-spacing: -0.3px;
  transition: width .45s cubic-bezier(.76,0,.24,1);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  will-change: width;
}
.rotator__word {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  will-change: transform;
}
.rotator__measure {
  position: absolute;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
  left: -9999px;
  padding: 0 .42em;
  letter-spacing: -0.3px;
}

.hero-sub {
  margin: 26px auto 0;
  max-width: 540px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.2px;
}
/* ---- hero premium buttons ---- */
.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.cta-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* base = black button */
.btn-real {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 52px;
  padding: 8px 20px;
  border-radius: 13px;
  border: none;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", "Zimula", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  background-image: linear-gradient(198deg, #323232, #141414);
  outline: 1px solid rgba(255,255,255,.2);
  outline-offset: -1px;
  box-shadow:
    -21px 16px 10px rgba(0,0,0,.04),
    -12px  9px  9px rgba(0,0,0,.13),
     -5px  4px  6px rgba(0,0,0,.23),
     -1px  1px  4px rgba(0,0,0,.26);
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn-real:hover { transform: translateY(-2px); }
.btn-real .av {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  outline: 1px solid rgba(255,255,255,.25);
  outline-offset: -1px;
}
.btn-real .btn-cal {
  height: 22px; width: auto;
  margin: 0 -1px;
  object-fit: contain;
  flex: none;
}
.btn-real span {
  background: linear-gradient(to bottom, #ffffff, #e5e7eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-real:focus-visible { outline: 2px solid #28ce68; outline-offset: 3px; }

/* white button + yellow arrow */
.btn-real.white {
  padding: 8px 8px 8px 22px;
  background-image: linear-gradient(198deg, #ffffff, #f1f1ef);
  outline: 1px solid rgba(0,0,0,.06);
  outline-offset: -1px;
  box-shadow:
    -21px 16px 10px rgba(0,0,0,.03),
    -12px  9px  9px rgba(0,0,0,.08),
     -5px  4px  6px rgba(0,0,0,.12),
     -1px  1px  4px rgba(0,0,0,.16),
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(0,0,0,.05);
}
.btn-real.white span {
  background: linear-gradient(to bottom, #141414, #3a3a3a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.btn-real .arrow {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 10px;
  flex: none;
  overflow: hidden;
  color: #1c1c12;
  background-image: linear-gradient(198deg, #ffff7a, #fefe46 45%, #e6e62a);
  outline: 1px solid rgba(255,255,255,.6);
  outline-offset: -1px;
  box-shadow:
    -3px 3px 5px rgba(70,62,0,.18),
    -1px 1px 2px rgba(70,62,0,.25),
    inset 0 -2px 0 rgba(120,110,0,.18);
}
.btn-real .arrow-track {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200%;
  display: flex;
  flex-direction: column;
  will-change: transform;
}
.btn-real .ar-cell {
  height: 50%;
  display: grid;
  place-items: center;
}
.btn-real .arrow,
.btn-real .arrow span { color: #1c1c12; }
.btn-real .arrow svg { width: 16px; height: 16px; }
.btn-real.white:focus-visible { outline: 2px solid #1c1c12; outline-offset: 3px; }

/* ---- green pulsing note ---- */
.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.dot {
  position: relative;
  width: 10px; height: 10px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.dot-core,
.dot-ping {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
}
.dot-core { box-shadow: 0 0 8px rgba(40,206,104,.55); }
.dot-ping { opacity: .55; will-change: transform, opacity; }
.cta-note-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: -0.1px;
}

/* ---- CTA note: hover explanation tooltip ---- */
.cta-note-slots {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  cursor: help;
  outline: none;
}
.cta-note-slots .cta-note-text {
  text-decoration: underline;
  text-decoration-color: rgba(16, 24, 40, .28);
  text-underline-offset: 3px;
  transition: text-decoration-color .18s ease;
}
.cta-note-q {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color .18s ease;
}
.cta-note-slots:hover .cta-note-text,
.cta-note-slots:focus-visible .cta-note-text {
  text-decoration-color: var(--ink-soft);
}
.cta-note-slots:hover .cta-note-q,
.cta-note-slots:focus-visible .cta-note-q { color: var(--ink-soft); }

.cta-note-tip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  width: max-content;
  max-width: 300px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.1px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 18px 40px -14px rgba(16, 24, 40, .28);
  border: 1px solid rgba(16, 24, 40, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 20;
  pointer-events: none;
}
.cta-note-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid rgba(16, 24, 40, .06);
  border-bottom: 1px solid rgba(16, 24, 40, .06);
  transform: translateY(-50%) rotate(45deg);
}
.cta-note-slots:hover .cta-note-tip,
.cta-note-slots:focus-visible .cta-note-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---- dashboards ---- */
.dash-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 2px 6px rgba(16,24,40,.04),
    0 34px 70px -22px rgba(16,24,40,.30);
  background: #fff;
}
.dash-frame img { width: 100%; height: auto; }

.dash {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1080px, 92vw);
  will-change: transform;
}
.dash--1 { z-index: 6; }
.dash--2 { z-index: 7; }
.dash--3 { z-index: 8; }
.dash--4 { z-index: 9; }

/* changing caption above each dashboard (mobile only) */
.dash-caption { display: none; }
.dc { margin: 0; }

/* ======================= BRANDS MARQUEE ======================= */
.brands {
  background: #eef4fb;
  padding: 72px 0 98px;
  text-align: center;
}
.brands-label {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.2px;
  margin-bottom: 42px;
}
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; align-items: center; width: max-content; will-change: transform; }
/* constant gap between every logo → uniform visual spacing */
.marquee-group {
  display: flex;
  align-items: center;
  gap: 62px;
  padding-right: 62px;
}
.brand-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 70px;
}
.brand-logo-item {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .55;
  transition: opacity .3s ease, filter .3s ease;
}
/* square lockup logos read smaller at a given height → allow a bit taller */
.brand-logo-item.is-pad { max-height: 58px; }
/* wordmark logos that read a touch small → slightly larger */
.brand-logo-item.is-wide { max-height: 46px; }
.brand-logo-item:hover { opacity: .9; filter: grayscale(35%); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 860px) {
  .nav, .lang { display: none; }
  .header-inner { grid-template-columns: auto 1fr; }
  .header-actions { justify-self: end; }
  /* scrolled capsule: keep it off the screen edges + a touch shorter */
  .site-header.scrolled .header-inner {
    max-width: none;
    width: calc(100% - 36px);
    margin: 0 auto;
    padding: 0 10px 0 18px;
  }
  .hero-title { letter-spacing: -1px; }
  .journey { height: 560vh; }

  /* captions above the dashboards */
  .dash-caption {
    display: block;
    position: absolute;
    top: 44%;
    left: 0; right: 0;
    z-index: 20;
    padding: 0 26px;
    text-align: center;
    pointer-events: none;
  }
  .dc {
    position: absolute;
    left: 26px; right: 26px; top: 0;
    opacity: 0;
    font-family: "Zimula", "Plus Jakarta Sans", sans-serif;
    font-weight: 500;
    font-size: clamp(1.5rem, 6.4vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -1px;
    color: #10243a;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .journey { height: auto; }
  .stage { position: static; height: auto; overflow: visible; padding-bottom: 60px; }
  .hero-ui { position: relative; min-height: 86vh; }
  .dash { position: relative; top: auto; left: auto; transform: none !important; width: min(1080px,92vw); margin: 20px auto; }
}

/* ======================= FINAL CTA (hero replica in a panel) ======================= */
.cta-final { background: #eef4fb; padding: 40px 20px 92px; }
.cta-panel {
  max-width: 1360px;
  margin: 0 auto;
  border-radius: 30px;
  padding: clamp(60px, 8vw, 112px) 24px;
  background:
    linear-gradient(180deg, rgba(238,244,251,.12) 55%, rgba(238,244,251,.55)),
    url("../assets/img/background.png") center top / cover no-repeat;
  box-shadow: 0 30px 80px -30px rgba(20,40,70,.22), 0 0 0 1px rgba(16,24,40,.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-panel .social-proof { margin-bottom: 22px; }
.cta-title { margin: 0; }
