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

:root {
  /* Colors */
  --primary: #38b4b9;
  --primary-glow: #4dd4d9;
  --primary-dark: #2a8a8e;
  --accent: #f59e0b;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --secondary: #f8fafc;
  --secondary-foreground: #0f172a;
  
  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing */
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 4px 14px 0 rgba(56, 180, 185, 0.25);
  --shadow-primary-lg: 0 10px 40px -10px rgba(56, 180, 185, 0.4);
}

html {
  scroll-behavior: smooth;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-glow);
  box-shadow: var(--shadow-primary-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--foreground);
  box-shadow: var(--shadow-lg);
}

.btn-secondary:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(56, 180, 185, 0.3);
  color: var(--primary);
}

.btn-outline:hover {
  background: rgba(56, 180, 185, 0.08);
  border-color: var(--primary);
}

.btn-hero {
  background: var(--primary);
  color: white;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-primary-lg);
}

.btn-hero:hover {
  background: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(56, 180, 185, 0.5);
}

.btn-hero:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100%;
}

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-primary);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
      margin-left: -23px;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

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

.nav-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-link {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.mobile-link:hover {
  color: var(--foreground);
  background: var(--muted);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -100px;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(56, 180, 185, 0.1);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.illus-card {
  position: absolute;
  width: 160px;
  padding: 1.25rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--border);
}

.illus-card-1 {
  left: 10%;
  top: 20%;
  transform: rotate(-8deg);
}

.illus-card-2 {
  right: 10%;
  bottom: 20%;
  transform: rotate(8deg);
}

.illus-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.illus-icon.accent {
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 100%);
}

.illus-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.illus-line {
  height: 8px;
  background: var(--muted);
  border-radius: 4px;
}

.illus-line.short {
  width: 60%;
}

.illus-connector {
  position: absolute;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* Services Section */
.services {
  padding: 7rem 0;
  position: relative;
}

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

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 180, 185, 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

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

.service-icon {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 180, 185, 0.1);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: rgba(56, 180, 185, 0.15);
  transform: scale(1.1);
}

.service-card h3 {
  position: relative;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  position: relative;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Stats Section */
.stats {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.2;
}

.stats-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

/* CTA Section */
.cta {
  padding: 7rem 0;
  background: var(--background);
}

.cta-card {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.15;
}

.cta-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(60px);
  transform: translate(30%, -30%);
}

.cta-content {
  position: relative;
}

.cta-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto 1.75rem;
  line-height: 1.7;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.625rem;
  color: #64748b;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}



/* Responsive */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .stats-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .stat-value {
    font-size: 3rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero {
    padding: 10rem 0 6rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-subtitle {
    margin-left: 0;
  }
  
  .hero-buttons {
    justify-content: flex-start;
  }
  
  .hero-illustration {
    display: flex;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cta-card {
    padding: 5rem 3rem;
  }
  
  .cta-content h2 {
    font-size: 2.25rem;
  }
}

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}


.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 2rem;
}

/* Language Switcher */
.lang-switcher { position: relative; margin: 0 0.5rem; }
.lang-btn { display: flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; background: transparent; border: none; border-radius: var(--radius); color: var(--muted-foreground); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-transform: uppercase; }
.lang-btn:hover { color: var(--foreground); background: var(--muted); }
.lang-dropdown { display: none; position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 180px; background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card-hover); padding: 0.375rem; z-index: 100; }
.lang-dropdown.active { display: block; }
.lang-option { display: flex; align-items: center; gap: 0.625rem; width: 100%; padding: 0.625rem 0.75rem; background: transparent; border: none; border-radius: calc(var(--radius) - 0.25rem); cursor: pointer; font-size: 0.875rem; font-family: var(--font-body); color: var(--foreground); text-align: left; transition: background 0.15s; }
.lang-option:hover { background: var(--muted); }
.lang-option.active { background: var(--muted); font-weight: 600; }
.lang-option span { font-size: 1.1rem; }

.mobile-langs { display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 0.5rem 0; }


/* Platforms / Carousel */
.platforms { padding: 6rem 0; background: rgba(241, 245, 249, 0.5); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 1rem; transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 2.75rem; height: 2.75rem; background: white; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-card); color: var(--foreground); transition: all 0.2s; }
.carousel-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.carousel-prev { left: -1rem; }
.carousel-next { right: -1rem; }

.platform-cat { height: 100%; padding: 1.5rem; background: white; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); transition: all 0.3s; }
.platform-cat:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.platform-cat-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.platform-cat-icon { width: 2.75rem; height: 2.75rem; background: rgba(56, 180, 185, 0.1); color: var(--primary); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.platform-cat:hover .platform-cat-icon { background: var(--primary); color: white; }
.platform-cat h3 { font-size: 1.05rem; font-weight: 700; }
.platform-cat-desc { font-size: 0.8rem; color: var(--muted-foreground); margin-bottom: 1.25rem; padding-left: 3.5rem; }
.platform-list { display: flex; flex-direction: column; gap: 0.5rem; }
.platform-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: rgba(241, 245, 249, 0.4); border: 1px solid rgba(226, 232, 240, 0.6); border-radius: var(--radius); transition: all 0.2s; }
.platform-item:hover { border-color: rgba(56, 180, 185, 0.4); background: rgba(241, 245, 249, 0.7); }
.platform-dot { width: 0.625rem; height: 0.625rem; border-radius: 50%; flex-shrink: 0; }
.platform-name { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; }


/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.6s ease forwards; }

/* Responsive */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
  .hero-title { font-size: 3.5rem; }
  .hero-buttons { flex-direction: row; justify-content: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-container { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
  .carousel-slide { flex: 0 0 calc(50% - 0.5rem); }
  .section-title { font-size: 2.5rem; }
  .cta-card { padding: 5rem 3rem; }
  .cta-card h2 { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-slide { flex: 0 0 calc(33.333% - 0.667rem); }
  .carousel-prev { left: -3rem; }
  .carousel-next { right: -3rem; }
  html[dir="rtl"] .carousel-prev { right: -3rem; }
  html[dir="rtl"] .carousel-next { left: -3rem; }
}
