/* ============================================
   Premium Persian RTL Landing Page
   ============================================ */

:root {
  /* Accent Colors (shared) */
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --indigo-500: #6366f1;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --blue-neon: #3b82f6;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--indigo-500) 0%, var(--purple-600) 50%, var(--cyan-500) 100%);
  --gradient-text: linear-gradient(135deg, var(--cyan-400) 0%, var(--purple-400) 50%, var(--indigo-500) 100%);

  /* Typography */
  --font: 'Vazirmatn', system-ui, sans-serif;

  /* Spacing */
  --section-padding: clamp(2rem, 4vw, 3.25rem);
  --container-width: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
  --theme-transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  color-scheme: dark;

  --navy-950: #0a0e1a;
  --navy-900: #0f1629;
  --navy-800: #151d35;
  --navy-700: #1a2540;
  --navy-600: #243052;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;

  --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  --header-bg: rgba(10, 14, 26, 0.85);
  --footer-bg: rgba(10, 14, 26, 0.5);
  --nav-mobile-bg: rgba(10, 14, 26, 0.98);
  --text-hover: #ffffff;
  --menu-toggle-color: #ffffff;
  --orb-1: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
  --orb-2: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, transparent 70%);
  --orb-3: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
  --grid-color: rgba(255, 255, 255, 0.02);
  --badge-bg: rgba(99, 102, 241, 0.1);
  --badge-border: rgba(99, 102, 241, 0.25);
  --float-card-bg: rgba(15, 22, 41, 0.9);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.05);
  --btn-dark-bg: #151d35;
  --btn-dark-hover-bg: #1a2540;
  --btn-dark-border: rgba(255, 255, 255, 0.1);
  --section-tag-bg: rgba(99, 102, 241, 0.1);
  --section-tag-border: rgba(99, 102, 241, 0.2);
  --featured-card-bg: rgba(99, 102, 241, 0.05);
  --theme-toggle-bg: rgba(255, 255, 255, 0.06);
  --theme-toggle-border: rgba(255, 255, 255, 0.1);
  --theme-toggle-color: #fbbf24;
}

/* ── Light Theme ── */
[data-theme="light"] {
  color-scheme: light;

  --navy-950: #eef2ff;
  --navy-900: #ffffff;
  --navy-800: #f8fafc;
  --navy-700: #e2e8f0;
  --navy-600: #cbd5e1;
  --gray-100: #0f172a;
  --gray-300: #334155;
  --gray-400: #475569;
  --gray-500: #64748b;

  --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(99, 102, 241, 0.12);
  --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);

  --header-bg: rgba(255, 255, 255, 0.88);
  --footer-bg: rgba(255, 255, 255, 0.85);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --text-hover: #0f172a;
  --menu-toggle-color: #0f172a;
  --orb-1: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  --orb-2: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 70%);
  --orb-3: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  --grid-color: rgba(99, 102, 241, 0.06);
  --badge-bg: rgba(99, 102, 241, 0.08);
  --badge-border: rgba(99, 102, 241, 0.2);
  --float-card-bg: rgba(255, 255, 255, 0.95);
  --btn-ghost-hover-bg: rgba(99, 102, 241, 0.06);
  --btn-dark-bg: #1e293b;
  --btn-dark-hover-bg: #0f172a;
  --btn-dark-border: rgba(15, 23, 42, 0.15);
  --section-tag-bg: rgba(99, 102, 241, 0.08);
  --section-tag-border: rgba(99, 102, 241, 0.18);
  --featured-card-bg: rgba(99, 102, 241, 0.06);
  --theme-toggle-bg: rgba(99, 102, 241, 0.08);
  --theme-toggle-border: rgba(99, 102, 241, 0.18);
  --theme-toggle-color: #6366f1;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--gray-100);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  transition: var(--theme-transition);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Effects */
.bg-effects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--orb-1);
  top: -200px;
  right: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--orb-2);
  bottom: 20%;
  left: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--orb-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  transition: var(--theme-transition);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Glass Utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--theme-transition);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-dark {
  background: var(--btn-dark-bg);
  color: var(--white);
  border: 1px solid var(--btn-dark-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-dark:hover {
  background: var(--btn-dark-hover-bg);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-300);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  color: var(--text-hover);
  border-color: rgba(99, 102, 241, 0.25);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--duration) var(--ease-out);
}

.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
}

.logo-icon svg {
  width: 36px;
  height: 36px;
}

.logo-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--duration);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--duration) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-hover);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--menu-toggle-color);
  border-radius: 2px;
  transition: all var(--duration);
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--theme-toggle-border);
  background: var(--theme-toggle-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--theme-transition), transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.theme-toggle:hover {
  transform: scale(1.08);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.theme-toggle-icons {
  position: relative;
  width: 22px;
  height: 22px;
}

.theme-icon {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  color: var(--theme-toggle-color);
  transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 7rem 0 2rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple-400);
  margin-bottom: 1.5rem;
  transition: var(--theme-transition);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  display: block;
  margin-top: 0.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--gray-400);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-admin-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.demo-credentials {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px dashed rgba(99, 102, 241, 0.35);
  backdrop-filter: blur(12px);
}

.demo-credentials::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(167, 139, 250, 0.35) 50%,
    rgba(34, 211, 238, 0.25) 55%,
    transparent 65%
  );
  transform: translateX(120%);
  animation: demoShine 4.5s ease-in-out infinite;
}

.demo-credentials > * {
  position: relative;
  z-index: 2;
}

@keyframes demoShine {
  0%,
  55% {
    transform: translateX(120%);
  }
  75%,
  100% {
    transform: translateX(-120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-credentials::after {
    animation: none;
  }
}

.demo-credentials-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-400);
  margin-bottom: 0.5rem;
}

.demo-credentials-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.demo-credentials-row + .demo-credentials-row {
  margin-top: 0.35rem;
}

.demo-credentials-row code {
  font-size: 0.82rem;
  direction: ltr;
  unicode-bidi: embed;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Hero Visual / Mockups */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-scene {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
}

/* Laptop Device */
.device.laptop {
  position: absolute;
  top: 5%;
  left: 0;
  width: 85%;
  animation: floatLaptop 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes floatLaptop {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
}

.device-frame {
  background: linear-gradient(145deg, #2a2f45 0%, #1a1e30 100%);
  border-radius: 12px 12px 0 0;
  padding: 8px 8px 0;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.device-notch {
  width: 8px;
  height: 8px;
  background: #3a3f55;
  border-radius: 50%;
  margin: 0 auto 6px;
}

.device-screen {
  background: var(--navy-900);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.device-base {
  height: 12px;
  background: linear-gradient(180deg, #2a2f45 0%, #1f2335 100%);
  border-radius: 0 0 8px 8px;
  margin: 0 10%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Phone Device */
.device.phone {
  position: absolute;
  bottom: 8%;
  left: -5%;
  width: 32%;
  animation: floatPhone 5s ease-in-out infinite;
  animation-delay: -2s;
  z-index: 3;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

.phone-frame {
  background: linear-gradient(145deg, #2a2f45 0%, #1a1e30 100%);
  border-radius: 24px;
  padding: 6px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(99, 102, 241, 0.15);
}

.phone-notch {
  width: 40%;
  height: 4px;
  background: #1a1e30;
  border-radius: 4px;
  margin: 4px auto 6px;
}

.phone-screen {
  background: var(--navy-900);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 9/19;
}

/* Admin Panel UI (inside laptop) */
.screen-content {
  width: 100%;
  height: 100%;
  display: flex;
}

.admin-panel {
  font-size: 0;
}

.panel-sidebar {
  width: 18%;
  background: var(--navy-950);
  padding: 6% 4%;
  display: flex;
  flex-direction: column;
  gap: 6%;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
  width: 60%;
  height: 8%;
  background: var(--gradient-primary);
  border-radius: 4px;
  margin-bottom: 8%;
}

.sidebar-item {
  width: 100%;
  height: 6%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.sidebar-item.active {
  background: rgba(99, 102, 241, 0.3);
}

.panel-main {
  flex: 1;
  padding: 5%;
  display: flex;
  flex-direction: column;
  gap: 5%;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  width: 35%;
  height: 10%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.panel-avatar {
  width: 8%;
  aspect-ratio: 1;
  background: var(--gradient-primary);
  border-radius: 50%;
}

.panel-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4%;
}

.panel-card {
  aspect-ratio: 1.8;
  border-radius: 4px;
  opacity: 0.8;
}

.card-purple { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.card-blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.card-cyan { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.card-green { background: linear-gradient(135deg, #10b981, #06b6d4); }

.panel-chart {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  padding: 5%;
  display: flex;
  align-items: flex-end;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6%;
  width: 100%;
  height: 100%;
}

.bar {
  flex: 1;
  background: var(--gradient-primary);
  border-radius: 2px 2px 0 0;
  opacity: 0.7;
  animation: barGrow 2s ease-out forwards;
}

@keyframes barGrow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

/* Store Front UI (inside phone) */
.store-front {
  flex-direction: column;
  padding: 5%;
  gap: 4%;
}

.store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.store-search {
  width: 70%;
  height: 8%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
}

.store-cart-icon {
  width: 10%;
  aspect-ratio: 1;
  background: var(--gradient-primary);
  border-radius: 50%;
}

.store-banner {
  width: 100%;
  height: 22%;
  background: var(--gradient-primary);
  border-radius: 8px;
  opacity: 0.8;
}

.store-products {
  display: flex;
  flex-direction: column;
  gap: 4%;
  flex: 1;
}

.product-card {
  display: flex;
  gap: 4%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 4%;
}

.product-img {
  width: 30%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8%;
}

.product-name {
  width: 80%;
  height: 12%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.product-price {
  width: 40%;
  height: 10%;
  background: rgba(99, 102, 241, 0.4);
  border-radius: 2px;
}

.store-nav {
  display: flex;
  justify-content: center;
  gap: 8%;
  padding-top: 4%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-dot {
  width: 12%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.nav-dot.active {
  background: var(--gradient-primary);
}

/* Floating Cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--float-card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-100);
  box-shadow: var(--glass-shadow);
  z-index: 4;
  transition: var(--theme-transition);
}

.float-card svg {
  width: 16px;
  height: 16px;
  color: var(--cyan-400);
}

.float-card-1 {
  top: 15%;
  left: -8%;
  animation: floatCard 4s ease-in-out infinite;
}

.float-card-2 {
  bottom: 25%;
  right: -10%;
  animation: floatCard 4s ease-in-out infinite;
  animation-delay: -2s;
}

.float-card-2 svg {
  color: var(--purple-400);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections Common */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: var(--section-tag-bg);
  border: 1px solid var(--section-tag-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-400);
  margin-bottom: 1rem;
  transition: var(--theme-transition);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--gray-400);
  font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--duration);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.icon-purple { background: rgba(124, 58, 237, 0.15); color: var(--purple-400); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-neon); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: var(--cyan-400); }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-indigo { background: rgba(99, 102, 241, 0.15); color: var(--indigo-500); }
.icon-pink { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--purple-400);
  direction: ltr;
  unicode-bidi: embed;
}

.hero-subtitle code {
  font-size: 0.92em;
}

/* Quick Access */
.quick-access {
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
}

.quick-access-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.quick-access-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.quick-access-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.quick-access-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-access-icon svg {
  width: 20px;
  height: 20px;
}

.quick-access-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.quick-access-item p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* Module Cards */
.modules-grid {
  align-items: stretch;
}

.module-card {
  display: flex;
  flex-direction: column;
}

.module-number {
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  z-index: 1;
}

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.module-list li {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.7;
  padding-right: 1rem;
  position: relative;
}

.module-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.module-list strong {
  color: var(--gray-100);
  font-weight: 600;
}

.capabilities-summary {
  margin-top: 1.25rem;
  padding: 1.5rem 2rem;
  text-align: center;
}

.capabilities-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.capabilities-desc {
  font-size: 0.95rem;
  color: var(--gray-400);
  line-height: 1.9;
  max-width: 820px;
  margin: 0 auto;
}

/* Screenshots Grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.screenshots-grid--two {
  max-width: var(--container-width);
  margin: 0 auto;
  align-items: start;
}

.screenshot-image-wrap {
  padding: 1rem;
  background: var(--navy-900);
  line-height: 0;
}

.screenshot-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration) var(--ease-out);
  object-fit: contain;
  object-position: center;
}

.screenshot-card:hover .screenshot-image {
  transform: none;
}

.screenshot-card--portrait {
  max-width: 780px;
  margin: 1rem auto 0;
}

.screenshot-image--portrait {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.screenshot-card {
  overflow: visible;
  transition: all var(--duration) var(--ease-out);
  scroll-margin-top: 100px;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
}

.screenshot-label {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-300);
  border-bottom: 1px solid var(--glass-border);
}

.screenshot-preview {
  padding: 1.5rem;
  min-height: 220px;
  background: var(--navy-900);
}

/* Preview: Admin */
.preview-admin {
  display: flex;
  gap: 1rem;
}

.preview-sidebar {
  width: 20%;
  background: var(--navy-950);
  border-radius: 8px;
  min-height: 180px;
}

.preview-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-row {
  display: flex;
  gap: 0.75rem;
}

.preview-stat {
  flex: 1;
  height: 50px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(124, 58, 237, 0.2));
  border-radius: 8px;
}

.preview-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.table-row {
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}

/* Preview: Store */
.preview-store {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-hero-banner {
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 8px;
  opacity: 0.7;
}

.preview-categories {
  display: flex;
  gap: 0.5rem;
}

.cat-item {
  flex: 1;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.preview-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.preview-product {
  aspect-ratio: 0.85;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Preview: Cart */
.preview-cart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.cart-item-img {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.cart-item-name {
  width: 70%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.cart-item-price {
  width: 40%;
  height: 8px;
  background: rgba(99, 102, 241, 0.4);
  border-radius: 3px;
}

.cart-summary {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-line {
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
}

.summary-line.short {
  width: 60%;
}

.summary-btn {
  height: 36px;
  background: var(--gradient-primary);
  border-radius: 8px;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Preview: Product Page */
.preview-product-page {
  display: flex;
  gap: 1rem;
}

.product-gallery {
  width: 45%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  min-height: 160px;
}

.product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detail-title {
  width: 80%;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.detail-price {
  width: 35%;
  height: 12px;
  background: rgba(99, 102, 241, 0.5);
  border-radius: 3px;
}

.detail-desc {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.detail-desc.short {
  width: 70%;
}

.detail-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.detail-btn {
  flex: 1;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 6px;
  opacity: 0.8;
}

.detail-btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 1;
}

/* Tech Section */
.tech-wrapper {
  padding: 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.tech-grid--five {
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.tech-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  transition: all var(--duration) var(--ease-out);
}

.tech-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-4px);
}

.tech-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-400);
  transition: all var(--duration);
}

.tech-item:hover .tech-icon {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.tech-icon svg {
  width: 24px;
  height: 24px;
}

.tech-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tech-item p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.tech-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
}

.tech-highlight {
  position: relative;
  padding: 1.35rem 1.5rem;
  overflow: hidden;
}

.tech-highlight h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.tech-highlight p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.tech-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.tech-badge--ai {
  color: var(--white);
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.tech-checklist {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.tech-checklist-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.1rem;
}

.tech-checklist-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1rem;
}

.tech-checklist-grid li {
  position: relative;
  padding-right: 1.35rem;
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.tech-checklist-grid li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.4em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.testimonial-card {
  padding: 2rem;
  transition: all var(--duration) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
}

.testimonial-card.featured {
  border-color: rgba(99, 102, 241, 0.3);
  background: var(--featured-card-bg);
  transform: scale(1.02);
}

.testimonial-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.stars svg {
  width: 18px;
  height: 18px;
  color: #fbbf24;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
}

.author-role {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* CTA Section */
.cta-box {
  position: relative;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-desc {
  color: var(--gray-400);
  margin-bottom: 2rem;
  position: relative;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  background: var(--footer-bg);
  transition: var(--theme-transition);
}

.footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .mockup-scene {
    max-width: 480px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-grid,
  .tech-grid--five {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    transition: right var(--duration) var(--ease-out);
    border-left: 1px solid var(--glass-border);
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding: 6rem 0 1.5rem;
    min-height: auto;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn,
  .hero-admin-cta {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .mockup-scene {
    max-width: 360px;
  }

  .float-card-1 {
    left: 0;
    top: 5%;
  }

  .float-card-2 {
    right: 0;
    bottom: 15%;
  }

  .quick-access-items {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .screenshots-grid,
  .tech-grid,
  .tech-grid--five,
  .tech-highlights,
  .tech-checklist-grid {
    grid-template-columns: 1fr;
  }

  .tech-wrapper {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .preview-product-page {
    flex-direction: column;
  }

  .product-gallery {
    width: 100%;
    min-height: 120px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .feature-card,
  .testimonial-card {
    padding: 1.5rem;
  }
}

/* ── Light Theme Polish ── */
[data-theme="light"] .btn-ghost {
  color: var(--gray-400);
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .logo-text {
  color: var(--gray-100);
}

[data-theme="light"] .footer-links h4 {
  color: var(--gray-100);
}

[data-theme="light"] .author-name {
  color: var(--gray-100);
}

[data-theme="light"] .feature-title,
[data-theme="light"] .tech-item h4,
[data-theme="light"] .tech-highlight h4,
[data-theme="light"] .tech-checklist-title {
  color: var(--gray-100);
}

[data-theme="light"] .screenshot-image {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15), 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .social-link {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(99, 102, 241, 0.12);
}

[data-theme="light"] .social-link:hover {
  background: rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .tech-item:hover {
  background: rgba(99, 102, 241, 0.05);
}

[data-theme="light"] .feature-card:hover,
[data-theme="light"] .screenshot-card:hover,
[data-theme="light"] .testimonial-card:hover {
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .header:not(.scrolled) {
  background: transparent;
}

[data-theme="light"] .cta-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .module-list strong {
  color: var(--gray-100);
}

[data-theme="light"] code {
  background: rgba(99, 102, 241, 0.08);
}

/* Smooth theme transition for key elements */
.header,
.feature-card,
.screenshot-card,
.testimonial-card,
.tech-wrapper,
.cta-box,
.screenshot-image-wrap,
.hero-stats,
.quick-access,
.capabilities-summary {
  transition: var(--theme-transition);
}
