/* =========================================================
   NexaStore — Design tokens
   Palette: deep space navy + violet/cyan neon gradient
   Type: Space Grotesk (display) + Inter (body)
   ========================================================= */
:root {
  --bg-void: #06070f;
  --bg-deep: #0a0e27;
  --bg-panel: rgba(255, 255, 255, 0.045);
  --bg-panel-hover: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.09);
  --violet: #7c3aed;
  --violet-soft: #a78bfa;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --text-hi: #f5f6fb;
  --text-mid: #b6bad0;
  --text-low: #6c7191;
  --success: #34d399;
  --danger: #fb7185;
  --warn: #fbbf24;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --grad-brand: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(124,58,237,.35) 0%, rgba(34,211,238,.35) 100%);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, .25);
  --shadow-card: 0 8px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124,58,237,.18), transparent 60%),
              radial-gradient(ellipse 60% 50% at 90% 20%, rgba(34,211,238,.12), transparent 60%),
              var(--bg-void);
  color: var(--text-hi);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Particles canvas ---------- */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
}

/* ---------- Skeleton loading ---------- */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%);
  background-size: 400% 100%;
  animation: skeleton-wave 1.4s ease infinite;
  border-radius: var(--radius-md);
}
@keyframes skeleton-wave { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(6, 7, 15, .6);
  border-bottom: 1px solid var(--border-glass);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; min-width: 0; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad-brand);
  box-shadow: var(--shadow-glow); flex-shrink: 0;
}
.nav-links { display: flex; gap: 26px; font-size: .92rem; color: var(--text-mid); }
.nav-links a:hover { color: var(--text-hi); }
.nav-cta {
  padding: 10px 20px; border-radius: 999px; background: var(--grad-brand);
  font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-glow); border: none; color: white;
  white-space: nowrap; flex-shrink: 0;
}
.mobile-nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-glass);
  background: var(--bg-panel); color: var(--text-hi); font-size: 1.1rem; flex-shrink: 0;
}
.mobile-nav-drawer {
  display: none; flex-direction: column; gap: 4px; padding: 12px 20px 18px;
  border-top: 1px solid var(--border-glass); background: rgba(6,7,15,.85);
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer a {
  padding: 12px 10px; border-radius: 10px; color: var(--text-mid); font-size: .92rem;
}
.mobile-nav-drawer a:active { background: var(--bg-panel-hover); color: var(--text-hi); }

/* ---------- Running text ---------- */
.running-text-bar {
  background: linear-gradient(90deg, rgba(124,58,237,.25), rgba(34,211,238,.18));
  border-bottom: 1px solid var(--border-glass);
  padding: 7px 0; overflow: hidden; white-space: nowrap; font-size: .82rem; color: var(--text-hi);
}
.running-text-track { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 20px 70px; text-align: center; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px;
  background: var(--bg-panel); border: 1px solid var(--border-glass); font-size: .8rem; color: var(--cyan);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.08; }
.hero h1 span { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-mid); max-width: 560px; margin: 22px auto 34px; font-size: 1.05rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 14px 30px; border-radius: 999px; border: none; background: var(--grad-brand);
  color: white; font-weight: 600; box-shadow: var(--shadow-glow); transition: transform .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  padding: 14px 30px; border-radius: 999px; border: 1px solid var(--border-glass); background: var(--bg-panel);
  color: var(--text-hi); font-weight: 600; transition: background .2s ease;
}
.btn-ghost:hover { background: var(--bg-panel-hover); }

.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 56px; flex-wrap: wrap; }
@media (max-width: 480px) { .hero-stats { gap: 24px; margin-top: 40px; } .hero { padding: 60px 16px 50px; } }
.hero-stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 700; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stat-label { color: var(--text-low); font-size: .8rem; margin-top: 4px; }

/* ---------- Section shell ---------- */
.section { padding: 64px 20px; position: relative; z-index: 1; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-eyebrow { color: var(--cyan); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-top: 6px; }

/* ---------- Glass card ---------- */
.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.glass-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,.5); box-shadow: 0 12px 40px rgba(124,58,237,.2); }

/* ---------- Category chips ---------- */
.category-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.category-chip {
  flex: 0 0 auto; padding: 16px 22px; min-width: 140px; text-align: center;
  border-radius: var(--radius-md); cursor: pointer;
}
.category-chip .icon { font-size: 1.6rem; margin-bottom: 8px; }
.category-chip .name { font-size: .85rem; color: var(--text-mid); }
.category-chip.active { border-color: var(--violet-soft); background: var(--grad-brand-soft); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.product-card { padding: 14px; position: relative; overflow: hidden; }
.product-thumb {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(34,211,238,.15));
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 22px; left: 22px; font-size: .68rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; background: var(--grad-brand); color: white; letter-spacing: .03em;
}
.product-name { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.product-category { font-size: .74rem; color: var(--text-low); margin-bottom: 10px; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; }
.product-price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--cyan); }
.product-strike { font-size: .78rem; color: var(--text-low); text-decoration: line-through; }
.product-stock { font-size: .7rem; color: var(--success); margin-top: 8px; }
.product-stock.out { color: var(--danger); }

/* ---------- Banner slider ---------- */
.banner-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/7; }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; }
.banner-dot.active { background: var(--cyan); width: 22px; border-radius: 4px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { padding: 24px; }
.testi-stars { color: var(--warn); margin-bottom: 12px; font-size: .9rem; }
.testi-content { color: var(--text-mid); font-size: .92rem; line-height: 1.6; margin-bottom: 16px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-brand); }
.testi-name { font-size: .85rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border-glass); padding: 18px 4px; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; }
.faq-icon { transition: transform .25s ease; color: var(--cyan); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--text-mid); font-size: .9rem; line-height: 1.6; }
.faq-item.open .faq-a { max-height: 240px; padding-top: 12px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-glass); padding: 50px 20px 24px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }
.footer-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-low); margin-bottom: 14px; }
.footer-links a { display: block; color: var(--text-mid); font-size: .88rem; margin-bottom: 10px; }
.footer-links a:hover { color: var(--text-hi); }
.footer-bottom { text-align: center; color: var(--text-low); font-size: .78rem; border-top: 1px solid var(--border-glass); padding-top: 20px; }

/* ---------- Floating live chat ---------- */
.live-chat-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 50;
  width: 58px; height: 58px; border-radius: 50%; background: var(--grad-brand);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow);
  animation: pulse-glow 2.4s ease-in-out infinite; border: none;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,.5); }
  50% { box-shadow: 0 0 40px rgba(34,211,238,.6); }
}

/* ---------- Popup modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,7,15,.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px;
}
.modal-box { max-width: 440px; width: 100%; padding: 28px; position: relative; }
@media (max-width: 420px) { .modal-box { padding: 20px; } }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text-mid); font-size: 1.3rem; }

/* ---------- Forms ---------- */
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border-glass);
  background: rgba(255,255,255,.03); color: var(--text-hi); font-size: .92rem; font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--violet-soft); }
.form-label { font-size: .82rem; color: var(--text-mid); margin-bottom: 6px; display: block; }

/* ---------- Channel picker (payment methods) ---------- */
.channel-group-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-low); margin: 14px 0 8px; }
.channel-group-label:first-child { margin-top: 0; }
.channel-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .channel-options { grid-template-columns: 1fr; } }
.channel-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass); background: rgba(255,255,255,.03); color: var(--text-hi);
  font-size: .8rem; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.channel-btn img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.channel-btn:hover { background: var(--bg-panel-hover); }
.channel-btn.selected { border-color: var(--violet-soft); background: var(--grad-brand-soft); }
.channel-info-box { padding: 14px; border-radius: var(--radius-sm); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.25); font-size: .82rem; color: var(--text-mid); }

/* ---------- Utility ---------- */
.text-mid { color: var(--text-mid); }
.text-low { color: var(--text-low); }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.fade-in { animation: fadeIn .5s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
