/* ═══════════════════════════════════════════
   LAKTA Studio — Landing Page Design System
   RTL · Mobile-First · Dark Theme
═══════════════════════════════════════════ */

/* ── Reset & Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Inter', system-ui, sans-serif;
  background: #0F172A;
  color: #e2e8f0;
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Design Tokens ── */
:root {
  --bg-deep:    #0F172A; /* Matching the Flutter dark background */
  --bg-dark:    #111827;
  --bg-card:    #1E293B; /* The exact card color from screenshot */
  --bg-card-hover: #334155;
  --text-main:  #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim:   #64748B;
  --sky:        #38BDF8; /* Primary Button Color */
  --sky-glow:   #7DD3FC;
  --amber:      #EAB308; /* Star icon color */
  --green:      #34D399;
  --gradient-cta: linear-gradient(135deg, #38BDF8, #0EA5E9); /* Solid Cyan feel */
  --gradient-hero: linear-gradient(180deg, #0F172A 0%, #020617 100%);
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:0 0 40px rgba(56,189,248,0.15); /* Sky blue glow */
  --max-width:  1100px;
  --section-pad: 80px 24px;
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.1);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: white;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.5);
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.12); /* Sky Blue bg */
  color: var(--sky-glow);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ── HERO Section ── */
.hero {
  padding: 140px 24px 80px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(56, 189, 248, 0.12); /* Sky blue badge */
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  color: var(--sky-glow);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.3;
  color: white;
  margin-bottom: 16px;
}

.hero h1 .highlight {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── STEPS Section ── */
.steps {
  padding: var(--section-pad);
  background: var(--bg-deep);
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SOCIAL PROOF Section ── */
.social-proof {
  padding: var(--section-pad);
  background: var(--bg-dark);
}

.proof-banner {
  text-align: center;
  padding: 24px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius);
  margin-bottom: 40px;
}

.proof-banner p {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
}

.proof-banner span {
  color: var(--purple-glow);
}

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

.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}

.testimonial:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.testimonial-stars {
  color: var(--amber);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.testimonial q {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: normal;
}

.testimonial-author {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ── COMPARISON Section ── */
.comparison {
  padding: var(--section-pad);
  background: var(--bg-deep);
}

.compare-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.compare-table thead th {
  background: var(--bg-card);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  text-align: center;
}

.compare-table thead th:first-child {
  text-align: right;
}

.compare-table tbody td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.compare-table tbody td:first-child {
  color: var(--text-main);
  font-weight: 600;
}

.compare-table tbody td:nth-child(2) {
  text-align: center;
  color: var(--green);
  font-weight: 700;
}

.compare-table tbody td:nth-child(3) {
  text-align: center;
  color: var(--text-dim);
}

.compare-table tbody tr:hover {
  background: rgba(139, 92, 246, 0.05);
}

.checkmark { color: var(--green); font-weight: bold; }
.crossmark { color: var(--text-dim); }

/* ── FINAL CTA Section ── */
.final-cta {
  padding: 100px 24px;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .btn {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* ── FOOTER ── */
.footer {
  padding: 40px 24px;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
}

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

.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links .nav-link { display: none; }
  
  .hero { padding: 120px 16px 60px; }
  .hero h1 { font-size: 1.7rem; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }

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

  .compare-table { font-size: 0.82rem; }
  .compare-table thead th,
  .compare-table tbody td { padding: 10px 12px; }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-number { font-size: 1.2rem; }

  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease-out both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
