@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --background: hsl(30, 33%, 99%);
  --foreground: hsl(230, 25%, 18%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(230, 25%, 18%);
  --primary: hsl(230, 65%, 62%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(230, 40%, 95%);
  --secondary-foreground: hsl(230, 25%, 18%);
  --muted: hsl(220, 25%, 95%);
  --muted-foreground: hsl(220, 10%, 50%);
  --accent: hsl(20, 90%, 72%);
  --accent-foreground: hsl(20, 60%, 20%);
  --destructive: hsl(0, 70%, 62%);
  --border: hsl(220, 20%, 92%);
  --input: hsl(220, 20%, 92%);
  --ring: hsl(230, 65%, 62%);
  --radius: 1rem;
  --pastel-blue: hsl(220, 80%, 92%);
  --pastel-peach: hsl(20, 80%, 92%);
  --pastel-lavender: hsl(260, 60%, 92%);
  --pastel-mint: hsl(160, 50%, 90%);
  --pastel-rose: hsl(340, 60%, 92%);
  --hero-gradient: linear-gradient(160deg, hsl(230, 60%, 97%) 0%, hsl(20, 60%, 97%) 50%, hsl(260, 40%, 97%) 100%);
  --section-alt: hsl(230, 30%, 97%);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-28 { padding-top: 7rem; padding-bottom: 7rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.pt-24 { padding-top: 6rem; }
.pt-36 { padding-top: 9rem; }
.pb-28 { padding-bottom: 7rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1.25rem; }
.rounded-3xl { border-radius: 1.5rem; }
.overflow-hidden { overflow: hidden; }
.shrink-0 { flex-shrink: 0; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; align-items: center; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.leading-relaxed { line-height: 1.75; }
.leading-tight { line-height: 1.2; }
.leading-snug { line-height: 1.375; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.whitespace-pre-line { white-space: pre-line; }
.resize-none { resize: none; }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.2s, background-color 0.2s; }
.transition-transform { transition: transform 0.5s ease; }
.transition-shadow { transition: box-shadow 0.3s ease; }
.cursor-pointer { cursor: pointer; }

/* Colors */
.text-foreground { color: var(--foreground); }
.text-foreground-70 { color: hsl(230, 25%, 18%, 0.7); }
.text-foreground-60 { color: hsl(230, 25%, 18%, 0.6); }
.text-foreground-50 { color: hsl(230, 25%, 18%, 0.5); }
.text-foreground-80 { color: hsl(230, 25%, 18%, 0.8); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.text-green-600 { color: #16a34a; }
.text-green-500 { color: #22c55e; }
.text-red-500 { color: #ef4444; }
.text-white { color: white; }
.bg-background { background: var(--background); }
.bg-card { background: var(--card); }
.bg-primary { background: var(--primary); }
.bg-primary-10 { background: hsl(230, 65%, 62%, 0.1); }
.bg-secondary { background: var(--secondary); }
.bg-secondary-50 { background: hsl(230, 40%, 95%, 0.5); }
.bg-secondary-30 { background: hsl(230, 40%, 95%, 0.3); }
.bg-section-alt { background: var(--section-alt); }
.bg-muted { background: var(--muted); }
.bg-pastel-blue { background: var(--pastel-blue); }
.bg-pastel-peach { background: var(--pastel-peach); }
.bg-pastel-lavender { background: var(--pastel-lavender); }
.bg-pastel-mint { background: var(--pastel-mint); }
.bg-pastel-rose { background: var(--pastel-rose); }
.bg-pastel-mint-50 { background: hsl(160, 50%, 90%, 0.5); }
.bg-green-400 { background: #4ade80; }
.bg-red-300 { background: #fca5a5; }
.bg-foreground-20 { background: hsl(230, 25%, 18%, 0.2); }
.border-border { border: 1px solid var(--border); }
.border-border-60 { border: 1px solid hsl(220, 20%, 92%, 0.6); }
.border-border-50 { border: 1px solid hsl(220, 20%, 92%, 0.5); }
.border-primary { border-color: var(--primary); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid hsl(220, 20%, 92%, 0.5); }
.border-b { border-bottom: 1px solid hsl(220, 20%, 92%, 0.5); }
.border-r { border-right: 1px solid hsl(220, 20%, 92%, 0.6); }

.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tight { letter-spacing: -0.025em; }
.uppercase { text-transform: uppercase; }

/* ===== COMPONENTS ===== */

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsl(30, 33%, 99%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(220, 20%, 92%, 0.5);
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.header-logo { display: flex; align-items: center; gap: 0.625rem; }
.header-logo-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 1rem;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
}
.header-logo-icon svg { width: 1.25rem; height: 1.25rem; color: white; }
.header-logo span { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--foreground); letter-spacing: -0.025em; }
.header-nav { display: flex; align-items: center; gap: 2.5rem; }
.header-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.2s; }
.header-nav a:hover { color: var(--foreground); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile menu toggle */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--muted-foreground); padding: 0.5rem; }
.mobile-menu-btn svg { width: 1.5rem; height: 1.5rem; }
.mobile-nav { display: none; flex-direction: column; gap: 1rem; padding: 1.5rem 2rem; background: var(--card); border-bottom: 1px solid var(--border); }
.mobile-nav.open { display: flex; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem;
  border-radius: 0.75rem; border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-md { padding: 0.625rem 1.25rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { opacity: 0.9; }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--secondary); }
.btn-outline-hero { background: var(--card); border: 2px solid var(--border); color: var(--foreground); box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.btn-outline-hero:hover { background: var(--secondary); }
.btn-ghost { background: transparent; border: none; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--secondary); color: var(--foreground); }

/* Icon box */
.icon-box {
  display: flex; align-items: center; justify-content: center;
  border-radius: 1rem; flex-shrink: 0;
}
.icon-box-sm { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; }
.icon-box-md { width: 2.75rem; height: 2.75rem; }
.icon-box-lg { width: 3.5rem; height: 3.5rem; }
.icon-box-xl { width: 4rem; height: 4rem; }

/* Card */
.card {
  background: var(--card); border-radius: 1.5rem;
  border: 1px solid hsl(220, 20%, 92%, 0.6);
  padding: 2rem;
}
.card-hover:hover { box-shadow: 0 20px 40px -12px hsl(230, 65%, 62%, 0.05); transform: translateY(-2px); }

/* Input */
.input {
  width: 100%; padding: 0.75rem 1rem; border-radius: 0.75rem;
  border: 1px solid var(--input); background: var(--background);
  font-size: 0.875rem; color: var(--foreground);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px hsl(230, 65%, 62%, 0.15); }
.input::placeholder { color: var(--muted-foreground); }
.input-icon { padding-left: 3rem; }
.input-icon-right { padding-right: 3rem; }
textarea.input { resize: none; }

/* Progress bar */
.progress { width: 100%; height: 0.625rem; background: var(--secondary); border-radius: 9999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 9999px; transition: width 0.5s ease; }
.progress-sm { height: 0.5rem; }

/* Badge */
.badge {
  display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: hsl(230, 65%, 62%, 0.1); color: var(--primary); }

/* Tabs */
.tab-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.5rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500;
  border: none; background: var(--secondary); color: var(--muted-foreground);
  cursor: pointer; transition: all 0.2s;
}
.tab-btn:hover { color: var(--foreground); }
.tab-btn.active { background: var(--primary); color: var(--primary-foreground); }

/* Auth tabs */
.auth-tabs {
  display: flex; background: var(--secondary); border-radius: 1rem; padding: 0.375rem;
}
.auth-tab {
  flex: 1; padding: 0.75rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600;
  border: none; background: transparent; color: var(--muted-foreground); cursor: pointer; transition: all 0.2s;
}
.auth-tab.active { background: var(--card); color: var(--foreground); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* FAQ */
.faq-item { background: var(--card); border-radius: 1rem; border: 1px solid hsl(220, 20%, 92%, 0.6); overflow: hidden; }
.faq-trigger {
  width: 100%; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; font-family: var(--font-heading); font-weight: 600;
  font-size: 0.9375rem; color: var(--foreground); text-align: left; cursor: pointer;
}
.faq-trigger svg { width: 1.25rem; height: 1.25rem; color: var(--muted-foreground); transition: transform 0.3s; }
.faq-item.open .faq-trigger svg { transform: rotate(180deg); }
.faq-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-content { max-height: 300px; }
.faq-content-inner { padding: 0 1.5rem 1.25rem; color: var(--muted-foreground); line-height: 1.75; font-size: 0.875rem; }

/* Stars */
.star { width: 1rem; height: 1rem; color: var(--border); }
.star.filled { color: var(--accent); fill: var(--accent); }

/* Blog card */
.blog-card {
  display: block; background: var(--card); border-radius: 1.5rem;
  border: 1px solid hsl(220, 20%, 92%, 0.6); overflow: hidden;
  transition: all 0.3s;
}
.blog-card:hover { box-shadow: 0 20px 40px -12px hsl(230, 65%, 62%, 0.05); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 3/2; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.75rem; }
.blog-card-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; color: var(--foreground); transition: color 0.2s; line-height: 1.375; }
.blog-card:hover .blog-card-title { color: var(--primary); }

/* Dashboard sidebar */
.dashboard { display: flex; min-height: 100vh; background: var(--section-alt); }
.sidebar {
  width: 18rem; background: var(--card); border-right: 1px solid hsl(220, 20%, 92%, 0.6);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  transition: transform 0.3s;
}
.sidebar-nav { flex: 1; padding: 0.5rem 1rem; }
.sidebar-nav-btn {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500;
  border: none; background: none; color: var(--muted-foreground); cursor: pointer; transition: all 0.2s; text-align: left;
}
.sidebar-nav-btn:hover { background: var(--secondary); color: var(--foreground); }
.sidebar-nav-btn.active { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 4px 12px hsl(230, 65%, 62%, 0.15); }
.sidebar-nav-btn svg { width: 1.25rem; height: 1.25rem; }
.dashboard-main { flex: 1; margin-left: 18rem; min-width: 0; }
.dashboard-header {
  background: hsl(0, 0%, 100%, 0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(220, 20%, 92%, 0.6);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 30;
}
.dashboard-content { padding: 2rem; }

/* Pricing card */
.pricing-card { position: relative; background: var(--card); border-radius: 1.5rem; padding: 2rem; display: flex; flex-direction: column; }
.pricing-card.popular { border: 2px solid var(--primary); box-shadow: 0 20px 40px -12px hsl(230, 65%, 62%, 0.1); }
.pricing-badge {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem; background: var(--primary); color: var(--primary-foreground);
  font-size: 0.75rem; font-weight: 600; border-radius: 9999px;
}

/* Toggle switch */
.toggle { width: 2.75rem; height: 1.5rem; border-radius: 9999px; background: var(--primary); position: relative; cursor: pointer; }
.toggle-dot { position: absolute; right: 0.125rem; top: 0.125rem; width: 1.25rem; height: 1.25rem; border-radius: 9999px; background: white; }

/* Notification dot */
.notification-dot { position: absolute; top: 0.5rem; right: 0.5rem; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: var(--accent); }

/* Shadow */
.shadow-xl { box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1); }
.shadow-md { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Overlay */
.overlay { position: fixed; inset: 0; z-index: 40; background: hsl(230, 25%, 18%, 0.2); backdrop-filter: blur(4px); display: none; }
.overlay.open { display: block; }

/* Animation */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.animate-fade-in { animation: fadeInUp 0.5s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }

/* Footer */
.footer { border-top: 1px solid hsl(220, 20%, 92%, 0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .lg-grid-2 { grid-template-columns: 1fr !important; }
  .lg-grid-3 { grid-template-columns: 1fr !important; }
  .lg-grid-5-2 { grid-template-columns: 1fr !important; }
  .lg-grid-5-3 { grid-template-columns: 1fr !important; }
  .lg-hidden { display: none !important; }
  .lg-show { display: flex !important; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .mobile-menu-btn { display: block; }
}
@media (max-width: 767px) {
  .md-hidden { display: none !important; }
  .header-nav { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .md-grid-2 { grid-template-columns: 1fr !important; }
  .md-grid-3 { grid-template-columns: 1fr !important; }
  .text-5xl { font-size: 2.25rem; }
  .text-6xl { font-size: 3rem; }
  .text-7xl { font-size: 3rem; }
  .mobile-menu-btn { display: block; }
}
@media (min-width: 640px) {
  .sm-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .sm-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .lg-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .lg-grid-5-2 { grid-template-columns: 2fr 3fr; }
  .lg-grid-5-3 { grid-template-columns: 3fr 2fr; }
  .lg-flex { display: flex; }
  .lg-w-half { width: 50%; }
  .lg-hidden { display: none; }
}
