/* ==========================================================================
   علي السكة (Ali El-Sikka) - Redesigned Responsive Ultra-Premium Landing Page
   ========================================================================== */

:root {
  --bg-primary: #060911;
  --bg-card: #0F172A;
  --bg-card-hover: #1E293B;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(245, 158, 11, 0.4);
  
  --amber: #F59E0B;
  --amber-dark: #D97706;
  --teal: #14B8A6;
  --teal-dark: #0D9488;
  --red: #EF4444;
  --green: #10B981;
  
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html {
  scroll-behavior: smooth;
  direction: rtl;
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background: var(--bg-primary);
}

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

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--amber);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--teal);
  top: 400px;
  left: -150px;
}

/* Container */
.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  transition: all 0.3s ease;
}

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

.logo-brand img {
  height: 48px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.3));
}

.desktop-nav {
  display: block;
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-btn {
  padding: 10px 20px !important;
  font-size: 14px !important;
}

/* Mobile Toggle Hamburger Button */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 0;
}

.mobile-toggle .bar {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
  background: var(--amber);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
  background: var(--amber);
}

/* Mobile Navigation Slide-Out Drawer */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #0B0F19;
  border-left: 1px solid var(--border-color);
  z-index: 1050;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.drawer-close:hover {
  background: var(--amber);
  color: #000;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.drawer-item {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.drawer-item:hover, .drawer-item:focus {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--amber);
  transform: translateX(-4px);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.drawer-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #060911;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(245, 158, 11, 0.6);
}

.btn-teal {
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.35);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-teal:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(20, 184, 166, 0.5);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--amber);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 22px;
  line-height: 1.25;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #F59E0B 0%, #14B8A6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 580px;
}

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

/* Hero Stats Counter */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.stat-item h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--amber);
}

.stat-item p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

/* Interactive 3D Phone Mockup */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.phone-frame-3d {
  width: 100%;
  max-width: 300px;
  height: 610px;
  background: #000;
  border-radius: 46px;
  border: 8px solid #1E293B;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(245, 158, 11, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.phone-frame-3d:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Screen Switcher Tabs */
.screen-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  width: 100%;
}

.tab-pill {
  padding: 8px 14px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.tab-pill.active, .tab-pill:hover {
  background: var(--amber);
  color: var(--bg-primary);
  border-color: var(--amber);
}

/* Features Section */
.section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

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

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

.feature-card:hover {
  border-color: var(--amber);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.15);
}

.feature-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #FFFFFF;
}

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

/* Showcase Section */
.showcase-section {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.showcase-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  padding: 14px;
  text-align: center;
  transition: transform 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-5px);
}

.showcase-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

.showcase-card h4 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
}

.color-amber {
  color: var(--amber);
}

.color-teal {
  color: var(--teal);
}

.font-bold {
  font-weight: bold;
}

/* FAQ Accordion Section */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.faq-card.active {
  border-color: var(--amber);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

.faq-question-btn {
  width: 100%;
  padding: 22px 28px;
  font-weight: 800;
  font-size: 17px;
  color: #FFFFFF;
  background: none;
  border: none;
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
  gap: 16px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-card.active .faq-icon {
  transform: rotate(180deg);
  background: var(--amber);
  color: #000;
}

.faq-body {
  padding: 0 28px 24px 28px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  display: none;
}

.faq-card.active .faq-body {
  display: block;
}

.privacy-link {
  color: var(--amber);
  font-weight: bold;
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #04060C;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: var(--amber);
  margin-bottom: 16px;
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 14px;
  line-height: 1.7;
}

.contact-info {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

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

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .download-actions {
    justify-content: center;
  }
  .hero-stats {
    width: 100%;
    max-width: 540px;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 130px 0 60px 0;
  }
  .section {
    padding: 70px 0;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-desc {
    font-size: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .phone-frame-3d {
    height: 520px;
    max-width: 260px;
    border-radius: 38px;
    border-width: 6px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }
  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
  }
  .download-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-teal {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col ul {
    align-items: center;
  }
  .faq-question-btn {
    padding: 16px 20px;
    font-size: 15px;
  }
  .faq-body {
    padding: 0 20px 20px 20px;
    font-size: 14px;
  }
  .mobile-drawer {
    width: 85%;
    max-width: 300px;
  }
}
