/* Root Variables - Based on provided theme */
:root {
  /* Light theme with white background and sage green from logo */
  --background: oklch(0.99 0 0);
  --foreground: oklch(0.15 0 0);
  --card: oklch(0.98 0 0);
  --card-foreground: oklch(0.15 0 0);
  --popover: oklch(0.99 0 0);
  --popover-foreground: oklch(0.15 0 0);
  --primary: oklch(0.58 0.08 165);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.95 0.01 165);
  --secondary-foreground: oklch(0.15 0 0);
  --muted: oklch(0.94 0.01 165);
  --muted-foreground: oklch(0.45 0.02 165);
  --accent: oklch(0.95 0.01 165);
  --accent-foreground: oklch(0.15 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.99 0 0);
  --border: oklch(0.88 0.01 165);
  --input: oklch(0.88 0.01 165);
  --ring: oklch(0.58 0.08 165);
  --radius: 0.75rem;
  --sidebar: oklch(0.98 0 0);
  --sidebar-foreground: oklch(0.15 0 0);
  --sidebar-primary: oklch(0.58 0.08 165);
  --sidebar-primary-foreground: oklch(0.99 0 0);
  --sidebar-accent: oklch(0.95 0.01 165);
  --sidebar-accent-foreground: oklch(0.15 0 0);
  --sidebar-border: oklch(0.88 0.01 165);
  --sidebar-ring: oklch(0.58 0.08 165);

  /* Fonts */
  --font-sans: "Cairo", "Tajawal", system-ui, -apple-system, sans-serif;
}

.dark {
  --background: oklch(0.12 0 0);
  --foreground: oklch(0.98 0 0);
  --card: oklch(0.15 0 0);
  --card-foreground: oklch(0.98 0 0);
  --popover: oklch(0.15 0 0);
  --popover-foreground: oklch(0.98 0 0);
  --primary: oklch(0.58 0.08 165);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.22 0 0);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.25 0 0);
  --muted-foreground: oklch(0.65 0 0);
  --accent: oklch(0.58 0.08 165);
  --accent-foreground: oklch(0.98 0 0);
  --destructive: oklch(0.396 0.141 25.723);
  --destructive-foreground: oklch(0.637 0.237 25.331);
  --border: oklch(0.25 0 0);
  --input: oklch(0.25 0 0);
  --ring: oklch(0.58 0.08 165);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container,
  .container-narrow {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container,
  .container-narrow {
    padding: 0 2rem;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: opacity 0.2s;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo {
  height: 48px;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  background: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
  background-color: var(--secondary);
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

.mobile-menu-content {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--foreground);
}

.mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: color-mix(in oklch, var(--primary) 90%, black);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--secondary);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  height: 3.5rem;
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-content {
  text-align: center;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.badge-icon {
  width: 1rem;
  height: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title-highlight {
  color: var(--primary);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.hero-footer {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Sections */
.section {
  padding: 5rem 1rem;
}

.section-alt {
  background-color: color-mix(in oklch, var(--secondary) 30%, transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    gap: 2rem;
  }
}

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
}

.card-hover:hover {
  border-color: color-mix(in oklch, var(--primary) 50%, transparent);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-featured {
  transition: all 0.5s;
}

.card-featured:hover {
  border-color: var(--primary);
  box-shadow: 0 25px 50px -12px color-mix(in oklch, var(--primary) 10%, transparent);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.card-icon-large {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
  transition: all 0.3s;
}

.card-featured:hover .card-icon-large {
  background-color: color-mix(in oklch, var(--primary) 20%, transparent);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.card-title-large {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--card-foreground);
}

.card-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.card-featured .btn {
  margin-top: auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

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

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: color-mix(in oklch, var(--primary) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.125rem;
  transition: all 0.3s;
}

.step:hover .step-number {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.step-description {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(
    135deg,
    color-mix(in oklch, var(--primary) 10%, transparent),
    color-mix(in oklch, var(--primary) 5%, transparent),
    var(--background)
  );
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  box-shadow: 0 10px 15px -3px color-mix(in oklch, var(--primary) 5%, transparent);
  text-align: center;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.cta-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
}

.footer-content {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Icon sizes */
[data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
}

.card-icon [data-lucide] {
  width: 1.5rem;
  height: 1.5rem;
}

.card-icon-large [data-lucide] {
  width: 1.75rem;
  height: 1.75rem;
}
