/* MOTION LAYER — pure CSS (no libraries). Driven by motion.js */
:root { --ease: cubic-bezier(.22,1,.36,1); --spring: cubic-bezier(.34,1.56,.64,1); }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@keyframes rise      { from { opacity: 0; translate: 0 56px; scale: .96; } }
@keyframes zoomIn    { from { opacity: 0; translate: 0 44px; scale: .86; filter: blur(10px); } }
@keyframes wordUp    { from { translate: 0 118%; rotate: 4deg; } }
@keyframes pop       { from { opacity: 0; scale: .4; } }
@keyframes imgReveal { from { clip-path: inset(100% 0 0 0 round 16px); } to { clip-path: inset(-60px round 16px); } }
@keyframes imgZoom   { from { scale: 1.55; } }
@keyframes headIn    { from { translate: 0 -100%; } }
@keyframes floaty    { 50% { translate: 0 -9px; } }
@keyframes shimmer   { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes drift1    { to { transform: translate3d(-90px, 70px, 0) scale(1.15); } }
@keyframes drift2    { to { transform: translate3d(110px, -60px, 0) scale(1.2); } }
@keyframes drift3    { to { transform: translate3d(-60px, -90px, 0) scale(.8); } }
@keyframes cue       { from { translate: 0 0; opacity: 1; } to { translate: 0 15px; opacity: 0; } }
@keyframes spin      { to { --ang: 360deg; } }
@keyframes shine     { 0% { left: -60%; } 28%, 100% { left: 140%; } }
@keyframes iconPop   { 0% { transform: scale(1) rotate(0); } 40% { transform: scale(1.28) rotate(-12deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes beat      { 0%, 100% { scale: 1; } 15% { scale: 1.3; } 30% { scale: 1; } 45% { scale: 1.2; } }
@keyframes sweep     { to { translate: 260% 0; } }
@keyframes dashPulse { 50% { border-color: rgba(201,162,39,.6); } }
@keyframes ripple    { from { transform: scale(0); opacity: .28; } to { transform: scale(1); opacity: 0; } }
@keyframes menuIn    { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes menuItem  { from { opacity: 0; translate: 0 14px; } }

a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* preloader */
html.loading { overflow: hidden; }
html.skip-intro .loader { display: none; }
.loader { position: fixed; inset: 0; z-index: 5000; }
.loader-panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #0a0a0a; transition: transform 1.05s var(--ease); }
.loader-panel.top { top: 0; }
.loader-panel.bottom { bottom: 0; }
.loader.out .top { transform: translateY(-101%); }
.loader.out .bottom { transform: translateY(101%); }
.loader-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  transition: opacity .45s ease, scale .8s var(--ease);
}
.loader.out .loader-center { opacity: 0; scale: 1.12; }
.loader-word { overflow: hidden; padding: .12em .3em .2em; font-size: clamp(2.8rem, 10vw, 5.8rem); font-weight: 800; line-height: 1.35; }
.loader-word b {
  display: block; font-weight: inherit;
  background: linear-gradient(100deg, #c9a227 20%, #fff3b0 45%, #e0b83a 55%, #c9a227 80%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: wordUp 1.1s var(--ease) .1s backwards, shimmer 2.2s linear infinite;
}
.loader-line { width: min(260px, 60vw); height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; }
.loader-num { font-size: .95rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* scroll progress */
.progress {
  position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 1100;
  background: linear-gradient(270deg, #fff3b0, #e0b83a 40%, #c9a227);
  transform: scaleX(var(--p, 0)); transform-origin: right; pointer-events: none;
}

/* cursor */
.cur-dot, .cur-ring, .cur-glow { position: fixed; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cur-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--accent-hover); z-index: 6001; }
.cur-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1.5px solid rgba(201,162,39,.6); z-index: 6000;
  transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s;
}
.cur-ring.hov { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(201,162,39,.1); border-color: rgba(224,184,58,.95); }
.cur-ring.down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cur-glow { width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; z-index: 2; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(201,162,39,.09), transparent 62%); }
body.cur-on .cur-dot, body.cur-on .cur-ring, body.cur-on .cur-glow { opacity: 1; }
body.cur-off .cur-dot, body.cur-off .cur-ring { opacity: 0; }

/* header */
header { animation: headIn 1.1s var(--ease) .15s backwards paused; }
header.hide { transform: translateY(-110%); }
header.scrolled nav { padding: 2px 0; }
header.scrolled .logo img { height: 48px; }
.logo img { transition: height .4s var(--ease); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: -3px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.menu-btn { transition: transform .45s var(--spring); }
.menu-btn.is-open { transform: rotate(90deg); }

/* hero */
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .container { position: relative; z-index: 1; }
.orb { position: absolute; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle, rgba(201,162,39,.26), rgba(201,162,39,0) 66%); }
.o1 { width: 520px; height: 520px; top: -140px; right: -120px; animation: drift1 16s ease-in-out infinite alternate; }
.o2 { width: 420px; height: 420px; bottom: -120px; left: -100px; animation: drift2 19s ease-in-out infinite alternate; }
.o3 { width: 260px; height: 260px; top: 38%; left: 42%; opacity: .55; animation: drift3 13s ease-in-out infinite alternate; }

.mo .hero-h1:not(.split) { opacity: 0; }
.hero-h1 { --base: .35s; }
.hero-anim { animation: rise 1.1s var(--ease) var(--d, 0s) backwards paused; }
html.hero-go header, html.hero-go .hero-anim, html.hero-go .hero-image, html.hero-go .hero-image img, html.hero-go .hero-badge { animation-play-state: running; }

.split .w { display: inline-block; overflow: hidden; vertical-align: top; font-weight: inherit;
  padding: .12em .06em .22em; margin: -.12em -.06em -.22em; }
.split .wi { display: inline-block; font-weight: inherit; transform-origin: 100% 100%;
  animation: wordUp 1.1s var(--ease) calc(var(--base, 0s) + var(--wi, 0) * 85ms) backwards paused; }
.split.in .wi { animation-play-state: running; }
.hero-text h1 span .wi {
  background: linear-gradient(100deg, #c9a227 20%, #fff3b0 45%, #e0b83a 55%, #c9a227 80%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: wordUp 1.1s var(--ease) calc(var(--base, 0s) + var(--wi, 0) * 85ms) backwards paused,
             shimmer 6s linear 2.6s infinite paused;
}
.hero-text h1 span.split.in .wi, .hero-text h1.in span .wi { animation-play-state: running; }
html.hero-go .hero-text h1 span .wi { animation-play-state: running; }

.hero-image {
  animation: imgReveal 1.5s var(--ease) .35s backwards paused;
  transform: perspective(1100px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg));
  transition: transform .5s var(--ease);
}
.hero-image img { scale: 1.12; animation: imgZoom 2.1s var(--ease) .3s backwards paused; }
.hero-image::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.17), transparent 46%);
}
.hero-image:hover::after { opacity: 1; }
.hero-badge { animation: pop .9s var(--spring) 1.7s backwards paused, floaty 5s ease-in-out 2.8s infinite paused; }

.scroll-cue { position: absolute; bottom: 22px; left: calc(50% - 13px); width: 26px; height: 42px; z-index: 2;
  border: 1.5px solid rgba(255,255,255,.28); border-radius: 20px; transition: opacity .4s; }
.scroll-cue i { position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px;
  background: var(--accent); animation: cue 1.9s var(--ease) infinite; }
header.scrolled ~ .hero .scroll-cue { opacity: 0; pointer-events: none; }

/* marquee */
.marquee { direction: ltr; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: #0d0d0d; padding: 22px 0; position: relative; z-index: 1; }
.marquee-track { display: flex; align-items: center; gap: 2.4rem; width: max-content; will-change: transform; white-space: nowrap; }
.mq-i { direction: rtl; unicode-bidi: isolate; font-size: clamp(1.5rem, 3.6vw, 2.6rem); font-weight: 800; color: var(--text); }
.mq-i.g { color: var(--accent); }
.mq-s { font-size: clamp(1.1rem, 2.4vw, 1.7rem); opacity: .85; }

/* reveal */
.reveal { animation: rise 1s var(--ease) var(--d, 0s) backwards paused; }
.reveal[data-r="zoom"] { animation-name: zoomIn; animation-duration: 1.25s; }
.reveal.in { animation-play-state: running; }

.section-title h2::after {
  content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0); transition: transform .9s var(--ease) .55s;
}
.section-title h2.in::after { transform: scaleX(1); }

/* cards */
.benefit-card, .product-card {
  position: relative;
  transition: transform .25s ease-out, border-color .3s ease, box-shadow .3s ease;
}
.benefit-card:hover, .product-card:hover {
  transform: perspective(900px) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)) translateY(-6px);
}
.benefit-card::before, .product-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(201,162,39,.14), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
.benefit-card:hover::before, .product-card:hover::before { opacity: 1; }
.benefit-card:hover .benefit-icon { animation: iconPop .75s var(--spring); }
.product-img { transition: scale .9s var(--ease); }
.product-card:hover .product-img { scale: 1.08; }

.empty-stock { position: relative; overflow: hidden; animation-name: rise, dashPulse; animation-duration: 1s, 3.4s;
  animation-delay: var(--d, 0s), 1.2s; animation-iteration-count: 1, infinite; animation-fill-mode: backwards, none;
  animation-timing-function: var(--ease), ease-in-out; }
.empty-stock::after { content: ""; position: absolute; top: 0; bottom: 0; right: -60%; width: 50%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(201,162,39,.08), transparent); animation: sweep 5s ease-in-out 1.5s infinite; }

/* buttons */
.btn, .contact-btn { position: relative; overflow: hidden; --tx: 0px; --ty: 0px; transform: translate(var(--tx), var(--ty)); }
.btn.btn-primary:hover { transform: translate(var(--tx), calc(var(--ty) - 2px)); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg);
}
.hero-btns .btn-primary::after { animation: shine 4.8s ease-in-out 3s infinite; }
.contact-btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; translate: -120% 0;
  background: linear-gradient(110deg, transparent 30%, rgba(201,162,39,.2) 50%, transparent 70%);
  transition: translate .9s var(--ease);
}
.contact-btn:hover::before { translate: 120% 0; }
.rip { position: absolute; border-radius: 50%; background: currentColor; pointer-events: none; animation: ripple .75s var(--ease) forwards; }

/* order box */
.order-box { position: relative; }
.order-box::before {
  content: ""; position: absolute; inset: -1px; border-radius: 21px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 55%, rgba(201,162,39,.15) 68%, var(--accent-hover) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}

/* toast + footer */
.toast { transition: opacity .3s ease, transform .65s var(--spring); }
.heart { display: inline-block; animation: beat 1.5s ease-in-out infinite; }

/* mobile menu */
.nav-links li:nth-child(1) { --i: 0; } .nav-links li:nth-child(2) { --i: 1; }
.nav-links li:nth-child(3) { --i: 2; } .nav-links li:nth-child(4) { --i: 3; }
@media (max-width: 700px) {
  .nav-links.open { animation: menuIn .55s var(--ease); }
  .nav-links.open li { animation: menuItem .6s var(--ease) calc(var(--i, 0) * 70ms + 120ms) backwards; }
  .o1 { width: 340px; height: 340px; }
  .o2 { width: 300px; height: 300px; }
}

/* fallbacks */
.mo-force .reveal, .mo-force .hero-anim, .mo-force .hero-image, .mo-force .hero-image img,
.mo-force .hero-badge, .mo-force header, .mo-force .split .wi { animation: none !important; }
.mo-force .loader { display: none !important; }
.mo-force .hero-h1 { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .split .wi, .hero-anim, .hero-image, .hero-image img, .hero-badge, header, .orb, .heart,
  .empty-stock, .empty-stock::after, .order-box::before, .btn-primary::after, .scroll-cue i, .loader-word b { animation: none !important; }
  .loader { display: none !important; }
  html.loading { overflow: auto !important; }
  .hero-h1 { opacity: 1 !important; }
  .section-title h2::after { transform: scaleX(1); transition: none; }
}
