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

:root {
  --bg: #020617;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border: #1e293b;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --teal: #0d9488;
  --teal-light: #2dd4bf;
  --teal-dark: #0f766e;
  --green: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

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

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

a { color: var(--teal-light); text-decoration: none; }
a:hover { color: var(--text); }

/* ===== Gradient Text ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm { padding: 8px 18px; font-size: 14px; }

.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: var(--radius); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
  color: #fff;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

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

.nav-name { font-weight: 700; font-size: 18px; }

.nav-arabic { color: var(--teal-light); font-size: 16px; }

/* Hamburger Toggle (hidden checkbox) */
.nav-toggle { display: none; }
.nav-hamburger { display: none; cursor: pointer; padding: 8px; z-index: 10; }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-links .btn:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-light);
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.2);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions { margin-bottom: 16px; }

.hero-note { font-size: 13px; color: var(--text-muted); }

/* Phone Mockup */
.hero-visual { display: flex; justify-content: center; }

.phone-mockup { perspective: 1000px; }

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 3px solid var(--border);
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 60px rgba(13, 148, 136, 0.1);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.phone-frame:hover { transform: rotateY(0deg) rotateX(0deg); }

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--teal-dark) 0%, var(--bg) 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.screen-icon { width: 80px; height: 80px; border-radius: 20px; }

.screen-text { font-size: 24px; font-weight: 700; color: white; }

/* ===== Features ===== */
.features {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(16, 185, 129, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal-light);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ===== Bilingual ===== */
.bilingual {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.03), transparent);
}

.bilingual-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.bilingual-content h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.bilingual-content p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.bilingual-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal-light);
}

.lang-text {
  font-size: 24px;
  font-weight: 700;
}

/* ===== Provider ===== */
.provider {
  padding: 100px 0;
  text-align: center;
}

.provider-inner {
  max-width: 700px;
}

.provider-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 24px;
}

.provider h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.provider p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.provider-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.pf-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
}

.pf-check {
  color: var(--teal-light);
  font-weight: 700;
  font-size: 16px;
}

/* ===== Download CTA ===== */
.download {
  padding: 120px 0;
  text-align: center;
}

.download-inner {
  max-width: 600px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: 24px;
  padding: 64px 48px;
}

.download h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.download p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
}

.footer-logo { width: 28px; height: 28px; border-radius: 6px; }

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

.footer-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

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

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

.footer-copy p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-disclaimer {
  margin-top: 8px;
  font-size: 12px !important;
  color: #475569 !important;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(2).animate-on-scroll { transition-delay: 0.1s; }
.feature-card:nth-child(3).animate-on-scroll { transition-delay: 0.2s; }
.feature-card:nth-child(4).animate-on-scroll { transition-delay: 0.1s; }
.feature-card:nth-child(5).animate-on-scroll { transition-delay: 0.2s; }
.feature-card:nth-child(6).animate-on-scroll { transition-delay: 0.3s; }
.feature-card:nth-child(7).animate-on-scroll { transition-delay: 0.1s; }
.feature-card:nth-child(8).animate-on-scroll { transition-delay: 0.2s; }
.feature-card:nth-child(9).animate-on-scroll { transition-delay: 0.3s; }

.lang-card:nth-child(2).animate-on-scroll { transition-delay: 0.15s; }

/* ===== Responsive ===== */
@media (max-width: 968px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 42px; }
  .hero-subtitle { max-width: 100%; margin-inline: auto; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .bilingual-inner { grid-template-columns: 1fr; text-align: center; }
  .section-header h2,
  .bilingual-content h2,
  .provider h2 { font-size: 34px; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-card { padding: 24px; }
  .bilingual-inner { gap: 40px; }
  .provider-features { grid-template-columns: 1fr; }
  .footer-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero h1 { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .hero-actions .btn-lg { padding: 14px 28px; font-size: 15px; width: 100%; justify-content: center; }
  .features { padding: 80px 0; }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-card { padding: 20px; }
  .section-header { margin-bottom: 40px; }
  .section-header h2,
  .bilingual-content h2,
  .provider h2,
  .download h2 { font-size: 26px; }
  .bilingual { padding: 60px 0; }
  .provider { padding: 60px 0; }
  .download { padding: 80px 0; }
  .download-inner { padding: 36px 20px; border-radius: 16px; }
  .download .btn-lg { width: 100%; justify-content: center; }
  .footer-links { flex-direction: column; align-items: center; gap: 12px; }
  .footer-copy { padding: 0 16px; }

  /* Hamburger menu */
  .nav-hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 48px 32px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
    z-index: 5;
  }
  .nav-links a { font-size: 18px; }
  .nav-links .btn { width: 100%; text-align: center; justify-content: center; }
  .nav-toggle:checked ~ .nav-links { right: 0; }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Touch targets */
  .btn { min-height: 48px; }
  .pf-item { min-height: 48px; padding: 12px 16px; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; }
}
