:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --bg-dark: #000000;
    --bg-secondary: #2c2f33;
    --bg-light: #f8f9fa;
    --text-light: #f8f9fa;
    --text-dark: #000000;
    --text-muted: #666666;
    --code-bg: #000000;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    font-family: 'Courier New', monospace;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
header.navbar {
    background: rgba(44, 47, 51, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

header.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    text-decoration: none;
    color: #fff !important;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-nav .nav-link {
    color: #999 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30px;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* GitHub button in header */
header .btn-outline-light {
    border-color: #555;
    color: #ccc;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

header .btn-outline-light:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-secondary);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid #444;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #444;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    header .btn-outline-light {
        margin-top: 1rem;
        width: 100%;
    }
}

.hero-section {
    background: linear-gradient(to bottom right, #2a2a2e, #2c2f33);
    color: var(--text-light);
    padding-top: 1rem;;
    padding-bottom: 4rem;
    margin-bottom: 4rem;
}

.spy-logo {
    max-width: 120px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.install-command {
    background: var(--code-bg);
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.install-command:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(102, 102, 102, 0.1);
}

.install-command code {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--code-bg);
}

.install-command code::-webkit-scrollbar {
    height: 6px;
}

.install-command code::-webkit-scrollbar-track {
    background: var(--code-bg);
}

.install-command code::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.install-command code::-webkit-scrollbar-thumb:hover {
    background: #808080;
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.about-section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--card-shadow);
}

.terminal-window {
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
}

.terminal-header {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.terminal-dot:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dot:nth-child(3) {
    background: #27c93f;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

.terminal-command {
    color: #fff;
    margin-bottom: 0.5rem;
}

.terminal-comment {
    color: #ccc;
    font-style: italic;
}

.terminal-output {
    color: #27c93f;
}

.terminal-prompt {
    color: #666;
    user-select: none;
}

.section-title {
    color: var(--primary-color);
}

.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.25rem;
}

.kit-card {
    background: linear-gradient(to bottom, #ffffff, #fafafa);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding:1.5rem;
}

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

.kit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: #ffffff;
}

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

.kit-card.expanded {
    background: #ffffff;
}

.kit-card-expanded {
    border-color: #22c55e !important;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.1), 0 2px 4px rgba(34, 197, 94, 0.06) !important;
}

.kit-card-expanded::before {
    background: linear-gradient(90deg, #22c55e, #16a34a) !important;
    transform: scaleX(1) !important;
}

.readme-expansion {
    display: none;
    grid-column: 1 / -1;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.readme-expansion.show {
    display: block;
}

.readme-expansion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.readme-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.readme-close-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.kit-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.kit-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kit-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.kit-actions button,
.kit-actions a {
    flex: 1;
    background: white;
    border: 2px solid transparent;
    color: #374151;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.kit-actions button::before,
.kit-actions a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.kit-actions button:hover,
.kit-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.kit-actions button:hover::before,
.kit-actions a:hover::before {
    opacity: 1;
}

.kit-actions button {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-color: #e5e7eb;
    color: #111827;
}

.kit-actions button:hover {
    border-color: #d1d5db;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.repo-btn {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.repo-btn:hover {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
}

.readme-content {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 1rem;
    font-size: .75rem;
}

.readme-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem 0;
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: none;
}

.readme-content h4 {
    font-size: 1.2rem;
    margin: 1.2rem 0 0.5rem 0;
    color: var(--secondary-color);
    font-weight: 600;
    border-bottom: none;
}

.readme-content h5 {
    font-size: 1rem;
    margin: 1rem 0 0.6rem 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.readme-content h6 {
    font-size: 0.9rem;
    margin: 0.8rem 0 0.5rem 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.readme-content .header-divider {
    border: none;
    height: 1px;
    background-color: #e1e4e8;
    margin: 0.5rem 0 1rem 0;
}

.readme-content hr {
    border: none;
    height: 1px;
    background-color: #e1e4e8;
    margin: 1.5rem 0;
}

.readme-content blockquote {
    border-left: 4px solid #dfe2e5;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background-color: #f6f8fa;
    color: #6a737d;
}

.readme-content ol {
    padding-left: 2rem;
    margin: 0.8rem 0;
}

.readme-content ol li {
    margin: 0.4rem 0;
}

.readme-content p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.readme-content ul {
    margin: 0.8rem 0;
    padding-left: 2rem;
}

.readme-content li {
    margin: 0.4rem 0;
}

.readme-content .inline-code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: #e83e8c;
}

.readme-content .code-block {
    background: #f8f8f8;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.readme-content .code-block code {
    background: none;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.readme-content a {
    color: #0066cc;
    text-decoration: none;
}

.readme-content a:hover {
    text-decoration: underline;
}

.kit-info {
    flex: 1;
}

.kit-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.type-agent {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #0d47a1;
    box-shadow: 0 2px 4px rgba(13, 71, 161, 0.1);
}

.type-command {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #4a148c;
    box-shadow: 0 2px 4px rgba(74, 20, 140, 0.1);
}

.kit-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.kit-count {
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    color: var(--text-muted);
    white-space: nowrap;
}

.kit-description {
    font-size: 0.9375rem;
    color: #4b5563;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kit-command {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.kit-command:hover {
    background: linear-gradient(to right, #f3f4f6, #e5e7eb);
    border-color: #d1d5db;
}

.kit-command code {
    background: none;
    color: #111827;
    font-size: 0.75rem;
    letter-spacing: -0.025em;
}

.kit-command .btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.kit-command .btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 0;
    margin-top: 6rem;
}

.github-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.github-link:hover {
    color: var(--accent-color);
}

.copy-feedback {
    position: absolute;
    top: -2rem;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .kit-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-section {
        padding: 2rem;
    }
    
    .kit-card-header {
        padding: 1.25rem 1.25rem 0 1.25rem;
    }
    
    .kit-card-body {
        padding: 0.5rem 1.25rem 1.25rem 1.25rem;
    }
    
    .kit-name {
        font-size: 1.25rem;
    }
    
    .kit-command {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .kit-command code {
        font-size: 0.875rem;
    }
    
    .kit-actions {
        flex-direction: column;
    }
}

.step-card {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.step-content p {
    font-size: .98em;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid #4a5568;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.code-block code {
    display: block;
    white-space: nowrap;
    color: #e2e8f0;
}

.code-examples {
    background: rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* FAQ Accordion */
.accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: #333;
}

.accordion-item {
    background: transparent;
    border: 1px solid #333;
    margin-bottom: 0;
    overflow: hidden;
}
.accordion-button.collapsed {
    color:#000000;
}

.accordion-button {
    background: var(--card-bg);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    padding: 1.25rem;
    font-weight: 500;
    position: relative;
}

.accordion-button:hover {
    background: #2a2a2a;
    color: #fff;
}

.accordion-button:not(.collapsed) {
    background: #2a2a2a;
    color: #fff;
    box-shadow: none;
    border-bottom: 1px solid #333;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23999'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
    outline: none;
}

.accordion-body {
    background: #1a1a1a;
    color: #e2e8f0;
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.accordion-body code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

/* Responsive adjustments for how-to section */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2f33 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
    border-top: 1px solid #333;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.footer-description {
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 280px;
}

.footer-heading {
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

/* Footer Stats */
.footer-stats {
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-copyright {
    color: #a0a0a0;
    font-size: 0.875rem;
    margin: 0;
}

.footer-copyright a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #fff;
}

.footer-badge {
    color: #a0a0a0;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .modern-footer {
        padding: 3rem 0 2rem 0;
        text-align: center;
    }
    
    .footer-description {
        max-width: none;
        margin: 0 auto 2rem;
    }
    
    .footer-links {
        margin-bottom: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-badge {
        justify-content: center;
        margin-top: 1rem;
    }
}