/* ============ oserega store — premium dark theme ============ */
:root {
  --bg: #06060c;
  --bg-2: #0b0b16;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eef0ff;
  --muted: #9aa0b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --gold: #ffd166;
  --green: #34d399;
  --radius: 20px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.55;
}

::selection { background: rgba(124, 92, 255, 0.45); }

a { color: inherit; }

/* ---------- background layers ---------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(52rem 30rem at 12% -6%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(46rem 28rem at 88% 4%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(60rem 40rem at 50% 110%, rgba(244, 114, 182, 0.12), transparent 60%),
    var(--bg);
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-repeat: repeat;
  background-size: 160px 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

section { padding: 72px 0; position: relative; }

.section-head { margin-bottom: 34px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; }

.section-sub { color: var(--muted); max-width: 620px; margin-top: 10px; font-size: 16px; }

.grad {
  background: linear-gradient(92deg, #a78bfa 0%, #22d3ee 55%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 6, 12, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 18px rgba(124, 92, 255, 0.55);
}

.logo .dot-online {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }

.nav-links { display: flex; gap: 6px; align-items: center; }

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(94deg, var(--accent), #5b8bff 50%, var(--accent-2));
  background-size: 200% 100%;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.65);
  animation: sheen 6s linear infinite;
}

@keyframes sheen { to { background-position: 200% 0; } }

.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px -8px rgba(124, 92, 255, 0.8); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 60px;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.4);
  background: rgba(124, 92, 255, 0.12);
  font-size: 13.5px;
  font-weight: 600;
  color: #cfc4ff;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero p.lead {
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 14px 34px;
  justify-content: start;
}

.stat { position: relative; padding-left: 16px; }

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.stat b {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat span { color: var(--muted); font-size: 13px; }

/* hero right: 3d scene + qr */
.hero-right { position: relative; min-height: 460px; }

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.qr-float {
  position: absolute;
  right: 4%;
  bottom: 4%;
  width: 168px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transform-style: preserve-3d;
  animation: floaty 5.5s ease-in-out infinite;
  text-decoration: none;
  color: #171233;
  text-align: center;
}

.qr-float img { width: 100%; display: block; border-radius: 10px; }

.qr-float small {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 26s linear infinite;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track span b { color: var(--accent-2); }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.3s;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 18px 44px -16px rgba(124, 92, 255, 0.5);
}

.feature .ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 25px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- catalog ---------- */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.tab {
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab .count {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.tab:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }

.tab.active {
  color: #fff;
  background: linear-gradient(94deg, var(--accent), var(--accent-2));
  border-color: transparent;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.7);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, border-color 0.25s, box-shadow 0.3s;
  overflow: hidden;
  animation: card-in 0.5s ease backwards;
  contain: layout paint style;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(0.96); }
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(124, 92, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover { border-color: rgba(124, 92, 255, 0.55); box-shadow: 0 22px 50px -18px rgba(0, 0, 0, 0.8); }
.card:hover::after { opacity: 1; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }

.chip {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.chip.stock { color: var(--green); background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.35); }

.card h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
  min-height: 44px;
  transform: translateZ(24px);
}

.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateZ(30px);
}

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(92deg, #fff, #cfc4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price small { font-size: 13px; font-weight: 700; }

.buy {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(94deg, var(--accent), #5b8bff);
  box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.8);
  transition: transform 0.18s, box-shadow 0.25s;
  white-space: nowrap;
}

.buy:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px -8px rgba(124, 92, 255, 0.95); }

/* ---------- reviews ---------- */
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.rating-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 16px 22px;
  border-radius: var(--radius);
}

.rating-box b { font-size: 40px; font-weight: 800; }

.stars { color: var(--gold); font-size: 18px; letter-spacing: 3px; text-shadow: 0 0 14px rgba(255, 209, 102, 0.6); }

.rating-box span { color: var(--muted); font-size: 13px; display: block; }

.reviews-track-wrap { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

.reviews-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 44s linear infinite;
  padding: 6px 0;
}

.reviews-track-wrap:hover .reviews-track { animation-play-state: paused; }

.review {
  width: 320px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
}

.review .r-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.review .r-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.4), rgba(34, 211, 238, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.review .r-name { font-weight: 700; font-size: 14px; }
.review .r-sum { color: var(--muted); font-size: 12px; }
.review .r-stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; margin-left: auto; }
.review p { color: #cdd2e6; font-size: 14px; }

/* ---------- qr section ---------- */
.qr-section .qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
  background: linear-gradient(150deg, rgba(124, 92, 255, 0.14), rgba(34, 211, 238, 0.07));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}

.qr-section .qr-grid::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%);
  filter: blur(10px);
}

.qr-card {
  justify-self: center;
  width: min(320px, 78vw);
  background: #fff;
  color: #171233;
  border-radius: 24px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.75);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  position: relative;
  z-index: 1;
}

.qr-card img { width: 100%; border-radius: 14px; display: block; }

.qr-card .qr-title { margin-top: 14px; font-weight: 800; font-size: 16px; }
.qr-card .qr-url { color: #6b6787; font-size: 12.5px; word-break: break-all; margin-top: 2px; }

.qr-info h2 { margin-bottom: 14px; }
.qr-info p { color: var(--muted); margin-bottom: 24px; max-width: 460px; }

.qr-steps { display: grid; gap: 12px; margin-bottom: 26px; }

.qr-step {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14.5px;
}

.qr-step b {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 14px;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-grid a { color: var(--accent-2); text-decoration: none; font-weight: 700; }
.footer-grid a:hover { text-decoration: underline; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { min-height: 380px; order: -1; }
  .qr-section .qr-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 54px 0; }
  .hero { min-height: auto; padding-top: 48px; }
  .qr-float { width: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
