:root {
    /* Colors */
    --bg-body: #0b0e14;
    --bg-card: #151921;
    --bg-card-hover: #1e2330;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --accent: #8b5cf6;
    --border-color: #2d3748;
    --border-hover: #4b5563;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 70px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/*
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}
*/

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.grid {
    display: grid;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 14, 20, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    padding-bottom: 0;
    /* Fix for hover gap */
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.2s;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    margin-top: 10px;
    /* offset from nav item */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Bridge to prevent closing when moving mouse from link to menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-main);
    transform: translateX(4px);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-muted);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--text-muted);
    color: var(--text-main);
}

/* Hero Section */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 50%);
}

.hero-badge {
    display: inline-block;
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.hero-badge::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.6) 50%, transparent 100%);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Search Box */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 50px;
    /* Space for button */
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.1rem;
    transition: all 0.2s;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--primary);
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
    border-color: var(--primary);
    color: var(--text-main);
    background: rgba(59, 130, 246, 0.1);
}

/* Tool Card */
main .section-header h2 {
    font-size: 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    padding: 15px 0 20px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background: var(--bg-card-hover);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tool-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.tool-category {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.license-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.license-badge.free {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.2);
}

.tool-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-stats {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.visit-btn {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.visit-btn:hover {
    color: var(--primary);
}


/* Bookmark Button */
.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
    border-radius: 50%;
}

.bookmark-btn:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    transform: scale(1.1);
}

.bookmark-btn.active {
    color: #fbbf24;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
    background: var(--bg-card);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--text-main);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-suggestions.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.suggestion-item {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.suggestion-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-name {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: left;
}

.suggestion-category {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: left;
}

.suggestion-arrow {
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.suggestion-item:hover .suggestion-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
    font-size: 1.25rem;
    margin-bottom: 4px;
}



/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    /* Hamburger Menu */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--text-main);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Mobile Nav Drawer */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-card);
        flex-direction: column;
        padding: 80px 20px 20px;
        gap: 20px;
        transition: left 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 10px 15px;
        border-radius: var(--radius-sm);
        display: block;
        width: 100%;
        transition: all 0.2s;
    }

    .nav-link:hover {
        color: var(--primary);
        transform: translateX(5px);
    }

    /* Mobile Dropdown */
    .dropdown {
        width: 100%;
        display: block;
    }

    .dropdown-menu,
    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 20px;
        margin-top: 0 !important;
        display: none;
        min-width: 100% !important;
    }

    .dropdown.active .dropdown-menu {
        display: block !important;
        animation: slideDown 0.3s ease-out;
    }

    .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hamburger Animation when active */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        opacity: 1;
        /*visibility: visible;*/
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 40px;
    }

    /* Tools Page Mobile Adjustments */
    .page-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .controls {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .search-container {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sort-select {
        width: 100%;
        min-width: 100%;
    }

    .sidebar {
        display: none;
        /* Hidden by default, toggled via JS */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-body);
        /* Ensure solid background */
        padding: 10px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        color: var(--text-main);
        margin: 20px 0px;
        cursor: pointer;
        width: 100%;
        justify-content: center;
        font-weight: 500;
    }

    .close-sidebar-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .content-section h2 {

        margin: 25px 0px;
    }
}

@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }

    .mobile-filter-toggle {
        display: none;
    }

    .close-sidebar-btn {
        display: none;
    }
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background-color: #f0f0f0;
}

.scroll-to-top-btn svg {
    margin: 0;
    font-size: 1.25rem;
    color: black;
}

.close-shortcuts {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-shortcuts:hover {
    color: var(--text-main);
}

.shortcuts-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .shortcuts-body {
        grid-template-columns: 1fr;
    }
}

.shortcut-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 12px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.shortcut-row .key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-right: 8px;
    box-shadow: 0 2px 0 var(--border-color);
}

.shortcuts-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.shortcuts-footer .key {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    box-shadow: 0 1px 0 var(--border-color);
}

/* Keyboard Focus Styles */
.tool-card.keyboard-focused {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}


.suggestion-item.selected {
    background-color: rgba(59, 130, 246, 0.1);
}

.suggestion-item.selected .suggestion-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Use Case Section */
.use-cases-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, var(--bg-body), var(--bg-card) 50%, var(--bg-body));
    overflow: hidden;
}

.use-cases-section .section-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
}

.use-cases-section h2 {
    font-size: 2rem;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.use-case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.use-case-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.use-case-icon {
    color: var(--primary);
    margin-bottom: 8px;
}

.use-case-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.use-case-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
}

.modal-tools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-tool-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    text-decoration: none;
}

.modal-tool-item:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.modal-tool-info h4 {
    color: var(--text-main);
    margin-bottom: 4px;
    font-size: 1rem;
}

.modal-tool-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.modal-tool-arrow {
    margin-left: auto;
    color: var(--text-muted);
}

/* Keyboard Shortcuts Modal */
.shortcuts-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.shortcuts-modal.active {
    opacity: 1;
    visibility: visible;
}

.shortcuts-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.shortcuts-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shortcuts-header h2 {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shortcuts-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .shortcuts-body {
        grid-template-columns: 1fr;
    }
}

.shortcut-group h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 12px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.shortcut-row .key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-right: 8px;
    box-shadow: 0 2px 0 var(--border-color);
}

.shortcuts-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.shortcuts-footer .key {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    box-shadow: 0 1px 0 var(--border-color);
}

/* Category Showcase */
.category-showcase-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--bg-body), var(--bg-card) 50%, var(--bg-body));
}

.category-showcase-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.2);
    background: var(--bg-card-hover);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.category-info {
    display: flex;
    flex-direction: column;
}

.category-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.category-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Compare Section */
.compare-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, var(--bg-body), var(--bg-card) 50%, var(--bg-body));
    position: relative;
    overflow: hidden;
}

.compare-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 15px auto;
    position: relative;
    z-index: 1;
}

.compare-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    background-clip: text;

}

.compare-section .tagline {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.compare-advantages {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.compare-advantages li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
    background: var(--bg-card);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.compare-advantages li:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.compare-advantages li svg {
    color: var(--primary);
}

@media (max-width: 768px) {
    .compare-advantages {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .compare-advantages li {
        width: 100%;
        justify-content: center;
    }
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 120px 20px;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-oops {
    font-size: 15vw;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 25%, #db2777 50%, #2563eb 75%, #1e1b4b 100%);
    background-size: 300% 300%;
    animation: gradientBG 15s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    position: relative;
    z-index: 1;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.error-code {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.error-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 480px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Adjust button shadow for error page */
.error-page .btn-primary {
    padding: 12px 32px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 50px;
}

@media (min-width: 1200px) {
    .error-oops {
        font-size: 16rem;
    }
}

/* Contact CTA Banner */
.contact-cta {
    padding: 80px 0;

    text-align: center;
}

.contact-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-cta p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0;
}

.contact-cta .cta-btn {
    margin-top: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
}

.contact-cta .cta-btn:hover {
    transform: translateY(-2px);
    background-color: #2563eb;
}

/* FAQs Page */
.faq-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease, height 0.3s ease;
    /* Added height transition */
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item[open] {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.faq-item summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    outline: none;
    /* Remove focus outline */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 400;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
    /* Rotate for animation */
}

.faq-answer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter border */
    color: var(--text-main);
    line-height: 1.7;
    /* Removed animation: fadeIn because we're doing height animation */
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.error-code {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.error-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 480px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Adjust button shadow for error page */
.error-page .btn-primary {
    padding: 12px 32px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 50px;
}

@media (min-width: 1200px) {
    .error-oops {
        font-size: 16rem;
    }
}

/* Contact CTA Banner */
.contact-cta {
    padding: 80px 0;
    text-align: center;
}

.contact-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-cta p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin: 0;
}

.contact-cta .cta-btn {
    margin-top: 10px;
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
    display: inline-block;
}

.contact-cta .cta-btn:hover {
    transform: translateY(-2px);
    background-color: #2563eb;
}

/* FAQs Page */
.faq-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.faq-container h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-intro {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-section {
    margin-bottom: 3rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease, height 0.3s ease;
    /* Added height transition */
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item[open] {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.faq-item summary {
    padding: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    outline: none;
    /* Remove focus outline */
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 400;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
    /* Rotate for animation */
}

.faq-answer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Lighter border */
    color: var(--text-main);
    line-height: 1.7;
    /* Removed animation: fadeIn because we're doing height animation */
}

.faq-item[open] .faq-answer {
    border-top-color: rgba(59, 130, 246, 0.2);
}

/* Feature Showcase Section */
.feature-showcase {

    background: var(--bg-body);
}

.showcase-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.showcase-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;

}

.showcase-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.6;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    height: 600px;
}

/* Accordion Styles */
.showcase-accordion {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.6;
    position: relative;
    padding-left: 16px;
}

.accordion-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.accordion-item:hover {
    opacity: 0.85;
}

.accordion-item.active {
    opacity: 1;
    border-bottom-color: transparent;
}

.accordion-item.active:before {
    height: 60%;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    padding: 24px 0;
    gap: 16px;
}

.accordion-header h3 {
    font-size: 1.15rem;
    font-weight: 500;
    flex-grow: 1;
    margin: 0;
    color: var(--text-main);
    transition: color 0.3s;
}

.accordion-item.active .accordion-header h3 {
    color: var(--text-main);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.accordion-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateX(-10px);
}

.accordion-item:hover .accordion-arrow,
.accordion-item.active .accordion-arrow {
    opacity: 1;
    transform: translateX(0);
}

.accordion-item.active .accordion-arrow {
    transform: rotate(90deg);
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.accordion-item.active .accordion-body {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 24px;
}

.accordion-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    padding-left: 4px;
    /* Align with flow */
    line-height: 1.6;
}

.accordion-cta {
    display: inline-block;
    margin-top: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

.accordion-item.active .accordion-cta {
    opacity: 1;
    transform: translateY(0);
}

.accordion-cta:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

/* Visual/Image Section - 3D Effect */
.showcase-visual {
    height: 100%;
    position: relative;
    perspective: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-visual:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform-style: preserve-3d;
}

#showcase-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 12px;

    /* 3D Transform Stance */
    transform:
        rotateX(2deg) rotateY(-2deg) rotateZ(0deg) translateZ(0px);

    /* Box Shadow - Depth */
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 1px 1px 0 rgba(255, 255, 255, 0.1);

    transition:
        transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.5s ease,
        opacity 0.3s ease;

    will-change: transform;
}

/* Hover Interaction */
.showcase-visual:hover #showcase-img {
    transform:
        rotateX(4deg) rotateY(-4deg) scale(1.02) translateZ(20px);

    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 1px 1px 0 rgba(255, 255, 255, 0.2);
}

#showcase-img.fade-out {
    opacity: 0;
    transform: scale(0.95) rotateX(0deg) rotateY(0deg);
}

/* Icons styling tweak */
.accordion-header i {
    font-style: normal;
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.accordion-item.active .accordion-header i {
    color: var(--primary);
    transform: scale(1.1);
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Responsive adjustment */
@media (max-width: 900px) {
    .showcase-content {
        grid-template-columns: 1fr;
        height: auto;
        padding: 24px;
        gap: 30px;
        display: flex;
        flex-direction: column-reverse;
        /* Image on top? User said "keep it visible and functional as desktop". Top is better for mobile usually, or bottom? On desktop it's on right. Let's put it on top (column-reverse if grid? or just order). actually flex column-reverse puts bottom element (image) on top. */
    }

    .showcase-visual {
        display: block;
        /* Show it! */
        height: 250px;
        /* Reduced height for mobile */
        width: 100%;
        margin-bottom: 20px;
    }

    .accordion-item {
        opacity: 1;
    }
}