/* ============================================
   PrestaShop Theme Detector - Killer Styles
   ============================================ */

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --primary: #DF0067;
  --primary-dark: #B80055;
  --secondary: #7B2D8E;
  --tertiary: #2E1065;
  --accent: #FF6B6B;
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: #EF4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --bg-dark: #0A0A0F;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  --glow: 0 0 40px rgba(223, 0, 103, 0.3);
  --glow-strong: 0 0 60px rgba(223, 0, 103, 0.5);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Body */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Animated Background
   ============================================ */

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(223, 0, 103, 0.3), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(123, 45, 142, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(46, 16, 101, 0.3), transparent),
    var(--bg-dark);
  z-index: -3;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -2;
}

/* Floating Orbs */
.floating-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -200px;
  left: 10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  top: 40%;
  right: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: var(--tertiary);
  bottom: 10%;
  left: 20%;
  animation-delay: -10s;
}

.orb-4 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 60%;
  left: -50px;
  animation-delay: -15s;
  opacity: 0.3;
}

.orb-5 {
  width: 350px;
  height: 350px;
  background: var(--primary);
  bottom: -150px;
  right: 20%;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -30px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(20px, 10px) scale(1.02);
  }
}

/* Particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: rise 10s ease-in infinite;
}

@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) scale(1);
  }
}

/* ============================================
   Container
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  position: relative;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 44px;
  height: 44px;
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.1);
}

.logo-icon.small {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text);
}

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

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
}

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

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInDown 0.6s ease-out;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.title-line {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle strong {
  color: var(--text);
}

/* ============================================
   Detection Form
   ============================================ */

.detect-form {
  max-width: 700px;
  margin: 0 auto 3rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.input-wrapper {
  position: relative;
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.input-glow {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.input-wrapper:focus-within .input-glow {
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    filter: blur(20px);
    opacity: 0.5;
  }
  50% {
    filter: blur(30px);
    opacity: 0.8;
  }
}

.input-icon {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: var(--text-muted);
}

.input-icon svg {
  width: 22px;
  height: 22px;
}

.url-input {
  flex: 1;
  padding: 1rem 0.5rem;
  font-size: 1.1rem;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

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

.detect-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.detect-btn .btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.detect-btn:hover .btn-bg {
  opacity: 1;
}

.detect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(223, 0, 103, 0.4);
}

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

.detect-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.detect-btn:hover .btn-icon svg {
  transform: translateX(4px);
}

.btn-loading {
  position: relative;
  z-index: 1;
}

.spinner {
  width: 24px;
  height: 24px;
  animation: rotate 1s linear infinite;
}

.spinner-track {
  stroke: rgba(255, 255, 255, 0.2);
}

.spinner-circle {
  stroke: white;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.input-examples {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.example-link {
  background: none;
  border: none;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  margin-left: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.example-link:hover {
  background: rgba(223, 0, 103, 0.1);
  color: var(--accent);
}

/* ============================================
   Stats
   ============================================ */

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
  text-align: center;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

@media (max-width: 600px) {
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   Results Section
   ============================================ */

.results-section,
.error-section {
  max-width: 700px;
  margin: 2rem auto;
}

.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.results-header {
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--tertiary) 100%);
  position: relative;
  overflow: hidden;
}

.results-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.results-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
}

.results-header .url {
  font-size: 0.9rem;
  opacity: 0.9;
  word-break: break-all;
  font-family: 'JetBrains Mono', monospace;
  position: relative;
}

.results-body {
  padding: 1.5rem 2rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.result-value {
  text-align: right;
  font-weight: 600;
}

.result-value.theme-name {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Confidence Badge */
.confidence-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confidence-high {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.confidence-medium {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.confidence-low {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Not PrestaShop Result */
.not-prestashop {
  text-align: center;
  padding: 3rem 2rem;
}

.not-prestashop-icon {
  width: 80px;
  height: 80px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.not-prestashop h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.not-prestashop p {
  color: var(--text-secondary);
}

.possible-platform {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

/* Modules List */
.modules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.module-tag {
  padding: 0.35rem 0.65rem;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

/* Indicators List */
.indicators-list {
  list-style: none;
  margin-top: 0.75rem;
}

.indicators-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.indicators-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Theme Link */
.theme-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.theme-link:hover {
  color: var(--accent);
  gap: 0.5rem;
}

/* Error Card */
.error-card {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: shake 0.5s ease-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.error-icon {
  width: 28px;
  height: 28px;
  color: var(--error);
  flex-shrink: 0;
}

.error-content h3 {
  color: var(--error);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.error-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
  padding: 5rem 0;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon-1 { background: linear-gradient(135deg, rgba(223, 0, 103, 0.2), rgba(223, 0, 103, 0.1)); color: var(--primary); }
.feature-icon-2 { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1)); color: var(--success); }
.feature-icon-3 { background: linear-gradient(135deg, rgba(123, 45, 142, 0.2), rgba(123, 45, 142, 0.1)); color: var(--secondary); }
.feature-icon-4 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1)); color: var(--warning); }
.feature-icon-5 { background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1)); color: var(--accent); }
.feature-icon-6 { background: linear-gradient(135deg, rgba(46, 16, 101, 0.4), rgba(46, 16, 101, 0.2)); color: #A78BFA; }

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   How It Works Section
   ============================================ */

.how-section {
  padding: 5rem 0;
}

.steps-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.3;
  animation: pingStep 2s ease-out infinite;
}

@keyframes pingStep {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.step-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.step-connector {
  width: 100px;
  flex-shrink: 0;
  padding-top: 32px;
}

.step-connector svg {
  width: 100%;
  height: 20px;
}

@media (max-width: 768px) {
  .steps-container {
    flex-direction: column;
    gap: 2rem;
  }

  .step-connector {
    width: 20px;
    height: 50px;
    padding-top: 0;
    transform: rotate(90deg);
  }
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
  padding: 5rem 0;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fadeIn 0.3s ease-out;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: 3rem 0 5rem;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--tertiary));
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  position: relative;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s;
  position: relative;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Ad Slots
   ============================================ */

.ad-slot {
  min-height: 90px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 2rem 0;
}

.ad-slot:empty::after {
  content: "Advertisement";
}

.ad-header {
  max-width: 700px;
  margin: 2rem auto;
}

.ad-in-article {
  max-width: 700px;
  margin: 2rem auto;
}

.ad-sidebar {
  min-height: 250px;
  max-width: 300px;
  margin: 2rem auto;
}

.ad-footer {
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.4s ease-out;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .detect-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .input-wrapper {
    flex-direction: column;
    padding: 0.75rem;
  }

  .input-icon {
    display: none;
  }

  .url-input {
    padding: 1rem;
    font-size: 1rem;
  }

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

  .feature-card {
    padding: 1.5rem;
  }
}

/* ============================================
   Scroll Reveal
   ============================================ */

.features-section,
.how-section,
.faq-section,
.cta-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.features-section.visible,
.how-section.visible,
.faq-section.visible,
.cta-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   PWA Install Banner
   ============================================ */

.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.install-banner-content {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  box-shadow:
    0 -4px 30px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(223, 0, 103, 0.15);
}

.install-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.install-banner-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
}

.install-banner-icon svg {
  width: 100%;
  height: 100%;
}

.install-banner-text {
  display: flex;
  flex-direction: column;
}

.install-banner-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

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

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.install-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(223, 0, 103, 0.4);
}

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

.install-dismiss {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.install-dismiss:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--bg-card-hover);
}

.install-dismiss svg {
  width: 16px;
  height: 16px;
}

/* Responsive install banner */
@media (max-width: 600px) {
  .install-banner-content {
    margin: 0 0.75rem 0.75rem;
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
  }

  .install-banner-left {
    width: 100%;
  }

  .install-banner-actions {
    width: 100%;
    justify-content: stretch;
  }

  .install-btn {
    flex: 1;
    text-align: center;
  }
}
