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

:root {
  --primary-blue: #0071e3;
  --primary-cyan: #00d4ff;
  --primary-purple: #5e5ce6;
  --dark-bg: #0a0a0f;
  --dark-surface: #12121a;
  --dark-card: #1a1a25;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --gradient-1: linear-gradient(135deg, #0071e3 0%, #00d4ff 50%, #5e5ce6 100%);
  --gradient-2: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --glow-blue: 0 0 40px rgba(0, 113, 227, 0.4);
  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--dark-bg);
  overflow-x: hidden;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 113, 227, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(94, 92, 230, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
  z-index: -1;
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Grid Pattern Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 113, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 113, 227, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Language Selector */
.language-selector {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-selector-label {
  font-size: 20px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.language-selector:hover .language-selector-label {
  opacity: 1;
}

.language-selector select {
  padding: 12px 20px;
  border: 1px solid rgba(0, 113, 227, 0.3);
  border-radius: 12px;
  background: rgba(26, 26, 37, 0.9);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.language-selector select:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.language-selector select option {
  background: var(--dark-surface);
  color: var(--text-primary);
}

/* Header */
header {
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, var(--dark-bg) 100%);
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.2) 0%, transparent 70%);
  filter: blur(60px);
  animation: headerGlow 4s ease-in-out infinite;
}

@keyframes headerGlow {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

header h1 {
  font-size: 72px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 0%, #a5d8ff 50%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  text-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

.tagline {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.tagline .highlight {
  color: var(--primary-cyan);
  font-weight: 600;
}

.app-store-button {
  display: inline-block;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
}

.app-store-button::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--gradient-1);
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  filter: blur(8px);
}

.app-store-button:hover {
  transform: translateY(-4px) scale(1.02);
}

.app-store-button:hover::before {
  opacity: 0.6;
}

.app-store-button img {
  height: 64px;
  border-radius: 8px;
  position: relative;
  display: block;
  z-index: 1;
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
  position: relative;
}

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

.stat-value {
  font-size: 42px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section */
.hero {
  padding: 80px 0 150px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
}

.app-preview {
  text-align: center;
  position: relative;
}

/* Screenshot Stack - Tilted Cards Effect */
.screenshot-stack {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  padding: 40px 20px;
  perspective: 1000px;
}

.screenshot-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.screenshot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.screenshot-label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 6px 16px;
  background: rgba(0, 113, 227, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshot-card:hover .screenshot-label {
  opacity: 1;
}

/* Mac - Center, largest, on top */
.mac-screenshot {
  order: 2;
  transform: translateZ(0) rotate(0deg);
  max-width: 50%;
  z-index: 3;
}

.mac-screenshot:hover {
  transform: translateZ(20px) scale(1.02);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 212, 255, 0.3),
    0 0 150px rgba(0, 212, 255, 0.2);
}

/* iPad - Left, tilted back */
.ipad-screenshot {
  order: 1;
  transform: translateX(-30px) rotate(8deg);
  max-width: 30%;
  z-index: 2;
}

.ipad-screenshot:hover {
  transform: translateX(-40px) rotate(12deg) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 255, 0.2);
}

/* iPhone - Right, tilted forward */
.iphone-screenshot {
  order: 3;
  transform: translateX(30px) rotate(-8deg);
  max-width: 18%;
  z-index: 1;
}

.iphone-screenshot:hover {
  transform: translateX(40px) rotate(-12deg) scale(1.02);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 255, 0.2);
}

/* Fullscreen Preview */
.screenshot-preview {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.screenshot-preview.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screenshot-preview * {
  pointer-events: auto;
}

.screenshot-preview-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-preview-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
  transition: opacity 0.2s ease;
}

.screenshot-preview-img.fade {
  opacity: 0.5;
}

.screenshot-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.screenshot-preview-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.screenshot-preview-nav.prev {
  left: -70px;
}

.screenshot-preview-nav.next {
  right: -70px;
}

.screenshot-preview-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.screenshot-preview-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.screenshot-preview-label {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: rgba(0, 113, 227, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.screenshot-preview-hint {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* Mobile: hide nav buttons, show smaller */
@media (max-width: 768px) {
  .screenshot-preview-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .screenshot-preview-nav.prev {
    left: 10px;
  }

  .screenshot-preview-nav.next {
    right: 10px;
  }
}

/* Responsive - Stack vertically on mobile */
@media (max-width: 1024px) {
  .screenshot-stack {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .screenshot-card {
    order: unset !important;
    transform: none !important;
    max-width: 80% !important;
  }

  .mac-screenshot,
  .ipad-screenshot,
  .iphone-screenshot {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .screenshot-card {
    max-width: 90%;
  }
}

/* Features Section */
.features {
  padding: 120px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 113, 227, 0.3) 50%, transparent 100%);
}

.features h2,
.pro-features h2,
.description h2,
.subscription h2 {
  font-size: 44px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #a5d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(26, 26, 37, 0.8) 0%, rgba(30, 30, 45, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-12px);
  border-color: rgba(0, 113, 227, 0.4);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 113, 227, 0.1);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 56px;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
  animation: iconFloat 3s ease-in-out infinite;
}

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

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Pro Features */
.pro-features {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
  position: relative;
}

.pro-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(94, 92, 230, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 113, 227, 0.1) 0%, transparent 50%);
}

.pro-features h2 {
  position: relative;
}

.pro-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.pro-list li {
  padding: 24px 0 24px 50px;
  position: relative;
  font-size: 18px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.pro-list li:hover {
  color: var(--text-primary);
  padding-left: 55px;
}

.pro-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 113, 227, 0.4);
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 113, 227, 0.2) 0%, transparent 70%);
  filter: blur(100px);
  z-index: -1;
}

.cta-content {
  background: linear-gradient(145deg,
    rgba(10, 10, 15, 1) 0%,
    rgba(5, 5, 8, 1) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 32px;
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(0, 113, 227, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 212, 255, 0.1) 25%,
    rgba(0, 113, 227, 0.2) 50%,
    rgba(0, 212, 255, 0.1) 75%,
    transparent 100%
  );
  animation: shimmer 3s ease-in-out infinite;
}

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

.cta-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  position: relative;
}

.cta-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
}

/* Description */
.description {
  padding: 120px 0;
  background: var(--dark-surface);
}

.description p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 2;
  color: var(--text-secondary);
  text-align: center;
}

/* Subscription */
.subscription {
  padding: 100px 0;
}

.subscription h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--text-primary);
}

.subscription p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--dark-surface) 0%, #050508 100%);
  color: var(--text-secondary);
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  margin-bottom: 30px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0 20px;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-cyan);
  transition: width 0.3s ease;
}

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

.footer-links a:hover::after {
  width: 100%;
}

.copyright {
  font-size: 13px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.4);
}

/* RTL Support */
[dir="rtl"] .pro-list li {
  padding-left: 50px;
  padding-right: 0;
}

[dir="rtl"] .pro-list li:hover {
  padding-left: 50px;
  padding-right: 55px;
}

[dir="rtl"] .pro-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .language-selector {
  left: 20px;
  right: auto;
}

/* Scroll Animations - disabled by default for static pages */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 42px;
  }

  .tagline {
    font-size: 18px;
    padding: 0 20px;
  }

  .stats-bar {
    gap: 30px;
  }

  .stat-value {
    font-size: 32px;
  }

  .features h2,
  .pro-features h2,
  .description h2 {
    font-size: 32px;
  }

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

  .cta-content {
    padding: 40px 24px;
  }

  .cta-content h2 {
    font-size: 28px;
  }

  .language-selector {
    top: 10px;
    right: 10px;
  }

  .language-selector select {
    padding: 10px 14px;
    font-size: 13px;
  }

  .app-store-button img {
    height: 52px;
  }
}

/* Pulse Animation for Download Button */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(0, 113, 227, 0);
  }
}

.app-store-button {
  animation: pulse 2s ease-in-out infinite;
}

