/* =============================================
   GSD TASK COMPLETED — DESIGN SYSTEM
   Premium Dark Theme · Glassmorphism
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ─────────────────── */
:root {
  /* Brand */
  --primary:        hsl(245, 82%, 67%);
  --primary-light:  hsl(245, 82%, 78%);
  --primary-dark:   hsl(245, 82%, 52%);
  --primary-glow:   hsla(245, 82%, 67%, 0.3);
  --accent:         hsl(310, 70%, 60%);
  --accent-glow:    hsla(310, 70%, 60%, 0.25);
  --success:        hsl(158, 68%, 46%);
  --warning:        hsl(38, 92%, 60%);
  --danger:         hsl(350, 80%, 60%);

  /* Surfaces */
  --bg:             hsl(226, 38%, 6%);
  --bg-2:           hsl(226, 32%, 9%);
  --glass:          hsla(226, 38%, 14%, 0.7);
  --glass-border:   hsla(245, 50%, 70%, 0.12);
  --glass-border-h: hsla(245, 50%, 70%, 0.25);
  --surface:        hsl(226, 32%, 12%);
  --surface-2:      hsl(226, 28%, 16%);
  --surface-hover:  hsl(226, 28%, 20%);

  /* Text */
  --text:           hsl(220, 20%, 96%);
  --text-muted:     hsl(220, 15%, 65%);
  --text-subtle:    hsl(220, 12%, 45%);

  /* Borders */
  --border:         hsla(220, 20%, 100%, 0.08);
  --border-accent:  hsla(245, 82%, 67%, 0.2);

  /* Typography */
  --font:           'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --radius-sm:      0.5rem;
  --radius:         0.875rem;
  --radius-lg:      1.25rem;
  --radius-xl:      1.75rem;
  --radius-full:    999px;

  /* Transitions */
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:       cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:       150ms;
  --dur:            250ms;
  --dur-slow:       400ms;

  /* Shadows */
  --shadow-glow:    0 0 40px -8px var(--primary-glow);
  --shadow-card:    0 4px 24px -4px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-modal:   0 24px 80px -16px rgba(0,0,0,0.6);
}

/* ── Reset ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

/* ── Animated Background ─────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ── Layout ──────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm { max-width: 680px; margin: 0 auto; padding: 0 1.5rem; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Utilities ───────────────────────────────── */
.text-center    { text-align: center; }
.text-muted     { color: var(--text-muted); }
.text-gradient  {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mt-1  { margin-top: 0.75rem; }
.mt-2  { margin-top: 1.5rem; }
.mt-3  { margin-top: 2rem; }
.mt-4  { margin-top: 3rem; }
.mt-6  { margin-top: 5rem; }
.mb-1  { margin-bottom: 0.75rem; }
.mb-2  { margin-bottom: 1.5rem; }
.mb-3  { margin-bottom: 2rem; }
.mb-4  { margin-bottom: 3rem; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1       { gap: 0.75rem; }
.gap-2       { gap: 1.25rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}

.btn:hover::before { background: rgba(255,255,255,0.06); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 20px -4px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -6px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--glass-border-h);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: var(--primary-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), hsl(350,80%,48%));
  color: #fff;
  box-shadow: 0 4px 16px -4px hsla(350,80%,60%,0.35);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), hsl(158,68%,36%));
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-icon {
  padding: 0.6rem;
  border-radius: var(--radius);
  aspect-ratio: 1;
}

.btn-full { width: 100%; }

.btn[disabled], .btn.loading {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Glassmorphism Card ───────────────────────── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color var(--dur), box-shadow var(--dur);
}

.card:hover {
  border-color: var(--glass-border-h);
  box-shadow: var(--shadow-card);
}

.card-sm { padding: 1.25rem 1.5rem; }

/* ── Navbar ──────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0.875rem 0;
  background: hsla(226, 38%, 6%, 0.75);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  transition: background var(--dur);
}

.navbar.scrolled {
  background: hsla(226, 38%, 6%, 0.92);
  border-color: var(--glass-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -2px var(--primary-glow);
  flex-shrink: 0;
}

.logo-icon svg { color: #fff; }

.logo span { color: var(--primary-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.nav-links a:hover { color: var(--text); background: var(--surface-hover); }
.nav-links a.active { color: var(--primary-light); background: var(--primary-glow); }

.nav-links .btn { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.4rem;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}

.hamburger:hover { background: var(--surface-hover); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: hsla(226,38%,6%,0.95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-weight: 500;
  transition: all var(--dur-fast);
}

.mobile-nav a:hover { color: var(--text); background: var(--surface-hover); }
.mobile-nav .btn { margin-top: 0.5rem; justify-content: center; }

/* ── Hero ────────────────────────────────────── */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--primary-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-badge svg { color: var(--success); }

/* ── Stats Bar ───────────────────────────────── */
.stats-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}

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

.stat-number {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Feature Cards ───────────────────────────── */
.features-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 0.875rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-icon.purple { background: hsla(245,82%,67%,0.15); }
.feature-icon.pink   { background: hsla(310,70%,60%,0.15); }
.feature-icon.green  { background: hsla(158,68%,46%,0.15); }
.feature-icon.orange { background: hsla(38,92%,60%,0.15);  }
.feature-icon.blue   { background: hsla(210,80%,60%,0.15); }
.feature-icon.teal   { background: hsla(175,70%,50%,0.15); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Pricing ─────────────────────────────────── */
.pricing-section { padding: 5rem 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, hsla(245,82%,20%,0.5) 0%, var(--glass) 100%);
  box-shadow: var(--shadow-glow);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.pricing-tier {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  margin: 0.75rem 0 0.25rem;
  line-height: 1;
}

.pricing-price span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5em;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.pricing-features {
  list-style: none;
  text-align: left;
  flex-grow: 1;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li .check {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-features li .cross {
  color: var(--text-subtle);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Testimonials ────────────────────────────── */
.testimonials-section { padding: 5rem 0; }

.testimonial-card {
  position: relative;
}

.testimonial-quote {
  font-size: 1.25rem;
  color: var(--text-subtle);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1;
  font-weight: 400;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ── CTA Banner ──────────────────────────────── */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, hsla(245,82%,20%,0.4) 0%, hsla(310,70%,30%,0.2) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, hsla(245,82%,67%,0.15), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 2.25rem;
}

/* ── Forms ───────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-subtle); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-2);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-hint {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.35rem;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: var(--danger);
}

.form-group.has-error .form-error { display: block; }

/* ── Auth Pages ──────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.auth-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px -4px var(--primary-glow);
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.auth-card .auth-sub {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-footer a { color: var(--primary-light); font-weight: 600; }
.auth-footer a:hover { color: var(--primary); }

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  transition: color var(--dur-fast);
}

.password-toggle:hover { color: var(--text); }

/* ── Dashboard ───────────────────────────────── */
.app-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  padding: 2rem 1.25rem;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-section {
  padding: 0.5rem 0;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 0 0.75rem;
  margin-bottom: 0.375rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--dur-fast);
}

.sidebar-link:hover { color: var(--text); background: var(--surface-hover); }
.sidebar-link.active { color: var(--primary-light); background: var(--primary-glow); }

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.app-main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  min-width: 0;
}

/* Dashboard stats */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.stat-card-number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* List cards in dashboard */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.list-card {
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur);
  position: relative;
}

.list-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--glass-border-h);
}

.list-card-flag {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  margin-right: 0.5rem;
}

.list-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
}

.list-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.list-card-progress-bar {
  height: 4px;
  background: var(--surface-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
}

.list-card-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s var(--ease);
}

.list-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Task Items ───────────────────────────────── */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--dur-fast);
  group: true;
}

.task-item:hover {
  background: var(--surface-2);
  border-color: var(--glass-border-h);
}

.task-item.done {
  opacity: 0.55;
}

/* Custom Checkbox */
.task-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--dur-fast);
  background: transparent;
}

.task-checkbox:hover {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.task-checkbox:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.task-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.task-text {
  flex: 1;
  font-size: 0.925rem;
  color: var(--text);
  min-width: 0;
  word-break: break-word;
}

.task-item.done .task-text {
  text-decoration: line-through;
  color: var(--text-subtle);
}

.task-actions {
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.task-item:hover .task-actions { opacity: 1; }

/* ── Add item form ───────────────────────────── */
.add-item-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.add-item-form .form-input {
  flex: 1;
}

/* ── Toast Notifications ─────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  backdrop-filter: blur(16px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  pointer-events: all;
  animation: toastIn var(--dur) var(--ease) forwards;
  max-width: 340px;
}

.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

.toast.out { animation: toastOut var(--dur) var(--ease) forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

/* ── Loading Spinner ─────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty State ─────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

/* ── Page Header ─────────────────────────────── */
.page-header {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── Progress Ring ───────────────────────────── */
.progress-ring { position: relative; display: inline-block; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: var(--surface-hover); }
.progress-ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s var(--ease);
}
.progress-ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* ── Footer ──────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 260px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.625rem; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--dur-fast);
}

.footer-col ul li a:hover { color: var(--primary-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.825rem;
  color: var(--text-subtle);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.825rem;
  color: var(--text-subtle);
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: var(--text-muted); }

/* ── Tag / Badge ─────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-primary { background: var(--primary-glow); color: var(--primary-light); }
.tag-success { background: hsla(158,68%,46%,0.15); color: var(--success); }
.tag-warning { background: hsla(38,92%,60%,0.15); color: var(--warning); }
.tag-danger  { background: hsla(350,80%,60%,0.15); color: var(--danger); }

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur), visibility var(--dur);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--dur) var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}

.modal-close:hover { color: var(--text); background: var(--surface-hover); }

/* ── Priority / colour dots ──────────────────── */
.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.priority-high   { background: var(--danger); }
.priority-medium { background: var(--warning); }
.priority-low    { background: var(--success); }

/* ── FAQ Accordion ───────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-fast);
}

.faq-item:hover, .faq-item.open { border-color: var(--glass-border-h); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--dur);
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease), padding var(--dur);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1.25rem;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.animate-fade-up {
  animation: fadeUp 0.6s var(--ease) both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pricing-card.featured { transform: none; }
  .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 5rem 0 4rem; }
  .hero h1 { font-size: 2.25rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }

  .app-layout { flex-direction: column; }
  .sidebar { display: none; }
  .app-main { padding: 1.5rem; }

  .dash-stats { grid-template-columns: 1fr 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.75rem; }

  .auth-main { padding: 2rem 1rem; }
  .auth-card { padding: 2rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .stats-bar .container { grid-template-columns: 1fr 1fr; }
}
