:root {
  --font-main: 'DM Sans', -apple-system, sans-serif;
  
  /* Palette - Premium Dark/Light Hybrid or Clean Light with Deep Accents */
  --bg-body: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  /* Brand Colors - Indigo/Violet */
  --primary: #6366f1; /* Indigo 500 */
  --primary-dark: #4f46e5; /* Indigo 600 */
  --secondary: #8b5cf6; /* Violet 500 */
  --accent: #06b6d4; /* Cyan 500 */

  --gradient-main: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
  --gradient-text: linear-gradient(to right, #4f46e5, #9333ea);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

ul {
  list-style: none;
}

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

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: var(--text-main);
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

header.scrolled {
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-main);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

.hero-preview {
  margin-top: 40px;
  perspective: 1000px;
}

.preview-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.2);
  border: 8px solid rgba(255, 255, 255, 0.5);
  transform: rotateX(5deg);
  transition: transform 0.5s ease;
  background: #fff;
  aspect-ratio: 16/9;
  /* Placeholder style if image missing */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 2rem;
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
  position: relative;
  overflow: hidden;
}

.preview-img:hover {
  transform: rotateX(0deg);
}

.preview-mockup-content {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--bg-alt);
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

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

.feature-card {
  background: white;
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid #f1f5f9;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* Feature Cards Mini (All Features Section) */
.feature-card-mini {
  background: white;
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-card-mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Feature Links - Clickable cards */
a.feature-card-mini {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.feature-card-mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

a.feature-card-mini::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s;
  color: var(--primary);
  font-size: 0.85rem;
}

a.feature-card-mini {
  position: relative;
  padding-right: 40px;
}

a.feature-card-mini:hover::after {
  opacity: 1;
  right: 12px;
}

.feature-icon-mini {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
}

.feature-card-mini h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-main);
}

.feature-card-mini p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.feature-category {
  margin-bottom: 48px;
}

/* Dashboard Showcases */
.showcase {
  padding: 100px 0;
}

.showcase-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.showcase-item:nth-child(even) {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
}

.showcase-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.showcase-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
}

.showcase-features i {
  color: var(--success); /* Assuming CSS variable from existing app or defined */
  color: #10b981;
}

.showcase-img {
  flex: 1;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--bg-alt);
}

.showcase-img img {
  width: 100%;
  display: block;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: var(--gradient-main);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.btn-white:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: #0f172a;
  color: white;
  padding: 80px 0 30px;
}

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

.footer-brand p {
  opacity: 0.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  opacity: 0.7;
}

.footer-col a:hover {
  opacity: 1;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  opacity: 0.5;
  font-size: 0.9rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .showcase-item {
    flex-direction: column;
    gap: 40px;
  }
  
  .showcase-item:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ============================================
   Nav Language Dropdown
   ============================================ */

.nav-lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #94a3b8);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-lang-toggle:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

.nav-lang-arrow {
  font-size: 10px;
  opacity: 0.6;
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: none;
  min-width: 175px;
  padding: 6px 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid #e2e8f0;
  z-index: 1000;
}

.nav-lang-menu.active {
  display: block;
}

.nav-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  border: none;
  background: transparent;
  color: #1a202c;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  box-sizing: border-box;
}

.nav-lang-option:hover {
  background: #f7fafc;
}

.nav-lang-option.active {
  background: #f0f9ff;
  color: #4f46e5;
  font-weight: 600;
}

.nav-lang-option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
}

@media (max-width: 768px) {
  .nav-lang-dropdown {
    width: 100%;
  }

  .nav-lang-toggle {
    width: 100%;
    justify-content: space-between;
    color: var(--text-primary, #e2e8f0);
    border-color: rgba(255,255,255,0.15);
  }

  .nav-lang-menu {
    position: static;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: none;
  }

  .nav-lang-menu.active {
    display: block;
  }

  .nav-lang-option {
    padding: 11px 14px;
  }
}
