/* ===============================================
   QUANTIX COMMERCE — GLOBAL STYLES
   Dark Premium · Where eCommerce Meets Automation
   =============================================== */

:root {
  /* Brand colors */
  --blue: #0C55E2;
  --blue-glow: #3B7BFF;
  --blue-2: #4E7CEC;
  --blue-soft: #1A2A6E;
  --navy: #000846;
  --navy-deep: #00041F;
  --navy-2: #06104F;
  --white: #FFFFFF;
  --ink: #E8ECFB;
  --muted: #7A85B5;
  --muted-2: #9BA3C8;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --green: #10B981;
  --green-glow: rgba(16,185,129,.3);
  --red: #EF4444;
  --orange: #FF9900; /* Amazon */
  --walmart: #0071CE;
  --shopify: #95BF47;
  --tiktok: #FE2C55;
  --ebay-r: #E53238;
  --ebay-b: #0064D2;
  --ebay-y: #F5AF02;
  --ebay-g: #86B817;
  --etsy: #F1641E;
  --target: #CC0000;
  --facebook: #1877F2;
  --shadow-glow: 0 0 40px rgba(12,85,226,.4);
  --shadow-card: 0 20px 60px rgba(0,4,31,.6);
  --easing: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--navy-deep);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--blue); color: #fff; }
button { font-family: inherit; }

/* ATMOSPHERIC BACKGROUND */
.atmos {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.atmos::before, .atmos::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .4;
  animation: float 20s ease-in-out infinite;
}
.atmos::before {
  width: 600px; height: 600px;
  background: var(--blue);
  top: -200px; left: -200px;
}
.atmos::after {
  width: 700px; height: 700px;
  background: var(--blue-soft);
  bottom: -300px; right: -200px;
  animation-delay: -10s;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(50px,-50px) scale(1.1); }
}
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* CUSTOM CURSOR */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transition: opacity .3s, transform .15s var(--easing), width .3s, height .3s, border-color .3s;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--blue-glow);
  box-shadow: 0 0 20px var(--blue-glow);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(59,123,255,.4);
  transition: transform .25s var(--easing), width .3s, height .3s, border-color .3s;
}
.cursor-ring.expand {
  width: 64px; height: 64px;
  border-color: var(--blue-glow);
  background: rgba(59,123,255,.05);
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* NAVIGATION */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 24px;
  transition: top .3s var(--easing);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  padding: 12px 16px 12px 24px;
  background: rgba(0,4,31,.7);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span { color: var(--white); }
.nav-logo em { color: var(--blue-glow); font-style: normal; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-menu a {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-2);
  border-radius: 100px;
  transition: all .3s var(--easing);
  position: relative;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--white);
  background: rgba(255,255,255,.05);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 320px;
  background: rgba(0,4,31,.92);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--easing);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  background: transparent;
}
.nav-dropdown-menu a:hover {
  background: rgba(12,85,226,.15);
}
.nav-dropdown-menu .pf-icon {
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  color: var(--navy-deep);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 100px;
  transition: all .3s var(--easing);
}
.nav-cta:hover {
  background: var(--blue-glow);
  color: var(--white);
  transform: translateY(-1px);
}
.nav-cta svg { width: 14px; height: 14px; }

.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
  width: 40px; height: 40px;
  border-radius: 100px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-mobile-menu {
  display: none;
}

@media (max-width: 1024px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    background: rgba(0,4,31,.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    padding: 16px;
    z-index: 99;
  }
  .nav-mobile-menu.open { display: block; }
  .nav-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--muted-2);
    font-size: 14px;
    border-radius: 8px;
  }
  .nav-mobile-menu a:hover { background: rgba(255,255,255,.05); color: var(--white); }
  .nav-mobile-menu .nav-cta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
  }
}

/* SHARED COMPONENTS */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.section { padding: 100px 0; position: relative; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(12,85,226,.12);
  border: 1px solid rgba(12,85,226,.3);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-glow);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--blue-glow);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--blue-glow);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .3; }
}
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.05;
}
.h-display {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -.04em;
}
.h-display em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--blue-glow);
  letter-spacing: -.02em;
}
.h-section {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.035em;
}
.h-section em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: var(--blue-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: none;
  transition: all .3s var(--easing);
  text-transform: none;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--white);
  color: var(--navy-deep);
}
.btn-primary:hover {
  background: var(--blue-glow);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--blue-glow);
}
.btn svg { width: 14px; height: 14px; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--easing), transform 1s var(--easing);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--easing), transform .8s var(--easing);
}
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: .1s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: .2s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: .3s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: .4s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: .5s; }
.reveal-stagger.in-view > *:nth-child(7) { transition-delay: .6s; }
.reveal-stagger.in-view > *:nth-child(8) { transition-delay: .7s; }
.reveal-stagger.in-view > *:nth-child(9) { transition-delay: .8s; }

/* FOOTER */
.footer {
  position: relative;
  padding: 80px 0 40px;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 900;
  color: rgba(255,255,255,.025);
  letter-spacing: -.04em;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-brand .nav-logo { font-size: 20px; }
.footer-brand p {
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink);
  transition: color .3s;
}
.footer-col a:hover { color: var(--blue-glow); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: all .3s;
  color: var(--muted-2);
}
.footer-social a:hover {
  border-color: var(--blue-glow);
  color: var(--blue-glow);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* PAGE HEADER (for inner pages) */
.page-header {
  padding: 180px 0 80px;
  position: relative;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-header::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(12,85,226,.25) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { margin-bottom: 16px; }
.page-header p {
  color: var(--muted-2);
  font-size: clamp(15px,1.5vw,18px);
  max-width: 720px;
  margin: 0 auto;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--blue-glow); }
.breadcrumb svg { width: 12px; height: 12px; }

/* CARD - shared */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: all .4s var(--easing);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

/* CTA SECTION */
.cta-section {
  padding: 80px 0;
  position: relative;
}
.cta-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-soft) 100%);
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.1) 0%, transparent 40%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}
.cta-card h2 em {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,.85);
}
.cta-card p {
  font-size: 16px;
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 2;
}
.cta-card .cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .cta-card { padding: 60px 32px; }
}

/* PLATFORM BRAND COLORS - icons reusable */
.pf-amazon { color: var(--orange); }
.pf-walmart { color: var(--walmart); }
.pf-shopify { color: var(--shopify); }
.pf-tiktok { color: var(--tiktok); }
.pf-ebay-r { color: var(--ebay-r); }
.pf-etsy { color: var(--etsy); }
.pf-target { color: var(--target); }
.pf-facebook { color: var(--facebook); }

/* UTILITY */
.text-center { text-align: center; }
.text-blue { color: var(--blue-glow); }
.text-muted { color: var(--muted-2); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

/* MARQUEE */
.marquee {
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: rgba(0,4,31,.5);
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--navy-deep), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--navy-deep), transparent); }
.marquee-track {
  display: flex;
  gap: 64px;
  animation: scrollX 40s linear infinite;
  width: max-content;
}
@keyframes scrollX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
}
.marquee-item svg { width: 28px; height: 28px; }
.marquee-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-glow);
  flex-shrink: 0;
}

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  transition: opacity .8s var(--easing), visibility .8s;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .15em;
  text-transform: uppercase;
}
.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: var(--blue-glow);
  width: 0%;
  box-shadow: 0 0 10px var(--blue-glow);
  animation: loaderFill 1.8s var(--easing) forwards;
}
@keyframes loaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}
