:root {
    --primary: #0A2540;
    --primary-light: #1a3d5c;
    --accent: #0066FF;
    --accent-light: #3385ff;
    --teal: #14B8A6;
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-section: #F1F5F9;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
    position: relative;
    padding: 80px 0 120px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 18px 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
}

.cta-button:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-note {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Why Build */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.benefit-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.benefit-card:hover::after {
    transform: scaleX(1);
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.benefit-card:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Tools Section */
.tools-section {
    background: var(--bg-white);
}

.tools-category {
    margin-bottom: 80px;
}

.tools-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.category-toggle {
    background: none;
    border: none;
    padding: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    transition: color 0.2s ease;
}

.category-toggle:hover {
    color: var(--accent);
}

.category-toggle:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.toggle-icon {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    color: var(--accent);
    margin-left: 12px;
}

.tools-category[data-collapsible] .tools-grid {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
    max-height: 1000px;
    opacity: 1;
}

.tools-category[data-collapsible].collapsed .tools-grid {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.tools-category[data-collapsible].collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.tool-card {
    background: white;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 102, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.tool-card:hover::before {
    left: 100%;
}

.tool-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.15);
}

.tool-card:active {
    transform: translateY(-2px) scale(1.01);
}

.tool-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Quick Wins */
.quick-wins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.quick-win-item {
    background: white;
    padding: 24px 28px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-win-item:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow-md);
}

.quick-win-task {
    font-weight: 500;
    color: var(--text-primary);
}

.quick-win-arrow {
    color: var(--text-light);
    font-size: 1.25rem;
    margin: 0 16px;
}

.quick-win-tool {
    font-weight: 600;
    color: var(--accent);
}

/* Deployment Guide Section */
.deployment-guide-section {
    background: var(--bg-section);
}

.deployment-guide-card {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

.deployment-guide-content {
    text-align: center;
}

.deployment-guide-content h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 600;
}

.deployment-guide-content > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.deployment-guide-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    max-width: 600px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.deployment-guide-features li {
    color: var(--text-secondary);
    padding: 8px 0;
    font-size: 1rem;
}

.deployment-guide-content .cta-button {
    margin-top: 8px;
}

@media (max-width: 768px) {
    .deployment-guide-card {
        padding: 32px 24px;
    }

    .deployment-guide-features {
        grid-template-columns: 1fr;
    }
}

/* Action Plan */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 32px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-day {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.timeline-item h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
}

.timeline-item li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.timeline-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
}

/* Pro Tips */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.tip-item {
    background: white;
    padding: 20px 24px;
    border-radius: 10px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border);
    text-align: center;
}

/* Recommendations */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.recommendation-card {
    background: white;
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommendation-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.recommendation-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}

.recommendation-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    color: var(--text-primary);
    text-align: center;
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.final-cta p {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.final-cta-subtitle {
    font-size: 1.125rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 40px !important;
}

.final-cta .cta-button {
    background: var(--primary);
    color: white;
    margin-top: 32px;
}

.final-cta .cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.cost-badge {
    margin-top: 60px;
    padding: 24px 32px;
    background: var(--primary);
    border-radius: 12px;
    display: inline-block;
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cost-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 8px;
    font-weight: 500;
}

.cost-amount {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

/* Footer */
.footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    font-size: 0;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top:focus {
    outline: 3px solid rgba(0, 102, 255, 0.3);
    outline-offset: 4px;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    transform: rotate(180deg);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 9999;
    pointer-events: none;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

/* Enhanced CTA Button */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:focus {
    outline: 3px solid rgba(0, 102, 255, 0.3);
    outline-offset: 4px;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Smooth Focus Transitions */
*:focus {
    transition: outline 0.2s ease;
}

/* Enhanced Quick Win Items */
.quick-win-item {
    position: relative;
}

.quick-win-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--teal);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.quick-win-item:hover::before {
    transform: scaleY(1);
}

.quick-win-item:focus {
    outline: 2px solid var(--teal);
    outline-offset: -2px;
}

/* Recommendation Cards Enhancement */
.recommendation-card {
    position: relative;
}

.recommendation-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommendation-card:hover::before {
    opacity: 1;
}

.recommendation-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Responsive */
/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    
    .tool-card {
        padding: 20px;
        min-height: 300px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .quick-wins-grid {
        grid-template-columns: 1fr;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
    
    .category-toggle {
        font-size: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .section {
        padding: 80px 0;
    }
    
    .tool-card {
        padding: 16px;
        gap: 12px;
    }
    
    .tool-card-name {
        font-size: 1rem;
    }
    
    .tool-card-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .tool-badge,
    .learning-time-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .tools-category {
        margin-bottom: 60px;
    }
}

/* ===== NEW FEATURES STYLING ===== */

/* Search and Filter Container */
.search-filter-container {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.tool-search {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.tool-search.searching {
    border-color: var(--accent);
    background: rgba(0, 102, 255, 0.02);
}

.tool-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.tool-search::placeholder {
    color: var(--text-light);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    background: var(--text-light);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear:hover {
    opacity: 1;
    background: var(--text-secondary);
}

.search-clear:active {
    transform: translateY(-50%) scale(0.9);
}

.filter-controls {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:hover {
    border-color: var(--text-light);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.clear-filters-btn {
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clear-filters-btn:hover {
    background: var(--bg-light);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.results-info {
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Enhanced Tool Cards */
.tool-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 16px;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.tool-card-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    margin: 0;
}

.tool-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 4px;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-difficulty {
    background: var(--bg-section);
    color: var(--text-secondary);
}

.badge-difficulty.beginner {
    background: #DEF7EC;
    color: #03543F;
}

.badge-difficulty.intermediate {
    background: #FEF3C7;
    color: #92400E;
}

.badge-difficulty.advanced {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-free {
    background: #D1FAE5;
    color: #065F46;
}

.badge-paid {
    background: #E0E7FF;
    color: #3730A3;
}

.tool-card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin: 8px 0;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.tool-card-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-card-price-note {
    font-size: 0.75rem;
    color: var(--text-light);
}

.tool-card-actions {
    display: flex;
    gap: 8px;
}

.tool-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-light);
    color: var(--text-primary);
}

.tool-action-btn:hover {
    background: var(--bg-section);
    transform: translateY(-1px);
}

.tool-action-btn.primary {
    background: var(--accent);
    color: white;
}

.tool-action-btn.primary:hover {
    background: var(--accent-light);
}

.compare-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.2s ease;
}

.compare-checkbox:checked {
    animation: checkboxPop 0.3s ease;
}

@keyframes checkboxPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.tool-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tool-tag {
    padding: 3px 8px;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px;
}

.faq-answer p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal:not([hidden]) {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal:not([hidden]) .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 24px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: var(--bg-section);
    color: var(--text-primary);
}

#modal-body h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: var(--primary);
}

#modal-body .modal-section {
    margin-bottom: 24px;
}

#modal-body .modal-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#modal-body .modal-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

#modal-body .modal-features li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-secondary);
}

#modal-body .modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.modal-btn.primary {
    background: var(--accent);
    color: white;
}

.modal-btn.primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.modal-btn.secondary {
    background: var(--bg-light);
    color: var(--text-primary);
}

.modal-btn.secondary:hover {
    background: var(--bg-section);
}

/* Comparison Tray */
.comparison-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 3px solid var(--accent);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 16px;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.comparison-tray:not([hidden]) {
    transform: translateY(0);
}

.comparison-tray-content {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comparison-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--primary);
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.clear-btn:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.comparison-items {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.comparison-item {
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.comparison-item button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.comparison-item button:hover {
    color: var(--text-primary);
}

.compare-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.compare-button:hover:not(:disabled) {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.compare-button:disabled {
    background: var(--bg-section);
    color: var(--text-light);
    cursor: not-allowed;
}

/* Comparison Modal */
.comparison-modal-content {
    max-width: 1000px;
    padding: 40px;
}

#comparison-title {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--primary);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
    position: sticky;
    top: 0;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 150px;
}

.comparison-table .tool-name-cell {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .clear-filters-btn {
        width: 100%;
    }
    
    .search-filter-container {
        padding: 16px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-card-name {
        font-size: 1.05rem;
    }
    
    .tool-card-badges {
        gap: 6px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 24px;
        margin: 20px;
    }
    
    .comparison-modal-content {
        padding: 24px;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 8px;
    }
    
    .comparison-table td:first-child {
        width: 100px;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 16px;
    }
    
    .faq-answer {
        padding: 0 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-section);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Skeleton Loading */
.tool-card.skeleton {
    pointer-events: none;
    cursor: default;
}

.tool-card.skeleton:hover {
    transform: none;
    border-color: var(--border);
}

.skeleton-header,
.skeleton-text,
.skeleton-badge,
.skeleton-footer {
    background: linear-gradient(90deg, var(--bg-section) 25%, var(--bg-light) 50%, var(--bg-section) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-header {
    height: 24px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.skeleton-badge {
    height: 24px;
    width: 80px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.short {
    width: 70%;
}

.skeleton-footer {
    height: 20px;
    width: 50%;
    margin-top: auto;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* Empty Filter State */
.empty-filter-state {
    margin: 40px 0;
}

/* Error Message */
.error-message {
    margin: 40px 0;
}

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

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state-description {
    font-size: 0.95rem;
}

/* Accessibility improvements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print styles */
@media print {
    .back-to-top,
    .scroll-progress,
    .comparison-tray,
    .modal {
        display: none !important;
    }
}

/* ===== PHASE 1, 2, 3 ENHANCEMENTS ===== */

/* Tool Finder Section */
.tool-finder-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    padding: 60px 0;
}

.tool-finder-card {
    background: white;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
}

.tool-finder-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.tool-finder-card p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Favorites Button */
.section-header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.view-favorites-btn {
    padding: 12px 24px;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-favorites-btn:hover {
    background: var(--bg-light);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Favorite Heart Icon on Cards */
.favorite-heart {
    position: absolute;
    top: 16px;
    right: 48px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    z-index: 2;
    -webkit-user-select: none;
    user-select: none;
}

.favorite-heart:hover {
    transform: scale(1.2);
}

.favorite-heart:active {
    transform: scale(1.3);
}

.favorite-heart.is-favorite {
    color: #ef4444;
}

.favorite-heart:not(.is-favorite) {
    color: #d1d5db;
}

.favorite-heart.animating {
    animation: heartPulse 0.4s ease;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Learning Time Badge */
.learning-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #EFF6FF;
    color: #1E40AF;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

/* Success Stories Section */
.success-stories-section {
    background: var(--bg-light);
}

.success-stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.success-story-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.success-story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.success-story-tool {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 12px;
}

.success-story-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.success-story-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.success-story-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.success-story-link:hover {
    text-decoration: underline;
}

/* Wizard Modal */
.wizard-modal .modal-content {
    max-width: 700px;
}

.wizard-content {
    padding: 40px;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.wizard-progress-bar {
    position: absolute;
    top: 12px;
    left: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    z-index: 1;
}

.wizard-progress-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.wizard-progress-step.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.wizard-progress-step.completed {
    border-color: var(--teal);
    background: var(--teal);
    color: white;
}

.wizard-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.wizard-options {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}

.wizard-option {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.wizard-option:hover {
    border-color: var(--accent);
    background: var(--bg-light);
    transform: translateX(4px);
}

.wizard-option:focus {
    outline: 3px solid rgba(0, 102, 255, 0.3);
    outline-offset: 2px;
}

.wizard-option.selected {
    border-color: var(--accent);
    background: rgba(0, 102, 255, 0.05);
}

.wizard-option-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.wizard-option-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.wizard-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
}

.wizard-btn-back {
    background: var(--bg-light);
    color: var(--text-primary);
}

.wizard-btn-next {
    background: var(--accent);
    color: white;
    flex: 1;
}

.wizard-btn-next:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.wizard-btn-back:hover {
    background: var(--bg-section);
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Wizard Results */
.wizard-results {
    text-align: center;
}

.wizard-results h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.wizard-results p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.wizard-recommendations {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.wizard-recommendation {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.wizard-recommendation:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.wizard-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wizard-recommendation-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
}

.wizard-recommendation-match {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--teal);
}

.wizard-recommendation-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Video Tutorial Embed */
.video-tutorial-container {
    margin-top: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.video-tutorial-container iframe {
    width: 100%;
    height: 315px;
    border: none;
}

/* Integration Tags */
.integration-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.integration-tag {
    padding: 4px 10px;
    background: var(--bg-section);
    color: var(--text-secondary);
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 500;
    border: 1px solid var(--border);
}

.integration-tag:hover {
    background: var(--bg-light);
    border-color: var(--text-light);
}

/* Similar Tools */
.similar-tools-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.similar-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.similar-tool-card {
    padding: 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.similar-tool-card:hover {
    background: var(--bg-white);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.similar-tool-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

/* Onboarding Overlay */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.onboarding-overlay:not([hidden]) {
    display: flex;
}

.onboarding-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: -1;
}

.onboarding-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.onboarding-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 20px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.onboarding-close:hover {
    background: var(--bg-section);
    color: var(--text-primary);
}

.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.onboarding-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.onboarding-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.onboarding-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.onboarding-checklist li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-primary);
    font-size: 1rem;
}

.onboarding-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: var(--teal);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.onboarding-actions {
    display: flex;
    gap: 12px;
}

.onboarding-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 1rem;
}

.onboarding-btn-primary {
    background: var(--accent);
    color: white;
    flex: 1;
}

.onboarding-btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.onboarding-btn-skip {
    background: transparent;
    color: var(--text-secondary);
    padding: 14px 20px;
}

.onboarding-btn-skip:hover {
    color: var(--text-primary);
}

.onboarding-progress {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    justify-content: center;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all 0.2s ease;
}

.onboarding-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
}

/* Pricing Modal */
.pricing-modal-content {
    max-width: 900px;
    padding: 40px;
}

.pricing-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.pricing-filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    background: var(--bg-white);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pricing-filter-btn:hover:not(.active) {
    border-color: var(--accent);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.pricing-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pricing-card-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
}

.pricing-card-free-badge {
    padding: 4px 8px;
    background: #D1FAE5;
    color: #065F46;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.pricing-card-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.pricing-card-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.pricing-card-cta {
    width: 100%;
    padding: 10px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-card-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

/* Cost Calculator */
.cost-calculator {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.cost-calculator h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.calculator-tools {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.calculator-tool-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.calculator-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.25rem;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .tool-finder-card {
        padding: 32px 24px;
    }
    
    .tool-finder-card h2 {
        font-size: 1.5rem;
    }
    
    .section-header-with-actions {
        flex-direction: column;
    }
    
    .view-favorites-btn {
        width: 100%;
        text-align: center;
    }
    
    .success-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .wizard-content {
        padding: 24px;
    }
    
    .wizard-question {
        font-size: 1.25rem;
    }
    
    .onboarding-card {
        padding: 24px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RECOMMEND TOOL FEATURE ===== */

/* Footer CTA Button */
.footer-cta-btn {
    margin-top: 24px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    font-family: inherit;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 102, 255, 0.4);
}

.footer-cta-btn:active {
    transform: translateY(0);
}

.footer-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Recommend Modal Specific Styles */
.recommend-modal-content {
    max-width: 800px;
    max-height: 90vh;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 400px;
    background: var(--bg-white);
    position: relative;
    z-index: 1;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.recommend-modal-header {
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(0, 178, 169, 0.05));
    border-bottom: 1px solid var(--border);
}

.recommend-modal-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.75rem;
    color: var(--primary);
}

.recommend-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.recommend-form-container {
    padding: 0;
    overflow-y: auto;
    max-height: calc(90vh - 220px);
    flex: 1;
    display: block;
    visibility: visible;
    min-height: 300px;
}

.airtable-embed {
    display: block;
    border: none;
    min-height: 600px;
    background: transparent;
}

.recommend-note {
    padding: 16px 32px;
    background: var(--bg-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.recommend-note svg {
    flex-shrink: 0;
    color: var(--teal);
}

.recommend-note-icon {
    vertical-align: middle;
    margin-right: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .recommend-modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .recommend-modal-header {
        padding: 24px 20px 16px;
    }
    
    .recommend-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .recommend-form-container {
        max-height: calc(90vh - 200px);
    }
    
    .recommend-note {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
    
    .footer-cta-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Animation for modal */
.recommend-modal:not([hidden]) .recommend-modal-content {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Recommend Tool Form Styles */
.recommend-form {
    padding: 24px 32px;
    display: block;
    visibility: visible;
}

/* Ensure form is visible when modal is open */
.recommend-modal:not([hidden]) .recommend-form-container,
.recommend-modal:not([hidden]) .recommend-form {
    display: block !important;
    visibility: visible !important;
}

/* Ensure modal content is visible */
.recommend-modal:not([hidden]) .recommend-modal-content {
    display: flex !important;
    visibility: visible !important;
    transform: scale(1) !important;
    opacity: 1 !important;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.3);
}

.form-submit-btn:active {
    transform: translateY(0);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.form-message.success {
    color: var(--teal);
}

.form-message-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.form-message-content h3 {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.form-message-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .recommend-form {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    .form-submit-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* ===== COST CALCULATOR ===== */

.cost-calculator-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 3px solid var(--teal);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 50vh;
    overflow-y: auto;
}

.cost-calculator-tray:not([hidden]) {
    transform: translateY(0);
}

.cost-calculator-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cost-calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cost-calculator-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary);
}

.calculator-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.calculator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.calculator-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.calculator-item-name {
    font-weight: 600;
    color: var(--primary);
}

.calculator-item-tier {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calculator-item-price {
    font-weight: 600;
    color: var(--accent);
    margin-right: 12px;
}

.calculator-item button {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.calculator-item button:hover {
    color: var(--text-primary);
}

.calculator-summary {
    border-top: 2px solid var(--border);
    padding-top: 16px;
}

.calculator-totals {
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
}

.calculator-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.calculator-total-row.annual {
    font-size: 1rem;
    opacity: 0.9;
}

.calculator-total-row:last-child {
    margin-bottom: 0;
}

.calculator-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.calculator-savings {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.add-to-calculator-btn {
    position: absolute;
    top: 16px;
    right: 80px;
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    background: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-to-calculator-btn:hover {
    border-color: var(--teal);
    background: var(--bg-light);
    transform: scale(1.1);
}

.add-to-calculator-btn.in-calculator {
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

.calculator-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

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

/* ===== TECH STACK TEMPLATES ===== */

.tech-stacks-section {
    background: var(--bg-light);
}

.tech-stacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.tech-stack-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tech-stack-card:hover::before {
    transform: scaleX(1);
}

.tech-stack-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.tech-stack-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tech-stack-icon {
    font-size: 2rem;
}

.tech-stack-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.tech-stack-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tech-stack-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tech-stack-tool-badge {
    padding: 6px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s ease;
}

.tech-stack-tool-badge:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.tech-stack-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tech-stack-cost {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
}

.tech-stack-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-stack-difficulty {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-stack-why {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.tech-stack-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.tech-stack-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-family: inherit;
}

.tech-stack-btn.primary {
    background: var(--accent);
    color: white;
}

.tech-stack-btn.primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.tech-stack-btn.secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.tech-stack-btn.secondary:hover {
    background: var(--bg-section);
}

/* ===== COMPARISON HISTORY ===== */

.comparison-history-section {
    margin-bottom: 16px;
    position: relative;
}

.show-history-btn {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.show-history-btn:hover {
    background: var(--bg-section);
    border-color: var(--accent);
}

.comparison-history-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10;
}

.comparison-history-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.comparison-history-item:last-child {
    border-bottom: none;
}

.comparison-history-item:hover {
    background: var(--bg-light);
}

.comparison-history-tools {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.comparison-history-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comparison-history-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Toast Notifications */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Responsive Updates */
@media (max-width: 768px) {
    .cost-calculator-tray {
        padding: 16px;
    }
    
    .calculator-items {
        max-height: 150px;
    }
    
    .calculator-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .calculator-item-price {
        margin-right: 0;
    }
    
    .add-to-calculator-btn {
        right: 52px;
    }
    
    .tech-stacks-grid {
        grid-template-columns: 1fr;
    }
}

