/* Motion layer: preloader, 3D canvases, cursor, tilt, marquee */
:root {
  --jm-bg: #05201a;
  --jm-deep: #0b2e25;
  --jm-emerald: #1e6b50;
  --jm-jade: #5fcb94;
  --jm-mint: #dcefe2;
  --jm-ease: cubic-bezier(0.77, 0, 0.175, 1);
}

html.jm-loading,
html.jm-loading body { overflow: hidden; }

::selection { background: var(--jm-jade); color: var(--jm-bg); }

/* ---------- Preloader ---------- */
#jm-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  color: var(--jm-mint);
  font-family: "DM Sans", Inter, system-ui, sans-serif;
  pointer-events: all;
}
.jm-pl-panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.5%;
  background:
    radial-gradient(120% 90% at 50% 100%, #0d3a2c 0%, transparent 60%),
    var(--jm-bg);
  transition: transform 1.1s var(--jm-ease);
}
.jm-pl-panel--a { top: 0; }
.jm-pl-panel--b {
  bottom: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, #0d3a2c 0%, transparent 60%),
    var(--jm-bg);
}
.jm-pl-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  transition: opacity 0.5s ease, transform 0.8s var(--jm-ease), filter 0.6s ease;
}
.jm-pl-logo {
  position: relative;
  width: clamp(120px, 20vw, 170px);
  aspect-ratio: 880 / 900;
  color: var(--jm-mint);
  animation: jm-logo-in 1.2s var(--jm-ease) both, jm-float 5s ease-in-out 2.6s infinite;
}
.jm-pl-logo svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.jm-pl-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 203, 148, 0.28), transparent 65%);
  filter: blur(18px);
  opacity: 0;
  animation: jm-fade 1.4s ease 1.6s forwards, jm-breathe 3.6s ease-in-out 3s infinite;
}
.jm-pl-logo path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.jm-pl-logo .ring-main {
  stroke: var(--jm-jade);
  animation: jm-draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
  filter: drop-shadow(0 0 6px rgba(95, 203, 148, 0.5));
}
.jm-pl-logo .ring-thin { stroke: var(--jm-jade); animation: jm-draw 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.9s both; }
.jm-pl-logo .j {
  stroke: var(--jm-mint);
  animation: jm-draw 1.7s cubic-bezier(0.45, 0, 0.25, 1) 0.8s both;
  filter: drop-shadow(0 0 5px rgba(220, 239, 226, 0.35));
}
@keyframes jm-draw {
  from { stroke-dashoffset: 1; stroke-opacity: 0; }
  2% { stroke-opacity: 1; }
  to { stroke-dashoffset: 0; stroke-opacity: 1; }
}
@keyframes jm-logo-in { from { opacity: 0; transform: scale(0.85) rotate(-8deg); } }
@keyframes jm-float { 50% { transform: translateY(-6px); } }
@keyframes jm-breathe { 50% { opacity: 0.55; transform: scale(1.08); } }

.jm-pl-name {
  display: flex;
  font-family: Poppins, "DM Sans", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  letter-spacing: 0.04em;
  line-height: 1;
  overflow: hidden;
  padding: 0.1em 0;
}
.jm-pl-name i { width: 0.35em; }
.jm-pl-name span {
  display: inline-block;
  transform: translateY(110%) rotateX(-80deg);
  transform-origin: 50% 100%;
  opacity: 0;
  animation: jm-letter 0.9s var(--jm-ease) forwards;
}
.jm-pl-name span { animation-delay: calc(1.5s + var(--i, 0) * 45ms); }
.jm-pl-name span:nth-of-type(n + 8) { color: var(--jm-jade); }
@keyframes jm-letter { to { transform: none; opacity: 1; } }
.jm-pl-tag i { width: 4px; height: 4px; border-radius: 50%; background: var(--jm-jade); }
.jm-pl-tag {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-family: Poppins, "DM Sans", sans-serif;
  font-weight: 300;
  font-size: clamp(0.68rem, 1.6vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(220, 239, 226, 0.6);
  opacity: 0;
  animation: jm-fade 1s ease 2.2s forwards;
}
@keyframes jm-fade { to { opacity: 1; } }

.jm-pl-foot {
  position: absolute;
  left: clamp(1.2rem, 4vw, 3rem);
  right: clamp(1.2rem, 4vw, 3rem);
  bottom: clamp(1.4rem, 5vh, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: opacity 0.4s ease;
}
.jm-pl-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(220, 239, 226, 0.5);
}
.jm-pl-count {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.8;
  color: var(--jm-mint);
}
.jm-pl-count b { font-weight: 400; font-variant-numeric: tabular-nums; }
.jm-pl-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(220, 239, 226, 0.08);
  transition: opacity 0.4s ease;
}
.jm-pl-bar span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--jm-emerald), var(--jm-jade), var(--jm-mint));
  box-shadow: 0 0 16px rgba(95, 203, 148, 0.7);
}

#jm-preloader.is-done { pointer-events: none; }
#jm-preloader.is-done .jm-pl-stage { opacity: 0; transform: scale(0.9) translateY(-20px); filter: blur(8px); }
#jm-preloader.is-done .jm-pl-foot,
#jm-preloader.is-done .jm-pl-bar { opacity: 0; }
#jm-preloader.is-done .jm-pl-panel--a { transform: translateY(-101%); transition-delay: 0.25s; }
#jm-preloader.is-done .jm-pl-panel--b { transform: translateY(101%); transition-delay: 0.25s; }

/* ---------- 3D canvases ---------- */
.jm-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.jm-canvas.is-on { opacity: 1; }
.jm-canvas--hero { z-index: 15; }
.jm-canvas--method { z-index: 0; mix-blend-mode: screen; }
.jm-canvas--method.is-on { opacity: 0.55; }
@media (max-width: 767px) {
  .jm-canvas--hero.is-on { opacity: 0.6; }
}

/* ---------- Scroll progress ---------- */
.jm-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9000;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--jm-emerald), var(--jm-jade), var(--jm-mint));
  box-shadow: 0 0 12px rgba(95, 203, 148, 0.6);
  pointer-events: none;
}

/* ---------- Cursor ---------- */
.jm-cursor,
.jm-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9500;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
.jm-has-cursor .jm-cursor,
.jm-has-cursor .jm-cursor-dot { opacity: 1; }
.jm-cursor {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(95, 203, 148, 0.7);
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}
.jm-cursor.is-hover {
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  background: rgba(95, 203, 148, 0.12);
  border-color: rgba(220, 239, 226, 0.6);
}
.jm-cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--jm-jade);
}

/* ---------- Tilt cards ---------- */
.jm-tilt {
  rotate: var(--rx, 0) var(--ry, 1) 0 var(--ra, 0deg);
  will-change: rotate;
}
.jm-tilt-parent { perspective: 1000px; }
.jm-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(95, 203, 148, 0.16), transparent 45%);
  z-index: 1;
}
.jm-tilt:hover .jm-glare { opacity: 1; }

/* ---------- Marquee ---------- */
.jm-marquee {
  position: relative;
  z-index: 20;
  padding: 2.2rem 0;
  overflow: hidden;
}
.jm-marquee__band {
  width: 106vw;
  margin-left: -3vw;
  overflow: hidden;
  padding: 0.9rem 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.jm-marquee__band--a {
  background: linear-gradient(90deg, #1e6b50, #5fcb94 60%, #8fdcb4);
  color: var(--jm-bg);
  rotate: -2deg;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px -20px rgba(95, 203, 148, 0.45);
}
.jm-marquee__band--b {
  color: transparent;
  -webkit-text-stroke: 1px rgba(220, 239, 226, 0.5);
  rotate: 1.5deg;
  margin-top: -0.4rem;
  background: rgba(11, 46, 37, 0.9);
  border-block: 1px solid rgba(220, 239, 226, 0.08);
}
.jm-marquee__track { display: flex; width: max-content; animation: jm-marquee 40s linear infinite; }
.jm-marquee__band--b .jm-marquee__track { animation-duration: 52s; animation-direction: reverse; }
.jm-marquee__track span { padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 2.8rem; }
.jm-marquee__track span::after { content: "✦"; font-size: 0.55em; opacity: 0.7; }
@keyframes jm-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .jm-marquee__track { animation: none !important; }
  .jm-pl-logo path { stroke-dashoffset: 0; animation: none !important; }
  .jm-pl-name span, .jm-pl-tag { animation-duration: 0.01s !important; animation-delay: 0s !important; }
}

/* ---------- Prices up front ---------- */
.jm-hook {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
  font-style: italic;
  color: var(--jm-jade);
}
.jm-price { font-size: 2.75rem; line-height: 1; letter-spacing: -0.01em; }
@media (min-width: 1024px) { .jm-price { font-size: 3.25rem; } }

/* Hero price chips */
.jm-hero-prices {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 1.25rem;
  background: rgba(11, 46, 37, 0.7);
  border: 1px solid rgba(220, 239, 226, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.jm-hero-prices:hover { border-color: rgba(95, 203, 148, 0.5); box-shadow: 0 0 40px -12px rgba(95, 203, 148, 0.45); }
.jm-hero-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 6.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.85rem;
  background: rgba(5, 32, 26, 0.6);
}
.jm-hero-price small { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(220, 239, 226, 0.6); }
.jm-hero-price b { font-size: 1.15rem; font-weight: 700; color: var(--jm-jade); }
.jm-hero-prices__more {
  align-self: center;
  padding: 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jm-mint);
}
@media (max-width: 639px) {
  .jm-hero-price { min-width: 0; flex: 1 1 0; padding: 0.45rem 0.4rem; }
  .jm-hero-price b { font-size: 1rem; }
  .jm-hero-prices { width: 100%; }
  .jm-hero-prices__more { flex-basis: 100%; text-align: center; padding: 0.15rem 0 0.1rem; }
}

/* Floating price dock */
.jm-dock {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 45;
  font-family: inherit;
  opacity: 0;
  transform: translateY(140%);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.5s var(--jm-ease);
}
.jm-dock.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.jm-dock__btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 3.5rem;
  padding: 0 0.4rem 0 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(95, 203, 148, 0.35);
  background: rgba(11, 46, 37, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--jm-mint);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6), 0 0 30px -14px rgba(95, 203, 148, 0.6);
  cursor: pointer;
}
.jm-dock__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--jm-jade);
  box-shadow: 0 0 0 0 rgba(95, 203, 148, 0.6);
  animation: jm-dock-pulse 2s infinite;
}
@keyframes jm-dock-pulse { 70% { box-shadow: 0 0 0 8px rgba(95, 203, 148, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 203, 148, 0); } }
.jm-dock__txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.jm-dock__txt small { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(220, 239, 226, 0.6); }
.jm-dock__txt b { font-size: 1.05rem; color: var(--jm-jade); }
.jm-dock__cta {
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--jm-jade);
  color: var(--jm-bg);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.jm-dock__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.75rem);
  width: min(22rem, calc(100vw - 3rem));
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(5, 32, 26, 0.97);
  border: 1px solid rgba(220, 239, 226, 0.15);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom left;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.3s var(--jm-ease), visibility 0s 0.3s;
}
.jm-dock.is-open .jm-dock__panel { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.jm-dock__title { margin: 0 0 0.5rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(220, 239, 226, 0.5); }
.jm-dock__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  color: var(--jm-mint);
  text-decoration: none;
  transition: background 0.2s;
}
.jm-dock__row:hover { background: rgba(95, 203, 148, 0.1); }
.jm-dock__row b { display: block; font-size: 0.95rem; }
.jm-dock__row small { font-size: 0.75rem; color: rgba(220, 239, 226, 0.55); }
.jm-dock__price { display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; color: var(--jm-jade); font-size: 1.05rem; }
.jm-dock__price em { font-style: normal; font-size: 0.72rem; font-weight: 600; color: rgba(220, 239, 226, 0.7); }
.jm-dock__all {
  display: block;
  margin-top: 0.5rem;
  padding: 0.65rem;
  border-radius: 0.85rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jm-mint);
  border: 1px solid rgba(220, 239, 226, 0.2);
  text-decoration: none;
}
.jm-dock__all:hover { border-color: var(--jm-jade); }
@media (max-width: 639px) {
  .jm-dock { left: 1rem; right: 5.5rem; bottom: 1.5rem; }
  .jm-dock__btn { width: 100%; justify-content: space-between; padding-left: 0.9rem; gap: 0.5rem; }
  .jm-dock__panel { width: calc(100vw - 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  .jm-dock, .jm-dock__panel { transition: none; }
  .jm-dock__dot { animation: none; }
}
