/* SIDEWAY MOTION EFFECTS - landing, checkout/product, invoice only */
:root {
  --sw-navy: #071a33;
  --sw-navy-2: #0b2547;
  --sw-orange: #ff7a00;
  --sw-orange-2: #ff9d2e;
  --sw-soft: rgba(255, 122, 0, .14);
  --sw-line: rgba(7, 26, 51, .10);
}

html {
  scroll-behavior: smooth;
}

body.sideway-motion-ready {
  overflow-x: hidden;
}

body.sideway-motion-ready::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,122,0,.11), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(7,26,51,.10), transparent 30%),
    radial-gradient(circle at 78% 82%, rgba(255,122,0,.08), transparent 32%);
  animation: swBgBreath 10s ease-in-out infinite alternate;
}

body.sideway-motion-ready > * {
  position: relative;
}

@keyframes swBgBreath {
  from { opacity: .55; transform: scale(1); }
  to { opacity: .9; transform: scale(1.035); }
}

.sw-animated-text,
h1, h2, h3,
.hero-title,
.section-title,
.invoice-title,
.product-title,
.brand-title {
  animation: swTextRise .75s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes swTextRise {
  from { opacity: 0; transform: translateY(18px); letter-spacing: .01em; filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.sw-gradient-text,
.hero-title strong,
h1 strong,
h2 strong,
.accent-text {
  background: linear-gradient(90deg, var(--sw-orange), var(--sw-orange-2), var(--sw-navy));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  background-size: 220% 100%;
  animation: swTextGradient 4s ease-in-out infinite;
}

@keyframes swTextGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.sw-reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  filter: blur(4px);
  transition: opacity .65s ease, transform .65s ease, filter .65s ease;
}

.sw-reveal.sw-show {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.sw-stagger-1 { transition-delay: .05s; animation-delay: .05s; }
.sw-stagger-2 { transition-delay: .10s; animation-delay: .10s; }
.sw-stagger-3 { transition-delay: .15s; animation-delay: .15s; }
.sw-stagger-4 { transition-delay: .20s; animation-delay: .20s; }
.sw-stagger-5 { transition-delay: .25s; animation-delay: .25s; }
.sw-stagger-6 { transition-delay: .30s; animation-delay: .30s; }

.product-card,
.card,
.package-card,
.invoice-card,
.order-card,
.summary-card,
.feature-card,
.how-card,
[class*='product'][class*='card'],
[class*='invoice'][class*='card'] {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.product-card:hover,
.card:hover,
.package-card:hover,
.invoice-card:hover,
.order-card:hover,
.summary-card:hover,
.feature-card:hover,
.how-card:hover,
[class*='product'][class*='card']:hover,
[class*='invoice'][class*='card']:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(7, 26, 51, .14) !important;
  border-color: rgba(255, 122, 0, .28) !important;
}

button,
.btn,
.button,
a.btn,
.cta,
.order-btn,
.checkout-btn,
.copy-btn,
.download-btn,
[type='submit'] {
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

button:hover,
.btn:hover,
.button:hover,
a.btn:hover,
.cta:hover,
.order-btn:hover,
.checkout-btn:hover,
.copy-btn:hover,
.download-btn:hover,
[type='submit']:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

button::after,
.btn::after,
.button::after,
a.btn::after,
.cta::after,
.order-btn::after,
.checkout-btn::after,
.copy-btn::after,
.download-btn::after,
[type='submit']::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -40%;
  width: 34px;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: rotate(22deg) translateX(-160%);
  opacity: 0;
}

button:hover::after,
.btn:hover::after,
.button:hover::after,
a.btn:hover::after,
.cta:hover::after,
.order-btn:hover::after,
.checkout-btn:hover::after,
.copy-btn:hover::after,
.download-btn:hover::after,
[type='submit']:hover::after {
  opacity: 1;
  animation: swShine .85s ease;
}

@keyframes swShine {
  from { transform: rotate(22deg) translateX(-180%); }
  to { transform: rotate(22deg) translateX(520%); }
}

img, .logo, .brand-logo, .product-logo, .product-icon {
  transition: transform .28s ease, filter .28s ease;
}

img:hover, .logo:hover, .brand-logo:hover, .product-logo:hover, .product-icon:hover {
  transform: scale(1.035);
  filter: drop-shadow(0 10px 18px rgba(7, 26, 51, .15));
}

.sw-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.sw-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 122, 0, .34);
  box-shadow: 0 0 22px rgba(255, 122, 0, .35);
  animation: swFloatParticle var(--dur, 10s) linear infinite;
  opacity: .65;
}

.sw-particle:nth-child(even) {
  width: 6px;
  height: 6px;
  background: rgba(7, 26, 51, .22);
  box-shadow: 0 0 18px rgba(7, 26, 51, .18);
}

@keyframes swFloatParticle {
  from { transform: translate3d(0, 110vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .6; }
  to { transform: translate3d(var(--drift, 40px), -14vh, 0) rotate(360deg); opacity: 0; }
}

.sw-corner-glow {
  position: fixed;
  right: -80px;
  top: 16%;
  width: 210px;
  height: 210px;
  pointer-events: none;
  z-index: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,122,0,.18), transparent 68%);
  animation: swCornerMove 8s ease-in-out infinite alternate;
}

@keyframes swCornerMove {
  from { transform: translateY(-20px) scale(.95); opacity: .55; }
  to { transform: translateY(90px) scale(1.12); opacity: .85; }
}

.sw-marquee {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto;
  padding: 10px 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,122,0,.18);
  background: linear-gradient(90deg, rgba(7,26,51,.96), rgba(11,37,71,.96));
  color: #fff;
  box-shadow: 0 14px 36px rgba(7,26,51,.14);
}

.sw-marquee-track {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: swMarquee 22s linear infinite;
  white-space: nowrap;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
}

.sw-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sw-marquee span::before {
  content: '✦';
  color: var(--sw-orange);
}

@keyframes swMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.invoice-status,
.status-badge,
.badge,
.ready-badge,
.pill {
  animation: swPulseBadge 2.8s ease-in-out infinite;
}

@keyframes swPulseBadge {
  0%, 100% { box-shadow: 0 0 0 rgba(255,122,0,0); }
  50% { box-shadow: 0 0 0 8px rgba(255,122,0,.10); }
}

input, textarea, select {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--sw-orange) !important;
  box-shadow: 0 0 0 4px rgba(255,122,0,.13) !important;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .sw-marquee { width: calc(100% - 20px); margin: 12px auto; }
  .sw-marquee-track { font-size: 12px; animation-duration: 18s; }
  .sw-particle { opacity: .38; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .sw-particles, .sw-corner-glow, .sw-marquee { display: none !important; }
}
