:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-border: rgba(255, 255, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-red: #ff4d4d;
    --accent-glow: rgba(255, 77, 77, 0.2);
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.glow-spot {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.top-left {
    top: -200px;
    left: -200px;
    background: radial-gradient(circle, var(--accent-red), transparent 70%);
}

.bottom-right {
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle, #0066ff, transparent 70%);
    /* Subtle blue contrast */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    color: var(--accent-red);
}

.logo a {
    color: var(--text-main);
    text-decoration: none;
    transition: none;
    /* No color transition for logo */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    color: var(--text-main);
    font-size: 1.1rem;
    position: relative;
    margin-right: 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-btn:hover {
    color: var(--accent-red);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn-login {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-login:hover {
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 77, 77, 0.1);
    color: var(--accent-red);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-red);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.text-gradient {
    color: var(--accent-red);
    /* Fallback */
    background: linear-gradient(to right, #ff4d4d, #ff8c4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.3);
}

.btn-primary:hover {
    background: #ff3333;
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hero-compatibility {
    color: #444;
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: 60px 0;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accent-bar {
    width: 4px;
    height: 24px;
    background: var(--accent-red);
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-red);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon.red {
    color: var(--accent-red);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    font-family: monospace;
    opacity: 0.7;
}

.feature-desc {
    color: #888;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Integrations Section */
.integrations {
    padding: 60px 0 100px;
    text-align: center;
}

.integrations .section-header {
    justify-content: center;
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.pill {
    background: #111;
    border: 1px solid #222;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.pills-container a {
    text-decoration: none;
    color: inherit;
}

.pill i {
    font-size: 1.1rem;
}

.pill:hover {
    border-color: #444;
    color: white;
}

.text-red {
    color: #e01e5a;
}

.blue {
    color: #007aff;
}

.green {
    color: #1db954;
}

.links-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 500;
}

.links-footer a {
    color: var(--accent-red);
    text-decoration: none;
    transition: opacity 0.2s;
}

.links-footer a:hover {
    opacity: 0.8;
}

.dot {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }
}

/* Catalog Layout */
.catalog-container {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Sidebar */
.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-box input {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 12px 12px 12px 40px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--accent-red);
}

.search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.filter-group ul {
    list-style: none;
}

.filter-group ul li {
    margin-bottom: 8px;
}

.filter-group a {
    color: #ccc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-group a:hover,
.filter-group a.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.filter-group a.active {
    border-left: 2px solid var(--accent-red);
}

/* Product Grid */
.product-grid {
    flex-grow: 1;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.badge-count {
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.sort-options select {
    background: var(--card-bg);
    color: white;
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    /* Matched to main cards */
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-2px);
    /* Matched */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    /* Matched */
}

.product-image {
    height: 160px;
    background: #0a0a0a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
}

.img-placeholder {
    font-size: 3rem;
    color: #222;
}

.product-image .tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.tag.new {
    background: var(--accent-red);
    color: white;
}

.tag.update {
    background: #007aff;
    color: white;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
}

.badg {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #1a1a1a;
    color: #888;
    border: 1px solid #333;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Updated Carousel Styles */
.carousel-container {
    overflow: hidden;
    max-width: 800px;
    /* Reduced width */
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    /* Shows 1 card at a time */
    box-sizing: border-box;
    padding: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-icon {
    font-size: 1.5rem;
    color: var(--accent-red);
    opacity: 0.5;
    margin-bottom: 10px;
}

/* Legal Page Styles */
.accept-container {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 5, 5, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.accept-container:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.05);
}

.accept-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.accept-checkbox {
    width: 24px;
    height: 24px;
    accent-color: var(--accent-red);
    cursor: pointer;
}

/* Form Styles (Support/Auth) */
.input-field {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.05);
}

/* Custom dropdown arrow for Select */
select.input-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

select.input-field option {
    background-color: #111;
    color: white;
    padding: 10px;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Catalog Icon Button */
.btn-icon-only {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-red);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-icon-only:hover {
    background: #ff3333;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 73px;
    /* Height of navbar approx */
    left: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.mobile-nav.active {
    display: flex;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links,
    .nav-actions .btn-login,
    .nav-actions .btn-primary {
        display: none;
        /* Hide desktop nav items */
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions {
        gap: 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .catalog-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }
}