/* Main Stylesheet for NetConverter AI */


:root {
    /* Linear/Vercel Design System - Enhanced Dark Mode */
    --bg-base: #050505;
    /* Deeper black */
    --bg-mesh: radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
    --spotlight-color: rgba(255, 255, 255, 0.1);
    --bg-surface: rgba(20, 20, 21, 0.6);
    --bg-elevated: rgba(30, 30, 32, 0.8);
    --bg-hover: rgba(40, 40, 42, 0.8);

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --text: #ececec;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.5);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    --radius: 12px;
    --glass-blur: blur(12px);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    background-image: var(--bg-mesh);
    background-attachment: fixed;
    color: var(--text);
    background-size: 200% 200%;
    animation: bg-pulse 15s ease-in-out infinite alternate;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

@keyframes bg-pulse {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Spotlight Effect Utilities */
.spotlight-group {
    position: relative;
    /* Container for cards */
}

.spotlight-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.spotlight-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.spotlight-group:hover .spotlight-card::after {
    opacity: 1;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
}

.glass-header {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    font-family: inherit;
    transition: var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-links a:hover {
    color: var(--text);
}

.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    color: var(--text);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-weight: 500;
}

.auth-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.auth-button.primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-button.primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Hero Carousel */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carousel-container {
    padding: 40px 0;
    perspective: 1000px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
    min-width: 100%;
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.carousel-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

.carousel-content h2 span {
    color: var(--accent);
}

.carousel-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.carousel-features {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 32px;
    list-style: none;
    background: transparent;
    padding: 24px;
    border-radius: var(--radius);
    border: none;
}

.carousel-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.carousel-features li:last-child {
    margin-bottom: 0;
}

.carousel-features li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

.carousel-image-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    max-width: 1000px;
    width: 100%;
    position: relative;
}

.carousel-image {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-navigation {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    align-items: center;
}

.carousel-arrow {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: var(--bg-hover);
    border-color: var(--text);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: var(--bg-hover);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.carousel-dot.active {
    width: 32px;
    background: var(--accent);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(10px);
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 8px;
    display: block;
}

/* Cards & Grid */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
}

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

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


.card {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    /* Hidden by default */
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0.5;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 0 30px -5px rgba(59, 130, 246, 0.15);
    /* Soft blue glow */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}


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

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

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.cta-button.secondary:hover {
    border-color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.cta-primary {
    background: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--text);
    padding: 14px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

/* Feature Matrix Tabs & Tables */
.matrix-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.matrix-tab {
    padding: 12px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.matrix-tab:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.matrix-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.matrix-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.matrix-content.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-matrix-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.feature-matrix-table th {
    background: transparent;
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
    color: var(--text);
    font-weight: 600;
}

.feature-matrix-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.feature-matrix-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.support-full {
    color: var(--success);
    font-weight: 600;
}

.support-partial {
    color: var(--warning);
    font-weight: 600;
}

.support-none {
    color: var(--error);
    font-weight: 600;
}

.support-manual {
    color: var(--accent);
    font-weight: 600;
}

.matrix-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Supported Features Lists */
.features-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.features-column {
    background: transparent;
    border: none;
    border-radius: var(--radius);
    padding: 32px;
}

.features-column h3 {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-size: 1.25rem;
    font-weight: 600;
}

.features-column.supported h3 {
    color: var(--success);
}

.features-column.not-supported h3 {
    color: var(--error);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.feature-list li:last-child {
    border-bottom: none;
}

.check-icon {
    color: var(--success);
    font-weight: bold;
}

.x-icon {
    color: var(--error);
    font-weight: bold;
}

/* Vendors Grid - Floating Pills */
.vendors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 20px 0;
}

.vendor-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    /* Pill shapeish */
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 140px;
    transition: var(--transition);
}

.vendor-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}


.vendor-item img {
    height: 48px;
    width: 120px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.2);
    opacity: 0.7;
    transition: var(--transition);
}

.vendor-item:hover img {
    filter: none;
    opacity: 1;
}

.vendor-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Use Cases - Minimalist Cards */
.use-case-card {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
}

.use-case-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.use-case-card h3 {
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Add a subtle accent line to use cases on hover */
.use-case-card:hover h3::before {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}


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

/* Resource Cards */
.resource-icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
}

.resource-icon svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 80px 40px 40px;
    background: var(--bg-base);
    margin-top: 120px;
}

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

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 20px;
}

/* Footer Social & Badges */
.footer-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.badge {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.social-link:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--bg-hover);
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 24px;
}

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

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    #mobileMenuBtn {
        display: block !important;
    }

    .hero-section {
        text-align: center;
    }

    .carousel-content h1 {
        font-size: 2.5rem;
    }

    .stats-bar {
        flex-direction: column;
        gap: 32px;
    }

    .stats-bar {
        background: var(--bg-base);
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom div {
        justify-content: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(5, 5, 5, 0.85);
    /* Much darker, clean glass */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.15);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    background: transparent;
    /* No grey box */
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* =========================================
   MOBILE & TABLET OPTIMIZATION
   ========================================= */

/* Mobile Navigation Container */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 90;
    flex-direction: column;
    padding: 80px 40px 40px;
    overflow-y: auto;
}

.mobile-nav.active {
    display: flex;
}

/* Mobile Nav Links */
.mobile-nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 1.25rem;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

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

.mobile-nav-section {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.mobile-nav-section-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin: 24px 0 12px;
    letter-spacing: 1px;
}

.mobile-nav-sublink {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
}

.mobile-nav-sublink:hover {
    color: var(--text);
}

/* Auth Buttons in Mobile Header */
.auth-buttons-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.auth-buttons-mobile .auth-button {
    text-align: center;
    padding: 14px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: var(--radius);
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    margin-bottom: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-surface);
}

.table-responsive table {
    border: none;
    margin: 0;
    min-width: 600px;
    /* Force scroll */
}

/* Matrix Content Scroll Fix */
.matrix-content {
    overflow-x: auto;
}

/* iPad & Tablet Landscape (Max Width 1024px) */
@media (max-width: 1024px) {
    header {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
        /* Reduce gap */
    }

    .nav-links a {
        font-size: 13px;
        /* Slightly smaller font */
    }

    .migration-hero {
        padding-top: 100px;
        /* Adjust top padding */
    }

    .carousel-content h1 {
        font-size: 3rem;
        /* Slightly smaller hero text */
    }
}

/* Mobile (Max Width 768px) */
@media (max-width: 768px) {

    /* Ensure Header logo doesn't overflow */
    .logo {
        font-size: 1.1rem;
    }

    /* Reveal mobile nav when active */
    #mobileNav {
        /* Inline styles will be removed by script, this ensures default behavior */
    }

    /* Carousel Text */
    .carousel-content h1 {
        font-size: 2.2rem;
    }

    .carousel-content h2 {
        font-size: 1.6rem;
    }

    .carousel-slide {
        padding: 0 20px;
    }

    /* Grid Stacking */
    .grid,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .features-comparison {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Padding Adjustments */
    .section,
    section[style*="padding"] {
        padding: 60px 20px !important;
    }

    .migration-section,
    .config-preview {
        padding: 60px 20px;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .config-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }

    .stats-bar {
        padding: 30px 20px;
        gap: 40px;
        flex-direction: column;
    }

    /* Footer */
    .site-footer {
        padding: 40px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-copyright {
        text-align: center;
    }

    /* Matrix Tabs Stack */
    .matrix-tabs {
        flex-direction: column;
        width: 100%;
    }

    .matrix-tab {
        width: 100%;
        text-align: center;
    }

    /* Hide desktop nav */
    .nav-links {
        display: none;
        /* Redundant but safe */
    }

    #mobileMenuBtn {
        display: block;
    }
}

/* Config Header Button Enhancement */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-btn {
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.config-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Custom Development Section */
.custom-dev-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: transparent;
    border: none;
    margin-bottom: 80px;
}

.custom-dev-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.custom-dev-section h2 span {
    color: var(--accent);
}

.custom-dev-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.custom-dev-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
/* Password Protection Modal */
#passwordModal {
    display: none; /* JS will toggle flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

#passwordModal.active {
    display: flex;
}

/* Pricing Page Specifics */
.pricing-card {
    /* Ensure badge is visible */
    overflow: visible !important; 
    margin-top: 20px; /* Space for badge */
}

/* Disabled Pricing Button Style */
.cta-pricing-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted); /* Grey text initially */
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: default; /* Not clickable */
    width: 100%;
    text-align: center;
}

.cta-pricing-disabled:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
