@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --dark: #111827;
  --light: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --text-muted: #6b7280;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
p { font-size: 1.125rem; color: var(--text-muted); }

/* Links & Buttons */
a { text-decoration: none; color: inherit; transition: var(--transition); }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.39);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--light);
}
.btn-dark:hover {
  background-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--dark);
}
.btn-outline:hover {
  border-color: var(--dark);
  background-color: var(--surface);
}

/* Utils */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-8 { margin-bottom: 2rem; }

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  animation: fadeInDown 0.6s ease-out;
}
.navbar .logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  border-radius: 8px;
}
.navbar .nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Hero Section */
.hero {
  padding: 6rem 0 8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}
.hero p {
  max-width: 600px;
  margin: 0 auto;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Features */
.features {
  padding: 5rem 0;
  background-color: var(--surface);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background-color: var(--light);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Pricing Section */
.pricing {
  padding: 6rem 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.pricing-card:hover { border-color: var(--primary); }
.pricing-card.pro {
  background-color: var(--dark);
  color: var(--light);
  border-color: var(--dark);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.pricing-card.pro p { color: #9ca3af; }
.pricing-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 3rem; font-weight: 800; margin: 1rem 0; }
.pricing-card .price span { font-size: 1.125rem; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 2rem 0; flex-grow: 1; }
.pricing-card ul li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.75rem; }
.pricing-card ul li::before { content: "✓"; color: var(--primary); font-weight: bold; }
.pricing-card.pro ul li::before { color: var(--primary); }

/* CTA Section */
.cta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), #a855f7);
  color: white;
}
.cta h2 { color: white; margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Forms & Inputs */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--dark); }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--light);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Auth Card Layout */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface);
  padding: 1.5rem;
}
.auth-card {
  background: var(--light);
  width: 100%;
  max-width: 400px;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: fadeIn 0.4s ease-out;
}
.auth-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.auth-card p { font-size: 0.875rem; margin-bottom: 2rem;}

/* Dashboard Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--surface);
}
.sidebar {
  width: 260px;
  background-color: var(--light);
  border-right: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.sidebar-link:hover {
  background-color: var(--surface);
  color: var(--dark);
}
.sidebar-link.active {
  background-color: rgba(79, 70, 229, 0.1);
  color: var(--primary);
}
.main-content {
  flex: 1;
  padding: 2rem 3rem;
  overflow-y: auto;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}
.top-bar h1 {
  font-size: 1.5rem;
}

/* Dashboard Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background-color: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stat-card span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stat-card strong {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--dark);
}

/* API Key Section */
.api-key-box {
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.api-key-code {
  font-family: monospace;
  font-size: 1.125rem;
  color: var(--dark);
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  flex: 1;
  margin-right: 1rem;
  border: 1px solid var(--border);
}

/* Utils */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.hidden { display: none; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
