/* ===== Light Mode Variables (fallback) ===== */
:root {
  --bg: #f8fafc;
  --bg2: #ffffff;
  --bg3: rgba(0,0,0,0.03);
  --border: rgba(0,0,0,0.07);
  --border-light: rgba(0,0,0,0.04);
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --text: #1e293b;
  --text-secondary: #475569;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --card-bg: rgba(0,0,0,0.02);
  --card-border: rgba(0,0,0,0.06);
  --card-hover-bg: rgba(124,58,237,0.04);
  --card-hover-border: rgba(124,58,237,0.15);
  --input-bg: rgba(0,0,0,0.03);
  --input-border: rgba(0,0,0,0.10);
  --input-focus: rgba(124,58,237,0.4);
  --sidebar-bg: #f1f5f9;
  --topbar-bg: #ffffff;
  --mockup-bg: #e2e8f0;
  --mockup-bar: #cbd5e1;
  --code-bg: #f1f5f9;
  --code-border: rgba(0,0,0,0.08);
  --scrollbar-thumb: rgba(0,0,0,0.2);
  --logo-brand-color: #334155;
  --heading-color: #0f172a;
  --tag-bg: rgba(0,0,0,0.05);
  --tag-text: #475569;
  --kanban-card-bg: rgba(0,0,0,0.03);
  --kanban-card-border: rgba(0,0,0,0.07);
}

/* ===== Dark mode ===== */
html.dark {
  --bg: #080810;
  --bg2: #0d0d18;
  --bg3: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.07);
  --border-light: rgba(255,255,255,0.04);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --muted-light: #475569;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.07);
  --card-hover-bg: rgba(124,58,237,0.06);
  --card-hover-border: rgba(124,58,237,0.2);
  --input-bg: rgba(255,255,255,0.04);
  --input-border: rgba(255,255,255,0.10);
  --input-focus: rgba(124,58,237,0.5);
  --sidebar-bg: #0a0a14;
  --topbar-bg: #0a0a14;
  --mockup-bg: #0d0d18;
  --mockup-bar: #111120;
  --code-bg: #0a0a14;
  --code-border: rgba(255,255,255,0.07);
  --scrollbar-thumb: rgba(255,255,255,0.1);
  --logo-brand-color: #1e293b;
  --heading-color: #ffffff;
  --tag-bg: rgba(255,255,255,0.05);
  --tag-text: #94a3b8;
  --kanban-card-bg: rgba(255,255,255,0.04);
  --kanban-card-border: rgba(255,255,255,0.07);
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: Inter, sans-serif; min-height: 100vh; }
.nav-bar { position: sticky; top: 0; z-index: 50; background: var(--bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.logo { font-family: JetBrains Mono, monospace; font-size: 1rem; font-weight: 700; color: var(--heading-color); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: #7c3aed; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; font-size: 0.875rem; font-weight: 600; padding: 8px 18px; border-radius: 8px; text-decoration: none; transition: opacity 0.2s, transform 0.15s; border: none; cursor: pointer; }
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--tag-bg); border: 1px solid var(--border); color: var(--text); font-size: 0.875rem; font-weight: 500; padding: 8px 18px; border-radius: 8px; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.btn-ghost:hover { background: var(--card-hover-bg); border-color: var(--card-hover-border); }
.btn-outline-violet { display: inline-flex; align-items: center; gap: 6px; background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.25); color: var(--violet-light); font-size: 0.875rem; font-weight: 500; padding: 8px 18px; border-radius: 8px; text-decoration: none; transition: all 0.2s; cursor: pointer; }
.btn-outline-violet:hover { background: rgba(124,58,237,0.15); }
.gradient-text { background: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #60a5fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-eyebrow { font-family: JetBrains Mono, monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: #7c3aed; margin-bottom: 0.75rem; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--heading-color); margin-bottom: 0.75rem; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 36rem; margin: 0 auto; line-height: 1.7; }
.feature-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 1.5rem; transition: all 0.2s; }
.feature-card:hover { background: var(--card-hover-bg); border-color: var(--card-hover-border); transform: translateY(-2px); }
.feature-title { font-size: 0.95rem; font-weight: 600; color: var(--heading-color); margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 1.5rem; }
.testimonial-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; font-style: italic; }
.author-name { font-size: 0.8rem; font-weight: 600; color: var(--heading-color); }
.pricing-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 1.75rem; position: relative; }
.pricing-card.featured { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.3); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #7c3aed, #4f46e5); color: white; font-size: 0.65rem; font-weight: 700; padding: 3px 12px; border-radius: 9999px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; }
.plan-name { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }
.plan-price { font-size: 2.25rem; font-weight: 800; color: var(--heading-color); line-height: 1; }
.faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; padding: 1rem 1.25rem; cursor: pointer; }
.faq-q { font-size: 0.9rem; font-weight: 500; color: var(--heading-color); }
.faq-a { font-size: 0.85rem; color: var(--muted); }
.mockup-window { background: var(--mockup-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mockup-bar { background: var(--mockup-bar); border-bottom: 1px solid var(--border-light); padding: 8px 12px; display: flex; align-items: center; gap: 6px; }
.form-input { width: 100%; background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 8px; padding: 10px 14px; font-size: 0.875rem; color: var(--text); outline: none; transition: border-color 0.2s; font-family: Inter, sans-serif; }
.form-input:focus { border-color: var(--input-focus); }
.form-label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.4rem; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; padding: 3px 10px; border-radius: 9999px; }
.badge-violet { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); color: var(--violet-light); }
.badge-green { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #86efac; }
.code-block { background: var(--code-bg); border: 1px solid var(--code-border); border-radius: 10px; padding: 1rem 1.25rem; font-family: JetBrains Mono, monospace; font-size: 0.8rem; color: var(--text-secondary); overflow-x: auto; }
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; }
.card:hover { background: var(--card-hover-bg); border-color: var(--card-hover-border); }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.logo-brand { font-family: JetBrains Mono, monospace; font-size: 0.85rem; font-weight: 600; color: var(--logo-brand-color); letter-spacing: -0.5px; }
.step-num { font-family: JetBrains Mono, monospace; font-size: 0.75rem; color: var(--muted-light); margin-bottom: 0.5rem; }
.task-tag { display: inline-flex; font-size: 9px; padding: 1px 6px; border-radius: 9999px; font-weight: 600; }
.mockup-dot { width: 8px; height: 8px; border-radius: 9999px; }
.mockup-url { font-size: 10px; color: var(--muted-light); margin-left: 8px; font-family: JetBrains Mono, monospace; }
.plan-period { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.plan-period-inline { font-size: 0.75rem; color: var(--muted); }
.plan-desc { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 1rem; line-height: 1.5; }
.plan-features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { font-size: 0.8rem; color: var(--text-secondary); padding-left: 1.25rem; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: #7c3aed; font-weight: 700; }
.stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 0.75rem; }
.testimonial-author { display: flex; align-items: center; gap: 8px; margin-top: 1rem; }
.avatar { width: 28px; height: 28px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; color: white; flex-shrink: 0; }
.author-role { font-size: 0.7rem; color: var(--muted); }
.feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.task-check { font-size: 11px; color: var(--muted); }
.task-check.done { color: #22c55e; }
.task-text.done { text-decoration: line-through; color: var(--muted-light) !important; }

/* DASHBOARD LAYOUT */
.app-shell { display: flex; flex: 1; overflow: hidden; }
.app-sidebar { width: 220px; flex-shrink: 0; background: var(--sidebar-bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow-y: auto; transition: width 0.2s; }
.app-sidebar.collapsed { width: 0; overflow: hidden; }
.app-main { flex: 1; overflow-y: auto; background: var(--bg); }
.nav-link-dash { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; font-size: 13px; color: var(--muted-light); cursor: pointer; transition: all 0.15s; text-decoration: none; }
.nav-link-dash:hover { background: var(--card-bg); color: var(--text-secondary); }
.nav-link-dash.active { background: rgba(124,58,237,0.12); color: var(--violet-light); }
.kanban-card { background: var(--kanban-card-bg); border: 1px solid var(--kanban-card-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.kanban-card:hover { border-color: var(--card-hover-border); background: var(--card-hover-bg); }
.tab-btn { padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; border: none; }
.tab-btn.active { background: rgba(124,58,237,0.15); color: var(--violet-light); }
.tab-btn:not(.active) { color: var(--muted-light); background: transparent; }
.tab-btn:not(.active):hover { color: var(--text-secondary); }
.top-bar { background: var(--topbar-bg); border-bottom: 1px solid var(--border); }
.stat-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; padding: 10px; }
.stat-num { font-size: 1.25rem; font-weight: 700; color: var(--heading-color); }
.stat-label { font-size: 9px; color: var(--muted-light); }
.task-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border-light); }
.task-text { font-size: 11px; color: var(--text-secondary); flex: 1; }
.sidebar-item { font-size: 11px; color: var(--muted-light); padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.sidebar-item:hover { background: var(--card-bg); color: var(--text-secondary); }
.sidebar-item.active { background: rgba(124,58,237,0.12); color: var(--violet-light); }
.mini-badge { font-size: 9px; padding: 2px 7px; border-radius: 9999px; font-weight: 600; }
.cta-glow { position: absolute; left: 50%; transform: translateX(-50%); width: 400px; height: 200px; border-radius: 50%; background: radial-gradient(ellipse, rgba(124,58,237,0.2) 0%, transparent 70%); pointer-events: none; }
.footer-heading { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 0.75rem; font-family: JetBrains Mono, monospace; }
.footer-link { display: block; font-size: 0.8rem; color: var(--muted); text-decoration: none; margin-bottom: 0.4rem; transition: color 0.15s; }
.footer-link:hover { color: var(--text-secondary); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 3px; }

/* TAILWIND OVERRIDES for light mode — force all hardcoded Tailwind classes to use CSS variables */
html:not(.dark) .text-white { color: var(--heading-color) !important; }
html:not(.dark) .text-slate-300 { color: var(--text) !important; }
html:not(.dark) .text-slate-400 { color: var(--text-secondary) !important; }
html:not(.dark) .text-slate-500 { color: var(--muted) !important; }
html:not(.dark) .text-slate-600 { color: var(--muted) !important; }

/* Border overrides */
html:not(.dark) .border-white\/5,
html:not(.dark) .border-white\/10,
html:not(.dark) .border-t-white\/5,
html:not(.dark) .border-b-white\/5,
html:not(.dark) .border-r-white\/5,
html:not(.dark) .border-l-white\/5,
html:not(.dark) .border-y-white\/5 { border-color: var(--border) !important; }
html:not(.dark) hr.border-white\/5 { border-color: var(--border) !important; }

/* Background overrides — hardcoded dark bg colors → CSS variables */
html:not(.dark) .bg-\[\#080810\] { background: var(--bg) !important; }
html:not(.dark) .bg-\[\#0a0a14\] { background: var(--topbar-bg) !important; }
html:not(.dark) .bg-violet-500\/10 { background: rgba(124,58,237,0.1) !important; }
html:not(.dark) .bg-violet-500\/20 { background: rgba(124,58,237,0.2) !important; }

/* Violet text — darken for light mode */
html:not(.dark) .text-violet-300 { color: #7c3aed !important; }
html:not(.dark) .text-violet-400 { color: #6d28d9 !important; }
html:not(.dark) .hover\:text-violet-200:hover { color: #7c3aed !important; }

/* Hover states */
html:not(.dark) .hover\:text-white:hover { color: var(--heading-color) !important; }
html:not(.dark) .hover\:text-slate-100:hover { color: var(--text) !important; }
html:not(.dark) .hover\:text-slate-300:hover { color: var(--text-secondary) !important; }
html:not(.dark) .hover\:text-slate-400:hover { color: var(--muted-light) !important; }
html:not(.dark) .hover\:bg-white\/5:hover { background: var(--card-bg) !important; }

/* Logo brands / social proof */
html:not(.dark) .logo-brand { color: var(--muted) !important; }

/* Pricing toggle */
html:not(.dark) .bg-slate-700 { background: #e2e8f0 !important; }

/* Nav items */
html:not(.dark) .nav-bar a { color: var(--text-secondary) !important; }
html:not(.dark) .nav-bar a:hover { color: var(--heading-color) !important; }

/* Step numbers */
html:not(.dark) .step-num { color: var(--muted-light) !important; }

/* Mini badges in mockup */
html:not(.dark) .mini-badge.violet { background: rgba(124,58,237,0.1) !important; color: #7c3aed !important; }
html:not(.dark) .mini-badge.green { background: rgba(34,197,94,0.1) !important; color: #059669 !important; }

/* Task tags in mockup */
html:not(.dark) .task-tag.violet { background: rgba(124,58,237,0.1) !important; color: #7c3aed !important; }
html:not(.dark) .task-tag.blue { background: rgba(59,130,246,0.1) !important; color: #2563eb !important; }
html:not(.dark) .task-tag.amber { background: rgba(245,158,11,0.1) !important; color: #d97706 !important; }
html:not(.dark) .task-tag.green { background: rgba(34,197,94,0.1) !important; color: #059669 !important; }

/* Sidebar items in mockup */
html:not(.dark) .sidebar-item.active { background: rgba(124,58,237,0.1) !important; color: #7c3aed !important; }