/* Herozion Cloud  Apple-like pacing, Herozion palette */

.cloud-page {
  --cl-ink: #f5f5f7;
  --cl-muted: #86868b;
  --cl-dim: #6e6e73;
  --cl-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --cl-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  background: #000;
  color: var(--cl-ink);
  overflow-x: clip;
}

.cloud-page #navbar {
  background: rgba(247, 249, 252, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: none;
}

.cloud-page #navbar.is-scrolled {
  background: rgba(247, 249, 252, 0.92);
}

.cloud-page .nav-logo {
  color: #111827;
}

.cloud-page .nav-logo-img {
  filter: none;
}

.cloud-page .nav-links a {
  color: #374151;
}

.cloud-page .nav-links a:hover {
  color: #111827;
}

.cloud-page .nav-burger span {
  background: #111827;
}

/* ── Reveal ── */
.cl-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1.05s var(--cl-ease-out),
    transform 1.05s var(--cl-ease-out);
  will-change: opacity, transform;
}

.cl-reveal.is-in {
  opacity: 1;
  transform: none;
}

.cl-reveal-d1 { transition-delay: 0.08s; }
.cl-reveal-d2 { transition-delay: 0.16s; }
.cl-reveal-d3 { transition-delay: 0.26s; }
.cl-reveal-d4 { transition-delay: 0.36s; }

.cl-grad {
  display: inline-block;
  background: linear-gradient(90deg, #2056df 0%, #4a79d6 48%, #8398c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cl-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-muted);
}

.cl-h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.cl-lead {
  margin: 1em auto 0;
  max-width: 36em;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  color: #a1a1a6;
}

.cl-link {
  color: #2997ff;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s var(--cl-ease);
}

.cl-link:hover {
  opacity: 0.8;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ── */
.cl-s1 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #020308;
  overflow: hidden;
}

.cl-s1-plate {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.cl-s1-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: center top;
}

.cl-s1-copy {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  width: min(92%, 920px);
  margin: 0 auto;
  padding: calc(var(--nav-h, 56px) + clamp(28px, 5vh, 56px)) 16px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: normal;
  pointer-events: none;
}

.cl-s1-copy > * {
  pointer-events: auto;
}

.cl-s1-kicker {
  margin: 0 0 14px;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a4b1cd;
}

.cl-s1-title {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #020308;
}

.cl-s1-lead {
  margin: 1.1em 0 0;
  max-width: 38em;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 400;
  line-height: 1.5;
  color: #4a4e58;
}

.cl-browser {
  width: 100%;
  border-radius: clamp(12px, 1.6vw, 18px);
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 28px 80px -36px rgba(15, 23, 42, 0.55),
    0 8px 24px -12px rgba(15, 23, 42, 0.25);
  transform: none;
}

.cl-browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #eef1f6, #e4e8ef);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.cl-browser-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.cl-browser-bar > span:nth-child(1) { background: #ff5f57; }
.cl-browser-bar > span:nth-child(2) { background: #febc2e; }
.cl-browser-bar > span:nth-child(3) { background: #28c840; }

.cl-browser-url {
  margin-left: 10px;
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl-browser-video,
.cl-browser img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  vertical-align: top;
  background: #0b1220;
}

/* ── Dashboard ── */
.cl-s2 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(96px, 16vh, 160px) 0 clamp(120px, 18vh, 180px);
  background: #000;
  overflow: visible;
}

.cl-s2-intro {
  width: min(92%, 720px);
  margin: 0 auto clamp(40px, 7vh, 64px);
  padding: 0 20px;
  text-align: center;
}

.cl-s2 .cl-h2 { color: #f5f5f7; }
.cl-s2 .cl-lead { color: #a1a1a6; }

.cl-bleed {
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  line-height: 0;
}

.cl-bleed[data-cl-lift] {
  perspective: 1200px;
  /* room for the sunk starting position */
  margin-top: 0;
  padding-bottom: clamp(48px, 8vh, 96px);
}

.cl-bleed[data-cl-lift] .cl-browser {
  transform: translate3d(0, 280px, 0) scale(0.88);
  transform-origin: center bottom;
  will-change: transform;
  backface-visibility: hidden;
}

.cl-bleed .cl-browser {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 32px 90px -40px rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
}

.cl-bleed > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.6vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0b1220;
}

/* ── CI/CD ── */
.cl-s3 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #0e121a;
  overflow: hidden;
}

.cl-s3-plate {
  position: relative;
  margin: 0;
  line-height: 0;
}

.cl-s3-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

.cl-s3-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(3%, 6vw, 10%);
  width: min(44%, 480px);
  margin-top: 0;
  translate: 0 -50%;
  text-align: left;
  line-height: normal;
  pointer-events: none;
}

.cl-s3-copy > * {
  pointer-events: auto;
}

.cl-s3-title {
  margin: 0;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #0e121a;
}

.cl-s3-accent {
  color: #3b6ede;
}

.cl-s3-lead {
  margin: 1em 0 0;
  max-width: 22em;
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 400;
  line-height: 1.45;
  color: #545860;
}

@media (max-width: 720px) {
  .cl-s3-copy {
    top: auto;
    bottom: clamp(18px, 4vh, 36px);
    right: 5%;
    left: 5%;
    width: auto;
    translate: none;
    text-align: left;
  }

  .cl-s3-title {
    font-size: clamp(24px, 7vw, 34px);
  }

  .cl-s3-lead {
    max-width: none;
  }
}

/* ── History ── */
.cl-s4 {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(96px, 16vh, 160px) 0;
  background: #000;
}

.cl-s4-inner {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.cl-s4-copy {
  text-align: left;
}

.cl-s4 .cl-h2 { color: #f5f5f7; }
.cl-s4 .cl-lead {
  margin-left: 0;
  margin-right: 0;
  color: #a1a1a6;
}

.cl-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.cl-points li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cl-points li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #2997ff;
  box-shadow: 0 0 12px rgba(41, 151, 255, 0.45);
}

.cl-s4-media {
  margin: 0;
  line-height: 0;
}

.cl-s4-media .cl-browser {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 80px -40px rgba(0, 0, 0, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Close ── */
.cl-close {
  position: relative;
  width: 100%;
  padding: clamp(96px, 18vh, 160px) 20px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(41, 151, 255, 0.16), transparent 65%),
    #000;
  text-align: center;
}

.cl-close-inner {
  width: min(92%, 640px);
  margin: 0 auto;
}

.cl-close-title {
  margin: 0 0 28px;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #f5f5f7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cl-s4-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cl-s4-copy {
    text-align: center;
  }

  .cl-s4 .cl-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cl-points {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .cl-s1-copy {
    padding-top: calc(var(--nav-h, 56px) + 20px);
  }

  .cl-s1-title {
    font-size: clamp(28px, 8.5vw, 40px);
  }

  .cl-s1-lead {
    font-size: 14px;
    max-width: 22em;
  }

  .cl-browser-url {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cl-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cl-bleed[data-cl-lift] .cl-browser {
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 640px) {
  .cl-bleed[data-cl-lift] .cl-browser {
    /* keep motion, slightly softer travel via CSS vars still driven by JS */
    transform-origin: center center;
  }
}
