/* ==========================================================================
   GifGun Craftwork Redesign - Light & Dark Theme Support
   ========================================================================== */

/* --- CSS VARIABLES - LIGHT THEME (Default) --- */
:root {
  /* Colors - Light Mode Palette */
  --bg-main: #FFFFFF;
  --bg-card: #F8F9FA;
  --bg-card-hover: #F0F1F3;
  --bg-elevated: #FFFFFF;
  --border-color: #E5E7EB;
  --border-subtle: #F3F4F6;
  --border-hover: #D1D5DB;
  --bg-hover-subtle: rgba(0, 0, 0, 0.03);
  
  --text-main: #111111;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;
  
  /* Accent - Vibrant Lime */
  --accent-lime: #65A30D;
  --accent-lime-hover: #4D7C0F;
  --accent-lime-dim: rgba(101, 163, 13, 0.15);
  
  /* Semantic Colors */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;
  
  /* Spacing */
  --container-width: 1200px;
  --container-padding: 20px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows - Light */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(132, 204, 22, 0.25);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* --- DARK THEME --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-main: #111111;
    --bg-card: #1C1C1C;
    --bg-card-hover: #252525;
    --bg-elevated: #1a1a1a;
    --border-color: #2A2A2A;
    --border-subtle: #222222;
    --border-hover: #444444;
    --bg-hover-subtle: rgba(255, 255, 255, 0.05);
    --text-main: #FFFFFF;
    --text-secondary: #E5E5E5;
    --text-muted: #9CA3AF;
    --text-dim: #8B929A;
    --accent-lime: #D4FF00;
    --accent-lime-hover: #bce600;
    --accent-lime-dim: rgba(212, 255, 0, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(212, 255, 0, 0.2);
  }
}

/* Force dark theme for redesign pages regardless of system preference */
body.redesign {
  --bg-main: #111111;
  --bg-card: #1C1C1C;
  --bg-card-hover: #252525;
  --bg-elevated: #1a1a1a;
  --border-color: #2A2A2A;
  --border-subtle: #222222;
  --border-hover: #444444;
  --bg-hover-subtle: rgba(255, 255, 255, 0.05);
  --text-main: #FFFFFF;
  --text-secondary: #E5E5E5;
  --text-muted: #9CA3AF;
  --text-dim: #8B929A;
  --accent-lime: #D4FF00;
  --accent-lime-hover: #bce600;
  --accent-lime-dim: rgba(212, 255, 0, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(212, 255, 0, 0.2);
}

/* --- SKIP LINK --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 12px 24px;
  background: var(--accent-lime);
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
}

body.redesign {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

::selection {
  background: var(--accent-lime);
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

h3 {
  font-size: clamp(1.25rem, 1rem + 0.5vw, 1.5rem);
}

p {
  max-width: 65ch;
}

/* --- UTILITIES --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

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

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent-lime);
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.section-link:hover {
  color: var(--accent-lime);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  font-family: inherit;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-lime);
  color: #000;
  box-shadow: 0 2px 8px rgba(212, 255, 0, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(212, 255, 0, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background-color: var(--bg-hover-subtle);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
}

.btn-ghost:hover {
  color: var(--text-main);
  background-color: var(--bg-hover-subtle);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* --- HEADER --- */
.header-redesign {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-main);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

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

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-redesign {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.logo-redesign:hover {
  color: var(--accent-lime);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon img {
  width: 20px;
  height: 20px;
  border-radius: 0;
}

.nav-links-redesign {
  display: flex;
  gap: 32px;
}

.nav-links-redesign a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-base);
}

.nav-links-redesign a:hover {
  color: var(--text-main);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-cta {
  padding: 8px 16px;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: all var(--transition-base);
}

.header-cta:hover {
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: all var(--transition-base);
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--accent-lime-dim);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--accent-lime);
  margin-bottom: 20px;
}

/* Subpage Hero */
.hero-subpage {
  padding: 60px 0 40px;
}

.hero-subpage-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-subpage-desc {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-top: 16px;
}

@media (max-width: 480px) {
  .hero-subpage {
    padding: 40px 0 24px;
  }

  .hero-subpage-desc {
    font-size: 1rem;
  }
}

/* Pricing Card */
.pricing-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.pricing-card h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.pricing-card > p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.price-box {
  background-color: var(--bg-card-hover);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-hover-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.price-icon svg {
  stroke: var(--text-main);
}

.price-details {
  flex: 1;
}

.price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-large {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  cursor: help;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.info-tooltip:hover,
.info-tooltip:focus {
  opacity: 1;
  outline: none;
}

.info-tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.info-tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-color);
}

.info-tooltip:hover .info-tooltip-text,
.info-tooltip:focus .info-tooltip-text,
.info-tooltip:focus-within .info-tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 480px) {
  .info-tooltip-text {
    left: auto;
    right: -12px;
    transform: none;
  }

  .info-tooltip-text::after {
    left: auto;
    right: 16px;
    transform: none;
  }
}

.pricing-features {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  color: var(--accent-lime);
  flex-shrink: 0;
}

.pricing-card .btn-primary {
  width: 100%;
  padding: 16px 28px;
}

/* --- FEATURES GRID --- */
.features-section {
  padding: 60px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all var(--transition-base);
  cursor: default;
}

.feature-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-hover);
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-2px);
  }
}

.icon-box {
  width: 52px;
  height: 52px;
  background-color: rgba(212, 255, 0, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
  flex-shrink: 0;
}

.feature-info {
  flex: 1;
}

.feature-info h3 {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1rem;
}

.feature-info span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- SHOWCASE SECTION --- */
.showcase-section {
  padding: 60px 0 100px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-base);
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-4px);
  }
}

.product-image {
  aspect-ratio: 16/10;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.product-image img,
.product-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.product-image .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Subtle elegant gradients from uiGradients */
.placeholder.gradient-1 {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* Moonlit Asteroid */
}

.placeholder.gradient-2 {
  background: linear-gradient(135deg, #4b6cb7, #182848); /* Royal */
}

.placeholder.gradient-3 {
  background: linear-gradient(135deg, #654ea3, #eaafc8); /* Cosmic Fusion */
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-author {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.product-badge {
  font-weight: 700;
  color: var(--accent-lime);
  font-size: 0.9rem;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
  padding: 60px 0;
  background: linear-gradient(180deg, transparent, rgba(212, 255, 0, 0.02));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 28px;
  border-radius: var(--radius-lg);
}

.testimonial-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}



.testimonial-info .testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.testimonial-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- FAQ SECTION --- */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background-color var(--transition-base);
}

.faq-question:hover {
  background-color: var(--bg-card-hover);
}

.faq-question svg {
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--accent-lime);
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* --- DOWNLOADS SECTION --- */
.downloads-section {
  padding: 60px 0;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.download-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-card:hover {
  border-color: var(--accent-lime);
  box-shadow: var(--shadow-glow);
}

.download-icon {
  margin-bottom: 20px;
  color: var(--text-main);
}

.download-card h3 {
  margin-bottom: 8px;
}

.download-card > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.download-card .btn-primary {
  width: 100%;
  margin-bottom: 12px;
  margin-top: auto;
}

.system-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.downloads-mobile-note {
  display: none;
  text-align: center;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.downloads-mobile-note a {
  color: var(--accent-lime);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .downloads-mobile-note {
    display: block;
  }
}

/* --- FOOTER --- */
.footer-redesign {
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  margin-top: 80px;
  background-color: var(--bg-main);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand a {
  color: var(--text-main);
  font-weight: 600;
}

.footer-brand a:hover {
  color: var(--accent-lime);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.footer-socials a:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0 auto;
}

.footer-bottom a {
  text-decoration: underline;
}

/* --- LICENSE INFO SECTION --- */
.license-section {
  padding: 60px 0;
}

.license-card-redesign {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.license-card-redesign h3 {
  margin-bottom: 16px;
  color: var(--accent-lime);
}

.license-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.license-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.license-list li svg {
  color: var(--accent-lime);
  flex-shrink: 0;
}

.license-note {
  background-color: var(--bg-card-hover);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
}

.license-note h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.license-note p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.license-note a {
  color: var(--accent-lime);
  text-decoration: underline;
}

/* --- CTA SECTION --- */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(212, 255, 0, 0.03));
  margin-bottom: -80px;
}

.cta-section + .footer-redesign {
  margin-top: 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- VIDEO SECTION --- */
.video-section {
  padding: 40px 0;
}

.video-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.video-wrapper video {
  width: 100%;
  display: block;
  border-radius: 0;
}

/* --- YOUTUBE VIDEO SECTION --- */
.youtube-video-section {
  padding: 60px 0;
}

.youtube-video-section .youtube-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .pricing-card {
    max-width: 450px;
  }
  
  .license-card-redesign {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .pricing-card {
    padding: 28px;
    max-width: 100%;
  }
  
  .header-left {
    gap: 0;
  }
  
  .nav-links-redesign {
    display: none;
  }
  
  .header-right {
    gap: 8px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .feature-card {
    padding: 16px;
    text-align: center;
  }
  
  .feature-card .feature-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .feature-card .icon-box {
    margin: 0 auto 12px;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .download-card {
    padding: 24px 16px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }
  
  .hero-content h1 {
    font-size: 1.875rem;
  }
  
  .price-box {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .price-row {
    justify-content: center;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .feature-card {
    flex-direction: column;
    text-align: center;
  }
  
  .icon-box {
    margin: 0 auto;
  }
  
  .video-wrapper {
    margin: 0 -8px;
    border-radius: var(--radius-md);
  }
}

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

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animations for grids - triggered by .is-visible class via IntersectionObserver */
.features-grid .feature-card,
.showcase-grid .product-card,
.testimonials-grid .testimonial-card {
  opacity: 0;
  transform: translateY(20px);
}

.features-grid.is-visible .feature-card,
.showcase-grid.is-visible .product-card,
.testimonials-grid.is-visible .testimonial-card {
  animation: fadeInUp 0.5s ease forwards;
}

.features-grid.is-visible .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid.is-visible .feature-card:nth-child(2) { animation-delay: 0.15s; }
.features-grid.is-visible .feature-card:nth-child(3) { animation-delay: 0.2s; }
.features-grid.is-visible .feature-card:nth-child(4) { animation-delay: 0.25s; }
.features-grid.is-visible .feature-card:nth-child(5) { animation-delay: 0.3s; }
.features-grid.is-visible .feature-card:nth-child(6) { animation-delay: 0.35s; }

/* --- VERSION ANNOUNCEMENT SECTION --- */
.version-section {
  padding: 32px 0 0;
}

.version-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.version-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--transition-base);
}

.version-header::-webkit-details-marker {
  display: none;
}

.version-header:hover {
  background-color: var(--bg-card-hover);
}

.version-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.version-badge {
  background: var(--accent-lime);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.version-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
}

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

.version-toggle {
  color: var(--text-muted);
  transition: transform var(--transition-base);
  display: flex;
}

details.version-card[open] .version-toggle {
  transform: rotate(180deg);
}

.version-content {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-color);
}

.version-summary {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 20px 0 24px;
  font-weight: 500;
}

.changelog-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.changelog-category {
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.category-icon {
  width: 36px;
  height: 36px;
  background-color: var(--accent-lime-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-lime);
}

.category-header h4 {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.category-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-changes li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.category-changes li:last-child {
  margin-bottom: 0;
}

.category-changes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: var(--accent-lime);
  border-radius: 50%;
}

@media (max-width: 640px) {
  .version-header {
    padding: 16px 20px;
  }
  
  .version-title {
    gap: 8px;
  }
  
  .version-text {
    font-size: 1rem;
  }
  
  .version-date {
    width: 100%;
    margin-top: 4px;
  }
  
  .version-content {
    padding: 0 20px 20px;
  }
  
  .changelog-categories {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* --- CHANGELOG SECTION (Standalone page) --- */
.changelog-section {
  padding: var(--space-3xl) 0;
}

.changelog-section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.changelog-section-header h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.changelog-section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.changelog-timeline {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.changelog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.changelog-card:hover {
  border-color: var(--accent-lime);
  box-shadow: var(--shadow-md);
}

.changelog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.changelog-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.changelog-version-badge {
  background: var(--accent-lime);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.changelog-card-title h3 {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  margin: 0;
}

.changelog-card-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.changelog-card-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-lime);
  margin: 16px 0 8px;
}

.changelog-card-category:first-of-type {
  margin-top: 0;
}

.version-history-link {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.version-history-link a {
  color: var(--accent-lime);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

.version-history-link a:hover {
  color: var(--accent-lime-hover);
}

.changelog-section h1 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: var(--space-xs);
}

.changelog-card-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.changelog-card-changes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.changelog-card-changes li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
}

.changelog-card-changes li:last-child {
  margin-bottom: 0;
}

.changelog-card-changes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background-color: var(--accent-lime);
  border-radius: 50%;
}

@media (max-width: 640px) {
  .changelog-section {
    padding: var(--space-2xl) 0;
  }

  .changelog-card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .changelog-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .changelog-card-title h3 {
    font-size: 1rem;
  }

  .changelog-card-date {
    font-size: 0.8rem;
  }

  .changelog-card-summary {
    font-size: 0.875rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .animate-fade-in,
  .features-grid .feature-card,
  .showcase-grid .product-card,
  .testimonials-grid .testimonial-card {
    opacity: 1 !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Print styles */
@media print {
  .header-redesign,
  .footer-redesign,
  .btn,
  video {
    display: none !important;
  }
  
  body.redesign {
    background: white;
    color: black;
  }
}
