/* ==========================================================================
   Datasee.AI — Shared Motion & Component Styles
   Preserves original Stitch design tokens; adds the motion system only.
   ========================================================================== */

/* ---------- Typography: Avenir Next, with a self-hosted Avenir-style
   fallback (Nunito Sans Variable) for systems that don't have Avenir Next
   installed. Covers weights 400-800 from two small variable-font files. ---- */
@font-face {
  font-family: "Nunito Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src:
    url(../assets/fonts/nunito-sans-latin-wght-normal.woff2)
      format("woff2-variations"),
    url(../assets/fonts/nunito-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito Sans Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src:
    url(../assets/fonts/nunito-sans-latin-ext-wght-normal.woff2)
      format("woff2-variations"),
    url(../assets/fonts/nunito-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html {
  scroll-behavior: auto; /* Lenis / GSAP handle smooth scroll when active */
}

body {
  overflow-x: clip;
}
/* Phones: the fixed 500px ambient glow (top of index.html) widened the mobile
   layout viewport, letting the whole page pan sideways; body's clip can't
   catch it since it's positioned against the page, not body */
@media (max-width: 639px) {
  body > .w-\[500px\] {
    max-width: 100%;
  }
}

::selection {
  background: #00a6e6;
  color: #ffffff;
}

/* Lenis smooth-scroll root */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---------- Utility reveal classes (driven by GSAP ScrollTrigger) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  will-change: transform, opacity;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Hero section entrance: text and visual appear together smoothly without delay */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-entrance {
  animation: heroEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-entrance {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Hero video. Mobile/tablet (<1024px): full-width 16:9 band below the
   tagline, never cropped, with a white fade at its top edge so it blends into
   the text area. Desktop: fills the whole hero behind the tagline, with a
   left-to-right dark navy gradient keeping the (white) tagline text readable
   while the right side of the footage stays clear. */
#hero > :not(.hero-bg-video) {
  position: relative;
  z-index: 1;
}
.hero-bg-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2.5rem 0 -4rem; /* flush with the hero's bottom edge (py-16) */
  overflow: hidden;
}
.hero-bg-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.35) 7%,
    rgba(255, 255, 255, 0) 16%
  );
}
@media (min-width: 1024px) {
  .hero-bg-video {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    margin: 0;
    z-index: 0;
  }
  .hero-bg-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(6, 24, 48, 0.78) 0%,
        rgba(6, 24, 48, 0.6) 30%,
        rgba(6, 24, 48, 0.18) 58%,
        rgba(6, 24, 48, 0) 72%
      ),
      linear-gradient(0deg, rgba(6, 24, 48, 0.35) 0%, rgba(6, 24, 48, 0) 30%);
  }
}

/* ---------- Animated Statistics ---------- */
.stat-value[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ---------- Fullscreen Pinned Video Section ---------- */
.video-pin-section {
  position: relative;
}
.video-pin-stage {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--site-header-h, 56px));
  min-height: calc(100dvh - var(--site-header-h, 56px));
  overflow: hidden;
  background: #020617;
}
@media (max-width: 1023px) {
  .video-pin-stage {
    height: 70vh;
    height: 70dvh;
    min-height: 360px;
  }
}
.video-pin-stage video,
.video-pin-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
}
.video-pin-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 2rem 4rem;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.75), transparent);
  color: #fff;
  text-align: center;
  pointer-events: none;
}

/* ---------- Why Datasee.AI — internal vertical flip cards ---------- */
.metric-flip-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.metric-flip-inner {
  position: relative;
  width: 100%;
}
.metric-face {
  width: 100%;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease;
}
.metric-face-front {
  transform: translateY(0);
}
.metric-face-back {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  opacity: 0;
}
.metric-flip-card.is-active .metric-face-front {
  transform: translateY(-100%);
  opacity: 0;
}
.metric-flip-card.is-active .metric-face-back {
  transform: translateY(0);
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .metric-face {
    transition: opacity 0.3s ease;
  }
  .metric-face-front {
    transform: none !important;
  }
  .metric-face-back {
    transform: none !important;
    position: absolute;
    inset: 0;
  }
  .metric-flip-card.is-active .metric-face-front {
    opacity: 0;
  }
  .metric-flip-card.is-active .metric-face-back {
    opacity: 1;
  }
}

/* ==========================================================================
   Homepage "Explore Our Complete Solutions" (#solutions-showcase) — pinned
   stage stack. Desktop pins a stage sized to the viewport below the sticky
   header and cross-fades absolutely-positioned cards;
   below 1024px (or prefers-reduced-motion) the same markup renders as a
   plain vertical stack in normal document flow — no pin, no horizontal
   scroll, no absolute positioning.
   ========================================================================== */
.hscroll-section {
  position: relative;
}
/* Header height (compacted to h-14/56px in the markup so the pinned
   lifecycle card below gets more vertical room), used so
   .hscroll-pin-viewport can size itself to exactly fill the space below the
   sticky header. Kept as a variable (rather than hard-coded in the media
   query below) because initHorizontalStages() in js/main.js overwrites it
   with the header's real measured height, so the layout stays correct even
   if the header's height ever changes. */
:root {
  --site-header-h: 56px;
}
#hero,
#about,
#why-datasee,
#lifecycle {
  min-height: calc(100dvh - var(--site-header-h, 56px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
@media (min-width: 1024px) {
  #hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  #about {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  #about .my-16,
  #about .sm\:my-20 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  #about .py-10,
  #about .sm\:py-12 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
  /* Why Datasee.AI flows straight into One Platform — no full-screen
     min-height (it left dead space around shorter content) */
  #why-datasee,
  #lifecycle {
    min-height: 0;
  }
  #why-datasee {
    padding-bottom: 2.5rem;
  }
  #lifecycle {
    padding-top: 2.5rem;
  }
}
#lifecycle {
  overflow: visible;
}
.platform-intro-grid {
  display: grid;
  align-items: center;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
}
.platform-laptop-showcase {
  width: min(100%, 38rem);
  margin: 0 auto;
}
.platform-laptop-showcase img {
  display: block;
  width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .platform-intro-grid {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
    gap: 3rem;
    max-width: 80rem;
  }
  .platform-intro-copy {
    text-align: left;
  }
  .platform-intro-copy h2 span.flex {
    justify-content: flex-start;
  }
  .platform-intro-copy p {
    margin-left: 0;
  }
  .platform-laptop-showcase {
    width: 100%;
  }
}
/* Solutions showcase heading sits cleanly above the unified panel */
.solutions-showcase-heading {
  max-width: 52rem;
  margin: 0 auto 0.75rem;
  width: 100%;
}
.hscroll-steps-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
[data-hscroll-dot] > span:last-child {
  transform-origin: center;
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}
[data-hscroll-dot].is-active-dot > span:last-child {
  color: #008dca;
  transform: scale(1.05);
}

/* ---- Mobile / tablet default (<1024px): plain vertical stack ----
   White backdrop behind the white card(s) at every breakpoint, so the
   showcase reads as one continuous white section with the rest of the page. */
.hscroll-pin-viewport {
  position: relative;
  background: #ffffff;
}
@media (max-width: 1023px) {
  .hscroll-pin-viewport {
    padding: 2.5rem 1.25rem 2.5rem;
  }
  .hscroll-track {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .hscroll-track > .hscroll-steps-bar {
    position: sticky;
    top: var(--site-header-h, 56px);
    z-index: 20;
    background: #ffffff;
    padding: 0.75rem 0.5rem;
    border-radius: 0;
    box-shadow: none;
    border: none;
    margin-bottom: 0.75rem;
  }
  .hscroll-track > .hscroll-steps-bar #lifecycle-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    /* Constrain the row to the screen so it scrolls sideways instead of
       overflowing off both edges (and widening the page) on narrow phones */
    align-self: stretch;
    max-width: 100%;
  }
  .hscroll-track > .hscroll-steps-bar #lifecycle-tabs::-webkit-scrollbar {
    display: none;
  }
  .hscroll-track > .hscroll-steps-bar #lifecycle-tabs > [data-hscroll-dot] {
    flex-shrink: 0;
    white-space: nowrap;
  }
  /* Auto margins keep the tabs centred when they fit, and left-aligned
     (first tab fully visible) when the row has to scroll */
  .hscroll-track
    > .hscroll-steps-bar
    #lifecycle-tabs
    > [data-hscroll-dot]:first-child {
    margin-left: auto;
  }
  .hscroll-track
    > .hscroll-steps-bar
    #lifecycle-tabs
    > [data-hscroll-dot]:last-child {
    margin-right: auto;
  }
  .hscroll-panels-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
  }
  .hscroll-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}
.hscroll-panel-visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hscroll-panel-visual img,
.hscroll-panel-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hscroll-panel-content {
  width: 100%;
  box-sizing: border-box;
  padding: 1.75rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 640px) {
  .hscroll-panel-content {
    padding: 2.25rem 2.5rem 2.75rem;
  }
}
.hscroll-panel-heading {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  transform-origin: left center;
  transition: transform 0.35s ease;
}
.hscroll-panel.is-active-panel .hscroll-panel-heading {
  transform: scale(1.06);
}
.hscroll-panel-body {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

/* ---- Desktop (>=1024px): pinned viewport hosts a contained, max-width card
   instead of an edge-to-edge stage.

   The pinned viewport is sized to exactly (100dvh - header height) and the
   card (.hscroll-track) fills whatever is left after the compact step-nav,
   so the whole stage — steps bar + image + content — always sits in one
   unobstructed view: nothing sits under the sticky header, and nothing
   needs its own internal scrollbar. --site-header-h is kept in sync with
   the header's real measured height by initHorizontalStages() in
   js/main.js, and the ScrollTrigger pin start is offset by the same
   amount so the pinned card is never covered by the header. ---- */
@media (min-width: 1024px) {
  .hscroll-pin-viewport {
    height: calc(100dvh - var(--site-header-h, 56px));
    min-height: 520px;
    max-height: 840px;
    overflow: visible;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 2rem 1rem;
    background: #ffffff;
  }
  .hscroll-track {
    position: relative;
    width: 100%;
    max-width: 1240px;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  /* Five stage tabs attached cleanly across the top area of the unified composition */
  .hscroll-track > .hscroll-steps-bar {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.25rem 1.5rem 0.75rem;
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
  }
  .hscroll-track > .hscroll-steps-bar #lifecycle-tabs {
    margin-bottom: 0;
    gap: 0.5rem;
  }
  .hscroll-track > .hscroll-steps-bar [data-hscroll-dot] {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  /* Unified panels wrapper below the top tabs */
  .hscroll-panels-wrapper {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    background: transparent;
  }
  .hscroll-panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: clamp(6.75rem, 8vw, 8.5rem);
    height: 100%;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    border-radius: 0;
    border: none;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1;
    will-change: opacity;
    overflow: hidden;
  }
  .hscroll-panel.is-active-panel {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  .hscroll-panel-visual {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
    background: transparent;
  }
  .hscroll-panel-visual img,
  .hscroll-panel-visual video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
  }
  /* Size the image box to the picture itself (still capped by max-width/
     max-height above) so its rounded corners land on the photo instead of
     on letterbox space. Same rendered size/position as contain-in-100%. */
  .hscroll-panel-visual img {
    width: auto;
    height: auto;
  }
  .hscroll-panel-visual:hover img,
  .hscroll-panel-visual:hover video {
    transform: scale(1.02);
  }

  /* Centered flex stack for content with clamp sizing */
  .hscroll-panel-content {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: clamp(0.75rem, 2.2vh, 1.75rem) clamp(1.5rem, 2.2vw, 2.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.35rem, 1vh, 0.65rem);
  }
  .hscroll-panel-content > * {
    margin-bottom: 0 !important;
  }
  .hscroll-panel-content .flex.flex-wrap {
    gap: 0.35rem 0.45rem;
  }
  .hscroll-panel-content .flex.flex-wrap span {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
}

/* ---------- Decorative orbit icon (desktop-pinned mode only) ---------- */
.hscroll-orbit {
  display: none;
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  z-index: 10;
  pointer-events: none;
}
.hscroll-section.is-pin-active .hscroll-orbit {
  display: block;
}
.hscroll-orbit-ring {
  position: absolute;
  inset: -14px;
  border: 1.5px solid rgba(0, 166, 230, 0.35);
  border-radius: 50%;
  animation: hscroll-orbit-pulse 2.8s ease-out infinite;
}
.hscroll-orbit-dots {
  position: absolute;
  inset: -22px;
  animation: hscroll-orbit-spin 10s linear infinite;
}
.hscroll-orbit-dots i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00a6e6;
}
.hscroll-orbit-dots i:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hscroll-orbit-dots i:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translate(50%, -50%);
}
.hscroll-orbit-dots i:nth-child(3) {
  bottom: 6%;
  left: 12%;
  transform: translate(-50%, 50%);
}
.hscroll-orbit-core {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #00a6e6, #0080ff);
  box-shadow: 0 8px 22px -8px rgba(0, 166, 230, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hscroll-orbit-core svg {
  position: absolute;
  width: 26px;
  height: 26px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hscroll-orbit-core svg.is-active-icon {
  opacity: 1;
}
@keyframes hscroll-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hscroll-orbit-pulse {
  0% {
    opacity: 0.55;
    transform: scale(0.85);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hscroll-orbit-ring,
  .hscroll-orbit-dots {
    animation: none;
  }
}

/* Stage indicator "pills" — kept in sync with the active card by JS toggling
   .is-active-dot while the desktop pin is active. Below 1024px the dots
   show no active state but still work as jump links to each card. */
[data-hscroll-dot] {
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease;
  cursor: pointer;
  background: none;
}
[data-hscroll-dot] .hscroll-dot-num {
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
[data-hscroll-dot].is-active-dot {
  border-color: rgba(0, 166, 230, 0.45);
  background: rgba(0, 166, 230, 0.06);
}
[data-hscroll-dot].is-active-dot .hscroll-dot-num {
  background: #00a6e6;
  color: #ffffff;
}
[data-hscroll-dot]:focus-visible {
  outline: 2px solid #00a6e6;
  outline-offset: 2px;
}

.hscroll-progress-track {
  position: relative;
  height: 3px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.hscroll-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: #00a6e6;
  border-radius: 999px;
}

/* ---------- Global Presence Map — 6th section ----------
   Normal in-flow section (no pin, no position:fixed) so it can never
   overlap the section above or below it — it just stacks like every
   other section on the page. overflow:hidden clips the panel's brief
   off-screen starting offset during the entrance so nothing spills into
   neighboring sections. The whole panel (map, text, cards, blue
   background — everything inside .gp-globe-panel) moves as ONE unit:
   a short upward slide plus a fade, as a single time-based transition (not
   scroll-scrubbed) once the section scrolls into view
   (initGlobePanelEntrance in js/main.js toggles .is-inview). */
.gp-scroll-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #39bef1;
}
.gp-globe-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(24px);
  opacity: 0;
  transition:
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.gp-scroll-section.is-inview .gp-globe-panel {
  transform: translateY(0);
  opacity: 1;
}
@media (max-width: 1023px) {
  .gp-scroll-section {
    min-height: auto;
    overflow: visible;
  }
  .gp-globe-panel {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  .gp-globe-panel .gp-widget {
    min-height: auto !important;
    height: auto !important;
  }
  .gp-globe-panel .gp-card {
    min-height: auto !important;
    height: auto !important;
  }
}
/* Desktop only (>=1024px, where the panel is one fixed screen tall). Below
   that the panel is height:auto, so this height-based chain collapsed the
   map to 0x0; mobile/tablet use the widget's own width-based sizing
   (index.html) instead. */
@media (min-width: 1024px) {
  .gp-globe-panel .gp-widget {
    height: 100%;
    min-height: 0;
  }
  .gp-globe-panel .gp-card {
    height: 100%;
    min-height: 0;
  }
  /* The map's own SVG has a 1:1 (square) viewBox and was originally sized by
   WIDTH (width:100%; height:auto), which is fine on a page that can grow
   taller to fit it, but overflows/clips on a fixed one-screen-tall panel
   whenever the map's 60%-width column is wider than the panel is tall
   (any typical wide/short desktop window). Constraining the whole chain
   by HEIGHT instead — capped at the available space and centered — keeps
   the globe (and the stats column next to it) fully visible with nothing
   cut off, at whatever size actually fits. */
  .gp-globe-panel .gp-content-row {
    height: 100%;
  }
  .gp-globe-panel .gp-map-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gp-globe-panel .gp-map {
    height: 100%;
    width: auto;
    max-width: 100%;
  }
  .gp-globe-panel .gp-map svg {
    height: 100%;
    width: auto;
    max-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gp-globe-panel {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ---------- Marquee (client logos) ---------- */
@keyframes marquee-scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-marquee-single {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee-scroll-left 50s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}
.marquee-container:hover .animate-marquee-single {
  animation-play-state: paused;
}
.marquee-mask {
  mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 6%,
    black 94%,
    transparent
  );
}
.logo-chip img {
  filter: none;
  opacity: 1;
  transition: transform 0.3s ease;
}
.logo-chip:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .animate-marquee-single {
    animation: none;
  }
}

/* ---------- Mobile nav ---------- */
.mobile-nav-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-nav-panel.is-open {
  max-height: 640px;
}

/* ---------- Nav dropdowns (Home / Solutions) ---------- */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
  z-index: 70;
}
.nav-dropdown-panel a {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
  background: #f0f9ff;
  color: #00a6e6;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-dropdown-caret {
  width: 0.65rem;
  height: 0.65rem;
  transition: transform 0.22s ease;
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-panel {
    transition: opacity 0.01ms ease;
  }
}

/* Mobile in-panel submenu (tap to toggle) */
.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav-submenu.is-open {
  max-height: 320px;
}
.mobile-nav-subtoggle[aria-expanded="true"] .mobile-nav-subcaret {
  transform: rotate(180deg);
}
.mobile-nav-subcaret {
  transition: transform 0.22s ease;
}

/* ---------- Footer link hover (brighten + subtle brand glow) ---------- */
.footer-link {
  display: inline-block;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.65),
    0 0 20px rgba(0, 166, 230, 0.55);
}
.footer-office-item {
  transition:
    background-color 0.22s ease,
    transform 0.22s ease;
  border-radius: 8px;
  padding: 6px 8px;
  margin: -6px -8px;
}
.footer-office-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}
.footer-legal-link {
  color: rgba(255, 255, 255, 0.75);
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}
.footer-legal-link:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer {
  padding-top: 15px !important;
  padding-bottom: 7px !important;
}

/* ---------- Reduced motion global guard ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .video-pin-stage {
    height: auto !important;
    min-height: 60vh;
    position: relative !important;
  }
}

/* ==========================================================================
   Solutions Page Enterprise Design System (Homepage Colors & Typography)
   Homepage Palette: Primary Blue #00A6E6, Hover #0095cf, Dark #0f172a,
   Surfaces bg-slate-50 / bg-sky-50, Borders border-slate-200
   ========================================================================== */

.stage-surface-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.stage-surface-card:hover {
  border-color: rgba(0, 166, 230, 0.35);
  box-shadow: 0 10px 28px -4px rgba(0, 166, 230, 0.1);
  transform: translateY(-2px);
}

.stage-next-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #00a6e6;
  color: #ffffff;
  font-family:
    "Avenir Next",
    "Avenir",
    "Nunito Sans Variable",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px -2px rgba(0, 166, 230, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
}
.stage-next-cta:hover {
  background-color: #0095cf;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px rgba(0, 166, 230, 0.45);
  color: #ffffff;
}

/* ==========================================================================
   Large-screen scaling (>=1280px — mobile/tablet untouched). The root
   font-size is not changed; fixed-px widths/type are raised with
   xl:/2xl:/3xl:/4xl: classes in the markup (3xl = 1920px, 4xl = 2560px,
   see tailwind.config screens) and with the component rules below.
   ========================================================================== */
/* Desktop (>=1280px): let fixed-px component caps follow the wider
   xl: containers set in the markup. */
@media (min-width: 1280px) {
  .hscroll-track {
    max-width: 1320px;
  }

  /* Solutions stage media fills its (xl:-widened) column, but never grows
     taller than the viewport leaves room for below the sticky nav + heading */
  .stage-media-wrap {
    max-width: min(
      100%,
      max(56rem, calc((100dvh - 20rem) * 16 / 9))
    ) !important;
  }
}

@media (min-width: 1536px) {
  .platform-intro-grid {
    max-width: 88rem;
    gap: 4rem;
  }
  .platform-laptop-showcase img {
    max-height: 64vh;
  }

  .hscroll-pin-viewport {
    max-height: 900px;
  }
  .hscroll-track {
    max-width: 1440px;
  }
  .hscroll-panel-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  }
  .hscroll-panel-body {
    font-size: clamp(1rem, 1.3vw, 1.35rem);
  }

  /* Global presence widget: lift its px caps so it doesn't stay small */
  .gp-globe-panel .gp-card {
    padding: clamp(64px, 4vw, 120px);
  }
  .gp-globe-panel .gp-content-row {
    gap: clamp(40px, 3vw, 96px);
  }
  .gp-globe-panel .gp-connect-eyebrow {
    font-size: clamp(12.5px, 0.8vw, 20px);
  }
  .gp-globe-panel .gp-connect-title {
    font-size: clamp(32px, 2.2vw, 56px);
  }
  .gp-globe-panel .gp-connect-list {
    gap: clamp(18px, 1.2vw, 30px);
  }
  .gp-globe-panel .gp-connect-list::before {
    top: calc(clamp(58px, 3.8vw, 96px) / 2);
    bottom: calc(clamp(58px, 3.8vw, 96px) / 2);
  }
  .gp-globe-panel .gp-connect-item {
    padding: clamp(12px, 0.8vw, 20px) clamp(22px, 1.4vw, 34px)
      clamp(12px, 0.8vw, 20px) clamp(9px, 0.6vw, 14px);
  }
  .gp-globe-panel .gp-connect-icon {
    width: clamp(58px, 3.8vw, 96px);
    height: clamp(58px, 3.8vw, 96px);
  }
  .gp-globe-panel .gp-connect-label {
    font-size: clamp(13px, 0.85vw, 20px);
  }
  .gp-globe-panel .gp-connect-value .gp-tilde {
    font-size: clamp(19px, 1.2vw, 30px);
  }
  .gp-globe-panel .gp-connect-value .gp-num {
    font-size: clamp(35px, 2.3vw, 58px);
  }
  .gp-globe-panel .gp-connect-value .gp-unit {
    font-size: clamp(16px, 1vw, 26px);
  }
}

@media (min-width: 1920px) {
  .hscroll-pin-viewport {
    max-height: 1000px;
  }
  .hscroll-track {
    max-width: min(1840px, calc(100vw - 10rem));
  }
  .hscroll-orbit-core {
    width: 72px;
    height: 72px;
  }
  .hscroll-orbit-core svg {
    width: 30px;
    height: 30px;
  }
}

@media (min-width: 2560px) {
  .hscroll-pin-viewport {
    max-height: 1240px;
  }
  .hscroll-track {
    max-width: min(2400px, calc(100vw - 10rem));
  }
  .gp-globe-panel .gp-content-row {
    max-width: 2300px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   Solutions stage slider — desktop (>=1024px) full-width layout.
   Media sits left, the stage summary (description, focus, info, 3 cards)
   sits right, and the detail panel + next-stage row run full width below.
   The .stage-intro-grid / .stage-intro-side wrappers are unstyled below
   1024px, so the mobile/tablet stacked layout is unchanged.
   ========================================================================== */
@media (min-width: 1024px) {
  .solution-slide-item .lifecycle-stage-card > div,
  .stage-intro-side > div {
    max-width: none !important;
  }
  .stage-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 3vw, 4.5rem);
    align-items: center;
    margin-bottom: 2.25rem;
  }
  .stage-intro-grid > div:first-child {
    margin: 0 !important; /* grid items with auto margins shrink to 0 width */
    width: 100%;
  }
  .stage-intro-side > div.sm\:flex-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .stage-intro-side > div.sm\:flex-row > div {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }
  .stage-intro-side > div.sm\:flex-row > div > span:not(:first-child) {
    flex-shrink: 0;
    max-width: 100%;
  }
  .stage-intro-grid .stage-media-wrap {
    max-width: 100% !important;
  }
  .stage-intro-side > div:last-child {
    margin-bottom: 0 !important;
  }
  .stage-intro-side .text-center {
    text-align: left;
  }
  .stage-intro-side p {
    max-width: none;
    margin-left: 0;
  }
  .stage-intro-side .justify-center {
    justify-content: flex-start;
  }
  .stage-intro-side .px-1 {
    padding-left: 0;
    padding-right: 0;
  }
  /* 3 summary cards stack in the side column until there is room for 3 across */
  .stage-intro-side .grid.md\:grid-cols-3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .stage-intro-side .stage-surface-card {
    padding: 0 !important;
  }

  /* Detail panel is visually transparent — drop its invisible padding */
  .lifecycle-stage-card > .stage-surface-card {
    padding: 0 !important;
    margin-bottom: 1.75rem !important;
  }

  /* Single-line stage heading: larger now that it spans the full width */
  .stage-main-heading {
    font-size: min(2.75rem, 2.4vw) !important;
  }
  .solution-slide-item .lifecycle-stage-card > div:first-child {
    margin-bottom: 1.5rem !important;
  }
}
@media (min-width: 1920px) {
  .stage-intro-side .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }
  @media (min-width: 1024px) {
    .solution-slide-item .stage-intro-side p {
      word-spacing: 0.2rem !important;
    }
  }
}

/* ==========================================================================
   DS-01 — Global responsive guard + unified tokens (mobile-first fix pack)
   No markup rebuild needed. Single source for brand tokens, overflow,
   fluid type, tab scroll, grid rhythm, nav lock.
   ========================================================================== */
:root {
  --ds-blue: #00a6e6;
  --ds-blue-hover: #0095cf;
  --ds-ink: #0f172a;
  --ds-body: #5a6474;
  --ds-line: #e2e8f0;
}
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
/* Ambient glows: never widen page on phones */
body > div[class*="w-[850px]"],
body > div[class*="w-[500px]"] {
  max-width: 100vw;
}
@media (max-width: 639px) {
  body > div[class*="w-[850px]"] {
    width: min(420px, 100vw) !important;
    height: min(420px, 100vw) !important;
    right: 0 !important;
  }
  body > div[class*="w-[500px]"] {
    width: min(320px, 100vw) !important;
    height: min(320px, 100vw) !important;
  }
}
/* Fluid hero: 52px base → clamp on small phones */
@media (max-width: 639px) {
  [class*="text-[52px]"],
  [class*="text-[2.5rem]"] {
    font-size: clamp(2.25rem, 10vw, 3.25rem) !important;
    line-height: 1.1 !important;
    overflow-wrap: break-word;
  }
}
/* Hero: natural height on phones/tablets, full viewport only desktop.
   min-height:100dvh + centered content pushed video band far down,
   leaving dead white gap (see mobile screenshot). */
@media (max-width: 1023px) {
  #hero,
  #about,
  #why-datasee,
  #lifecycle {
    min-height: 0 !important;
  }
  #hero {
    padding-top: 1.5rem;
    padding-bottom: 0;
  }
  .hero-bg-video {
    margin: 2rem 0 0;
  }
}
/* Solutions tabs: left-align when scrollable, center when fit */
#lifecycle-tabs,
div[class*="overflow-x-auto"][class*="justify-center"] {
  justify-content: flex-start !important;
  scrollbar-width: none;
  scroll-padding-inline: 1.5rem;
}
#lifecycle-tabs::-webkit-scrollbar,
div[class*="overflow-x-auto"]::-webkit-scrollbar {
  display: none;
}
@media (min-width: 640px) {
  #lifecycle-tabs,
  div[class*="overflow-x-auto"][class*="justify-center"] {
    justify-content: center !important;
  }
}
/* Solutions stage heading: wrap up to tablet, single line only desktop */
@media (max-width: 1023px) {
  .stage-main-heading {
    white-space: normal !important;
    text-wrap: balance;
    line-height: 1.3 !important;
  }
}
@media (max-width: 767px) {
  .stage-main-heading {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
  }
}
/* Tab pills + subtabs: 44px touch floor */
.nav-step-btn {
  min-height: 44px;
}
/* Metric flip cards: fixed h → min-h so zoom/text never clips */
.metric-flip-card[class*="h-[210px]"] {
  height: auto !important;
  min-height: 210px;
}
@media (min-width: 640px) {
  .metric-flip-card[class*="h-[210px]"] {
    min-height: 230px;
  }
}
@media (min-width: 1024px) {
  .metric-flip-card[class*="h-[210px]"] {
    min-height: 260px;
  }
}
/* Media safety */
img,
video,
svg,
canvas {
  max-width: 100%;
}
img,
video {
  height: auto;
}
div[class*="aspect-"] > img,
div[class*="aspect-"] > video {
  height: 100%;
}
/* Touch targets */
@media (max-width: 1023px) {
  [data-nav-toggle],
  .mobile-nav-subtoggle {
    min-width: 44px;
    min-height: 44px;
  }
}
/* Mobile nav: viewport-capped, scrollable, body lock */
.mobile-nav-panel.is-open {
  max-height: min(78dvh, 640px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-submenu.is-open {
  max-height: min(50dvh, 320px);
  overflow-y: auto;
}
body.nav-locked {
  overflow: hidden;
}
/* Header scroll state */
[data-site-header].is-scrolled {
  box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.18);
}
/* Unified footer link (single hover, overrides inline dup) */
.footer-link {
  text-shadow: none !important;
}
.footer-link:hover,
.footer-link:focus-visible {
  color: #fff !important;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.65),
    0 0 20px rgba(0, 166, 230, 0.55) !important;
}
