/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&display=swap');

:root {
  --bg-primary: #0B0B0F;
  --bg-secondary: #12121A;
  --accent: #7C3AED;
  --accent-light: #A78BFA;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --danger: #EF4444;
  --success: #22C55E;
  
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-primary); }
a { text-decoration: none; color: inherit; }

/* === Layout & Navbar === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  top: 0; width: 100%;
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.brand { font-size: 1.5rem; font-weight: 700; color: var(--accent-light); }

/* === Buttons & Micro-interactions === */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--accent); color: var(--text-primary); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-ghost { background: transparent; color: var(--text-primary); border: 1px solid var(--text-secondary); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-light); }

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.3);
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* === Framer Motion-style Animations === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === Page Specific: Landing === */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(124,58,237,0.15) 0%, var(--bg-primary) 70%);
  z-index: -1;
}
.hero h1 { font-size: 4rem; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 600px; }

/* === Page Specific: Auth (Login/Register) === */
.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.auth-card {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}
.auth-card h2 { margin-bottom: 1.5rem; text-align: center; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.9rem; }
.form-group input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg-primary); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: var(--text-primary); outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--accent); }
.auth-card .btn { width: 100%; margin-top: 1rem; }

/* === Responsiveness === */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .navbar { padding: 1rem 5%; }
}