@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6356f2;
  --accent: #9b59ff;
  --background: #1e1b2e;
  --foreground: #e0e0ff;
  --card: #2a1e3d;
  --border: #4b3a66;
  --muted: #b0a6d0;
}

* { box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--foreground);
  margin: 0;
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

a { text-decoration: none; color: inherit; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/hero-background.jpg') center/cover no-repeat;
  z-index: 0;
  filter: blur(6px) brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--foreground);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-features {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.feature-card {
  background: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  width: 220px;
  text-align: center;
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.how-it-works {
  padding: 6rem 2rem;
  background: rgba(42,30,61,0.3);
  text-align: center;
}
.steps {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}
.step {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  width: 260px;
  position: relative;
  text-align: center;
}
.step-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}
.step-icon { font-size: 2rem; margin: 1rem 0; }
.cta-buttons {
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding: 4rem 1rem 2rem;
}

.footer-brand { flex: 1 1 300px; }
.footer-links { flex: 1 1 150px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

header {
  background: rgba(42,30,61,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.nav-links { display: flex; gap: 2rem; }
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--foreground);
  transition: 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.login-btn {
  margin-left: auto;
}

.profile-menu {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  min-width: 16rem;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transform-origin: top right;
  transition: all 0.25s ease;
}

.profile-menu.show {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.profile-pfp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

#profileBtn {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #6356f2, #9b59ff);
  padding: 0.5rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border-radius: 9999px;
}

.visible { visibility: visible; }
.invisible { visibility: hidden; }

.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }

.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

.transition-all { transition: all 0.3s ease; }

.profile-item {
  display: block;
  padding: 0.5rem 1rem;
  transition: all 0.2s;
  color: var(--foreground);
  background-color: #1e1b2e;

}
.profile-item:hover { 
  background: rgba(99,86,242,0.2);
  color: #fff;
}
.destructive { 
  color: #f55; 
  border-top-left-radius: 0; 
  border-top-right-radius: 0; 
  border-bottom-left-radius: 0.75rem; 
  border-bottom-right-radius: 0.75rem; 
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .nav-links { display: none; }
}
