/* UiRIDE motion — ported from Angular marketing site */

#main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

html.ur-scroll-smooth {
  scroll-behavior: smooth;
}

/* Custom dotted cursor — hide native pointer on fine desktop pointers */
@media (pointer: fine) {
  body.ur-has-cursor,
  body.ur-has-cursor *:not(input):not(textarea):not(select) {
    cursor: none !important;
  }
}

.ur-cursor-host {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  display: none;
}
.ur-cursor-host.is-on {
  display: block;
}
.ur-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform;
  opacity: 1;
  transition: opacity 180ms ease;
}
.ur-cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #70e0e0;
  box-shadow:
    0 0 0 2px rgba(16, 34, 34, 0.18),
    0 0 18px rgba(112, 224, 224, 0.75);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.ur-cursor__ring-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  will-change: transform;
}
.ur-cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 2px dotted rgba(64, 133, 133, 0.9);
  box-shadow: 0 0 0 1px rgba(112, 224, 224, 0.18);
  animation: urCursorSpin 4.2s linear infinite;
  transition:
    width 180ms ease,
    height 180ms ease,
    margin 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
  opacity: 0.95;
}
.ur-cursor-host.is-hover .ur-cursor__dot {
  transform: scale(1.4);
  background: #408585;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.35),
    0 0 22px rgba(64, 133, 133, 0.7);
}
.ur-cursor-host.is-hover .ur-cursor__ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: #70e0e0;
  animation-duration: 2.2s;
}
.ur-cursor-host.is-down .ur-cursor__dot {
  transform: scale(0.7);
}
.ur-cursor-host.is-down .ur-cursor__ring {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  opacity: 0.65;
}
.ur-cursor-host.is-hidden .ur-cursor {
  opacity: 0;
}
@keyframes urCursorSpin {
  to { transform: rotate(360deg); }
}

/* Particles overlay */
.ur-particles-host {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 40;
  pointer-events: none !important;
}
.ur-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none !important;
}
.ur-particles canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
}
.ur-particles-fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ur-particles-fallback span {
  position: absolute;
  border-radius: 50%;
  background: rgba(112, 224, 224, 0.55);
  box-shadow: 0 0 10px rgba(184, 244, 244, 0.45);
  animation: urDotFloat 6s ease-in-out infinite;
}
@keyframes urDotFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -28px, 0); }
}

/* Scroll progress — brand teal → aqua */
.ur-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10050;
  height: 3px;
  width: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--ur-deep, #2a5c5c), var(--ur-teal, #408585) 45%, var(--ur-aqua, #70e0e0));
  box-shadow: 0 0 14px rgba(64, 133, 133, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
body.ur-scrolled .ur-scroll-progress {
  opacity: 1;
}

/* Header denser when scrolled — handled in site.css (.site-header__shell) */

/* Scroll reveal */
.ur-reveal-target {
  opacity: 1;
  transform: none;
}
.ur-reveal-target.ur-motion-on:not(.is-inview) {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition:
    opacity 780ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.ur-reveal-target.ur-motion-on.is-inview {
  opacity: 1;
  transform: none;
}

/* Staggered how-it-works steps */
.band.is-inview .step {
  animation: urRise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 80ms;
}
.band.is-inview .step + .step {
  animation-delay: 160ms;
}
.band.is-inview .step + .step + .step {
  animation-delay: 240ms;
}
.band.is-inview .step + .step + .step + .step {
  animation-delay: 320ms;
}

@keyframes urRise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Button / card hover lifts (match Angular) */
.ur-btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}
.ur-btn:hover {
  transform: translateY(-2px);
}
.card {
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.card:hover {
  transform: translateY(-4px) rotateX(1deg);
  box-shadow: 0 22px 40px rgba(30, 60, 60, 0.12);
  border-color: rgba(64, 133, 133, 0.28);
}
.jump__rail a {
  transition: color 160ms ease, transform 160ms ease;
}
.jump__rail a:hover,
.jump__rail a.is-active {
  color: var(--ur-deep);
  transform: translateY(-1px);
}
.topic-chips li {
  transition: transform 180ms ease, background 180ms ease;
}
.topic-chips li:hover {
  transform: translateY(-2px);
  background: rgba(64, 133, 133, 0.18);
}

/* ——— Home hero atmosphere ——— */
.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero--home {
  min-height: min(100vh, 920px);
  min-height: min(100dvh, 920px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4.5rem, 8vw, 5.5rem);
  background: transparent;
  color: #fff;
}
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 60% at 72% 42%, rgba(112, 224, 224, 0.5), transparent 62%),
    radial-gradient(55% 45% at 18% 78%, rgba(42, 92, 92, 0.5), transparent 58%),
    linear-gradient(125deg, #0f2c2c 0%, #1a4848 32%, #347070 62%, #5ec8c8 100%);
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}
.page-hero:not(.page-hero--home) .hero-atmosphere {
  background:
    radial-gradient(70% 55% at 78% 28%, rgba(112, 224, 224, 0.28), transparent 58%),
    linear-gradient(135deg, #1a3838 0%, #244848 42%, #2f5c5c 100%);
  clip-path: none;
  animation: heroDrift 12s ease-in-out infinite alternate;
}
.hero-atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(8, 24, 24, 0.42) 0%, rgba(8, 24, 24, 0.12) 48%, transparent 72%);
}
.hero-atmosphere__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 68% 45%, #000 18%, transparent 70%);
  animation: meshDrift 18s linear infinite;
}
.hero-atmosphere__route {
  position: absolute;
  right: 8%;
  top: 18%;
  width: min(42vw, 420px);
  height: min(52vh, 460px);
  border: 2px dashed rgba(255, 255, 255, 0.22);
  border-radius: 48% 52% 40% 60% / 45% 40% 60% 55%;
  transform: rotate(-12deg);
  animation: routeSpin 28s linear infinite;
}
.hero-atmosphere__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: urGlowDrift 10s ease-in-out infinite alternate;
}
.hero-atmosphere__blob--1 {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  right: 6%;
  top: 10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34), transparent 68%);
}
.hero-atmosphere__blob--2 {
  width: min(22vw, 220px);
  height: min(22vw, 220px);
  right: 30%;
  bottom: 20%;
  background: radial-gradient(circle, rgba(112, 224, 224, 0.42), transparent 70%);
  animation-delay: -3s;
}
.hero-atmosphere__blob--3 {
  width: 110px;
  height: 110px;
  right: 20%;
  top: 52%;
  background: rgba(255, 255, 255, 0.14);
  animation-delay: -6s;
}
.hero-atmosphere__spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px 6px rgba(112, 224, 224, 0.65);
  animation: sparkFloat 5.5s ease-in-out infinite;
}
.hero-atmosphere__spark--1 { right: 24%; top: 26%; }
.hero-atmosphere__spark--2 {
  right: 14%;
  top: 60%;
  animation-delay: -2.2s;
  width: 6px;
  height: 6px;
}
.hero-atmosphere__ring {
  position: absolute;
  right: 12%;
  top: 22%;
  width: min(38vw, 320px);
  height: min(38vw, 320px);
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  animation: routeSpin 34s linear infinite;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}
.page-hero--home .page-hero__inner {
  width: min(1180px, calc(100% - (var(--ur-gutter) * 2)));
}

.hero-anim {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  animation: heroRise 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.page-hero--home .home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  color: #0f2a2a;
  background: rgba(184, 244, 244, 0.92);
  box-shadow: 0 10px 24px rgba(8, 30, 30, 0.18);
}

.page-hero__stage {
  position: relative;
  min-height: min(56vh, 540px);
  perspective: 1600px;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 100%;
  transform: translate3d(0, var(--ur-parallax-y, 0px), 0);
  transition: transform 0.12s linear;
  animation: heroRise 900ms cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}
.page-hero__glow {
  position: absolute;
  width: min(92%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), rgba(112, 224, 224, 0.2) 45%, transparent 70%);
  filter: blur(14px);
  animation: urGlow 3.6s ease-in-out infinite;
}
.page-hero__device {
  position: relative;
  z-index: 2;
  animation: urFloatPhone 5.2s ease-in-out 1s infinite;
}
.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: urOrb 5.5s ease-in-out infinite;
}
.page-hero__orb--a {
  width: 120px;
  height: 120px;
  left: 0;
  top: 12%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(1px);
}
.page-hero__orb--b {
  width: 78px;
  height: 78px;
  right: 0;
  bottom: 14%;
  background: rgba(112, 224, 224, 0.4);
  animation: urOrb 4.5s ease-in-out infinite reverse;
}
.page-hero__orb--c {
  width: 42px;
  height: 42px;
  right: 22%;
  top: 16%;
  background: rgba(255, 255, 255, 0.24);
  animation: urOrb 6.5s ease-in-out infinite;
}

.hero-cta-pulse {
  animation: ctaPulse 2.8s ease-in-out 1.2s infinite;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 2;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  opacity: 0;
  animation: heroRise 700ms ease 1.1s forwards;
}
.hero-scroll span {
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
  animation: scrollDot 1.4s ease-in-out infinite;
}

/* Contact / safety swinging panel */
.hero-panel {
  position: relative;
  width: min(280px, 78%);
  margin: 0 auto;
  animation: panelFloat 5.4s ease-in-out infinite;
  perspective: 1200px;
}
.hero-panel__card {
  position: relative;
  z-index: 2;
  padding: 1.35rem 1.25rem;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  box-shadow: 0 28px 50px rgba(6, 22, 22, 0.35);
  color: #fff;
  animation: panelSwing 7s ease-in-out infinite;
  transform-style: preserve-3d;
}
.hero-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8f4f4;
}
.hero-panel__live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70e0e0;
  box-shadow: 0 0 0 0 rgba(112, 224, 224, 0.55);
  animation: panelPing 1.6s ease-out infinite;
}
.hero-panel__card strong {
  display: block;
  font-family: var(--ur-display);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
.hero-panel__card > span {
  display: block;
  margin-bottom: 1rem;
  opacity: 0.85;
  font-size: 0.92rem;
}
.hero-panel__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.hero-panel__card li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.88rem;
}
.hero-panel__card li em {
  font-style: normal;
  opacity: 0.7;
}
.hero-panel__card li.is-hot {
  background: rgba(112, 224, 224, 0.22);
}

/* Cities live pulse */
.cities-list li.is-live {
  background: linear-gradient(135deg, rgba(112, 224, 224, 0.18), #fff 55%);
  border-color: rgba(64, 133, 133, 0.28);
  position: relative;
  padding-left: 2.4rem;
}
.cities-list li.is-live::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #2a8a8a;
  box-shadow: 0 0 0 0 rgba(64, 133, 133, 0.45);
  animation: cityPulse 1.8s ease-out infinite;
}
.cities-list li {
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.cities-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(30, 60, 60, 0.1);
}

@keyframes heroRise {
  to { opacity: 1; transform: none; }
}
@keyframes urOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes urGlowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.65; }
  to { transform: translate3d(2%, -3%, 0) scale(1.08); opacity: 1; }
}
@keyframes urFloatPhone {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
@keyframes ctaPulse {
  0%, 100% {
    transform: translateY(0);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 16px 34px rgba(16, 50, 50, 0.32);
  }
  50% {
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.55) inset,
      0 20px 40px rgba(16, 50, 50, 0.4);
  }
}
@keyframes sparkFloat {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-18px); opacity: 1; }
}
@keyframes meshDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}
@keyframes routeSpin {
  from { transform: rotate(-12deg); }
  to { transform: rotate(348deg); }
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
@keyframes urGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.8; }
}
@keyframes heroDrift {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(8deg); }
}
@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes panelSwing {
  0%, 100% { transform: rotateY(-10deg) rotateX(4deg); }
  50% { transform: rotateY(8deg) rotateX(-2deg); }
}
@keyframes panelPing {
  0% { box-shadow: 0 0 0 0 rgba(112, 224, 224, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(112, 224, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(112, 224, 224, 0); }
}
@keyframes cityPulse {
  0% { box-shadow: 0 0 0 0 rgba(64, 133, 133, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(64, 133, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(64, 133, 133, 0); }
}

@media (max-width: 768px) {
  .hero-cta-pulse { animation: none; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ur-cursor-host,
  .ur-particles-host,
  .ur-scroll-progress {
    display: none !important;
  }
  .ur-reveal-target,
  .hero-anim,
  .page-hero__device,
  .page-hero__orb,
  .page-hero__glow,
  .hero-atmosphere__mesh,
  .hero-atmosphere__route,
  .hero-atmosphere__blob,
  .hero-atmosphere__spark,
  .hero-atmosphere__ring,
  .hero-cta-pulse,
  .hero-scroll,
  .hero-panel,
  .hero-panel__card,
  .hero-panel__live i,
  .cities-list li.is-live::before,
  .band.is-inview .step {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .page-hero__stage {
    transform: none !important;
  }
  .ur-btn:hover,
  .card:hover {
    transform: none;
  }
}

@media (hover: none) {
  .ur-btn:hover,
  .card:hover {
    transform: none;
  }
}
