/* ============================================================
   TRIPSIL — Shared Components
   Navbar, Footer, Cursor, Scroll Animations, Marquee,
   Download CTA, Stats Bar, Floating Badges.
   ============================================================ */


/* ============================================================
   TRAVEL CURSOR
   ============================================================ */
#cur-ring {
  position: fixed;
  pointer-events: none;
  z-index: var(--z-cursor);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, 0.55);
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  mix-blend-mode: multiply;
}

#cur-ring.hov {
  width: 58px;
  height: 58px;
  border-color: rgba(14, 165, 233, 0.85);
  background: rgba(14, 165, 233, 0.07);
}

#cur-ring.click {
  width: 26px;
  height: 26px;
  background: rgba(37, 99, 235, 0.18);
}

#cur-dot {
  position: fixed;
  pointer-events: none;
  z-index: var(--z-tip);
  font-size: 22px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.20));
  user-select: none;
}

#cur-tip {
  position: fixed;
  pointer-events: none;
  z-index: var(--z-tip);
  background: var(--dark);
  color: white;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -38px);
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

#cur-tip.show {
  opacity: 1;
}

.cur-trail {
  position: fixed;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: trailFade 0.65s ease forwards;
}

@keyframes trailFade {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
  }
}

@media (max-width: 768px) {

  #cur-ring,
  #cur-dot,
  #cur-tip {
    display: none;
  }
}


/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.d1 {
  transition-delay: 0.10s;
}

.d2 {
  transition-delay: 0.20s;
}

.d3 {
  transition-delay: 0.30s;
}

.d4 {
  transition-delay: 0.40s;
}

.d5 {
  transition-delay: 0.50s;
}

.d6 {
  transition-delay: 0.60s;
}

.d7 {
  transition-delay: 0.70s;
}

.d8 {
  transition-delay: 0.80s;
}


/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.50);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(37, 99, 235, 0.10);
}

.nav-inner {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--grad-hero);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  transition: transform var(--transition), box-shadow 0.3s ease;
  flex-shrink: 0;
}

.nav-logo:hover .nav-logo-mark {
  transform: scale(1.10) rotate(-5deg);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.45);
}

.nav-logo-mark svg {
  width: 20px;
  height: 20px;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-hero);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA button */
.btn-nav {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--grad-hero);
  color: white;
  border: none;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.38);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(14, 165, 233, 0.52);
}

.btn-nav:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}


/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 36px 24px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -2px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}


/* ============================================================
   FLOATING BADGES
   ============================================================ */
.floating-badge {
  position: absolute;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  animation: badgeFloat 5s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.90);
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.floating-badge.badge-1 {
  top: 30px;
  left: -40px;
  animation-delay: 0.5s;
}

.floating-badge.badge-2 {
  bottom: 60px;
  right: -30px;
  animation-delay: 2.5s;
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon.green {
  background: linear-gradient(135deg, #DCFCE7, #BBF7D0);
}

.badge-icon.blue {
  background: linear-gradient(135deg, #DBEAFE, #BAE6FD);
}

.badge-icon.purple {
  background: linear-gradient(135deg, #EDE9FE, #DDD6FE);
}

.badge-icon.orange {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.badge-label-sm {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.badge-label-lg {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

@keyframes badgeFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.03);
  }
}

@media (max-width: 768px) {
  .floating-badge {
    display: none;
  }
}


/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding: 52px 0;
  background: var(--dark);
  overflow: hidden;
  position: relative;
}

.marquee-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.marquee-label {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.marquee-track {
  display: flex;
  gap: 14px;
  animation: marqueeScroll 32s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-pill {
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.marquee-pill:hover {
  border-color: rgba(14, 165, 233, 0.50);
  background: rgba(14, 165, 233, 0.10);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Cycle through brand colours */
.marquee-pill:nth-child(5n+1) .pill-dot {
  background: #2563EB;
}

.marquee-pill:nth-child(5n+2) .pill-dot {
  background: #0EA5E9;
}

.marquee-pill:nth-child(5n+3) .pill-dot {
  background: #14B8A6;
}

.marquee-pill:nth-child(5n+4) .pill-dot {
  background: #F59E0B;
}

.marquee-pill:nth-child(5n+0) .pill-dot {
  background: #EC4899;
}


/* ============================================================
   DOWNLOAD CTA SECTION
   ============================================================ */
.download-cta {
  padding: 120px 0;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
}



.download-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255, 255, 255, 0.09) 0%, transparent 70%);
  pointer-events: none;
}

.download-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.cta-aurora {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-aurora);
  z-index: 1;
}

.cta-inner {
  position: relative;
  z-index: 2;
}

.cta-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.80);
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.20);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-title span {
  color: #FDE68A;
}

.cta-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 44px;
  line-height: 1.6;
}

.cta-store-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cta-trust {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-trust-item svg {
  color: #FDE68A;
}

@media (max-width: 768px) {
  .cta-store-btns {
    flex-direction: column;
    align-items: center;
  }
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #020617;
  padding: 80px 0 40px;
  color: #94A3B8;
  position: relative;
  overflow: hidden;
}

.footer-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 0.6) 100%);
  z-index: 1;
}


.footer-grad-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-hero);
  z-index: 2;
}

.footer .container {
  position: relative;
  z-index: 3;
}


.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #94A3B8;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #94A3B8;
}

.footer-bottom a:hover {
  color: white;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
