/**
 * Landing Page Styles
 * Converted from Tailwind CSS to vanilla CSS
 */

/* ============================================
   Reset and Base Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body.landing-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(to bottom, #ffffff, #f9fafb, #ffffff);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Container
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   Navigation
   ============================================ */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  background: linear-gradient(to right, #111827, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link {
  color: #4b5563;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.nav-link.active {
  color: #2563eb;
}

.nav-link i {
  font-size: 1rem;
  margin-right: 0.25rem;
}

.landing-nav.scrolled .nav-link {
  color: #374151;
}

.landing-nav.scrolled .nav-link:hover,
.landing-nav.scrolled .nav-link.active {
  color: #2563eb;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  color: #374151;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: #f3f4f6;
}

.lang-btn svg {
  width: 16px;
  height: 16px;
}

.lang-btn span {
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: #374151;
}

.btn-outline:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.btn-white {
  background: white;
  color: #9333ea;
}

.btn-white:hover {
  background: #f9fafb;
}

.btn svg {
  margin-left: 0.5rem;
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  padding: 8rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(to right, #dbeafe, #e9d5ff);
  border: 1px solid #bfdbfe;
}

.hero-badge span {
  background: linear-gradient(to right, #2563eb, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.875rem;
  font-weight: 500;
}

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

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

.hero-title .title-dark {
  display: block;
  background: linear-gradient(to right, #111827, #374151, #111827);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .title-gradient {
  display: block;
  background: linear-gradient(to right, #2563eb, #9333ea, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #4b5563;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

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

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

.hero-features {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-feature svg {
  width: 16px;
  height: 16px;
  color: #22c55e;
}

/* ============================================
   Blob Animations
   ============================================ */

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.2;
  mix-blend-mode: multiply;
  animation: blob 7s infinite;
}

.blob-blue {
  width: 288px;
  height: 288px;
  background: #60a5fa;
  top: 160px;
  left: 40px;
}

.blob-purple {
  width: 288px;
  height: 288px;
  background: #a78bfa;
  top: 160px;
  right: 40px;
  animation-delay: 2s;
}

.blob-pink {
  width: 288px;
  height: 288px;
  background: #f472b6;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  75% {
    transform: translate(50px, 50px) scale(1.05);
  }
}

/* ============================================
   Dashboard Preview
   ============================================ */

.dashboard-preview {
  margin-top: 5rem;
  position: relative;
}

.preview-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: white;
}

.preview-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.preview-glow {
  position: absolute;
  inset: -16px;
  background: linear-gradient(to right, rgba(37, 99, 235, 0.2), rgba(147, 51, 234, 0.2));
  border-radius: 24px;
  filter: blur(32px);
  z-index: -1;
}

/* ============================================
   Scroll Indicator
   ============================================ */

.scroll-indicator {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-indicator span {
  font-size: 0.875rem;
  color: #9ca3af;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  color: #9ca3af;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* ============================================
   Feature Sections
   ============================================ */

.feature-section {
  padding: 5rem 1.5rem;
}

.feature-section.bg-white {
  background: white;
}

.feature-section.bg-gray {
  background: linear-gradient(to bottom, #f9fafb, #ffffff);
}

.feature-content {
  max-width: 72rem;
  margin: 0 auto;
}

.feature-title {
  text-align: center;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .feature-title {
    font-size: 3rem;
  }
}

.feature-title span {
  background: linear-gradient(to right, #111827, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-description {
  text-align: center;
  font-size: 1.25rem;
  color: #4b5563;
  max-width: 48rem;
  margin: 0 auto 3rem;
}

.feature-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: white;
}

.feature-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-glow {
  position: absolute;
  inset: -16px;
  border-radius: 24px;
  filter: blur(32px);
  z-index: -1;
}

.glow-orange {
  background: linear-gradient(to right, rgba(234, 88, 12, 0.2), rgba(220, 38, 38, 0.2));
}

.glow-green {
  background: linear-gradient(to right, rgba(22, 163, 74, 0.2), rgba(16, 185, 129, 0.2));
}

.glow-purple {
  background: linear-gradient(to right, rgba(147, 51, 234, 0.2), rgba(37, 99, 235, 0.2));
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  padding: 5rem 1.5rem;
}

.cta-box {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(135deg, #2563eb, #9333ea, #ec4899);
  padding: 3rem;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 4rem;
  }
}

.cta-decoration {
  position: absolute;
  width: 256px;
  height: 256px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(48px);
}

.cta-decoration.top-right {
  top: 0;
  right: 0;
}

.cta-decoration.bottom-left {
  bottom: 0;
  left: 0;
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 3rem;
  }
}

.cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */

.landing-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.footer-logo-icon svg {
  width: 20px;
  height: 20px;
}

.footer-logo span {
  font-weight: 600;
  color: #111827;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #111827;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-nav {
  animation: slideInNav 0.5s ease forwards;
}

@keyframes slideInNav {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   Login Page Specific Styles
   ============================================ */

body.login-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #f9fafb, #ffffff, #f9fafb);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.15;
  animation: blob 7s infinite;
}

.login-blob-1 {
  width: 256px;
  height: 256px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  top: 80px;
  left: 40px;
}

.login-blob-2 {
  width: 288px;
  height: 288px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  bottom: 80px;
  right: 40px;
  animation-delay: 2s;
}

.login-blob-3 {
  width: 224px;
  height: 224px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  top: 50%;
  right: 25%;
  animation-delay: 4s;
}

.back-btn {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.back-btn:hover {
  color: #111827;
}

.back-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s;
}

.back-btn:hover svg {
  transform: translateX(-4px);
}

.login-container {
  width: 100%;
  max-width: 28rem;
  position: relative;
  z-index: 10;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  margin-bottom: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.login-logo svg {
  width: 32px;
  height: 32px;
  color: white;
}

.login-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-title span {
  background: linear-gradient(to right, #111827, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: #4b5563;
}

.login-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

.form-input {
  width: 100%;
  height: 48px;
  padding-left: 40px;
  padding-right: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #4b5563;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.remember-me input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  accent-color: #9333ea;
}

.remember-me span {
  color: #4b5563;
}

.forgot-link {
  color: #9333ea;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #7c3aed;
}

.login-btn {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.login-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

.login-divider {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.login-divider span {
  color: #4b5563;
}

.login-divider button {
  background: none;
  border: none;
  color: #9333ea;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.login-divider button:hover {
  color: #7c3aed;
}

.terms-text {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  text-align: center;
  color: #6b7280;
}

.terms-text a {
  color: #9333ea;
  text-decoration: none;
}

.terms-text a:hover {
  text-decoration: underline;
}

.trust-badges {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-green {
  background: #22c55e;
}

.dot-blue {
  background: #3b82f6;
}

.dot-purple {
  background: #a855f7;
}
