/* ===== SpeedIt Landing Page - Dark Futuristic Theme ===== */

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

:root {
  --accent: #a855f7;
  --accent2: #6c5ce7;
  --accent-glow: rgba(168, 85, 247, 0.3);
  --green: #00d563;
  --green-glow: rgba(0, 213, 99, 0.3);
  --bg: #050508;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-muted: rgba(255, 255, 255, 0.3);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== Canvas Background ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--surface-hover);
}

.btn-primary {
  padding: 8px 24px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, #e0e0e0, #ffffff);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

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

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent2), var(--green));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

.btn-hero {
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #fff, #e0e0e0);
  color: #000;
  border: none;
  position: relative;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(20px);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-hero-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.15);
}

.btn-hero-primary:hover::before {
  inset: -10px;
  background: rgba(255, 255, 255, 0.18);
}

.btn-hero-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

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

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Sections Common ===== */
section {
  position: relative;
  z-index: 1;
  padding: 120px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 36px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-4px);
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(0, 213, 99, 0.1);
  border-color: rgba(0, 213, 99, 0.15);
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(33, 150, 243, 0.1);
  border-color: rgba(33, 150, 243, 0.15);
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(255, 152, 0, 0.1);
  border-color: rgba(255, 152, 0, 0.15);
}

.feature-card:nth-child(5) .feature-icon {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.15);
}

.feature-card:nth-child(6) .feature-icon {
  background: rgba(40, 203, 227, 0.1);
  border-color: rgba(40, 203, 227, 0.15);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== How It Works ===== */
.steps-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--green), transparent);
  opacity: 0.3;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px 0;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.step:hover .step-number {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 30px var(--accent-glow);
}

.step-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== App Preview / CTA ===== */
.app-section {
  background: radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

.app-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.app-mockup {
  flex-shrink: 0;
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 560px;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 0.95));
  padding: 12px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(168, 85, 247, 0.1);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 3;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a14, #12121e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.phone-screen-map {
  width: 100%;
  flex: 1;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
  position: relative;
  overflow: hidden;
}

.phone-screen-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(0, 213, 99, 0.1) 0%, transparent 40%);
}

.map-dots {
  position: absolute;
  inset: 0;
}

.map-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  animation: pulse-dot 2s ease infinite;
}

.map-dot:nth-child(1) { top: 30%; left: 25%; animation-delay: 0s; }
.map-dot:nth-child(2) { top: 50%; left: 60%; animation-delay: 0.5s; }
.map-dot:nth-child(3) { top: 70%; left: 35%; animation-delay: 1s; }
.map-dot:nth-child(4) { top: 25%; left: 70%; animation-delay: 1.5s; }
.map-dot:nth-child(5) { top: 60%; left: 80%; animation-delay: 0.3s; }

.phone-bottom-bar {
  width: 100%;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-bottom-text {
  font-size: 11px;
  color: var(--text-secondary);
}

.phone-bottom-text strong {
  color: var(--green);
  font-size: 14px;
  display: block;
}

.phone-scan-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.app-info {
  flex: 1;
}

.app-info h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.app-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  gap: 12px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.download-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.download-btn svg {
  width: 24px;
  height: 24px;
}

.download-btn-text {
  text-align: left;
}

.download-btn-text small {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.download-btn-text span {
  font-size: 15px;
  font-weight: 600;
}

/* ===== Cities Section ===== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.city-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.city-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.city-card:hover::after {
  transform: scaleX(1);
}

.city-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.city-emoji {
  font-size: 36px;
  margin-bottom: 12px;
}

.city-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.city-name-ar {
  font-size: 14px;
  color: var(--text-muted);
  font-family: 'Noto Sans Arabic', sans-serif;
}

.city-status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.city-status.live {
  background: rgba(0, 213, 99, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 213, 99, 0.2);
}

.city-status.soon {
  background: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 18px;
}

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

/* ===== Scroll Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* ===== Glow Orbs (Background decoration) ===== */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.06);
  top: 10%;
  left: -5%;
}

.glow-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(0, 213, 99, 0.04);
  top: 60%;
  right: -10%;
}

.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(108, 92, 231, 0.06);
  bottom: 10%;
  left: 20%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 32px);
    flex-wrap: wrap;
    padding: 12px 20px;
    border-radius: 20px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .navbar.open {
    border-radius: 20px;
  }

  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }

  .navbar.open .nav-cta {
    display: flex;
    width: 100%;
    padding-top: 8px;
  }

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

  .app-container {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .download-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

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

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .steps-container::before {
    display: none;
  }

  .step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    letter-spacing: -1px;
  }

  .phone-frame {
    width: 240px;
    height: 480px;
  }
}
