/* Quanta GenAI — Replit-inspired Design System */
:root {
    --bg-root: #0e1525;
    --bg-default: #1c2333;
    --bg-higher: #252d3d;
    --bg-highest: #2b3245;
    --bg-overlay: rgba(14, 21, 37, 0.85);
    --outline-default: #2b3245;
    --outline-stronger: #3d4663;
    --text-default: #f5f9fc;
    --text-dimmer: #c2c8cc;
    --text-dimmest: #9da2a6;
    --text-disabled: #5c6370;
    --accent-primary: #0079f2;
    --accent-primary-hover: #0062cc;
    --accent-primary-dimmer: rgba(0, 121, 242, 0.15);
    --accent-positive: #31cc79;
    --accent-positive-dimmer: rgba(49, 204, 121, 0.15);
    --accent-negative: #ef5533;
    --accent-negative-dimmer: rgba(239, 85, 51, 0.15);
    --accent-warning: #f0c000;
    --accent-warning-dimmer: rgba(240, 192, 0, 0.15);
    --font-default: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-default);
    background: var(--bg-root);
    color: var(--text-default);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary-hover); }

::selection { background: var(--accent-primary); color: white; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--outline-stronger); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-disabled); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.6rem 1.25rem; border: none; border-radius: var(--radius-md);
    font-family: var(--font-default); font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all var(--transition-fast); white-space: nowrap;
    text-decoration: none; line-height: 1.4;
}
.btn:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

.btn-primary { background: var(--accent-primary); color: white; }
.btn-primary:hover { background: var(--accent-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--bg-higher); color: var(--text-default); border: 1px solid var(--outline-default); }
.btn-secondary:hover { background: var(--bg-highest); border-color: var(--outline-stronger); }

.btn-ghost { background: transparent; color: var(--text-dimmer); }
.btn-ghost:hover { background: var(--bg-higher); color: var(--text-default); }

.btn-danger { background: var(--accent-negative); color: white; }
.btn-danger:hover { background: #d94428; }

.btn-success { background: var(--accent-positive); color: white; }
.btn-success:hover { background: #28b86a; }

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: var(--radius-lg); }
.btn-icon { padding: 0.5rem; width: 36px; height: 36px; }

/* --- Inputs --- */
.input, .textarea, .select {
    width: 100%; padding: 0.6rem 0.85rem;
    background: var(--bg-root); border: 1px solid var(--outline-default);
    border-radius: var(--radius-md); color: var(--text-default);
    font-family: var(--font-default); font-size: 0.9rem;
    transition: border-color var(--transition-fast);
    outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-primary-dimmer); }
.input::placeholder, .textarea::placeholder { color: var(--text-disabled); }

.textarea { resize: vertical; min-height: 80px; font-family: var(--font-mono); }

/* --- Cards --- */
.card {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-lg); padding: 1.5rem;
    transition: all var(--transition-normal);
}
.card:hover { border-color: var(--outline-stronger); box-shadow: var(--shadow-md); }
.card-interactive:hover { border-color: var(--accent-primary); transform: translateY(-2px); cursor: pointer; }

/* --- Badge --- */
.badge {
    display: inline-flex; align-items: center; padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--accent-primary-dimmer); color: var(--accent-primary); }
.badge-positive { background: var(--accent-positive-dimmer); color: var(--accent-positive); }
.badge-negative { background: var(--accent-negative-dimmer); color: var(--accent-negative); }
.badge-warning { background: var(--accent-warning-dimmer); color: var(--accent-warning); }

/* --- Navigation --- */
.nav-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem; height: 56px; background: var(--bg-default);
    border-bottom: 1px solid var(--outline-default);
    position: sticky; top: 0; z-index: 100;
}
.nav-top .logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.2rem; font-weight: 700; color: var(--text-default);
}
.nav-top .logo-icon {
    width: 28px; height: 28px; background: linear-gradient(135deg, var(--accent-primary), #31cc79);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
    font-weight: 900; color: white; font-size: 0.85rem;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
    padding: 0.45rem 0.85rem; color: var(--text-dimmer); border-radius: var(--radius-md);
    font-size: 0.9rem; font-weight: 500; transition: all var(--transition-fast);
}
.nav-links a:hover { color: var(--text-default); background: var(--bg-higher); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav-dropdown {
    position: relative;
}
.nav-dropdown > summary.nav-dropdown-trigger {
    list-style: none;
    cursor: pointer;
    padding: 0.45rem 0.85rem;
    color: var(--text-dimmer);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.nav-dropdown > summary.nav-dropdown-trigger::-webkit-details-marker { display: none; }
.nav-dropdown > summary.nav-dropdown-trigger::after {
    content: "▾";
    margin-left: 0.35rem;
    font-size: 0.65rem;
    opacity: 0.7;
}
.nav-dropdown[open] > summary.nav-dropdown-trigger {
    color: var(--text-default);
    background: var(--bg-higher);
}
.nav-dropdown > summary.nav-dropdown-trigger:hover {
    color: var(--text-default);
    background: var(--bg-higher);
}
.nav-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 11rem;
    padding: 0.35rem;
    background: var(--bg-default);
    border: 1px solid var(--outline-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 150;
}
.nav-dropdown[open] .nav-dropdown-panel { display: flex; flex-direction: column; gap: 0.15rem; }
.nav-dropdown-panel a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-dimmer);
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-dropdown-panel a:hover {
    color: var(--text-default);
    background: var(--bg-higher);
}

/* --- Hero / Landing --- */
.hero {
    text-align: center; padding: 5rem 2rem 4rem;
    background: radial-gradient(ellipse at top, rgba(0,121,242,0.08) 0%, transparent 60%);
}
.hero h1 {
    font-size: 3.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-default) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .subtitle { font-size: 1.3rem; color: var(--text-dimmest); max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7; }

.hero-input-wrapper {
    max-width: 600px; margin: 0 auto 1.5rem; position: relative;
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-xl); padding: 0.35rem; display: flex;
    box-shadow: var(--shadow-lg);
}
.hero-input-wrapper input {
    flex: 1; padding: 0.85rem 1.25rem; background: transparent; border: none;
    color: var(--text-default); font-size: 1rem; outline: none;
}
.hero-input-wrapper input::placeholder { color: var(--text-disabled); }
.hero-input-wrapper .btn { padding: 0.75rem 1.75rem; border-radius: var(--radius-lg); }

.hero-tabs {
    display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2rem;
}
.hero-tab {
    padding: 0.5rem 1.25rem; background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-full); color: var(--text-dimmest); cursor: pointer;
    font-size: 0.85rem; font-weight: 500; transition: all var(--transition-fast);
}
.hero-tab:hover, .hero-tab.active { background: var(--accent-primary-dimmer); color: var(--accent-primary); border-color: var(--accent-primary); }

/* --- Idea Cards --- */
.ideas-section { padding: 2rem 2rem 4rem; }
.ideas-section h2 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; color: var(--text-dimmer); }
.ideas-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem; max-width: 1100px; margin: 0 auto;
}
.idea-card {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-lg); padding: 1.25rem;
    cursor: pointer; transition: all var(--transition-normal);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.idea-card:hover { border-color: var(--accent-primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.idea-card .idea-icon { font-size: 1.5rem; }
.idea-card h3 { font-size: 1rem; font-weight: 600; }
.idea-card p { font-size: 0.85rem; color: var(--text-dimmest); }
.idea-card .idea-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.idea-card .tag {
    padding: 0.15rem 0.5rem; background: var(--bg-higher);
    border-radius: var(--radius-full); font-size: 0.7rem; color: var(--text-dimmest);
}

/* --- Features Section --- */
.features-section { padding: 4rem 2rem; }
.features-section h2 { text-align: center; font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.features-section .section-subtitle { text-align: center; color: var(--text-dimmest); margin-bottom: 3rem; font-size: 1.1rem; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}
.feature-card {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-xl); padding: 2rem; transition: all var(--transition-normal);
}
.feature-card:hover { border-color: var(--accent-primary); box-shadow: var(--shadow-md); }
.feature-card .feature-icon {
    width: 48px; height: 48px; background: var(--accent-primary-dimmer);
    border-radius: var(--radius-lg); display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-dimmest); font-size: 0.9rem; line-height: 1.6; }

/* --- Pricing Section --- */
.pricing-section { padding: 4rem 2rem; }
.pricing-section h2 { text-align: center; font-size: 2.25rem; margin-bottom: 0.75rem; }
.pricing-section .section-subtitle { text-align: center; color: var(--text-dimmest); margin-bottom: 3rem; }
.pricing-toggle {
    display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem;
}
.pricing-toggle button {
    padding: 0.5rem 1.25rem; background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-full); color: var(--text-dimmest); cursor: pointer;
    font-family: var(--font-default); font-size: 0.85rem;
}
.pricing-toggle button.active { background: var(--accent-primary); color: white; border-color: var(--accent-primary); }
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; max-width: 1000px; margin: 0 auto; align-items: start;
}
.pricing-card {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-xl); padding: 2rem; position: relative;
}
.pricing-card.featured { border-color: var(--accent-primary); box-shadow: 0 0 30px var(--accent-primary-dimmer); }
.pricing-card.featured::before {
    content: 'Popular'; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--accent-primary); color: white; padding: 0.2rem 0.85rem;
    border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
}
.pricing-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.pricing-card .price { font-size: 2.75rem; font-weight: 800; margin: 0.75rem 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--text-dimmest); }
.pricing-card .price-desc { color: var(--text-dimmest); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; margin-bottom: 1.5rem; }
.pricing-card li {
    padding: 0.45rem 0; font-size: 0.9rem; color: var(--text-dimmer);
    display: flex; align-items: center; gap: 0.5rem;
}
.pricing-card li::before { content: '✓'; color: var(--accent-positive); font-weight: 600; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* --- Testimonials --- */
.testimonials-section { padding: 4rem 2rem; }
.testimonials-section h2 { text-align: center; font-size: 2rem; margin-bottom: 2.5rem; }
.testimonials-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; max-width: 1000px; margin: 0 auto;
}
.testimonial-card {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-xl); padding: 1.75rem;
}
.testimonial-card blockquote { font-size: 0.95rem; color: var(--text-dimmer); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-card .author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-card .avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--accent-primary-dimmer);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-primary); font-weight: 700; font-size: 1rem;
}
.testimonial-card .author-info .name { font-weight: 600; font-size: 0.9rem; }
.testimonial-card .author-info .role { font-size: 0.8rem; color: var(--text-dimmest); }

/* --- CTA Section --- */
.cta-section {
    text-align: center; padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(0,121,242,0.06), rgba(49,204,121,0.04));
    border-top: 1px solid var(--outline-default); border-bottom: 1px solid var(--outline-default);
}
.cta-section h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.cta-section p { color: var(--text-dimmest); margin-bottom: 2rem; font-size: 1.1rem; }

/* --- Footer --- */
.footer {
    padding: 3rem 2rem; border-top: 1px solid var(--outline-default);
    max-width: 1100px; margin: 0 auto;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem; margin-bottom: 2rem;
}
.footer-brand .logo { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand p { color: var(--text-dimmest); font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-dimmer); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col a { display: block; padding: 0.3rem 0; color: var(--text-dimmest); font-size: 0.85rem; }
.footer-col a:hover { color: var(--text-default); }
.footer-bottom { border-top: 1px solid var(--outline-default); padding-top: 1.5rem; display: flex; justify-content: space-between; color: var(--text-disabled); font-size: 0.8rem; }

/* --- Dashboard --- */
.dashboard-layout { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
    width: 260px; background: var(--bg-default); border-right: 1px solid var(--outline-default);
    padding: 1.5rem 0.75rem; display: flex; flex-direction: column; flex-shrink: 0;
}
.sidebar-section { margin-bottom: 1.5rem; }
.sidebar-label { font-size: 0.7rem; font-weight: 600; color: var(--text-disabled); text-transform: uppercase; letter-spacing: 0.08em; padding: 0 0.75rem; margin-bottom: 0.5rem; }
.sidebar-item {
    display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md); color: var(--text-dimmer); font-size: 0.9rem;
    cursor: pointer; transition: all var(--transition-fast);
}
.sidebar-item:hover { background: var(--bg-higher); color: var(--text-default); }
.sidebar-item.active { background: var(--accent-primary-dimmer); color: var(--accent-primary); }
.sidebar-item .icon { width: 20px; text-align: center; flex-shrink: 0; }

.dashboard-main { flex: 1; padding: 2rem; overflow-y: auto; }

/* --- Project Grid --- */
.project-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.project-card {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-lg); padding: 1.25rem; cursor: pointer;
    transition: all var(--transition-normal);
}
.project-card:hover { border-color: var(--accent-primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.project-card .project-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.project-card .project-icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    background: var(--accent-primary-dimmer); display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem;
}
.project-card .project-name { font-weight: 600; font-size: 1rem; }
.project-card .project-lang { font-size: 0.8rem; color: var(--text-dimmest); }
.project-card .project-desc { color: var(--text-dimmest); font-size: 0.85rem; margin-bottom: 0.75rem; line-height: 1.5; }
.project-card .project-meta { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-disabled); }

.new-project-card {
    background: var(--bg-default); border: 2px dashed var(--outline-default);
    border-radius: var(--radius-lg); padding: 2rem; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; cursor: pointer; transition: all var(--transition-normal);
    min-height: 160px;
}
.new-project-card:hover { border-color: var(--accent-primary); background: var(--accent-primary-dimmer); }
.new-project-card .plus { font-size: 2rem; color: var(--text-dimmest); }
.new-project-card span { color: var(--text-dimmest); font-size: 0.9rem; }

/* --- Modal --- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-overlay); z-index: 1000; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-xl); padding: 2rem; width: 90%; max-width: 500px;
    box-shadow: var(--shadow-xl);
}
.modal h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.modal .form-group { margin-bottom: 1rem; }
.modal .form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-dimmer); margin-bottom: 0.35rem; }
.modal .form-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* --- Auth Pages --- */
.auth-container {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(ellipse at top, rgba(0,121,242,0.06) 0%, transparent 50%);
}
.auth-card {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-xl); padding: 2.5rem; width: 100%; max-width: 420px;
    box-shadow: var(--shadow-xl);
}
.auth-card .auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-card .auth-logo h1 { font-size: 1.5rem; margin-top: 0.5rem; }
.auth-card .auth-logo p { color: var(--text-dimmest); font-size: 0.9rem; }
.auth-card .form-group { margin-bottom: 1.15rem; }
.auth-card .form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-dimmer); margin-bottom: 0.35rem; }
.auth-card .btn { width: 100%; margin-top: 0.5rem; }
.auth-card .auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: var(--text-dimmest); }
.auth-card .error-msg { background: var(--accent-negative-dimmer); color: var(--accent-negative); padding: 0.65rem 1rem; border-radius: var(--radius-md); font-size: 0.85rem; margin-bottom: 1rem; display: none; }
.auth-card .divider { display: flex; align-items: center; margin: 1.5rem 0; color: var(--text-disabled); font-size: 0.8rem; }
.auth-card .divider::before, .auth-card .divider::after { content: ''; flex: 1; height: 1px; background: var(--outline-default); }
.auth-card .divider span { padding: 0 1rem; }

/* --- Settings --- */
.settings-layout { max-width: 700px; margin: 0 auto; padding: 2rem; }
.settings-layout h1 { font-size: 1.75rem; margin-bottom: 2rem; }
.settings-section { margin-bottom: 2.5rem; }
.settings-section h2 { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--outline-default); }
.settings-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.settings-row label { font-size: 0.9rem; color: var(--text-dimmer); }
.settings-row .input { max-width: 300px; }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-dimmest); margin-bottom: 1.5rem; }

/* --- Home overview (site summary) --- */
.home-wrap { overflow-x: hidden; }
.home-hero {
    text-align: center;
    padding: 4rem 1.5rem 3.5rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 121, 242, 0.22), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(49, 204, 121, 0.06), transparent),
        radial-gradient(ellipse 50% 40% at 0% 80%, rgba(0, 121, 242, 0.08), transparent);
    border-bottom: 1px solid var(--outline-default);
}
.home-hero .home-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-primary);
    background: var(--accent-primary-dimmer);
    border: 1px solid rgba(0, 121, 242, 0.35);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}
.home-hero h1 {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.home-hero .home-lead {
    font-size: 1.1rem;
    color: var(--text-dimmest);
    max-width: 720px;
    margin: 0 auto 1.75rem;
    line-height: 1.75;
}
.home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}
.home-section {
    padding: 3.5rem 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
}
.home-section h2 {
    font-size: 1.65rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}
.home-section .home-section-sub {
    text-align: center;
    color: var(--text-dimmest);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}
.home-bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.home-bento-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.35rem;
    background: var(--bg-default);
    border: 1px solid var(--outline-default);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.home-bento-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.home-bento-card .hb-icon {
    font-size: 1.75rem;
    line-height: 1;
}
.home-bento-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-default);
    margin: 0;
}
.home-bento-card p {
    font-size: 0.88rem;
    color: var(--text-dimmest);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.home-bento-card .hb-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
}
.home-bento-card.featured {
    grid-column: span 1;
    background: linear-gradient(145deg, var(--bg-default) 0%, var(--bg-higher) 100%);
    border-color: var(--outline-stronger);
}
@media (min-width: 900px) {
    .home-bento-card.featured-wide {
        grid-column: span 2;
    }
}
.home-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.home-pillar {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-default);
    border: 1px solid var(--outline-default);
}
.home-pillar .num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}
.home-pillar h3 { font-size: 1.05rem; margin-bottom: 0.5rem; font-weight: 700; }
.home-pillar p { font-size: 0.88rem; color: var(--text-dimmest); line-height: 1.55; margin: 0; }
.home-quick {
    padding: 3rem 1.5rem 4rem;
    background: var(--bg-default);
    border-top: 1px solid var(--outline-default);
}
.home-quick-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.home-quick h2 { font-size: 1.35rem; margin-bottom: 0.5rem; font-weight: 800; }
.home-quick .sub { color: var(--text-dimmest); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.25rem; }
    .hero .subtitle { font-size: 1rem; }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .sidebar { width: 60px; padding: 1rem 0.35rem; }
    .sidebar-label, .sidebar-item span { display: none; }
    .pricing-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-dimmest); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grow { flex: 1; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Loading spinner --- */
.spinner {
    width: 20px; height: 20px; border: 2px solid var(--outline-default);
    border-top-color: var(--accent-primary); border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Toast notifications --- */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 10000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
    background: var(--bg-default); border: 1px solid var(--outline-default);
    border-radius: var(--radius-md); padding: 0.75rem 1.25rem;
    box-shadow: var(--shadow-lg); font-size: 0.9rem; min-width: 280px;
    animation: slideInRight 0.3s ease; display: flex; align-items: center; gap: 0.5rem;
}
.toast.success { border-left: 3px solid var(--accent-positive); }
.toast.error { border-left: 3px solid var(--accent-negative); }
.toast.info { border-left: 3px solid var(--accent-primary); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
