/* =========================================================
   Nexsky Landing Page – Modern Luxe Redesign
   Full rebuild: luxury navbar, theme‑proof, animated
   (Fonts: IRANSans (body), BZarBd (hero heading))
========================================================= */

/* ---------- IRANSans Web Font ---------- */
@font-face {
  font-family: 'IRANSans';
  src: url("/static/fonts/iransans/IRANSansWeb_UltraLight.068169d2ab5f.woff2") format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url("/static/fonts/iransans/IRANSansWeb_Light.f7e4be98d20e.woff2") format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url("/static/fonts/iransans/IRANSansWeb.0b5055ac3573.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url("/static/fonts/iransans/IRANSansWeb_Medium.9c66b762719d.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url("/static/fonts/iransans/IRANSansWeb_Bold.43a0ecf3c7f2.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IRANSans';
  src: url("/static/fonts/iransans/IRANSansWeb_Black.f477dd9634c9.woff2") format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* ---------------------------------------- */

/* ---------- Custom Properties ---------- */
:root {
  --bg-deep: #03050a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-cyan: #00f0ff;
  --accent-rose: #ff0055;
  --accent-purple: #8a2be2;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --radius-xl: 1.6rem;
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-sm: 0.7rem;
  --transition-main: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --font-main: 'IRANSans', 'Tahoma', 'Arial', sans-serif;   /* body font */

  /* Navbar specific */
  --nav-bg: rgba(10, 10, 12, 0.45);
  --nav-border: rgba(255, 255, 255, 0.12);
  --nav-link-color: rgba(255, 255, 255, 0.9);
  --nav-hover-bg: rgba(255, 255, 255, 0.08);
}

/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background:
    radial-gradient(circle at 18% 10%, rgba(0,240,255,0.12), transparent 18%),
    radial-gradient(circle at 84% 15%, rgba(255,0,85,0.12), transparent 20%),
    radial-gradient(circle at 50% 80%, rgba(138,43,226,0.08), transparent 22%),
    var(--bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ---------- Background Layers ---------- */
#starfield {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.bg-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: none !important;
}
.bg-aura::before,
.bg-aura::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.2;
  animation: none !important;
}
.bg-aura::before {
  width: 80vmax;
  height: 80vmax;
  background: radial-gradient(circle, var(--accent-rose) 0%, transparent 70%);
  top: -30%;
  left: -20%;
  animation-delay: 0s;
}
.bg-aura::after {
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: -30%;
  right: -20%;
  animation-delay: -12s;
}

/* ---------- Page Wrapper ---------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 0 0 3rem;
}

/* =============================================================
   MODERN LUXURY NAVBAR
============================================================= */
.lux-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.3s, box-shadow 0.3s;
  overflow: visible;
  isolation: isolate;
}
.lux-navbar > * {
  position: relative;
  z-index: 1;
}
.lux-navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 240, 255, 0.15) 0%,
    rgba(138, 43, 226, 0.1) 25%,
    rgba(255, 0, 85, 0.08) 50%,
    rgba(0, 240, 255, 0.05) 75%,
    rgba(138, 43, 226, 0.1) 100%
  );
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  z-index: 0;
}
.lux-navbar::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-cyan) 20%,
    var(--accent-purple) 50%,
    var(--accent-cyan) 80%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}
.lux-navbar.scrolled {
  background: rgba(3, 5, 10, 0.82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}
.lux-navbar.scrolled::after {
  opacity: 1;
}

.nav-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.45rem clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, filter 0.3s;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.nav-logo .logo-icon img,
.nav-logo .logo-icon svg,
.nav-logo .logo-icon .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-img {
  height: 36px;
  width: auto;
  transition: filter 0.3s;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-item {
  padding: 10px 18px;
  border-radius: 12px;
  color: var(--nav-link-color);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-main);
  cursor: pointer;
  white-space: nowrap;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(0, 240, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.nav-item.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
}

/* Controls (theme, lite, auth) */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  flex-shrink: 0;
}
.icon-btn:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0,240,255,0.3);
  background: rgba(0, 240, 255, 0.08);
}
.icon-btn.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
}

/* Auth pills */
.nav-auth-desktop {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.auth-pill {
  padding: 10px 18px;
  border-radius: 28px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  background: transparent;
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.auth-pill:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 20px rgba(0,240,255,0.2);
  transform: translateY(-1px);
}
.logout-pill {
  background: rgba(255, 0, 85, 0.1);
  border-color: rgba(255, 0, 85, 0.25);
  color: #ff6b9d;
}
.logout-pill:hover {
  background: rgba(255, 0, 85, 0.2);
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: auto;
  height: auto;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
.hamburger:hover {
  color: var(--accent-cyan);
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu actions hidden on desktop */
.nav-actions-mobile {
  display: none;
}

/* ---- LIGHT MODE Navbar Adjustments ---- */
body.light-mode {
  --bg-deep: #f4f7f9;
  --bg: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(15, 23, 42, 0.08);
  --text-primary: #1e293b;
  --text-secondary: rgba(30, 41, 59, 0.7);
  --accent-cyan: #00b4d8;
  --accent-rose: #d9004d;
  --accent-purple: #7209b7;

  --nav-bg: rgba(244, 247, 249, 0.85);
  --nav-border: rgba(15, 23, 42, 0.1);
  --nav-link-color: rgba(30, 41, 59, 0.85);
  --nav-hover-bg: rgba(0, 180, 216, 0.08);
}
body.light-mode .bg-aura::before,
body.light-mode .bg-aura::after { opacity: 0.08; filter: blur(150px); }
body.light-mode .lux-navbar {
  background: rgba(244, 247, 249, 0.85);
  box-shadow: 0 5px 20px rgba(15, 23, 42, 0.05);
}
body.reduced-visual-effects .lux-navbar,
body.reduced-visual-effects .lux-navbar::before,
body.reduced-visual-effects .lux-navbar::after {
  animation: none !important;
}
body.reduced-visual-effects .lux-navbar {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.light-mode.reduced-visual-effects .lux-navbar {
  background: rgba(255, 255, 255, 0.96);
}
body.light-mode .nav-item {
  color: rgba(30, 41, 59, 0.8);
}
body.light-mode .nav-item:hover,
body.light-mode .nav-item.active {
  background: rgba(0, 180, 216, 0.08);
  border-color: rgba(0, 180, 216, 0.2);
  color: #0f172a;
}
body.light-mode .nav-item.active {
  background: rgba(0, 180, 216, 0.12);
  color: #0077b6;
}
body.light-mode .icon-btn {
  color: rgba(30, 41, 59, 0.8);
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.6);
}
body.light-mode .icon-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.2);
}
body.light-mode .icon-btn.active {
  background: rgba(0, 180, 216, 0.1);
  border-color: rgba(0, 180, 216, 0.3);
  color: #008b99;
}
body.light-mode .auth-pill {
  color: rgba(30, 41, 59, 0.9);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.12);
}
body.light-mode .auth-pill:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}
body.light-mode .logout-pill {
  background: rgba(255, 0, 85, 0.06);
  border-color: rgba(255, 0, 85, 0.2);
  color: #d9004d;
}
body.light-mode .logout-pill:hover {
  background: rgba(255, 0, 85, 0.12);
  color: #b3003d;
}
body.light-mode .hamburger span { background: #1e293b; }

/* ---------- Stories Bar ---------- */
.stories-bar {
  width: 100%;
  max-width: 1200px;
  margin: 0.25rem auto 1rem;
  padding: 0.25rem 0;
}
.stories-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.25rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.stories-scroll::-webkit-scrollbar { display: none; }

.store-stories-shell { width: 100%; }
.store-stories-track {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}
.store-story-card {
  flex: 0 0 auto;
  width: 70px;
  text-align: center;
}
.store-story-trigger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  padding: 0;
}
.store-story-media {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 2px;
}
.store-story-media img,
.store-story-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.store-story-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.store-story-info strong {
  font-size: 0.7rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
  color: var(--text-secondary);
}
.store-story-info span { display: none; }

.store-story-viewer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  overflow: auto;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  transition: opacity 0.25s ease;
  place-items: center;
}
.store-story-viewer.active { display: grid; }
.store-story-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
}
.store-story-viewer-panel {
  position: relative;
  width: min(100%, 980px);
  max-width: 1000px;
  max-height: calc(100vh - 3rem);
  margin: auto;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(10, 16, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  z-index: 2;
}
.store-story-viewer-close,
.store-story-close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.store-story-viewer-close:hover,
.store-story-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}
.store-story-viewer-media {
  width: 100%;
  min-height: 50vh;
  max-height: 70vh;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05070f;
}
.store-story-viewer-media img,
.store-story-viewer-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.store-story-viewer-content {
  padding: 1.75rem 2rem 2rem;
  color: #f7f7fb;
}
.store-story-viewer-content h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.1;
}
.store-story-viewer-content p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-size: 1rem;
}
.store-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #020617;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.store-story-cta:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* ---------- Hero (scaled down for desktop) ---------- */
.hero {
  text-align: center;
  margin: 1rem 0 0.5rem;
  width: min(100%, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1s ease forwards;
}
.hero h1 {
  font-family: 'BZarBd', 'Tahoma', 'Arial', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);   /* scaled down from huge 6.5rem */
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 60%, var(--accent-purple) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.3));
  line-height: 1.1;
  margin-bottom: 0.2em;
}
.hero .brand {
  font-size: 0.95rem;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.hero .brand::before,
.hero .brand::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0.6;
}
.hero .tagline {
  margin-top: 1rem;
  font-size: 1rem;           /* reduced from 1.25rem */
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Split Cards (compact desktop) ---------- */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  width: min(100%, 1080px);
  margin: 1.5rem 0 3rem;
}
.card-glass {
  flex: 1 1 320px;
  max-width: 480px;
  position: relative;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid transparent;
  overflow: hidden;
  transition: all var(--transition-main);
  padding: 1.8rem 1.5rem;          /* reduced from 2.5rem 2rem */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(0);
  isolation: isolate;
}
.card-glass.bg-image { background-color: transparent !important; }

.card-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.card-glass:hover::before { opacity: 1; }

.card-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.card-glass:hover::after { opacity: 1; }
.card-glass:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
}

.card-glass .card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 2;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.card-glass .icon {
  font-size: 2.2rem;          /* reduced from 2.8rem */
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
  line-height: 1;
}
.card-glass h2 {
  font-size: 1.6rem;          /* reduced from 2.2rem */
  font-weight: 800;
  line-height: 1.2;
}
.card-glass .desc {
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.04);
}
.card-glass .cta-btn {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  backdrop-filter: blur(10px);
  z-index: 3;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.card-glass .cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s ease;
}
.card-glass:hover .cta-btn {
  background: #ffffff;
  color: #03050a;
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.card-glass:hover .cta-btn::before { left: 100%; }
.card-glass .cta-btn i { transition: transform 0.3s ease; }
.card-glass:hover .cta-btn i { transform: translateX(-4px); }

.card-physical .icon {
  background: linear-gradient(135deg, var(--accent-rose), #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 15px rgba(255, 0, 85, 0.4));
}
.card-physical:hover { box-shadow: 0 35px 70px rgba(255, 0, 85, 0.2); }
.card-physical:hover::after { background: linear-gradient(135deg, var(--accent-rose), #ff6b9d); }
.card-digital .icon {
  background: linear-gradient(135deg, var(--accent-cyan), #7df9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-digital:hover { box-shadow: 0 35px 70px rgba(0, 240, 255, 0.2); }

.card-glass .landing-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
  background: none !important;
  transform: scale(1.01);
  will-change: transform;
}

.card-glass > .card-content,
.card-glass > .cta-btn {
  position: relative;
  z-index: 2;
}

/* ---------- Stats Strip (scaled) ---------- */
.stats-strip {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 960px;
  margin: 0 0 3rem;
}
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;          /* reduced */
  text-align: center;
  min-width: 140px;
  flex: 1;
  transition: var(--transition-main);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.stat-card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 240, 255, 0.1);
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-num {
  font-size: 2rem;               /* reduced from 2.4rem */
  font-weight: 900;
  background: linear-gradient(135deg, #60f3ff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- Product Showcase (scaled + light mode fix) ---------- */
.showcase-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 0 3rem;
}
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.badge-glow {
  background: rgba(0,240,255,0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0,240,255,0.25);
  box-shadow: 0 0 15px rgba(0,240,255,0.1);
}
.section-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);   /* scaled down */
  font-weight: 900;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.showcase-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-main);
  display: flex;
  flex-direction: column;
}
.showcase-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 20px 40px rgba(0,240,255,0.15);
}
.showcase-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
}
.showcase-img img,
.showcase-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.showcase-card:hover .showcase-img img,
.showcase-card:hover .showcase-img video { transform: scale(1.08); }
.showcase-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.15);
}
.showcase-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0,240,255,0.2);
  backdrop-filter: blur(10px);
  color: var(--accent-cyan);
  border: 1px solid rgba(0,240,255,0.3);
}
.showcase-badge.physical {
  background: rgba(255,0,85,0.2);
  color: var(--accent-rose);
  border-color: rgba(255,0,85,0.3);
}
.showcase-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}
.showcase-body h3 {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.4;
}
.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}
.showcase-price {
  font-weight: 800;
  color: var(--accent-cyan);
  font-size: 1rem;
}
.badge-discount {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 0, 85, 0.18);
  border: 1px solid rgba(255, 0, 85, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

/* ---------- Blog Banner ---------- */
.blog-banner {
  width: 90%;
  max-width: 820px;
  background: rgba(15, 15, 25, 0.5);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin: 1rem 0 3rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.blog-banner:hover {
  background: rgba(30, 30, 45, 0.65);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}
.blog-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(0,240,255,0.05), transparent, rgba(255,0,85,0.05));
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.blog-banner:hover::after { opacity: 1; }
.blog-thumb {
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.3);
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-info {
  flex: 1;
  min-width: 200px;
}
.blog-info .category-badge {
  display: inline-block;
  padding: 0.2rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,240,255,0.12);
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}
.blog-info h4 { font-size: 1.1rem; margin-bottom: 0.3rem; color: #fff; font-weight: 700; }
.blog-info .meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}
.blog-info .excerpt {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-banner .btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.65rem 1.8rem;
  border-radius: 2.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-weight: 500;
}
.blog-banner .btn-outline:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}
.blog-banner .btn-outline i { transition: transform 0.3s ease; }
.blog-banner .btn-outline:hover i { transform: translateX(-4px); }

/* ---------- Features Grid ---------- */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 0 3rem;
}
.feature-item {
  flex: 1 1 200px;
  text-align: center;
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}
.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.feature-item i {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5));
  display: inline-block;
  transition: transform 0.3s ease;
}
.feature-item:hover i { transform: scale(1.1); }
.feature-item h5 { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.1rem; }
.feature-item p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; }

/* ---------- Newsletter ---------- */
.newsletter-section {
  width: 100%;
  max-width: 650px;
  margin: 1.5rem 0 3rem;
}
.newsletter-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(0,240,255,0.15);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,240,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.newsletter-card h2 {
  font-weight: 900;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  position: relative;
}
.newsletter-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  position: relative;
  font-size: 0.9rem;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 20px;
  border-radius: 40px;
  border: 1.5px solid rgba(0,240,255,0.3);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: 0.3s;
}
.newsletter-form input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0,240,255,0.3);
  background: rgba(0,0,0,0.5);
}
.newsletter-btn {
  padding: 12px 28px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-main);
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,240,255,0.2);
}
.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,240,255,0.4);
  filter: brightness(1.1);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding: 2rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   LIGHT MODE – Full Override (includes product card fix)
============================================================= */
body.light-mode .card-glass {
  background: rgba(255, 255, 255, 0.6);
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}
body.light-mode .card-glass.bg-image { background-color: transparent !important; }
body.light-mode .card-glass .desc {
  background: rgba(255, 255, 255, 0.8);
  color: rgba(15, 23, 42, 0.8);
  border-color: rgba(15, 23, 42, 0.05);
}
body.light-mode .card-glass:hover {
  border-color: transparent;
  box-shadow: 0 30px 60px rgba(0, 180, 216, 0.1);
}
body.light-mode .card-glass::after {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
}
body.light-mode .hero h1 {
  background: linear-gradient(135deg, #1e293b 20%, #00b4d8 60%, #7209b7 90%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 180, 216, 0.2));
}
body.light-mode .hero .tagline { color: rgba(15, 23, 42, 0.7); }
body.light-mode .hero .brand { color: rgba(15, 23, 42, 0.55); }
body.light-mode .hero .brand::before,
body.light-mode .hero .brand::after {
  background: linear-gradient(90deg, transparent, #00b4d8, transparent);
  opacity: 0.5;
}
body.light-mode .section-header h2 {
  background: linear-gradient(135deg, #1e293b, #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
}
body.light-mode .badge-glow {
  color: #00b4d8;
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.1);
}
body.light-mode .stat-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}
body.light-mode .stat-card:hover {
  border-color: rgba(0, 180, 216, 0.3);
  box-shadow: 0 15px 30px rgba(0, 180, 216, 0.1);
}
body.light-mode .stat-num {
  background: linear-gradient(135deg, #0077b6, #00b4d8);
  -webkit-background-clip: text;
  background-clip: text;
}
/* FIX: product cards light background */
body.light-mode .showcase-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}
body.light-mode .showcase-card:hover {
  border-color: #00b4d8;
  box-shadow: 0 20px 40px rgba(0, 180, 216, 0.1);
}
body.light-mode .showcase-img {
  background: rgba(255,255,255,0.2);   /* lighten the dark overlay */
}
body.light-mode .showcase-body h3 { color: #1e293b; }
body.light-mode .showcase-price { color: #0077b6; }
body.light-mode .blog-banner {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.05);
}
body.light-mode .blog-info h4 { color: #1e293b; }
body.light-mode .blog-info .meta { color: rgba(15, 23, 42, 0.6); }
body.light-mode .blog-info .excerpt { color: rgba(15, 23, 42, 0.75); }
body.light-mode .feature-item {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.03);
}
body.light-mode .feature-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(15, 23, 42, 0.15);
}
body.light-mode .newsletter-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 180, 216, 0.2);
}
body.light-mode .newsletter-form input {
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  border-color: rgba(15, 23, 42, 0.15);
}
body.light-mode .newsletter-form input:focus {
  border-color: #00b4d8;
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.2);
}
body.light-mode .newsletter-btn {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
}
body.light-mode .card-glass .cta-btn {
  background: rgba(255, 255, 255, 0.6);
  color: #1e293b;
  border-color: rgba(15, 23, 42, 0.15);
}
body.light-mode .card-glass:hover .cta-btn {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
  box-shadow: 0 10px 25px rgba(30, 41, 59, 0.2);
}
body.light-mode .blog-banner .btn-outline {
  border-color: rgba(15, 23, 42, 0.2);
  color: #1e293b;
}
body.light-mode .blog-banner .btn-outline:hover {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
}

/* ========== REDUCED VISUAL EFFECTS (Light Mode) ========== */
body.reduced-visual-effects .bg-aura::before,
body.reduced-visual-effects .bg-aura::after,
body.reduced-visual-effects .hero-content,
body.reduced-visual-effects [class*="fadeInUp"] {
  animation: none !important;
  transition: none !important;
}

body.reduced-visual-effects .hero .tagline,
body.reduced-visual-effects .hero .brand,
body.reduced-visual-effects .section-header,
body.reduced-visual-effects .card-glass,
body.reduced-visual-effects .showcase-card,
body.reduced-visual-effects .blog-banner,
body.reduced-visual-effects .feature-item,
body.reduced-visual-effects .newsletter-card {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

body.reduced-visual-effects .hero .brand::before,
body.reduced-visual-effects .hero .brand::after {
  animation: none !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-auth-desktop { display: none; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    z-index: 999;
    gap: 0.3rem;
    border-left: 1px solid var(--nav-border);
  }
  .nav-links.active { right: 0; }
  .nav-item {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
  .hamburger { display: flex; }
  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    gap: 0.4rem;
  }
}
@media (max-width: 768px) {
  .page-wrapper { padding: 1rem 1rem 3rem; }
  .stories-bar { margin-bottom: 1.5rem; }
  .store-story-card { width: 64px; }
  .store-story-media { width: 60px; height: 60px; }
  .hero { margin: 1rem 0 2rem; }
  .hero h1 { font-size: 2.1rem; }
  .hero .brand { font-size: 0.8rem; letter-spacing: 0.32em; }
  .hero .tagline { font-size: 0.95rem; }
  .cards-grid { flex-direction: column; align-items: center; gap: 1.5rem; margin: 1.5rem 0 3rem; }
  .card-glass { max-width: 100%; width: 100%; padding: 1.5rem; min-height: 320px; }
  .card-glass h2 { font-size: 1.4rem; }
  .card-glass .icon { font-size: 2rem; }
  .card-glass .desc { font-size: 0.9rem; line-height: 1.55; padding: 0.9rem; margin-bottom: 1.2rem; }
  .card-glass .cta-btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; width: 100%; margin-top: auto; }
  .stats-strip { gap: 12px; margin-bottom: 3rem; }
  .stat-card { padding: 1.2rem 1rem; min-width: 120px; }
  .stat-num { font-size: 1.8rem; }
  .stat-label { font-size: 0.8rem; }
  .showcase-section { margin-bottom: 3rem; }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: 1.6rem; }
  .showcase-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 1rem; }
  .showcase-body { padding: 1rem; }
  .showcase-body h3 { font-size: 0.9rem; }
  .showcase-price { font-size: 0.95rem; }
  .blog-banner { flex-direction: column; text-align: center; padding: 1.5rem; width: 100%; gap: 1rem; }
  .blog-thumb { width: 60px; height: 60px; margin: 0 auto; }
  .blog-info { width: 100%; }
  .blog-info h4 { font-size: 1.1rem; }
  .blog-info .meta { justify-content: center; font-size: 0.75rem; }
  .blog-banner .btn-outline { width: 100%; justify-content: center; padding: 0.8rem 1.5rem; }
  .features { flex-direction: column; align-items: center; gap: 1rem; }
  .feature-item { width: 100%; max-width: 350px; padding: 1.5rem 1rem; }
  .feature-item i { font-size: 2rem; }
  .feature-item h5 { font-size: 1.1rem; }
  .newsletter-section { margin: 1.5rem 0 3rem; }
  .newsletter-card { padding: 2rem 1.5rem; }
  .newsletter-card h2 { font-size: 1.5rem; }
  .newsletter-form { flex-direction: column; align-items: stretch; gap: 10px; }
  .newsletter-form input, .newsletter-btn { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .card-glass { padding: 1.2rem; min-height: 280px; }
  .card-glass h2 { font-size: 1.4rem; }
  .card-glass .desc { font-size: 0.9rem; }
  .card-glass .cta-btn { font-size: 0.9rem; padding: 0.8rem 1rem; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .showcase-card { display: flex; flex-direction: column; min-height: 0; }
  .showcase-body { padding: 1rem; }
  .showcase-body h3 { font-size: 0.95rem; }
  .showcase-price { font-size: 0.95rem; }
  .badge-discount { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .stat-card { min-width: 100px; padding: 1rem 0.5rem; }
  .stat-num { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .card-glass { padding: 1.2rem; min-height: 280px; }
  .card-glass h2 { font-size: 1.4rem; }
  .card-glass .desc { font-size: 0.9rem; }
  .card-glass .cta-btn { font-size: 0.9rem; padding: 0.8rem 1rem; }
  .showcase-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .showcase-body h3 { font-size: 0.95rem; }
  .showcase-price { font-size: 0.95rem; }
  .badge-discount { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
  .stat-card { min-width: 100px; padding: 1rem 0.5rem; }
  .stat-num { font-size: 1.5rem; }
}

/* Optimisation: disable expensive backdrop filters on small screens */
@media (max-width: 768px) {
  .landing-body .navbar,
  .landing-body .card-glass,
  .landing-body .stat-card,
  .landing-body .showcase-card,
  .landing-body .blog-banner,
  .landing-body .feature-item,
  .landing-body .newsletter-card,
  .landing-body .showcase-badge,
  .landing-body .blog-info .category-badge,
  .landing-body .store-story-media,
  .landing-body .store-story-viewer-panel,
  .landing-body .store-story-viewer-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}



/* Make landing-card background image cover the full card */
.card-glass.bg-image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Make landing cards behave like responsive hero slides */
@media (min-width: 769px) {
  .cards-grid {
    align-items: stretch;
  }
  .card-glass {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }
}

/* Ensure media always covers the full card */
.card-glass.bg-image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.card-glass .landing-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Force landing cards to be fully responsive, like two hero slides */
.cards-grid {
  align-items: stretch !important;
}

.card-glass {
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .cards-grid {
    flex-direction: column !important;
  }
  .card-glass {
    aspect-ratio: 16 / 10 !important;   /* same as home hero on mobile */
    width: 100% !important;
    min-height: 0 !important;
  }
}

.card-glass.bg-image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.card-glass .landing-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   ULTIMATE LANDING HERO CARDS – HOME HERO BEHAVIOUR
   ========================================================= */

/* Desktop / tablet: two equal hero cards */
@media (min-width: 769px) {
  .cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: min(100%, 1080px) !important;
    margin: 1.5rem auto 3rem !important;
  }

  .card-glass {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box;
    overflow: hidden;
  }
}

/* Mobile: single column, full-width hero card */
@media (max-width: 768px) {
  .cards-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    margin: 1.5rem auto 3rem !important;
  }

  .card-glass {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    aspect-ratio: 16 / 10 !important;   /* same as home hero mobile */
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box;
    overflow: hidden;
  }
}

/* Ensure media always covers the full card */
.card-glass.bg-image {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.card-glass .landing-card-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}




/* =========================================================
   LANDING SPLIT CARDS – RESPONSIVE TEXT & CTA FIX
   Fixes text/icon/desc/cta scaling on zoomed mobile
   ========================================================= */

.card-glass .card-header {
  gap: clamp(0.5rem, 2vw, 0.8rem);
  margin-bottom: clamp(0.75rem, 2vw, 1.2rem);
}

.card-glass .icon {
  font-size: clamp(1.5rem, 5vw, 2.2rem) !important;
  flex-shrink: 0;
}

.card-glass h2 {
  font-size: clamp(1.1rem, 3.5vw, 1.6rem) !important;
  line-height: 1.35;
  word-break: break-word;
}

.card-glass .desc {
  font-size: clamp(0.8rem, 2.5vw, 1rem) !important;
  line-height: 1.8;
  padding: clamp(0.7rem, 2vw, 1rem) clamp(0.8rem, 2.5vw, 1.2rem) !important;
  margin-bottom: clamp(0.8rem, 2vw, 1.5rem) !important;
  white-space: normal;
  word-break: break-word;
}

.card-glass .cta-btn {
  font-size: clamp(0.8rem, 2.5vw, 1rem) !important;
  padding: clamp(0.65rem, 2vw, 0.8rem) clamp(0.9rem, 3vw, 1.5rem) !important;
  white-space: normal !important;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 1vw, 0.6rem);
}

.card-glass .cta-btn i {
  font-size: 0.9em;
}

/* Mobile: allow cards to size naturally based on content */
@media (max-width: 768px) {
  .cards-grid {
    width: 100% !important;
    margin: 1.25rem 0 2.5rem !important;
    gap: 1.25rem !important;
  }

  .card-glass {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: clamp(1.1rem, 4vw, 1.5rem) !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .card-glass .card-content {
    width: 100%;
  }
}

/* Small phones / high zoom */
@media (max-width: 480px) {
  .card-glass {
    padding: clamp(1rem, 4.5vw, 1.2rem) !important;
  }

  .card-glass h2 {
    font-size: clamp(1.1rem, 5vw, 1.35rem) !important;
  }

  .card-glass .desc {
    font-size: clamp(0.8rem, 4vw, 0.95rem) !important;
  }

  .card-glass .cta-btn {
    font-size: clamp(0.78rem, 4vw, 0.92rem) !important;
  }
}


/* =========================================================
   LANDING SPLIT CARDS – FIXED 16:10 RATIO + CONTAINER QUERIES
   Cards stay static; inner content scales with card width.
   ========================================================= */

/* Force 16:10 ratio on all screens */
.card-glass {
  container-type: inline-size;
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

/* Override any mobile aspect-ratio:auto from previous block */
@media (max-width: 768px) {
  .card-glass {
    aspect-ratio: 16 / 10 !important;
    height: auto !important;
    min-height: 0 !important;
  }
}

/* Container-query-based font and padding scaling */
@supports (container-type: inline-size) {
  .card-glass .card-header {
    gap: clamp(0.4rem, 2cqw, 0.8rem) !important;
    margin-bottom: clamp(0.5rem, 2.5cqw, 1.2rem) !important;
  }

  .card-glass .icon {
    font-size: clamp(1.4rem, 7cqw, 2.2rem) !important;
    flex-shrink: 0;
  }

  .card-glass h2 {
    font-size: clamp(1rem, 5cqw, 1.6rem) !important;
    line-height: 1.3;
    word-break: break-word;
  }

  .card-glass .desc {
    font-size: clamp(0.75rem, 3.5cqw, 1rem) !important;
    line-height: 1.75;
    padding: clamp(0.5rem, 2.5cqw, 1rem) clamp(0.6rem, 3cqw, 1.2rem) !important;
    margin-bottom: clamp(0.5rem, 2.5cqw, 1.5rem) !important;
    white-space: normal;
    word-break: break-word;
    flex-grow: 1;
  }

  .card-glass .cta-btn {
    font-size: clamp(0.75rem, 3.5cqw, 1rem) !important;
    padding: clamp(0.5rem, 2.5cqw, 0.8rem) clamp(0.8rem, 4cqw, 1.5rem) !important;
    white-space: normal !important;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 1.5cqw, 0.6rem);
  }

  .card-glass .cta-btn i {
    font-size: 0.9em;
  }
}

/* Fallback for older browsers without container queries */
@supports not (container-type: inline-size) {
  .card-glass .icon { font-size: clamp(1.5rem, 5vw, 2.2rem) !important; }
  .card-glass h2 { font-size: clamp(1.1rem, 3.5vw, 1.6rem) !important; }
  .card-glass .desc { font-size: clamp(0.8rem, 2.5vw, 1rem) !important; }
  .card-glass .cta-btn { font-size: clamp(0.8rem, 2.5vw, 1rem) !important; }
}


/* =========================================================
   EXTREME ZOOM / ULTRA-SMALL LANDING CARD
   Hide descriptive content, show only CTA button
   ========================================================= */

/* Container query: card width below 280px */
@container (max-width: 280px) {
  .card-glass .card-content {
    display: none !important;
  }

  .card-glass .cta-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    min-width: 70% !important;
    margin: 0 !important;
    z-index: 5 !important;
    font-size: clamp(0.75rem, 5cqw, 1rem) !important;
    padding: clamp(0.6rem, 3cqw, 0.9rem) clamp(1rem, 5cqw, 1.5rem) !important;
    white-space: nowrap !important;
  }
}

/* Fallback for browsers without container queries */
@media (max-width: 320px) {
  .card-glass .card-content {
    display: none !important;
  }

  .card-glass .cta-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    min-width: 70% !important;
    margin: 0 !important;
    z-index: 5 !important;
    font-size: 0.85rem !important;
    padding: 0.7rem 1.2rem !important;
    white-space: nowrap !important;
  }
}


/* =========================================================
   EXTREME ZOOM FIX REVISION
   Keep title/header visible; hide only description;
   CTA remains at the bottom of the card.
========================================================= */

@container (max-width: 280px) {
  .card-glass .card-content {
    display: flex !important;
    flex-direction: column;
    flex-grow: 1;
  }

  .card-glass .desc {
    display: none !important;
  }

  .card-glass .cta-btn {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: auto 0 0 0 !important;
    z-index: 3 !important;
    white-space: normal !important;
  }

  .card-glass h2 {
    font-size: clamp(1rem, 6cqw, 1.3rem) !important;
  }

  .card-glass .icon {
    font-size: clamp(1.2rem, 7cqw, 1.8rem) !important;
  }
}

/* Fallback for browsers without container queries */
@media (max-width: 320px) {
  .card-glass .card-content {
    display: flex !important;
    flex-direction: column;
    flex-grow: 1;
  }

  .card-glass .desc {
    display: none !important;
  }

  .card-glass .cta-btn {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: auto 0 0 0 !important;
    z-index: 3 !important;
    white-space: normal !important;
  }
}


/* =========================================================
   LANDING SHOWCASE PRODUCT CARDS – MOBILE HORIZONTAL STYLE
   Matches home product cards on small screens.
========================================================= */

@media (max-width: 768px) {
  .showcase-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .showcase-card {
    flex-direction: row !important;
    min-height: 0 !important;
    padding: 0.75rem !important;
    border-radius: 1.5rem !important;
    align-items: stretch !important;
  }

  .showcase-card .showcase-img {
    flex: 0 0 120px !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    margin-left: 0.75rem !important;
    aspect-ratio: auto !important;
  }

  .showcase-card .showcase-img img,
  .showcase-card .showcase-img video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .showcase-badge {
    top: 8px !important;
    right: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
  }

  .showcase-card .showcase-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0.2rem 0 !important;
    gap: 0.5rem !important;
    min-width: 0;
  }

  .showcase-card .showcase-body h3 {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  .showcase-card .showcase-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
  }

  .showcase-card .showcase-price {
    font-size: 0.95rem !important;
  }

  .showcase-card .badge-discount {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .showcase-card .showcase-img {
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 100px !important;
  }

  .showcase-card .showcase-body h3 {
    font-size: 0.9rem !important;
  }

  .showcase-card .showcase-price {
    font-size: 0.9rem !important;
  }
}


/* =========================================================
   LANDING SHOWCASE CARD TITLE/DESC – HOME-STYLE
   Adds title wrapper, toggle, and description.
========================================================= */

.showcase-body .title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.showcase-body .product-title {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.35rem;
}

.showcase-body .product-title.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.showcase-body .title-toggle {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.showcase-body .title-toggle:hover {
  background: rgba(0, 240, 255, 0.2);
}

.showcase-body .card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.light-mode .showcase-body .product-title {
  color: #1e293b;
}

body.light-mode .showcase-body .card-desc {
  color: rgba(30, 41, 59, 0.7);
}

/* Expand behavior for landing showcase card */
.showcase-card.title-expanded-card {
  overflow: visible !important;
  z-index: 5;
  position: relative;
}

/* Mobile: horizontal home-style card */
@media (max-width: 768px) {
  .showcase-body .product-title {
    -webkit-line-clamp: 1;
  }

  .showcase-body .card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .showcase-card.title-expanded-card .product-title {
    -webkit-line-clamp: unset;
    overflow: visible;
  }
}


/* =========================================================
   LANDING SHOWCASE TITLE FULL EXPAND FIX
   Ensures full title is visible when expanded.
========================================================= */

.showcase-card.title-expanded-card {
  overflow: visible !important;
  height: auto !important;
}

.showcase-card.title-expanded-card .showcase-body .product-title {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: vertical !important;
  overflow: visible !important;
  max-height: none !important;
  white-space: normal !important;
}

.showcase-card.title-expanded-card .showcase-body .title-toggle {
  color: var(--accent-cyan);
}


/* =========================================================
   STORY VIEWER SCROLL + LIGHT THEME FIX
   ========================================================= */

/* Enable vertical scrolling in viewer */
.store-story-viewer {
  align-items: start !important;
  padding: 1rem !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.store-story-viewer-panel {
  max-height: calc(100vh - 2rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 1rem auto !important;
}

.store-story-viewer-media {
  flex-shrink: 0 !important;
  min-height: 30vh !important;
  max-height: 50vh !important;
}

.store-story-viewer-content {
  flex-shrink: 0 !important;
  padding: 1.5rem 1.75rem 2rem !important;
}

.store-story-viewer-content h3 {
  margin-bottom: 0.75rem !important;
  line-height: 1.3 !important;
  word-break: break-word;
}

.store-story-viewer-content p {
  margin-bottom: 1.25rem !important;
  line-height: 1.8 !important;
  white-space: normal !important;
  word-break: break-word;
  max-height: 40vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-left: 4px;
}

.store-story-cta {
  flex-shrink: 0 !important;
  margin-top: 0.5rem !important;
}

/* Mobile story viewer */
@media (max-width: 768px) {
  .store-story-viewer {
    padding: 0.75rem !important;
  }

  .store-story-viewer-panel {
    max-height: calc(100vh - 1.5rem) !important;
  }

  .store-story-viewer-media {
    min-height: 32vh !important;
    max-height: 42vh !important;
  }

  .store-story-viewer-content {
    padding: 1.25rem 1rem 1.5rem !important;
  }

  .store-story-viewer-content h3 {
    font-size: 1.25rem !important;
  }

  .store-story-viewer-content p {
    max-height: 35vh;
  }
}

/* Horizontal story rail scroll snap */
.stories-scroll {
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar {
  display: none;
}

.store-story-card {
  scroll-snap-align: start;
}

/* Light theme story viewer */
body.light-mode .store-story-viewer-panel {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.25) !important;
}

body.light-mode .store-story-viewer-media {
  background: #eef2f7 !important;
}

body.light-mode .store-story-viewer-content {
  color: #0f172a !important;
}

body.light-mode .store-story-viewer-content h3 {
  color: #0f172a !important;
}

body.light-mode .store-story-viewer-content p {
  color: rgba(15, 23, 42, 0.72) !important;
}

body.light-mode .store-story-close {
  background: rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

body.light-mode .store-story-cta {
  background: linear-gradient(135deg, #0698d6, #7209b7) !important;
  color: #ffffff !important;
}

/* Light theme story rail */
body.light-mode .store-story-info strong {
  color: #0f172a !important;
}

body.light-mode .store-story-placeholder {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #0698d6 !important;
}