/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Smooth scroll padding for anchor links */
section[id] {
    scroll-margin-top: 80px; /* Account for fixed navbar */
}

:root {
    /* Monochromatic lunar theme with subtle purple accents */
    --primary-bg: #000000;
    --secondary-bg: #0a0a0a;
    --tertiary-bg: #080808;
    --accent-bg: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-color: #8b5cf6;
    --accent-hover: #a78bfa;
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    --gradient-secondary: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(139, 92, 246, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll; /* Force scrollbar to always show to prevent layout shift */
}

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

/* Header */
.header {
    background: var(--primary-bg);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

/* Logo section stays on the left */
.header-section:first-child {
    flex: 0 0 auto;
}

/* Center the middle sections (Products, Support, Legal) */
.header-section:nth-child(2),
.header-section:nth-child(3),
.header-section:nth-child(4) {
    flex: 1;
    text-align: center;
}

/* Connect section goes to the far right */
.header-section:last-child {
    flex: 0 0 auto;
    margin-left: auto;
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.header-logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.header-logo-img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.header-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.header-section ul {
    list-style: none;
}

.header-section ul li {
    margin-bottom: 10px;
}

.header-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-section ul li a:hover {
    color: var(--accent-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo span {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

/* Logo Images */
.logo-img {
    height: 42px;
    width: auto;
    margin-right: 20px;
    transition: transform 0.3s ease;
}

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


.footer-logo-img {
    height: 30px;
    width: auto;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.cta-button {
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-glow);
}

.nav-link.cta-button i {
    color: black;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    width: 350px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
}

.cart-dropdown.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.cart-dropdown-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-dropdown-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.cart-dropdown-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.cart-dropdown-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.cart-dropdown-item:hover {
    background: var(--tertiary-bg);
}

.cart-item-image {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-item-image i {
    font-size: 1.2rem;
    color: black;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-dropdown-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 30px;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Send Code Button - Specific styling for login page */
.btn-send-code {
    background: white;
    color: black;
    border: 2px solid var(--border-color);
}

.btn-send-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease;
}

.plugin-preview {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.premiere-interface {
    background: var(--secondary-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.interface-header {
    background: var(--tertiary-bg);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.interface-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.interface-dots span:nth-child(1) { background: #ff5f57; }
.interface-dots span:nth-child(2) { background: #ffbd2e; }
.interface-dots span:nth-child(3) { background: #28ca42; }

.interface-title {
    color: var(--text-primary);
    font-weight: 600;
}

.interface-content {
    padding: 20px;
}

.timeline {
    margin-bottom: 20px;
}

.track {
    height: 4px;
    background: var(--accent-color);
    margin: 8px 0;
    border-radius: 2px;
    opacity: 0.7;
}

.track:nth-child(2) { width: 80%; }
.track:nth-child(3) { width: 60%; }

.plugin-panel {
    background: var(--tertiary-bg);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.plugin-header {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.plugin-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.slider {
    height: 6px;
    background: var(--accent-bg);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 60%;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--primary-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--tertiary-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-card:hover {
    transform: scale(1.02) translateY(-3px) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2) !important;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card * {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: black;
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

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

/* Products Preview */
.products-preview {
    padding: 100px 0;
    background: var(--primary-bg);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: var(--secondary-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-image {
    height: 200px;
    background: var(--tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: black;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.products-cta {
    text-align: center;
}

/* Footer */
.footer {
    background: var(--primary-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

/* Logo section stays on the left */
.footer-section:first-child {
    flex: 0 0 auto;
}

/* Center the middle sections (Products, Support, Legal) */
.footer-section:nth-child(2),
.footer-section:nth-child(3),
.footer-section:nth-child(4) {
    flex: 1;
    text-align: center;
}

/* Connect section goes to the far right */
.footer-section:last-child {
    flex: 0 0 auto;
    margin-left: auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--tertiary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .navbar {
        z-index: 1010 !important;
        background: rgba(0, 0, 0, 0.8) !important;
    }

    .nav-container {
        max-width: 100% !important;
        padding: 0 20px !important;
        position: relative;
        z-index: 1010;
    }

    .nav-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 70px !important;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        min-height: auto;
        max-height: calc(100vh - 70px);
        text-align: center;
        transform: translateY(-110%);
        transition: transform 0.4s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 0 !important;
        margin: 0 !important;
        gap: 0 !important;
        border-bottom: 1px solid var(--border-color);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999 !important;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-link {
        width: 100% !important;
        padding: 20px !important;
        border-bottom: 1px solid var(--border-color);
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 1.1rem;
        color: var(--text-secondary) !important;
        text-decoration: none;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .nav-link:hover {
        background: var(--tertiary-bg);
        color: var(--text-primary) !important;
    }

    .nav-link i {
        font-size: 1.2rem;
    }

    .nav-link.cta-button {
        margin: 20px 20px 30px 20px !important;
        width: calc(100% - 40px) !important;
        border-bottom: none;
        border-radius: 12px;
        background: white !important;
        color: black !important;
        padding: 15px 20px !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .nav-link.cta-button:hover {
        transform: none;
        box-shadow: 0 5px 15px var(--shadow-glow);
        background: white !important;
    }

    .nav-link.cta-button:active {
        transform: scale(0.98);
    }

    .nav-toggle {
        display: flex;
        z-index: 1011 !important;
        position: relative;
    }

    .bar {
        transition: all 0.3s ease-in-out;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

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

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

    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-dropdown {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .cart-dropdown {
        width: calc(100vw - 40px);
        right: 20px;
    }
}
