@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-color: #6366f1;
  --secondary-color: #a855f7;
  --accent-color: #ec4899;
  --bg-dark: #0f172a;
  --bg-light: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --input-bg: #f8fafc;
  --input-border: #e2e8f0;
  --nav-bg: rgba(15, 23, 42, 0.8);
}

[data-theme='dark'] {
  --bg-dark: #020617;
  --bg-light: #0f172a;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --card-bg: #1e293b;
  --card-border: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(15, 23, 42, 0.5);
  --input-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(2, 6, 23, 0.8);
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

.hero-section {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background-image: linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9)), url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 10;
}

.hero-tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(40px, 8vw, 84px);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: #94a3b8;
  margin-bottom: 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.4);
}

.btn-outline-custom {
  background: transparent;
  padding: 16px 40px;
  border: 2px solid var(--glass-border);
  color: white;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

/* Features Section */
.features-container {
  padding: 100px 20px;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(20px);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.feature-icon {
  font-size: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.feature-desc {
  color: #94a3b8;
  line-height: 1.6;
}

/* Glassy Stat Section */
.stats-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 80px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 48px;
  font-weight: 800;
  display: block;
  background: linear-gradient(to right, #ffffff, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: #94a3b8;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Authenticated Home / Dashboard View */
.home-wrapper.authenticated {
  background-color: var(--bg-light);
  color: var(--text-main);
}

.home-wrapper.authenticated .hero-section {
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.7)), url('../images/dashboard-bg.png');
  min-height: 60vh;
}

[data-theme='dark'] .home-wrapper.authenticated .hero-section {
  background-image: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.9)), url('../images/dashboard-bg.png');
}

.home-wrapper.authenticated .hero-title {
  background: linear-gradient(to right, var(--text-main), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-wrapper.authenticated .hero-subtitle {
  color: var(--text-muted);
}

.home-wrapper.authenticated .btn-outline-custom {
  color: var(--primary-color);
  border-color: rgba(99, 102, 241, 0.2);
  background: white;
}

.home-wrapper.authenticated .btn-outline-custom:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: -50px auto 40px;
  padding: 0 24px;
  z-index: 20;
  position: relative;
}

.dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 24px;
}

.bg-light-blue { background-color: #e0e7ff; color: #6366f1; }
.bg-light-purple { background-color: #f3e8ff; color: #a855f7; }
.bg-light-green { background-color: #dcfce7; color: #22c55e; }

.dashboard-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.dashboard-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 20px;
  }
  .cta-buttons {
    flex-direction: column;
    padding: 0 40px;
  }
}

