/* Landing page look: violet planet-rim hero + smoked-glass sections.
   Loaded after styles.css on index.html only (the dashboard keeps styles.css as-is). */

.home {
  --bg: #150d1c;
  --bg-2: #1a1022;
  --text: #f7f7f8;
  --muted: #b4b0bf;
  --accent: #e7cbff;
  --accent-2: #dbb1ff;
  --violet: #dab0ff;
  --accent-soft: rgba(218, 176, 255, .14);
  --border: rgba(218, 176, 255, .28);
  --glass: #17171b;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  background: #150d1c;
  position: relative;
}
/* no z-index here: the dashboard glow has to screen-blend with the background behind it */
.home main, .home .footer { position: relative; }

/* ---- Buttons --------------------------------------------------------- */
.home .btn { font-weight: 600; transition: transform .2s ease, box-shadow .3s ease, filter .3s ease, background .3s ease, border-color .3s ease; }
.home .btn-primary {
  background: linear-gradient(180deg, #dcb4ff, #dbb1ff);
  color: #26103f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -10px rgba(218, 176, 255, .8);
}
.home .btn-primary:hover {
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(231, 204, 255, .5), 0 0 28px rgba(218, 176, 255, .65);
}
.home .btn-ghost {
  background: #292130; color: #f7f7f8; border-color: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.home .btn-ghost:hover {
  border-color: rgba(231, 203, 255, .6);
  box-shadow: 0 0 22px rgba(218, 176, 255, .35);
}

/* ---- Promo + nav ----------------------------------------------------- */
.home .promo-banner {
  position: relative; z-index: 2;
  background: linear-gradient(90deg, #cd94ff, #dab0ff 50%, #cd94ff);
  color: #26103f; font-weight: 500;
}
.home .promo-banner strong { font-weight: 700; }

.home .nav {
  background: rgba(0, 0, 0, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  animation: navIn .7s cubic-bezier(.22, 1, .36, 1) backwards;
}
.home .nav-inner { height: 56px; }
.home .nav-links {
  margin: 0 auto; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px;
}
.home .nav-links a {
  padding: 5px 13px; border-radius: 999px; font-size: 13px; color: #b4b2b1;
  transition: color .2s, background .2s;
}
.home .nav-actions { gap: 8px; }
.home .nav-actions .btn { padding: 6px 15px; font-size: 13.5px; }
.home .brand-logo { width: 28px; height: 28px; }
.home .brand-name { font-size: 18px; }
.home .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.home .nav-links a:first-child { background: #1b1a1f; color: #fff; }
.home .nav-actions { margin-left: 0; }
.home .brand-logo { filter: drop-shadow(0 0 10px rgba(218, 176, 255, .6)); }

/* ---- Background: AeroShards, fixed behind the whole page ------------- */
/* The gradient is what shows if WebGPU isn't available */
.aero-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 50% 0%, #211030 0%, #150d1c 70%);
}
.aero-bg > div { width: 100%; height: 100%; }
.aero-shards { position: relative; width: 100%; height: 100%; overflow: hidden; }
.aero-shards-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }

/* ---- Hero ------------------------------------------------------------ */
.home .hero { padding: clamp(120px, 21vh, 210px) 0 0; overflow: visible; }
.home .hero-glow { display: none; }
.home .hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4vw, 58px); line-height: 1.04; letter-spacing: -.035em;
  max-width: 1080px; margin-bottom: 20px; color: #f7f7f8;
  animation: wipeUp .9s cubic-bezier(.22, 1, .36, 1) .25s backwards;
}
.home .accent, .home .ltr-accent {
  background: linear-gradient(120deg, #ecd6ff, #dcb4ff 55%, #dbb1ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede {
  max-width: 700px; margin: 0 auto 30px;
  color: #ecd6ff; font-size: 19.5px; line-height: 1.55;
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) .55s backwards;
}
.home .hero-cta { animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) .7s backwards; }
.home .hero-cta .btn { padding: 9px 22px; font-size: 14.5px; }

/* ---- Scripts in the violet-edged panel ------------------------------- */
.home #products { padding: clamp(48px, 9vh, 96px) 0 72px; }
.dash {
  position: relative; max-width: 1204px; margin: 0 auto;
  animation: riseIn 1s cubic-bezier(.22, 1, .36, 1) .85s backwards;
}
.dash-glow {
  /* Transparent CSS glow (the old image had a solid black background that only
     disappeared via blend mode, so it flashed as a black box while animating) */
  position: absolute; left: 0; right: 0; top: -90px; height: 130px; pointer-events: none;
  background: radial-gradient(50% 100% at 50% 100%, rgba(221, 183, 255, .32), rgba(221, 183, 255, .1) 45%, transparent 75%);
}
.dash-panel {
  position: relative; border-radius: 14px; padding: 34px clamp(16px, 2.4vw, 32px) 32px;
  background: linear-gradient(180deg, rgba(44, 26, 60, .9), rgba(28, 18, 36, .94));
  border: 1px solid rgba(218, 176, 255, .38);
  box-shadow: 0 -10px 60px -20px rgba(218, 176, 255, .45), 0 40px 80px -30px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.dash-panel::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #ebd5ff 30%, #fff 50%, #ebd5ff 70%, transparent);
  box-shadow: 0 0 14px 1px rgba(220, 180, 255, .9);
}
.home #products .section-head { margin-bottom: 28px; }
.home .section-head h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; }

.home .product-card {
  background: linear-gradient(180deg, #251b2e, #1d1524);
  animation: fadeUp .8s cubic-bezier(.22, 1, .36, 1) backwards;
}
.home .product-card:nth-child(1) { animation-delay: 1.05s; }
.home .product-card:nth-child(2) { animation-delay: 1.15s; }
.home .product-card:nth-child(3) { animation-delay: 1.25s; }
.home .product-card:nth-child(n+4) { animation-delay: 1.35s; }
.home .product-thumb .game-tag { background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .15); }
.home .rating { color: #ebd5ff; }
.home .price-was { color: #8a8496; font-weight: 500; font-size: .8em; margin-right: 2px; }
.home .price-per { color: #a9a3b6; font-weight: 500; font-size: .75em; margin-left: 1px; }
.home .bestseller-pill, .home .featured-badge { background: linear-gradient(180deg, #dcb4ff, #dbb1ff); color: #26103f; }

/* =====================================================================
   Smoked-glass sections
   ===================================================================== */
.home .section:not(#products), .home .accessibility, .home .worldwide {
  border: 0;
  background: transparent;
}

.home .eyebrow {
  background: none; border: 0; padding: 0;
  font-size: 11px; letter-spacing: .2em; color: rgba(236, 214, 255, .62); font-weight: 500;
}

/* A slab tilts toward the pointer; its shards lift off it.
   Each shard carries its own perspective (no preserve-3d) so lifted shards never slice into neighbours. */
.slab { transform: perspective(1600px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }
.home .shard {
  --lift: 0px; --tx: 0deg; --ty: 0deg; --glow: 0; --iri: .55;
  position: relative; isolation: isolate;
  border-radius: 20px;
  background:
    radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(107, 94, 158, calc(var(--glow) * .55)), transparent 70%),
    linear-gradient(160deg, #3a3744 0%, #2a2733 40%, #231d28 100%);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 1px 0 0 rgba(255, 255, 255, .1),
    inset -1px 0 0 rgba(255, 255, 255, .05),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    0 2px 0 #2c2936, 0 5px 0 #27212d, 0 9px 0 #1f1924, 0 13px 0 #17121b,
    0 34px 60px -24px rgba(0, 0, 0, .95);
  transform: perspective(1200px) translateZ(var(--lift)) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), box-shadow .4s ease, --glow .4s ease;
  will-change: transform;
}
/* iridescent green/violet sheen that slides with the tilt */
.home .shard::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(70, 255, 170, .09) 42%, rgba(233, 207, 255, .16) 55%, transparent 72%);
  background-size: 260% 100%;
  background-position: var(--sheen, 50%) 0;
  opacity: var(--iri);
  mix-blend-mode: screen;
  transition: opacity .4s ease;
}
.home .shard.is-hot { --lift: 50px; --iri: 1; z-index: 2; }
.home .shard.is-hot {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 1px 0 0 rgba(255, 255, 255, .16),
    inset -1px 0 0 rgba(255, 255, 255, .08),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    0 2px 0 #2c2936, 0 5px 0 #27212d, 0 9px 0 #1f1924, 0 13px 0 #17121b,
    0 60px 80px -30px rgba(0, 0, 0, 1);
}

/* Featured */
.home .featured-inner { gap: 14px; align-items: stretch; }
.home .featured-media { padding: 14px; display: flex; align-items: center; }
.home .featured-art { border: 0; border-radius: 12px; box-shadow: none; }
.home .featured-badge { top: 28px; left: 28px; }
.home .featured-copy { padding: clamp(24px, 3vw, 44px); }
.home .featured-copy h2, .home .access-copy h2, .home .worldwide h2, .home #getstarted h2 {
  font-weight: 500; letter-spacing: -.045em; line-height: .97;
  background: linear-gradient(180deg, #dcdce0, #bdbdc3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.home .featured-copy h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 18px; }
.home .featured-copy > p, .home .access-copy p { color: rgba(255, 255, 255, .74); }
.home .featured-copy strong { color: #fff; font-weight: 500; }
.home .check-list li { color: rgba(255, 255, 255, .8); }
.home .check-list li::before { background: rgba(218, 176, 255, .18); color: #ebd5ff; }

/* Live worldwide */
.home .section-head.light h2 { font-size: clamp(30px, 4.4vw, 52px); }
.home .section-head.light p { color: rgba(255, 255, 255, .74); opacity: 1; }
.home .map-wrap { padding: clamp(18px, 3vw, 40px); padding-top: 72px; max-width: 1080px; }
.home .world-map { filter: brightness(1.35) saturate(1.3); opacity: .9; }
.home .map-counter {
  top: 24px; background: rgba(0, 0, 0, .45); color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .12);
}
.home .map-counter strong { color: #fff; font-variant-numeric: tabular-nums; }

/* Accessibility */
.home .access-inner { gap: 14px; align-items: stretch; }
.home .access-copy { padding: clamp(24px, 3vw, 44px); }
.home .access-copy h2 { font-size: clamp(28px, 3.6vw, 44px); }
.home .access-points { gap: 14px; }
.home .access-points li {
  display: flex; align-items: center; min-height: 72px;
  padding: 16px 18px 16px 42px; color: rgba(255, 255, 255, .8); font-size: 14px;
}
.home .access-points li::before { color: #ebd5ff; left: 18px; }

/* Getting started */
.home #getstarted h2 { font-size: clamp(28px, 3.6vw, 44px); }
.home .banner-grid { gap: 14px; }
.home .banner-card { padding: 10px; }
.home .banner-card:hover { transform: perspective(1200px) translateZ(var(--lift)) rotateX(var(--tx)) rotateY(var(--ty)); border-color: transparent; }
.home .banner-card img { border-radius: 12px; }
.home .banner-overlay { left: 34px; bottom: 30px; }

/* Footer */
.home .footer { background: var(--bg-2); border-top: 0; padding-top: 40px; }
.home .footer-inner { gap: 14px; }
.home .footer-inner > div { padding: 24px 22px; }
.home .footer-brand p { color: rgba(255, 255, 255, .65); }
.home .footer-col h4 { color: rgba(236, 214, 255, .62); font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.home .footer-col a { color: rgba(255, 255, 255, .8); }
.home .footer-col a:hover { color: #fff; }
.home .footer-bottom { border-top-color: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5); font-size: 12px; }

/* ---- Checkout modal -------------------------------------------------- */
.home .co-modal { background: rgba(0, 0, 0, .8); }
.home .co-card {
  background: #120b0f; border-color: rgba(218, 176, 255, .35);
  max-width: 440px; max-height: 86vh; padding: 30px 6px 6px; border-radius: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(231, 203, 255, .45) transparent;
}
.home .co-card::-webkit-scrollbar { width: 6px; }
.home .co-card::-webkit-scrollbar-thumb { background: rgba(231, 203, 255, .45); border-radius: 999px; }
.home .co-card::-webkit-scrollbar-track { background: transparent; }
.home #coMount { min-height: 300px; }
.home .co-close { top: 3px; right: 10px; font-size: 22px; }

/* ---- Entrance keyframes ---------------------------------------------- */
@keyframes navIn  { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes wipeUp { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { opacity: 1; clip-path: inset(0 0 -10% 0); transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }

/* ---- Offer toast ----------------------------------------------------- */
/* below the checkout modal (z 200) so it never covers checkout */
.offer-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 150;
  display: flex; align-items: center; gap: .75rem;
  width: 340px; padding: .65rem .85rem;
  background: rgba(26, 16, 34, .95);
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.16, 1, .3, 1);
}
.offer-toast[hidden] { display: none; }
.offer-toast.is-in { animation: toastIn .4s cubic-bezier(.16, 1, .3, 1) forwards; pointer-events: auto; }
.offer-toast.is-out { animation: none; opacity: 0; transform: translateY(8px); pointer-events: none; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.toast-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(218, 176, 255, .15); border: 1px solid rgba(218, 176, 255, .3);
}
.toast-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.toast-title { margin: 0; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .9); letter-spacing: .01em; }
.toast-message { margin: 0; font-size: .75rem; color: rgba(255, 255, 255, .82); line-height: 1.5; }
.toast-code { color: #ebd5ff; font-weight: 700; letter-spacing: .04em; }
.toast-x {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 3px; cursor: pointer;
  opacity: .5; transition: opacity .15s ease;
}
.toast-x:hover { opacity: 1; }

@media (max-width: 480px) {
  .offer-toast { bottom: 0; right: 0; left: 0; width: 100%; border-radius: 10px 10px 0 0; border-bottom: 0; }
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 1000px) {
  .home .nav-inner { gap: 16px; }
  .home .nav-links a { padding: 5px 10px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 900px) {
  .home .hero { padding-top: 110px; }
  .home .footer-inner > div { padding: 20px; }
}
@media (max-width: 720px) {
  .home .nav-links { border-radius: 16px; }
  .home .nav-links.open { top: 56px; background: #1d1424; border-bottom: 1px solid rgba(218, 176, 255, .3); padding: 14px; gap: 4px; }
  .home .nav-links.open a:first-child { background: #1b1a1f; }
  .home .hero { padding-top: 84px; }
  .hero-lede { font-size: 16.5px; }
  .dash-panel { padding-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .home .nav, .home .hero-title, .hero-lede, .home .hero-cta, .dash, .home .product-card { animation: none; }
  .shard { transition: none; }
}

/* ---- 3D device viewer ------------------------------------------------ */
.home .zen3d-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.zen3d-stage {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(120% 90% at 50% 40%, #1d1530 0%, #0d0a16 60%, #08060d 100%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.zen3d-canvas { height: clamp(320px, 42vw, 480px); outline: none; }
.zen3d-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.zen3d-canvas canvas { display: block; width: 100%; height: 100%; }
.zen3d-canvas.no-webgl { background: url("assets/images/logo.png?v=lav") center / 120px no-repeat; opacity: .5; }
.zen3d-reset {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 14px; border-radius: 999px;
  font: 500 14px/1 Inter, system-ui, sans-serif; color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); cursor: pointer;
}
.zen3d-reset:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.zen3d-hint { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: 12.5px; color: rgba(255, 255, 255, .5); pointer-events: none; }
.home .zen3d-copy h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em; font-size: clamp(28px, 3.4vw, 42px); margin: 10px 0 14px; }
.home .zen3d-copy p { color: rgba(255, 255, 255, .74); margin-bottom: 24px; }
@media (max-width: 860px) { .home .zen3d-inner { grid-template-columns: 1fr; } }
