/* ============================================
   ROOT & THEME VARIABLES
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* ── Backgrounds ── */
  --bg-primary: #f7f8ff;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;

  /* ── Text ── */
  --text-primary: #0a0b1a;
  --text-secondary: #4a5168;
  --text-muted: #6e7a99;

  /* ── Brand / Trust (Purple) — Premium & exclusivity ── */
  --accent: #5b4fff;
  --accent-dark: #4840e0;
  --accent-light: #eceaff;
  --accent-glow: rgba(91, 79, 255, 0.28);

  /* ── Action CTA (Amber-Gold) — Highest conversion color (urgency + value) ── */
  --cta: #f59e0b;
  --cta-dark: #d97706;
  --cta-glow: rgba(245, 158, 11, 0.35);

  /* ── Trust signal (Emerald green) — Safety, 'go', success ── */
  --trust: #059669;
  --trust-bg: rgba(5, 150, 105, 0.09);

  /* ── Urgency (Coral red) — Scarcity, attention spike ── */
  --urgency: #ef4444;

  /* ── UI ── */
  --border: #e2e6f0;
  --border-hover: #c5cde0;
  --shadow-sm: 0 2px 8px rgba(10, 11, 26, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 11, 26, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 11, 26, 0.14);
  --shadow-accent: 0 8px 30px rgba(91, 79, 255, 0.28);
  --shadow-cta: 0 8px 24px rgba(245, 158, 11, 0.35);

  --nav-bg: rgba(247, 248, 255, 0.93);

  /* ── Hero ── */
  --hero-gradient: linear-gradient(140deg, #0e0b2e 0%, #1a1260 45%, #0b0919 100%);
  --hero-bg-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%235b4fff' stroke-opacity='0.10' stroke-width='1'/%3E%3C/svg%3E");

  /* ── Badges / Filters ── */
  --badge-bg: #eceaff;
  --badge-text: #5b4fff;
  --card-hover-shadow: 0 18px 52px rgba(91, 79, 255, 0.20);
  --filter-active-bg: #5b4fff;
  --filter-active-text: #ffffff;
  --filter-bg: #eceaff;
  --filter-text: #5b4fff;
  --section-alt: #f0f2ff;
  --price-color: #5b4fff;
  --green: #059669;
  --green-bg: rgba(5, 150, 105, 0.09);
}

[data-theme="dark"] {
  --bg-primary: #080a18;
  --bg-secondary: #0e1028;
  --bg-card: #121430;

  --text-primary: #eef0ff;
  --text-secondary: #9aa5c4;
  --text-muted: #6a7591;

  --accent: #7b72ff;
  --accent-dark: #6861ff;
  --accent-light: rgba(123, 114, 255, 0.15);
  --accent-glow: rgba(123, 114, 255, 0.32);

  --cta: #fbbf24;
  --cta-dark: #f59e0b;
  --cta-glow: rgba(251, 191, 36, 0.35);

  --trust: #10b981;
  --trust-bg: rgba(16, 185, 129, 0.08);

  --urgency: #f87171;

  --border: #1a1d3a;
  --border-hover: #282d55;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-accent: 0 8px 30px rgba(123, 114, 255, 0.40);
  --shadow-cta: 0 8px 24px rgba(251, 191, 36, 0.30);

  --nav-bg: rgba(8, 10, 24, 0.93);

  --hero-gradient: linear-gradient(140deg, #04040f 0%, #0b0930 50%, #06040e 100%);
  --hero-bg-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%237b72ff' stroke-opacity='0.09' stroke-width='1'/%3E%3C/svg%3E");

  --badge-bg: rgba(123, 114, 255, 0.18);
  --badge-text: #a49fff;
  --card-hover-shadow: 0 18px 52px rgba(123, 114, 255, 0.28);
  --filter-active-bg: #7b72ff;
  --filter-active-text: #ffffff;
  --filter-bg: rgba(123, 114, 255, 0.12);
  --filter-text: #a49fff;
  --section-alt: #0d0f24;
  --price-color: #a49fff;
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.08);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 50px 0;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 540px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.badge::before {
  content: '●';
  font-size: 8px;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea8c00);
  color: #0a0b1a;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.38);
  letter-spacing: 0.1px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.52);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-contact {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.45);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-light);
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dark Mode Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg);
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav-link {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ============================================
   PAGE SYSTEM (SPA)
   ============================================ */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  background-color: var(--bg-primary);
  background-image: var(--hero-bg-grid), var(--hero-gradient);
  background-size: 60px 60px, cover;
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  animation: float-blob 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  bottom: -50px;
  left: -80px;
  border-radius: 50%;
  animation: float-blob 10s ease-in-out infinite reverse;
}

@keyframes float-blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: fadeSlideUp 0.8s ease forwards;
}

.hero-visual {
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.88);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 150, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 200, 150, 0);
  }
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 .accent {
  /* Amber-gold for CTA psychology — draws eye instantly on dark bg */
  color: #fbbf24;
  position: relative;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 14px;
  font-weight: 400;
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 32px;
  border: 1px solid rgba(245, 158, 11, 0.30);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Visual Stats */
.hero-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.stat-item {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.mini-badge .icon {
  font-size: 18px;
}

/* Floating notification */
.float-notif {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: float-card 4s ease-in-out infinite;
}

.float-notif-icon {
  width: 42px;
  height: 42px;
  background: var(--green-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.float-notif-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.float-notif-text span {
  font-size: 12px;
  color: var(--text-muted);
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--accent);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-light);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   PRICING HIGHLIGHT — PREMIUM REDESIGN
   ============================================ */
.pricing-highlight {
  background: linear-gradient(160deg, #f4f0ff 0%, #eef2ff 40%, #f8f4ff 100%);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .pricing-highlight {
  background: linear-gradient(160deg, #0c0e20 0%, #0f1230 50%, #0b0d1e 100%);
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.pricing-highlight::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(155, 89, 182, 0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.pricing-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.price-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 28px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .price-card {
  background: rgba(22, 25, 45, 0.7);
  border-color: rgba(124, 116, 255, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.price-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.price-card:hover::after {
  opacity: 1;
}

.price-card:hover {
  transform: translateY(-7px);
  border-color: rgba(108, 99, 255, 0.4);
  box-shadow: 0 16px 48px rgba(108, 99, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.price-card.featured {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: 0 8px 36px rgba(108, 99, 255, 0.25);
}

[data-theme="dark"] .price-card.featured {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.18) 0%, rgba(22, 25, 45, 0.8) 100%);
}

.price-card.featured::before {
  content: '⭐ POPULAR';
  position: absolute;
  top: -1px;
  right: -1px;
  background: linear-gradient(135deg, #6c63ff, #9b59b6);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 0 22px 0 14px;
  letter-spacing: 0.5px;
}

.price-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.price-icon {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.price-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.price-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.price-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 900;
  background: linear-gradient(135deg, #6c63ff 0%, #9b59b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================
   STORE PAGE — PREMIUM REDESIGN
   ============================================ */
.store-header {
  padding: 110px 0 60px;
  text-align: center;
  background: linear-gradient(150deg, #f0edff 0%, #e8e0ff 45%, #ede9ff 100%);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .store-header {
  background: linear-gradient(150deg, #09091f 0%, #0f1030 45%, #0b0c22 100%);
}

.store-header::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.18) 0%, transparent 65%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}

.store-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='%236c63ff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.store-header>* {
  position: relative;
  z-index: 1;
}

/* ── Filter bar – glassmorphism pill strip ── */
.filter-wrap {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.1);
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.08);
}

[data-theme="dark"] .filter-wrap {
  background: rgba(15, 17, 40, 0.8);
  border-bottom-color: rgba(124, 116, 255, 0.12);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 18px 24px;
  margin-bottom: 0;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.2px;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #6c63ff, #9b59b6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.38);
  transform: translateY(-1px);
}

/* ── Template Grid ── */
.templates-section-bg {
  background: linear-gradient(180deg, #f7f5ff 0%, #f0f4ff 100%);
}

[data-theme="dark"] .templates-section-bg {
  background: linear-gradient(180deg, #08091c 0%, #0a0c1e 100%);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  padding: 0 0 48px;
}

.template-card {
  background: var(--bg-card);
  border: 1px solid rgba(108, 99, 255, 0.1);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(108, 99, 255, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .template-card {
  border-color: rgba(124, 116, 255, 0.12);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.template-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 56px rgba(108, 99, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(108, 99, 255, 0.35);
}

[data-theme="dark"] .template-card:hover {
  box-shadow: 0 24px 56px rgba(124, 116, 255, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.template-preview {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid rgba(108, 99, 255, 0.08);
}

/* Unique gradient per category via JS-added class */
.template-preview.cat-resume {
  background: linear-gradient(135deg, #e8e0ff 0%, #c7beff 60%, #b3aaff 100%);
}

.template-preview.cat-portfolio {
  background: linear-gradient(135deg, #ffe0ec 0%, #ffb3ca 60%, #ff8fab 100%);
}

.template-preview.cat-business {
  background: linear-gradient(135deg, #d0faf0 0%, #a0f0d8 60%, #70e0bb 100%);
}

.template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.template-card:hover .template-preview img {
  transform: scale(1.07);
}

.template-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(108, 99, 255, 0.7);
}

.template-preview-placeholder .preview-icon {
  font-size: 46px;
  filter: drop-shadow(0 4px 8px rgba(108, 99, 255, 0.3));
  transition: transform 0.3s ease;
}

.template-card:hover .preview-icon {
  transform: scale(1.15) rotate(-5deg);
}

.template-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.92), rgba(155, 89, 182, 0.92));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.overlay-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.template-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.badge-resume {
  background: linear-gradient(135deg, #6c63ff, #8b5cf6);
  color: #fff;
}

.badge-portfolio {
  background: linear-gradient(135deg, #ff6b8a, #f43f5e);
  color: #fff;
}

.badge-business {
  background: linear-gradient(135deg, #00c896, #059669);
  color: #fff;
}

.template-body {
  padding: 20px 22px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.template-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.2px;
}

.template-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.template-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(108, 99, 255, 0.08);
  background: var(--bg-card);
  gap: 10px;
}

.tpl-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(135deg, #6c63ff, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #6c63ff, #9b59b6);
  color: #ffffff !important;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.45);
  filter: brightness(1.08);
}

/* ============================================
   CUSTOM SECTION — DARK MIDNIGHT REDESIGN
   ============================================ */
.custom-section {
  background: linear-gradient(145deg, #0f0c1d 0%, #1a1040 40%, #0d0b1e 100%);
  padding: 90px 0;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Radial glow accent */
.custom-section::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.22) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

/* Dot grid texture */
.custom-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.custom-section>* {
  position: relative;
  z-index: 1;
}

.custom-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.custom-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
}

.btn-white {
  background: #ffffff;
  color: var(--accent);
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

/* ============================================
   T&C PAGE
   ============================================ */
.tnc-page {
  padding-top: 68px;
}

.tnc-header {
  background: var(--hero-gradient);
  padding: 80px 0 60px;
  text-align: center;
}

.tnc-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.tnc-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.tnc-section:last-child {
  border-bottom: none;
}

.tnc-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tnc-num {
  width: 32px;
  height: 32px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.tnc-section p,
.tnc-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.tnc-section ul {
  margin-top: 10px;
  padding-left: 20px;
  list-style: disc;
}

.tnc-section ul li {
  margin-bottom: 6px;
}

.tnc-highlight {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-top: 12px;
}

.tnc-highlight p {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
}

.contact-box p {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-box a {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

/* ============================================
   RESPONSIVE – FULL DEVICE OPTIMIZATION
   ============================================ */

/* ── Base mobile-first fixes ── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  max-width: 100%;
  height: auto;
}

/* ── Extra-large / 4K (1400px+) ── */
@media (min-width: 1400px) {
  .container {
    max-width: 1360px;
  }

  .hero h1 {
    font-size: 72px;
  }

  .templates-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

/* ── Large Desktop (1200px – 1399px) ── */
@media (min-width: 1200px) and (max-width: 1399px) {
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Medium Desktop / Landscape Tablet (1024px – 1199px) ── */
@media (max-width: 1199px) {
  .container {
    padding: 0 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 40px 0;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    display: none;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Tablet (768px – 1023px) ── */
@media (max-width: 1023px) {

  /* Navbar */
  .nav-links {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    height: 62px;
  }

  .mobile-menu {
    top: 62px;
  }

  .tnc-page {
    padding-top: 62px;
  }

  /* Hero */
  .hero {
    padding: 80px 0 50px;
  }

  .hero h1 {
    font-size: clamp(30px, 5vw, 48px);
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-price {
    font-size: 14px;
  }

  /* Sections */
  .section {
    padding: 60px 0;
  }

  .section-sm {
    padding: 40px 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 36px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Store */
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .store-header {
    padding: 80px 0 40px;
  }

  .filter-bar {
    gap: 8px;
    padding: 0 16px;
  }

  .filter-btn {
    padding: 9px 18px;
    font-size: 13px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* T&C */
  .tnc-content {
    padding: 40px 20px 60px;
  }

  .tnc-header {
    padding: 60px 0 40px;
  }

  /* Custom section */
  .custom-section {
    padding: 60px 0;
  }

  .custom-section p {
    font-size: 16px;
  }
}

/* ── Large Phone / Small Tablet (600px – 767px) ── */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 72px 0 48px;
  }

  .hero h1 {
    font-size: clamp(28px, 7vw, 40px);
    line-height: 1.15;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions .btn {
    min-width: 180px;
  }

  .hero-price {
    font-size: 13px;
    padding: 7px 14px;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 14px;
  }

  .feature-card h3 {
    font-size: 17px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .price-card {
    padding: 22px 18px;
  }

  .price-name {
    font-size: 15px;
  }

  .price-tag {
    font-size: 22px;
  }

  .pricing-header {
    margin-bottom: 32px;
  }

  /* Store */
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .template-preview {
    height: 160px;
  }

  .template-body {
    padding: 14px;
    gap: 6px;
  }

  .template-title {
    font-size: 14px;
  }

  .template-desc {
    font-size: 12px;
  }

  .template-footer {
    padding: 12px 14px;
  }

  .tpl-price {
    font-size: 17px;
  }

  .btn-contact {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Filter */
  .filter-bar {
    gap: 6px;
    padding: 0 12px;
    margin-bottom: 0;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  /* Custom section */
  .custom-section {
    padding: 52px 20px;
  }

  .btn-white {
    padding: 14px 24px;
    font-size: 14px;
  }

  /* T&C */
  .tnc-section h2 {
    font-size: 17px;
  }

  .tnc-section p,
  .tnc-section li {
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 30px 0 20px;
  }

  .footer-logo {
    font-size: 18px;
  }

  .footer-copy {
    font-size: 12px;
  }

  /* Section title */
  .section-title {
    font-size: clamp(24px, 5vw, 34px);
  }

  .section-subtitle {
    font-size: 14px;
  }
}

/* ── Standard Phone (480px – 599px) ── */
@media (max-width: 599px) {
  .hero {
    padding: 68px 0 44px;
  }

  .hero h1 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 15px 20px;
    font-size: 15px;
  }

  /* Templates: 2 columns still fits */
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .template-preview {
    height: 140px;
  }

  /* Store header */
  .store-header {
    padding: 72px 0 30px;
  }

  /* Sticky filter bar – scrollable horizontal */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Pricing single col */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Custom section */
  .custom-section {
    padding: 44px 16px;
  }
}

/* ── Small Phone (360px – 479px) ── */
@media (max-width: 479px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(24px, 9vw, 32px);
    line-height: 1.2;
  }

  .hero-sub {
    font-size: 14px;
  }

  .hero-tag {
    font-size: 12px;
    padding: 5px 12px;
  }

  .hero-price {
    font-size: 12px;
  }

  /* 1 column templates on small phones */
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-logo {
    font-size: 19px;
  }

  .section-title {
    font-size: clamp(22px, 8vw, 28px);
  }

  .badge {
    font-size: 12px;
    padding: 5px 12px;
  }

  /* Pricing */
  .price-tag {
    font-size: 20px;
  }

  /* T&C */
  .tnc-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .tnc-section h2 {
    font-size: 16px;
    gap: 8px;
  }

  .contact-box {
    padding: 18px 16px;
  }

  /* Float WA button - smaller on small screens */
  .wa-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 16px;
  }

  /* Footer */
  .footer-links {
    gap: 10px;
  }

  .footer-link {
    font-size: 13px;
  }

  /* Feature cards */
  .feature-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  /* Custom section */
  .custom-section h2 {
    font-size: 26px;
  }

  .custom-section p {
    font-size: 14px;
  }

  .btn-white {
    padding: 13px 20px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
}

/* ── Very Small Phone (< 360px, e.g. 320px) ── */
@media (max-width: 359px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .nav-logo {
    font-size: 17px;
  }

  .filter-btn {
    padding: 7px 12px;
    font-size: 11px;
  }

  .template-preview {
    height: 120px;
  }

  .template-title {
    font-size: 13px;
  }

  .tpl-price {
    font-size: 15px;
  }

  .btn-contact {
    padding: 7px 12px;
    font-size: 12px;
  }
}

/* ── Touch devices – disable hover effects that don't make sense ── */
@media (hover: none) {
  .template-card:hover {
    transform: none;
  }

  .feature-card:hover {
    transform: none;
  }

  .price-card:hover {
    transform: none;
  }

  .btn:hover {
    transform: none;
  }

  .btn-white:hover {
    transform: none;
  }

  .stat-item:hover {
    transform: none;
  }

  .template-card:hover .template-overlay {
    opacity: 0;
  }

  /* Better touch tap on template cards */
  .template-card:active {
    transform: scale(0.98);
  }

  .btn:active {
    transform: scale(0.97);
  }

  .btn-contact:active {
    transform: scale(0.97);
  }

  .filter-btn:active {
    transform: scale(0.97);
  }
}

/* ── Landscape phone / small tablet landscape ── */
@media (max-width: 812px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 75px 0 40px;
  }

  .hero h1 {
    font-size: clamp(24px, 4vw, 36px);
  }

  .section {
    padding: 44px 0;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Safe area insets (iPhone notch/pill) ── */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .mobile-menu {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }

  .wa-float {
    bottom: max(30px, calc(env(safe-area-inset-bottom) + 16px));
    right: max(30px, calc(env(safe-area-inset-right) + 16px));
  }

  .footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* ── Reduced motion preference ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Print styles ── */
@media print {

  .navbar,
  .wa-float,
  .mobile-menu,
  .custom-section,
  .btn,
  .btn-contact,
  .btn-white,
  .filter-bar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .tnc-content {
    max-width: 100%;
    padding: 20px 0;
  }

  .tnc-section {
    break-inside: avoid;
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  width: 100%;
  font-size: 16px;
  grid-column: 1 / -1;
}

/* ============================================
   TEMPLATE PREVIEW MODAL
   ============================================ */
.preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.preview-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.preview-modal {
  background: var(--bg-card);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 28px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.preview-overlay.open .preview-modal {
  transform: scale(1) translateY(0);
}

/* Close button (top-right) */
.preview-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.preview-close:hover {
  background: rgba(255, 80, 80, 0.2);
  color: #ff5050;
  border-color: rgba(255, 80, 80, 0.4);
}

/* ── Carousel ── */
.preview-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px 0 0 28px;
  background: var(--bg-secondary);
  min-height: 420px;
}

.preview-slides {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  text-align: center;
  gap: 16px;
  position: relative;
}

.preview-slide .slide-icon {
  font-size: 64px;
  filter: drop-shadow(0 8px 20px rgba(108, 99, 255, 0.4));
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.preview-slide .slide-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-slide .slide-mock {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-line {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.mock-line.short {
  width: 55%;
}

.mock-line.medium {
  width: 75%;
}

.mock-line.full {
  width: 100%;
}

.mock-line.accent {
  background: rgba(108, 99, 255, 0.6);
  width: 40%;
}

/* Carousel nav buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.prev-btn {
  left: 12px;
}

.next-btn {
  right: 12px;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(108, 99, 255, 0.5);
  border-color: rgba(108, 99, 255, 0.7);
  transform: translateY(-50%) scale(1.1);
}

/* Dots */
.preview-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.25s ease;
}

.preview-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

/* ── Info Panel ── */
.preview-info {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 100px;
  align-self: flex-start;
}

.preview-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 0;
}

.preview-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.preview-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.preview-features li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.preview-price-wrap {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08), rgba(155, 89, 182, 0.06));
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 4px;
}

.preview-price-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.preview-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #6c63ff, #9b59b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  line-height: 1.1;
}

.preview-price-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
}

.preview-cta {
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
  font-size: 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6c63ff, #9b59b6);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.35);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-cta:hover {
  filter: brightness(1.1);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.5);
}

.preview-close-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.preview-close-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--accent);
  color: var(--accent);
}

/* Mobile stacked layout */
@media (max-width: 680px) {
  .preview-modal {
    grid-template-columns: 1fr;
    max-height: 95vh;
    border-radius: 20px;
  }

  .preview-carousel {
    border-radius: 20px 20px 0 0;
    min-height: 260px;
  }

  .preview-info {
    padding: 24px 20px;
    gap: 12px;
  }

  .preview-title {
    font-size: 18px;
  }

  .preview-price {
    font-size: 26px;
  }
}