/* ==========================================
   Wish Themes - Shooting Star Theme CSS
   ========================================== */

/* Root Variables */
:root {
  /* ============================================================
     SEMANTIC TOKEN LAYER — dark is the default.
     Light overrides live in [data-theme="light"] below.
     Flip the default later by swapping the two block bodies.
     ============================================================ */
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --surface: #161618;
  --surface-2: #1f1f23;
  --surface-gallery: #18181b; /* neutral in BOTH modes — keeps thumbnails popping */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-secondary: rgba(244, 244, 245, 0.72);
  --text-muted: rgba(244, 244, 245, 0.5);
  --accent: #8b7bf0;
  --accent-strong: #a193f4;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(139, 123, 240, 0.14);
  --ring: rgba(139, 123, 240, 0.55);
  --shadow: rgba(0, 0, 0, 0.45);
  --chrome-bar: #202024;
  --chrome-dot: rgba(255, 255, 255, 0.18);
  --accent-opacity: 0.1; /* gates decorative cosmic glow; 0 disables */

  /* ---- Legacy aliases: keep existing markup working ---- */
  --space-900: var(--bg);
  --space-800: var(--bg-elevated);
  --space-700: var(--surface);
  --space-600: var(--surface-2);
  --space-500: var(--surface-2);
  --accent-blue: var(--accent); /* cyan retired -> accent */
  --accent-purple: var(--accent);
  --accent-pink: var(--accent); /* pink retired -> accent */
  --star-white: var(--text);
  --star-yellow: var(--text);
  --star-blue: var(--text-secondary);
  --primary: var(--accent);
  --primary-dark: var(--accent-strong);
  --secondary: var(--accent);
  --text-primary: var(--text);
  /* --text-secondary / --text-muted are defined in the semantic layer above */

  /* Brand colors (must NOT be themed) */
  --discord-blurple: #5865f2;
  --discord-blurple-hover: #4752c4;

  /* Spacing */
  --max-width: 1280px;

  /* Typography */
  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-gallery: #e9e9ec;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.16);
  --text: #18181b;
  --text-secondary: rgba(24, 24, 27, 0.72);
  --text-muted: rgba(24, 24, 27, 0.55);
  --accent: #6c5ce0;
  --accent-strong: #5a47d6;
  --accent-contrast: #ffffff;
  --accent-soft: rgba(108, 92, 224, 0.1);
  --ring: rgba(108, 92, 224, 0.5);
  --shadow: rgba(24, 24, 27, 0.1);
  --chrome-bar: #ececef;
  --chrome-dot: rgba(0, 0, 0, 0.18);
  --accent-opacity: 0;
}

/* ==========================================
   Base Styles
   ========================================== */

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

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Cosmic background — gated by --accent-opacity (0.1 dark, 0 light) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      ellipse at top,
      var(--accent-soft) 0%,
      transparent 50%
    ),
    radial-gradient(ellipse at bottom, var(--surface-2) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  opacity: var(--accent-opacity);
  transition: opacity 0.3s ease;
  z-index: -2;
}

/* Stars background */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--star-white);
  border-radius: 50%;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Shooting star animation */
@keyframes shoot {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translateX(300px) translateY(300px) rotate(-45deg);
    opacity: 0;
  }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 50px;
  background: linear-gradient(to top, var(--star-white), transparent);
  animation: shoot 3s linear infinite;
  pointer-events: none;
}

/* Global keyboard focus ring */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect reduced motion: kill decorative animation + cosmic FX */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  body::before,
  .ambient-1,
  .ambient-2,
  .star,
  .shooting-star {
    display: none !important;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Accent glass effect — now token-driven so it works in light + dark */
.accent-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* Accent text (was a loud gradient; now the single restrained accent) */
.text-gradient {
  color: var(--accent);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-heading);
  position: relative;
  overflow: hidden;
  border: none;
  background: none;
  font-size: 1rem;
}

/* Primary button - solid accent */
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  box-shadow: 0 4px 15px var(--accent-soft);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* Discord button */
.btn-discord {
  background: rgba(88, 101, 242, 0.15);
  color: var(--text-primary);
  border: 1px solid rgba(88, 101, 242, 0.3);
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.75rem;
  margin-right: 0.35rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: var(--discord-blurple);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord svg {
  color: #b8bfff;
  transition: all 0.3s ease;
}

.btn-discord:hover svg {
  color: var(--star-white);
  transform: scale(1.1);
}

/* Others Dropdown */
.others-dropdown {
  position: relative;
}

.others-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  transition: all 0.3s ease;
}

.others-button:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.others-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.others-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(3, 0, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.others-dropdown:hover .others-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.menu-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.option-icon {
  font-size: 1.1rem;
}

/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 0.75rem;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.lang-icon {
  font-size: 1rem;
}

.lang-flag-icon {
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.lang-code {
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.lang-arrow {
  transition: transform 0.3s ease;
}

.language-selector:hover .lang-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 150px;
  background: rgba(3, 0, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.language-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(123, 97, 255, 0.15);
  color: var(--accent-purple);
}

.lang-flag {
  font-size: 1.25rem;
}

/* Star particles for buttons */
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, var(--star-white) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  border-radius: 50%;
  pointer-events: none;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* ==========================================
   Navigation Styles
   ========================================== */

.navbar {
  /* Floating pill bar — luxury-lean, cruip-style */
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 1.5rem));
  z-index: 1000;
  padding: 0.55rem 0;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  box-shadow: 0 10px 30px -12px var(--shadow);
  z-index: -1;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-2px);
}

.logo-icon {
  position: relative;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 2rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.discord-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
}

.discord-icon svg {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-star {
  margin-right: 0.5rem;
  display: inline-block;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ==========================================
   Hero Section Styles
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Constellations */
.constellation {
  position: absolute;
  opacity: 0.6;
  animation: twinkleConstellation 4s ease-in-out infinite;
}

.constellation-left {
  left: -50px;
  top: 50%;
  transform: translateY(-50%);
}

.constellation-right {
  right: -50px;
  top: 40%;
  transform: translateY(-40%);
}

@keyframes twinkleConstellation {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Hero title */
.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  width: 100%;
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.price-highlight {
  color: var(--accent-pink);
  font-weight: 700;
  font-size: 1.2em;
}

/* Star counter */
.star-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
}

.counter-icon {
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.2) rotate(180deg);
  }
}

.counter-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.counter-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Enhanced hover effects for hero CTA buttons */
.hero-cta .btn-large {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-cta .btn-large::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-cta .btn-large:hover::before {
  width: 300px;
  height: 300px;
}

.hero-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 40px rgba(123, 97, 255, 0.4),
              0 15px 50px rgba(255, 97, 220, 0.3);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-blue);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 40px rgba(0, 217, 255, 0.3);
  color: var(--accent-blue);
}

.hero-cta .btn-large:hover .btn-icon {
  animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-5px) rotate(10deg);
  }
}

.btn-icon {
  font-size: 1.25rem;
  margin-right: 0.5rem;
}

/* Star catcher interactive area */
.star-catcher {
  position: relative;
  height: 200px;
  cursor: crosshair;
  margin-top: 2rem;
}

.catcher-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 0.875rem;
  pointer-events: none;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Ambient backgrounds */
.ambient-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ambient-1 {
  background: radial-gradient(
    ellipse at 20% 50%,
    rgba(0, 217, 255, 0.2) 0%,
    transparent 50%
  );
  animation: drift1 20s ease-in-out infinite;
}

.ambient-2 {
  background: radial-gradient(
    ellipse at 80% 40%,
    rgba(255, 97, 220, 0.15) 0%,
    transparent 50%
  );
  animation: drift2 25s ease-in-out infinite;
}

@keyframes drift1 {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(100px) translateY(-50px);
  }
}

@keyframes drift2 {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-100px) translateY(50px);
  }
}

/* Caught star animation */
.caught-star {
  position: absolute;
  width: 30px;
  height: 30px;
  pointer-events: none;
  animation: caughtStarFloat 2s ease-out forwards;
}

@keyframes caughtStarFloat {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.8) rotate(360deg) translateY(-100px);
    opacity: 0;
  }
}

/* ==========================================
   Template Showcase Section Styles
   ========================================== */

.templates-section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

.title-small {
  display: block;
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.title-large {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter constellation */
.filter-constellation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-color: transparent;
  color: var(--text-primary);
}

.filter-icon {
  font-size: 1.2rem;
}

/* Templates grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.template-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: visible;
  transition: all 0.4s ease;
  animation: fallingStar 0.8s ease-out forwards;
  animation-delay: var(--delay, 0);
  opacity: 0;
  transform: translateY(-50px);
  background: rgba(255, 255, 255, 0.03);
}

/* Card inner wrapper to maintain overflow hidden for content */
.template-card > *:not(.template-header) {
  overflow: hidden;
  border-radius: inherit;
}

@keyframes fallingStar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.template-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.template-card:hover .card-glow {
  opacity: 0.2;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  position: relative;
  z-index: 2;
}

.template-frameworks {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.framework-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.framework-badge.more {
  background: rgba(123, 97, 255, 0.2);
  border-color: rgba(123, 97, 255, 0.3);
  color: var(--accent-purple);
  cursor: pointer;
  position: relative;
}

.framework-badge.more:hover {
  background: rgba(123, 97, 255, 0.3);
  border-color: rgba(123, 97, 255, 0.4);
  transform: scale(1.05);
}

/* Tooltip for additional frameworks */
.framework-badge.more::after {
  content: attr(data-frameworks);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-0.5rem);
  background: var(--space-800);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tooltip arrow */
.framework-badge.more::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 101;
}

.framework-badge.more:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-0.75rem);
}

.framework-badge.more:hover::before {
  opacity: 1;
  visibility: visible;
}

.template-card:hover .framework-badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.template-card:hover .framework-badge.more {
  background: rgba(123, 97, 255, 0.3);
  border-color: rgba(123, 97, 255, 0.4);
}

.template-category {
  font-size: 1.5rem;
}

.template-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 1rem;
}

.template-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.template-card:hover .template-image img {
  transform: scale(1.05);
}

/* Preview theme adjustments */
.template-card:not(.dark-preview) .template-image {
  background: #2a2a3e; /* Darker background for light previews */
}

.template-card.dark-preview .template-image {
  background: #757575; /* Even lighter gray background for dark previews */
}

.image-overlay {
  position: absolute;
  inset: 1rem;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 0.5rem;
}

.template-card:hover .image-overlay {
  opacity: 1;
}

.preview-text {
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--text-primary);
  border-radius: 9999px;
  font-size: 1.1rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.image-overlay:hover .preview-text {
  background: rgba(123, 97, 255, 0.3);
  border-color: var(--accent-purple);
  transform: scale(1.05);
}

.template-content {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.template-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-label {
  font-size: 0.75rem;
  color: #ffd700;
  font-weight: 600;
  background: rgba(255, 215, 0, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.template-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.template-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.template-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.feature-star {
  font-size: 0.75rem;
  color: var(--star-yellow);
}

/* Check items in hero */
.check-item {
  display: inline-block;
  margin: 0 0.5rem;
  white-space: nowrap;
}

.template-footer {
  position: relative;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-purple);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(123, 97, 255, 0.4);
  min-width: 3rem;
  text-align: center;
}

/* Premium template styling */
.template-card.premium .price-badge {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #1a1a2e;
  font-size: 0.9rem;
  padding: 0.3rem 1.25rem;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.5);
}

/* Free template badge */
.price-badge.free {
  background: linear-gradient(135deg, #4caf50, #45a049);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.template-card.premium {
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.template-card.premium .card-glow {
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.3) 0%,
    transparent 70%
  );
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-pink);
}

.template-actions {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.btn-small {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  flex: 1;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-small span {
  font-size: 1rem;
}

/* Floating stars */
.floating-stars {
  position: absolute;
  top: 1rem;
  right: 1rem;
  pointer-events: none;
}

.floating-star {
  position: absolute;
  color: var(--star-yellow);
  font-size: 0.75rem;
  animation: floatUp 3s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0.6;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Coming soon card */
.coming-soon-card {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
}

.coming-soon-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.coming-soon-text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.coming-soon-stars {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  animation: rotate 20s linear infinite;
}

/* ==========================================
   Wish Caster Section Styles
   ========================================== */

.wish-section {
  padding: 6rem 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.wish-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Star map background */
.star-map {
  position: absolute;
  inset: -50px;
  opacity: 0.3;
  pointer-events: none;
}

#starMapCanvas {
  width: 100%;
  height: 100%;
}

.wish-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.wish-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-icon {
  font-size: 2.5rem;
  animation: rotate 4s linear infinite;
}

.wish-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Wishes stats */
.wishes-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-divider {
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* Wish form */
.wish-form {
  max-width: 600px;
  margin: 0 auto 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.label-icon {
  font-size: 1.2rem;
}

.form-textarea,
.form-input,
.form-select {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-textarea:focus,
.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.2);
}

.form-textarea::placeholder,
.form-input::placeholder {
  color: var(--text-muted);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: var(--space-800);
  color: var(--text-primary);
}

.wish-submit {
  width: 100%;
  max-width: 300px;
  margin: 2rem auto 0;
  display: flex;
}

/* Recent wishes */
.recent-wishes {
  text-align: center;
}

.recent-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.wishes-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.wish-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.wish-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.wish-icon {
  font-size: 1.5rem;
}

.wish-text {
  flex: 1;
  text-align: left;
  color: var(--text-secondary);
  margin: 0;
}

.wish-votes {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-pink);
  padding: 0.25rem 0.75rem;
  background: rgba(255, 97, 220, 0.2);
  border-radius: 9999px;
}

/* Wish animation */
.wish-animation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

.wish-animation.active {
  display: block;
}

.wish-star {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  font-size: 3rem;
  animation: shootToSky 2s ease-out forwards;
}

@keyframes shootToSky {
  0% {
    transform: translate(-50%, 50%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -800px) scale(0.5) rotate(720deg);
    opacity: 0;
  }
}

/* ==========================================
   Testimonials Section
   ========================================== */

.testimonials-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
  background: var(--space-900);
  z-index: 1;
}

.testimonials-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(123, 97, 255, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: -1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 1rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.testimonial-card.accent-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px 0 rgba(123, 97, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(123, 97, 255, 0.15);
}

.testimonial-card:hover .testimonial-stars .star {
  color: #ffd700;
  transform: scale(1.1);
}

.testimonial-card.featured {
  border: 2px solid rgba(123, 97, 255, 0.3);
  background: linear-gradient(
    135deg,
    rgba(123, 97, 255, 0.1) 0%,
    rgba(255, 97, 220, 0.1) 100%
  );
}

.testimonial-stars {
  display: flex;
  gap: 0.1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.testimonial-stars .star {
  font-size: 1rem;
  color: var(--star-yellow);
  filter: drop-shadow(0 0 3px rgba(255, 230, 124, 0.6));
  transform: translateZ(0);
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: auto;
  font-style: normal;
  flex: 1;
  padding: 0 1rem;
}

.quote-start,
.quote-end {
  font-size: 1.5rem;
  color: var(--accent-purple);
  opacity: 0.4;
  font-family: Georgia, serif;
  font-weight: bold;
  line-height: 0;
  vertical-align: baseline;
}

.quote-start {
  margin-right: 0.45rem; /* ~1 space */
}

.quote-end {
  margin-left: 0.5rem; /* ~1.5 spaces */
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-emoji {
  font-size: 1.5rem;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-title {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.testimonial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(123, 97, 255, 0.1);
  border: 1px solid rgba(123, 97, 255, 0.2);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: var(--accent-purple);
}

.badge-icon {
  font-size: 1rem;
}

.testimonials-cta {
  text-align: center;
  margin-top: 4rem;
}

.testimonials-cta .cta-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 4rem 0;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .testimonial-card {
    padding: 1.5rem;
    min-height: auto;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  .author-avatar {
    width: 2.5rem;
    height: 2.5rem;
  }

  .avatar-emoji {
    font-size: 1.25rem;
  }
}

/* ==========================================
   Footer Styles
   ========================================== */

.footer {
  margin-top: 0;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent-blue) 25%,
    var(--accent-purple) 50%,
    var(--accent-pink) 75%,
    transparent 100%
  );
  opacity: 0.5;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Brand section */
.footer-brand {
  max-width: 350px;
}

.footer-logo {
  margin-bottom: 1rem;
  animation: float 4s ease-in-out infinite;
}

.footer-tagline {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Links sections */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.heading-icon {
  font-size: 1.2rem;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 0.75rem;
}

.footer-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-list a:hover {
  color: var(--text-primary);
  padding-left: 1rem;
}

.footer-list a::before {
  content: "→";
  position: absolute;
  left: -1rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-list a:hover::before {
  left: 0;
  opacity: 1;
}

/* Constellation decoration */
.footer-constellation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
}

.constellation-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: 1.5rem;
  color: var(--star-white);
  animation: twinkle 3s ease-in-out infinite;
  animation-delay: calc(var(--x) * 0.01s);
}

/* Keep the light footer clean; stars remain a dark-theme brand detail. */
[data-theme="light"] .footer-logo,
[data-theme="light"] .footer-constellation {
  display: none;
}

/* Bottom section */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

.divider {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================
   Additional Effects
   ========================================== */

/* Custom cursor glow effect */
.cursor-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(123, 97, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* ==========================================
   Version 2 - Business-focused Styles
   ========================================== */

/* Trust Bar */
.trust-bar {
  background: rgba(13, 2, 33, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(123, 97, 255, 0.2);
  border-bottom: 1px solid rgba(123, 97, 255, 0.2);
  padding: 1.5rem 0;
  margin-top: -1px;
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.trust-icon {
  font-size: 1.2rem;
}

.trust-divider {
  color: var(--accent-purple);
  opacity: 0.3;
}

/* Value Props Section */
.value-props {
  padding: 5rem 0;
  position: relative;
}

.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.prop-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.prop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(123, 97, 255, 0.3);
}

.prop-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.prop-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prop-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Template Meta */
.template-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.template-target {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-check {
  color: #4ade80;
  margin-right: 0.5rem;
}

.preview-btn {
  cursor: pointer;
}

/* Industry Section */
.industry-section {
  padding: 5rem 0;
  background: rgba(13, 2, 33, 0.3);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.industry-card {
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(255, 97, 220, 0.3);
}

.industry-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.industry-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-pink);
}

.industry-features {
  list-style: none;
  margin-bottom: 1rem;
}

.industry-features li {
  padding: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.industry-perfect {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 500;
}

/* Social Proof Section */
.social-proof-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.social-proof-section::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
  opacity: 0.1;
  transform: translate(-50%, -50%);
  filter: blur(100px);
}

/* CTA Banner */
.cta-banner {
  margin-top: 3rem;
  padding: 3rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(123, 97, 255, 0.1) 0%,
    rgba(255, 97, 220, 0.1) 100%
  );
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   Vision & Mission Section
   ========================================== */

.vision-mission-section {
  padding: 80px 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(123, 97, 255, 0.02) 50%,
    transparent 100%
  );
}

.vm-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.vm-card {
  padding: 2.5rem;
  background: rgba(123, 97, 255, 0.03);
  border: 1px solid rgba(123, 97, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.vm-card:hover {
  transform: translateY(-5px);
  background: rgba(123, 97, 255, 0.06);
  box-shadow: 0 20px 40px rgba(123, 97, 255, 0.1);
}

.vm-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.vm-title {
  font-size: 1.75rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  font-weight: 600;
}

.vm-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.vm-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.divider-star {
  color: var(--accent-purple);
  opacity: 0.3;
  font-size: 1rem;
  animation: twinkle 2s ease-in-out infinite;
}

.divider-star:nth-child(2) {
  animation-delay: 0.5s;
  opacity: 0.5;
}

.divider-star:nth-child(3) {
  animation-delay: 1s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Responsive Design for Vision & Mission */
@media (max-width: 968px) {
  .vm-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vm-divider {
    flex-direction: row;
    padding: 1rem 0;
  }

  .vm-card {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .vision-mission-section {
    padding: 60px 20px;
  }

  .vm-card {
    padding: 2rem;
  }

  .vm-title {
    font-size: 1.5rem;
  }

  .vm-text {
    font-size: 1rem;
  }

  .vm-icon {
    font-size: 2.5rem;
  }
}

/* Updated Wish Section */
.wish-item.granted {
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.1) 0%,
    rgba(74, 222, 128, 0.05) 100%
  );
  border-color: rgba(74, 222, 128, 0.3);
}

.wish-status {
  font-size: 0.85rem;
  color: #4ade80;
  font-weight: 500;
}

.wish-votes {
  font-size: 0.85rem;
  color: var(--accent-pink);
  font-weight: 600;
}

/* Footer Truth Section */
.footer-truth {
  margin: 3rem 0;
  padding: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.truth-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-pink);
}

.truth-text {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.truth-list {
  list-style: none;
  text-align: left;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.truth-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
}

.truth-cta {
  font-weight: 600;
  color: var(--star-white);
}

/* Coming Soon Updates */
.coming-soon-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.coming-soon-stats .stat {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Price Display Updates */
.price-display {
  margin: 2rem 0;
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-value {
  display: block;
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--star-yellow), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-suffix {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Sections spacing */
section {
  position: relative;
}

/* Page load animation */
@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > * {
  animation: pageLoad 0.8s ease-out forwards;
}

main > *:nth-child(1) {
  animation-delay: 0.1s;
}
main > *:nth-child(2) {
  animation-delay: 0.2s;
}
main > *:nth-child(3) {
  animation-delay: 0.3s;
}

/* ==========================================
   Mobile Responsive Styles
   ========================================== */

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .trust-divider {
    display: none;
  }

  .trust-items {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    display: none;
  }

  /* Dropdown panel under the floating pill when the hamburger is open */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 20px 40px -16px var(--shadow);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .constellation {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 4rem;
  }

  .btn-large {
    width: 100%;
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .filter-constellation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .wishes-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-divider {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================
   Version 3 Specific Styles
   ========================================== */

/* Compact Hero Section */
.hero-compact {
  min-height: 70vh;
  padding: 6rem 0 2rem;
}

.hero-compact .hero-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-compact .hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  margin-top: 4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  width: 100%;
}

.hero-compact .hero-title .title-line {
  text-align: center;
  margin: 0 auto;
  display: block;
  width: 100%;
}

.hero-compact .hero-title .title-line:first-child {
  white-space: nowrap;
}

/* Big Price Display */
.hero-price-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
  animation: priceGlow 2s ease-in-out infinite;
}

.price-giant {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(
    45deg,
    var(--accent-pink),
    var(--accent-purple),
    var(--accent-blue)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(123, 97, 255, 0.5);
  margin-bottom: 0.5rem;
}

.price-label {
  font-size: 1.125rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes priceGlow {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.02);
    filter: brightness(1.2);
  }
}

/* Template Showcase Visible on First Page */
.templates-showcase {
  margin-top: -2rem;
}

/* Value Props Section Updates */
.value-props-section {
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.value-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 97, 255, 0.3);
  box-shadow: 0 8px 32px rgba(123, 97, 255, 0.2);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.value-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.value-list li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.value-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.value-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.industry-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(123, 97, 255, 0.2);
  border: 1px solid rgba(123, 97, 255, 0.3);
  border-radius: 20px;
  font-size: 0.875rem;
  margin: 0.25rem;
}

.highlight-card {
  grid-column: span 1;
  background: rgba(255, 97, 220, 0.05);
  border-color: rgba(255, 97, 220, 0.2);
}

.roi-calculation {
  margin-top: 1rem;
}

.roi-item {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.roi-result {
  font-size: 1.125rem;
  color: var(--accent-pink);
  font-weight: 700;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments for Version 3 */
@media (max-width: 768px) {
  .hero-compact {
    min-height: auto;
    padding: 5rem 0 2rem;
  }

  .price-giant {
    font-size: 4rem;
  }

  .value-props-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
