:root {
  --primary: #ff6b00;
  --secondary: #ff8c00;
  --accent: #cc5500;
  --dark: #0a0a0a;
  --darker: #000000;
  --light: #ffffff;
  --gray: #888888;
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --glow: 0 0 30px rgba(255, 107, 0, 0.6);
  --secondary-glow: 0 0 20px rgba(255, 140, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--darker);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Background Grid & Glow */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -2;
  animation: gridMove 20s linear infinite;
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 140, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 107, 0, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 8s ease-in-out infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  transform: translateY(-20px);
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 107, 0, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 20px auto;
  overflow: hidden;
}

.loading-progress {
  width: 0%;
  height: 100%;
  background: var(--gradient);
  animation: loading 2s ease-in-out forwards;
}

.skip-loading {
  margin-top: 20px;
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.skip-loading:hover {
  background: var(--primary);
  color: var(--dark);
}

@keyframes loading {
  to { width: 100%; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation */
.optimizer-nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.3);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--light);
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-logo img {
    width: 40px;
    height: auto;
    filter: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hero Section */
.optimizer-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient);
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: float 3s ease-in-out infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.title-word {
  display: block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--gray);
  margin-bottom: 3rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
}

/* Performance Stats */
.performance-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.perf-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  min-width: 180px;
  opacity: 0;
  transform: translateY(20px);
}

.perf-stat:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.stat-icon {
  font-size: 1.5rem;
  color: var(--primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
}

.stat-data {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.cta-button {
  position: relative;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
  justify-content: center;
}

.cta-button.primary {
  background: var(--gradient);
  color: var(--light);
}

.cta-button.secondary {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--secondary);
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover .button-glow {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

/* Sections Common */
section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transform: translateY(30px);
}

.section-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
}

/* Features Section */
.features-section {
  background: rgba(5, 0, 0, 0.8);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 107, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(50px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--glow);
}

.feature-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-glow {
  opacity: 0.1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light);
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Comparison Section */
.comparison-section {
  background: var(--darker);
}

.comparison-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.comparison-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 107, 0, 0.3);
  opacity: 0;
  transform: translateX(-50px);
}

.before-after-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  cursor: col-resize;
}

.before-section, .after-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.comparison-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.after-section {
  width: 50%;
  border-right: 3px solid var(--primary);
}

.comparison-label {
  position: absolute;
  top: 20px;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  border-radius: 5px;
}

.before-label {
  left: 20px;
  border: 1px solid #ff4444;
}

.after-label {
  right: 20px;
  background: var(--primary);
  color: var(--dark);
  border: 1px solid var(--primary);
}

.fps-indicator {
  position: absolute;
  bottom: 20px;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-weight: 600;
  border-radius: 5px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.before-fps {
  left: 20px;
  border: 1px solid #ff4444;
}

.after-fps {
  right: 20px;
  border: 1px solid var(--primary);
}

.fps-indicator i {
  color: var(--primary);
}

.before-fps i {
  color: #ff4444;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-weight: bold;
  cursor: col-resize;
  z-index: 3;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px var(--primary);
}

.comparison-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: col-resize;
  z-index: 4;
}

/* Performance Metrics */
.performance-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(50px);
}

.metric {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
  transition: transform 0.3s ease;
}

.metric:hover {
  transform: translateX(5px);
}

.metric-title {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.metric-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.metric-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  width: 0%;
  transition: width 1.5s ease-out;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: right;
}

/* Download Section */
.download-section {
  background: rgba(5, 0, 0, 0.8);
}

.download-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.download-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem;
  border: 1px solid rgba(255, 107, 0, 0.3);
  text-align: center;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(50px);
}

.version-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--gradient);
  color: var(--dark);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.download-icon {
  width: 100px;
  height: 100px;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.download-card:hover .download-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
}

.download-icon i {
  font-size: 3rem;
  color: var(--primary);
}

.download-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.file-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
  font-size: 0.9rem;
  justify-content: center;
}

.info-item i {
  color: var(--primary);
}

.system-requirements {
  text-align: left;
  margin-bottom: 2rem;
}

.system-requirements h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.system-requirements ul {
  list-style: none;
}

.system-requirements li {
  padding: 0.5rem 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.system-requirements li i {
  color: var(--primary);
  font-size: 0.8rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 3rem;
  background: var(--gradient);
  color: var(--light);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  width: 100%;
  justify-content: center;
}

.download-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.download-btn:hover .download-glow {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.download-stats {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.stat {
  text-align: center;
}

.stat i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--light);
}

.stat small {
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Download Features */
.download-features {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 107, 0, 0.3);
  opacity: 0;
  transform: translateY(50px);
}

.download-features h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.download-features ul {
  list-style: none;
  margin-bottom: 2rem;
}

.download-features li {
  padding: 0.8rem 0;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s ease;
}

.download-features li:hover {
  color: var(--primary);
}

.download-features li:last-child {
  border-bottom: none;
}

.download-features li i {
  color: var(--primary);
}

.security-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 107, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 0, 0.3);
  color: var(--light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.security-note:hover {
  background: rgba(255, 107, 0, 0.2);
  transform: translateY(-2px);
}

.security-note i {
  color: var(--primary);
}

.virustotal-link {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.virustotal-link:hover {
  color: var(--primary);
}

.file-types {
  text-align: center;
}

.file-types h5 {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.file-type-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.file-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.file-badge.batch {
  background: rgba(255, 107, 0, 0.2);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.file-badge.reg {
  background: rgba(255, 140, 0, 0.2);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.file-badge.exe {
  background: rgba(0, 150, 255, 0.2);
  color: #0096ff;
  border: 1px solid #0096ff;
}

.file-badge.txt {
  background: rgba(136, 136, 136, 0.2);
  color: var(--gray);
  border: 1px solid var(--gray);
}

/* Instructions Section */
.instructions-section {
  background: var(--darker);
}

.instructions-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.instruction-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-50px);
}

.step:hover {
  transform: translateX(10px);
  border-color: var(--primary);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.5);
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.step-content p {
  color: var(--gray);
  line-height: 1.6;
}

.video-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(50px);
}

.video-placeholder {
  width: 100%;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed rgba(255, 107, 0, 0.3);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.video-placeholder:hover {
  border-color: var(--primary);
  background: rgba(255, 107, 0, 0.1);
  transform: scale(1.02);
}

.video-placeholder i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.video-placeholder:hover i {
  transform: scale(1.1);
}

.video-placeholder p {
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-placeholder small {
  color: var(--gray);
  font-size: 0.8rem;
}

/* FAQ Section */
.faq-section {
  max-width: 100%;
}

.faq-section h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--light);
  opacity: 0;
  transform: translateY(30px);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 107, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.faq-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-question i {
  color: var(--primary);
}

.faq-answer {
  color: var(--gray);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Footer */
.optimizer-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255, 107, 0, 0.3);
}

.footer-content {
  padding: 3rem 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-logo img {
    width: 40px;
    height: auto;
    filter: none;
}


.footer-logo h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.footer-logo p {
  color: var(--gray);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.link-group h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.link-group a {
  display: block;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.link-group a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 107, 0, 0.3);
  text-align: center;
  color: var(--gray);
}

.disclaimer {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .comparison-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .download-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .instructions-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transition: transform 0.3s ease;
    border-top: 1px solid rgba(255, 107, 0, 0.3);
  }

  .nav-links.active {
    transform: translateY(-100%);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  .performance-stats {
    flex-direction: column;
    align-items: center;
  }
  
  .perf-stat {
    width: 100%;
    max-width: 300px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
  }
  
  .before-after-container {
    height: 300px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 4rem 0;
  }
  
  .download-card {
    padding: 2rem 1.5rem;
  }
  
  .download-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .step-number {
    align-self: center;
  }
  
  .file-type-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .file-badge {
    width: 200px;
    justify-content: center;
  }
}

/* --- FIX for BEFORE / AFTER slider FPS labels --- */
.before-section,
.after-section {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden; /* 👈 This hides the FPS labels correctly */
}

.before-section {
    width: 100%;   /* BEFORE image always full width */
    z-index: 1;
}

.after-section {
    width: 50%;    /* Default slider midpoint */
    z-index: 2;
}

.nav-links {
    display: flex;   /* puts links in a row */
    gap: 2rem;       /* space between each link (2rem is ~32px) */
}
