/* ==========================================================================
   ThunderboltX Website Redesign — Section 02: UAE Compliance
   Reference Design: 21st.dev Hyperiux Timeline Component
   Palette: #0B0C0E (Background), #F2F2F2 (Text), #A3A6AA (Muted Text),
            #A45A0E (Timeline Accent), #D39C67 (Light Copper), #C7C9CC (Silver)
   ========================================================================== */

/* --------------------------------------------------------------------------
   PART 1: Full-Screen Title & Description Introduction
   -------------------------------------------------------------------------- */
.tbx-compliance-intro-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #080909;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 4rem;
  box-sizing: border-box;
  text-align: center;
  overflow: hidden;
}

/* FloatingLines WebGL Background for Section 02 */
.tbx-compliance-bg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

#tbx-floating-lines-timeline,
.tbx-compliance-timeline-section .tbx-compliance-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floating-lines-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.floating-lines-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tbx-compliance-intro-container {
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.tbx-compliance-intro-container * {
  pointer-events: auto;
}

.tbx-compliance-intro-eyebrow {
  font-family: 'Venera', 'Venara', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #D39C67;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.tbx-compliance-intro-eyebrow::before,
.tbx-compliance-intro-eyebrow::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #A45A0E;
}

.tbx-compliance-intro-title {
  font-family: 'Venera', 'Venara', sans-serif;
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 20%, #F5D5C0 36%, #D39C67 52%, #A45A0E 72%, #FFFFFF 90%, #FFFFFF 100%);
  background-size: 260% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #FFFFFF;
  margin: 0 0 1.75rem;
  text-wrap: balance;
  will-change: background-position, transform;
}

.tbx-compliance-intro-subtext {
  font-family: 'Lausanne', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.7;
  color: #A3A6AA;
  max-width: 780px;
  margin: 0 0 2.5rem;
  font-weight: 400;
  text-wrap: balance;
}

.tbx-compliance-scroll-hint-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.tbx-compliance-bounce-arrow {
  display: inline-block;
  font-size: 1.8rem;
  color: #D39C67;
  animation: tbxScrollBounce 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes tbxScrollBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(12px);
  }
}

/* --------------------------------------------------------------------------
   PART 2: Pinned Image + Horizontal Timeline (Hyperiux Product Timeline)
   Geometry mirrors the reference component 1:1; the 600px breakpoint matches
   the breakpoint used by js/compliance-timeline.js.
   -------------------------------------------------------------------------- */
.tbx-compliance-timeline-section {
  --tbx-ct-accent: #A45A0E;
  --tbx-ct-text: #F2F2F2;
  --tbx-ct-muted: #A3A6AA;

  position: relative;
  width: 100%;
  height: 200vw;
  background-color: #080909;
  color: var(--tbx-ct-text);
  font-family: 'Lausanne', sans-serif;
}

.tbx-ct-sticky {
  position: sticky;
  top: 0;
  width: 100vw;
  height: 100vh;
  padding-top: 10%;
  overflow: hidden;
  box-sizing: border-box;
}

.tbx-ct-slider {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5vw;
  width: 240vw;
  height: 30vw;
  margin-right: 2vw;
  padding: 0 5vw;
  box-sizing: border-box;
  will-change: transform;
}

.tbx-ct-image {
  width: 30vw;
  height: 100%;
  overflow: hidden;
  border-radius: 1vw;
}

.tbx-ct-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.tbx-ct-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Center axis: start cap, drawn line, end cap */
.tbx-ct-axis {
  position: absolute;
  left: 0;
  top: 49%;
  display: flex;
  align-items: center;
  width: 100%;
}

.tbx-ct-cap {
  flex-shrink: 0;
  width: 0.8vw;
  height: 0.8vw;
  border-radius: 9999px;
  background-color: var(--tbx-ct-accent);
}

.tbx-ct-line {
  width: 0%;
  height: 1px;
  border-radius: 9999px;
  background-color: var(--tbx-ct-accent);
}

/* Halves */
.tbx-ct-half {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 50%;
}

.tbx-ct-half.is-top {
  gap: 0.5vw;
}

.tbx-ct-label {
  height: 100%;
  padding-top: 2vw;
  box-sizing: border-box;
}

.tbx-ct-half.is-top .tbx-ct-label {
  width: 20%;
}

.tbx-ct-half.is-bottom .tbx-ct-label {
  width: 34%;
}

.tbx-ct-title {
  width: 65%;
  margin: 0;
  font-size: clamp(1.4rem, 2.1vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--tbx-ct-text);
}

.tbx-ct-period {
  margin: 0;
  font-size: clamp(0.8rem, 1.15vw, 1.25rem);
  line-height: 1;
  color: var(--tbx-ct-muted);
}

.tbx-ct-row {
  display: flex;
  width: 100%;
  height: 100%;
}

.tbx-ct-half.is-top .tbx-ct-row {
  column-gap: 15vw;
}

.tbx-ct-half.is-bottom .tbx-ct-row {
  column-gap: 20vw;
  margin-left: 7vw;
}

/* Milestones */
.tbx-ct-item {
  position: relative;
  height: 100%;
  padding: 0 3vw;
  box-sizing: border-box;
}

.tbx-ct-half.is-top .tbx-ct-item {
  width: 30vw;
}

.tbx-ct-half.is-bottom .tbx-ct-item {
  width: 25vw;
}

.tbx-ct-connector {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
}

.tbx-ct-half.is-top .tbx-ct-connector {
  top: 0;
  bottom: 0;
}

.tbx-ct-half.is-bottom .tbx-ct-connector {
  bottom: -1%;
}

.tbx-ct-dot {
  position: relative;
  width: 1vw;
  height: 1vw;
  border-radius: 9999px;
  background-color: var(--tbx-ct-accent);
  transform: translateX(-50%);
}

.tbx-ct-stem {
  width: 1px;
  height: 94%;
  border-radius: 9999px;
  background-color: var(--tbx-ct-accent);
}

.tbx-ct-half.is-top .tbx-ct-stem {
  transform-origin: bottom;
}

.tbx-ct-half.is-bottom .tbx-ct-stem {
  transform-origin: top;
}

.tbx-ct-copy {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.tbx-ct-half.is-top .tbx-ct-copy {
  margin-top: -1vw;
}

.tbx-ct-half.is-bottom .tbx-ct-copy {
  justify-content: flex-end;
  width: 100%;
  height: 100%;
}

.tbx-ct-heading {
  margin: 0;
  font-size: clamp(1.1rem, 1.75vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  width: max-content;
  white-space: nowrap;
  color: var(--tbx-ct-text);
}

.tbx-ct-body {
  width: 90%;
  margin: 0;
  font-size: clamp(0.85rem, 1.1vw, 1.2rem);
  line-height: 1.45;
  color: var(--tbx-ct-muted);
}

@media (max-width: 600px) {
  .tbx-compliance-timeline-section {
    height: 400vh;
  }

  .tbx-ct-sticky {
    top: 5%;
  }

  .tbx-ct-slider {
    width: 800vw;
    height: 80vh;
    padding: 0 7vw;
  }

  .tbx-ct-image {
    width: 85vw;
    height: 65vw;
    border-radius: 5vw;
  }

  .tbx-ct-cap {
    width: 2vw;
    height: 2vw;
  }

  .tbx-ct-half.is-top .tbx-ct-label {
    height: fit-content;
    padding-top: 5vw;
  }

  .tbx-ct-half.is-bottom .tbx-ct-label {
    width: 30%;
    padding-top: 5vw;
  }

  .tbx-ct-title {
    font-size: 6.8vw;
  }

  .tbx-ct-period {
    font-size: 3.4vw;
  }

  .tbx-ct-half.is-top .tbx-ct-row,
  .tbx-ct-half.is-bottom .tbx-ct-row {
    column-gap: 40vw;
  }

  .tbx-ct-half.is-top .tbx-ct-item {
    display: flex;
    flex-direction: column;
  }

  .tbx-ct-half.is-top .tbx-ct-item,
  .tbx-ct-half.is-bottom .tbx-ct-item {
    width: 70vw;
    padding: 0 7vw;
  }

  .tbx-ct-dot {
    width: 2.5vw;
    height: 2.5vw;
  }

  .tbx-ct-half.is-bottom .tbx-ct-stem {
    height: 100%;
  }

  .tbx-ct-half.is-top .tbx-ct-copy {
    margin-top: -2vw;
  }

  .tbx-ct-heading {
    font-size: 5.2vw;
  }

  .tbx-ct-body {
    font-size: 3.8vw;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbx-compliance-bounce-arrow {
    animation: none;
  }
}