:root {
    /* Define color palette */
    --bg-color: #050505;
    --surface-color: rgba(15, 15, 20, 0.6);
    --surface-light: rgba(30, 30, 40, 0.7);
    --text-primary: #e0e0e0;
    --text-secondary: #8892b0;

    /* Neon Colors */
    --neon-cyan: #00f3ff;
    --neon-cyan-dim: rgba(0, 243, 255, 0.3);
    --neon-magenta: #ff00ff;
    --neon-magenta-dim: rgba(255, 0, 255, 0.3);
    --neon-purple: #b026ff;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    --gradient-border: linear-gradient(135deg, rgba(0, 243, 255, 0.5), rgba(255, 0, 255, 0.5));

    /* Shadows */
    --glow-cyan: 0 0 10px var(--neon-cyan-dim), 0 0 20px var(--neon-cyan-dim);
    --glow-magenta: 0 0 10px var(--neon-magenta-dim), 0 0 20px var(--neon-magenta-dim);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-normal: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Effects */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 30px;
    }
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--neon-purple), transparent 70%);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(30px) scale(1.1);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.neon-text-magenta {
    color: var(--neon-magenta);
    text-shadow: var(--glow-magenta);
}

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

.section {
    padding: 6rem 0;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-border);
    opacity: 0.5;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    transition: var(--trans-normal);
}

.glass-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--trans-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--trans-normal);
    box-shadow: var(--glow-cyan);
}

.nav-link:hover {
    color: var(--neon-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.cart-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: var(--trans-normal);
}

.cart-btn:hover {
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.1);
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 0px;
    background: var(--neon-magenta);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-magenta);
    transform: scale(1);
    transition: var(--trans-normal);
}

.cart-badge.pop {
    transform: scale(1.4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--trans-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--neon-cyan);
    z-index: -1;
    transition: var(--trans-normal);
}

.btn-primary:hover {
    color: #000;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--trans-normal);
}

.btn-icon:hover {
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Offset header */
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-magenta);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(100px, 9999px, 86px, 0);
    }

    10% {
        clip: rect(22px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(11px, 9999px, 86px, 0);
    }

    30% {
        clip: rect(4px, 9999px, 86px, 0);
    }

    40% {
        clip: rect(31px, 9999px, 86px, 0);
    }

    50% {
        clip: rect(66px, 9999px, 86px, 0);
    }

    60% {
        clip: rect(93px, 9999px, 86px, 0);
    }

    70% {
        clip: rect(62px, 9999px, 86px, 0);
    }

    80% {
        clip: rect(58px, 9999px, 86px, 0);
    }

    90% {
        clip: rect(27px, 9999px, 86px, 0);
    }

    100% {
        clip: rect(55px, 9999px, 86px, 0);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Products Section */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: var(--glow-cyan);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-card {
    transition: var(--trans-normal);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.2);
    border-color: rgba(0, 243, 255, 0.3);
}

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans-normal);
}

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

.hologram-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 243, 255, 0.1) 45%, rgba(0, 243, 255, 0.2) 50%, rgba(0, 243, 255, 0.1) 55%, transparent 60%);
    background-size: 100% 200%;
    opacity: 0;
    transition: opacity var(--trans-fast);
    pointer-events: none;
    animation: scanline 3s linear infinite;
}

.product-card:hover .hologram-effect {
    opacity: 1;
}

@keyframes scanline {
    0% {
        background-position: 0 -100%;
    }

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

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-new {
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 243, 255, 0.2);
}

.badge-hot {
    background: rgba(255, 0, 255, 0.1);
    color: var(--neon-magenta);
    border: 1px solid var(--neon-magenta);
    box-shadow: inset 0 0 10px rgba(255, 0, 255, 0.2);
}

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

.product-category {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

/* Features Sector */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    padding: 2rem;
    text-align: center;
    transition: var(--trans-normal);
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-box h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(5, 5, 5, 0.8);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    justify-content: space-around;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: var(--trans-fast);
}

.link-group a:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--surface-light);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--neon-cyan);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    box-shadow: var(--shadow-glass);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        justify-content: space-between;
    }
}

/* About / MAINFRAME Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    padding: 3rem;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    color: var(--neon-cyan);
    font-size: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-list li span {
    color: var(--neon-magenta);
    font-weight: bold;
    font-family: var(--font-heading);
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 2px dashed var(--neon-magenta);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--glow-magenta);
    overflow: hidden;
}

.visual-placeholder .scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 0, 255, 0.5);
    box-shadow: 0 0 10px var(--neon-magenta);
    animation: scanline 3s linear infinite;
    opacity: 0.5;
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    transition: var(--trans-normal);
}

.accordion-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-heading);
    cursor: pointer;
    text-align: left;
}

.accordion-header:hover {
    color: var(--neon-cyan);
}

.acc-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
    transition: transform var(--trans-fast);
}

.accordion-item.active .acc-icon {
    transform: rotate(45deg);
    color: var(--neon-magenta);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--trans-normal);
    padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.accordion-content p {
    color: var(--text-secondary);
}

/* Extras */
.hover-glow {
    transition: var(--trans-fast);
}

.hover-glow:hover {
    color: var(--neon-cyan);
    text-shadow: var(--glow-cyan);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}