:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f6f8;
    --bg-dark: #0a0a0a;
    --bg-dark-alt: #111111;
    --accent-blue: #00f0ff;
    --accent-green: #39ff14;
    --text-main: #1a1a1a;
    --text-inverse: #ffffff;
    --text-muted: #555555;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --layout-max: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Gradients */
.gradient-bg {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-alt) 100%);
    color: var(--text-inverse);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-icons a {
    font-weight: 700;
}

.cart-icon-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-dark);
    color: var(--text-inverse) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.cart-icon-container:hover {
    background-color: var(--accent-blue);
    color: var(--bg-dark) !important;
}

.cart-count {
    background: var(--accent-green);
    color: var(--bg-dark);
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: 800;
    transition: transform 0.2s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-solid {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.btn-solid:hover {
    background: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--bg-dark);
    color: var(--bg-dark);
}

.btn-outline:hover {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-shapes::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(10, 10, 10, 0) 60%);
    border-radius: 50%;
}

.hero-bg-shapes::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(57, 255, 20, 0.1) 0%, rgba(10, 10, 10, 0) 60%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-top: 5rem;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 5rem 5%;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--bg-dark);
    display: block;
}

.stat-label {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* Sections */
.section {
    padding: 8rem 5%;
}

.section-bg-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.product-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.product-category {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--accent-blue);
    color: #1A1A1A;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    z-index: 2;
    border-radius: 4px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-dark);
}

/* Page Headers */
.page-header {
    padding: 12rem 5% 6rem;
    background: var(--bg-dark);
    color: var(--text-inverse);
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-primary);
    padding: 4rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-blue);
}

.checkbox-group input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-blue);
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Layouts */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.cart-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item-img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 1rem;
}

.quantity-controls {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
}

.qty-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
}

.qty-btn:hover {
    color: var(--accent-blue);
}

.remove-btn {
    background: transparent;
    border: none;
    color: #ff3333;
    font-weight: 700;
    cursor: pointer;
    margin-left: 1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.cart-summary {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--border-radius);
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-dark);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-dark);
}

/* Product Details */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: var(--layout-max);
    margin: 0 auto;
}

.detail-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-category {
    color: var(--accent-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.detail-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.detail-price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.detail-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2rem;
    margin-top: 4rem;
    margin-bottom: 1.5rem;
}

.legal-content p,
.legal-content li {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc inside;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 6rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--layout-max);
    margin: 0 auto 4rem;
}

.footer-brand p {
    color: #a0a0a0;
    margin-top: 1.5rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-blue);
}

.footer-col a {
    display: block;
    color: #a0a0a0;
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-col a:hover {
    color: var(--text-inverse);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-weight: 600;
}

/* Toasts */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    background: var(--bg-primary);
    color: var(--bg-dark);
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--accent-blue);
    animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards, fadeOut 0.4s ease 3.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        display: none;
    }
}

/* Animations */








@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .cart-layout,
    .product-details,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Visibility Protocol CSS --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.reveal.js-hidden {
    opacity: 0;
    transform: translateY(40px);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
