/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #07070A;
    color: #ffffff;
    font-family: "Inter", Arial, sans-serif;
    overflow-x: hidden;
}

/* =========================
   BACKGROUND CANVAS
========================= */

#pcb-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* =========================
   GLOBAL LAYERS
========================= */

.page {
    position: relative;
    z-index: 2;
}

section {
    position: relative;
    z-index: 2;
}

/* =========================
   SKY / ATMOSPHERE
========================= */

.sky-overlay {
    position: fixed;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    height: 80%;

    background: radial-gradient(
        circle at center,
        rgba(120,180,255,0.25),
        rgba(20,30,60,0.05),
        transparent 70%
    );

    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* =========================
   STARS
========================= */

.stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.stars::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;

    box-shadow:
        10vw 20vh white,
        30vw 10vh rgba(255,255,255,0.5),
        60vw 30vh white,
        80vw 60vh rgba(255,255,255,0.4),
        20vw 70vh white,
        50vw 80vh rgba(255,255,255,0.6),
        90vw 20vh rgba(255,255,255,0.3);
}

/* =========================
   MOUSE GLOW
========================= */

.mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(120,180,255,0.18),
        transparent 60%
    );

    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

/* =========================
   NAVIGATION
========================= */

nav {
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: space-between;
    padding: 25px 60px;
    border-bottom: 1px solid rgba(160,120,255,0.15);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 115px;
    height: auto;
    opacity: 0.92;
    transition: 0.3s ease;
}

.logo img:hover {
    opacity: 1;
    transform: scale(1.02);
}

.nav-links a {

    position: relative;

    text-decoration: none;

    color: rgba(255,255,255,0.72);

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 2px;
    text-transform: uppercase;

    transition: 0.3s ease;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(160,120,255,0.6);
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: rgba(160,120,255,0.8);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================
   HERO
========================= */

.hero {
    min-height: calc(100vh - 80px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding-top: 60px;
    padding-bottom: 60px;

    margin-top: 0;
}

.tagline {
    font-size: 10px;
    letter-spacing: 4px;
    color: rgba(180,120,255,0.8);
    margin-bottom: 20px;
}

h1 {
    font-size: 90px;
    letter-spacing: 10px;
}

h1 span {
    display: block;
    font-size: 24px;
    letter-spacing: 14px;
    color: rgba(180,120,255,0.9);
    margin-top: 10px;
}

p {
    max-width: 500px;
    margin-top: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.cta {
    margin-top: 30px;
    padding: 14px 26px;

    border: 1px solid rgba(160,120,255,0.5);
    background: rgba(160,120,255,0.06);

    color: white;
    cursor: pointer;

    transition: 0.3s;
}

.cta:hover {
    transform: translateY(-3px);
    background: rgba(160,120,255,0.12);
    box-shadow: 0 0 20px rgba(160,120,255,0.15);
}

/* =========================
   ENTER BUTTON
========================= */

.enter-btn {
    padding: 14px 26px;
    border: 1px solid rgba(160,120,255,0.5);
    background: rgba(160,120,255,0.05);
    color: white;

    font-size: 12px;
    letter-spacing: 4px;

    cursor: pointer;
    transition: 0.3s;

    margin-bottom: 50px;
}

.enter-btn:hover {
    transform: translateY(-4px);
    background: rgba(160,120,255,0.12);
    box-shadow: 0 0 25px rgba(160,120,255,0.2);
}

/* =========================
   SHOP SECTION
========================= */

.shop {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 120px 60px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 900px;
}

.card {
    height: 260px;

    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(160,120,255,0.15);

    backdrop-filter: blur(8px);

    transition: 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    background: rgba(160,120,255,0.08);
    box-shadow: 0 0 30px rgba(160,120,255,0.12);
}

/* =========================
   FRAME BORDER
========================= */

body::before {
    content: "";
    position: fixed;
    inset: 20px;
    border: 1px solid rgba(160,120,255,0.12);
    pointer-events: none;
    z-index: 1;
}

.section-title {
    font-size: 10px;
    letter-spacing: 6px;
    margin-bottom: 40px;
    color: rgba(180,120,255,0.8);
}

.card h3 {
    font-size: 14px;
    margin-bottom: 8px;
}

.card p {
    font-size: 11px;
    opacity: 0.6;
}

.contact-box {
    margin-top: 30px;
    font-size: 12px;
    opacity: 0.7;
}

body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

h1 {
    animation: glowPulse 4s infinite ease-in-out;
}

body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.transition-overlay {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
}

.transition-overlay.active {
    opacity: 1;
    animation: glitchIn 0.4s steps(2) forwards;
}

@keyframes glitchIn {
    0% { transform: translate(0); filter: contrast(1); }
    20% { transform: translate(-5px, 2px); filter: hue-rotate(90deg); }
    40% { transform: translate(5px, -2px); }
    60% { transform: translate(-3px, 1px); }
    100% { transform: translate(0); filter: contrast(1); }
}

.enter-btn {
    padding: 12px 26px;
    border: 1px solid rgba(160,120,255,0.6);
    background: transparent;
    color: white;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.enter-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(160,120,255,0.2);
    transform: translateY(100%);
    transition: 0.3s;
}

.enter-btn:hover::after {
    transform: translateY(0);
}

.enter-btn:hover {
    box-shadow: 0 0 20px rgba(160,120,255,0.3);
}

/* =====================
CURSOR SYSTEM
===================== */

body {
    cursor: none;
}

/* cercle principal */
.cursor-dot {
    position: fixed;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(160,120,255,0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px rgba(160,120,255,0.6);
}

/* trail particles */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(160,120,255,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: fadeOut 0.6s linear forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.3);
    }
}

/* =====================
CYBER SKY BACKGROUND
===================== */

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: 0;
    pointer-events: none;

    /* ciel dégradé */
    background: radial-gradient(
        ellipse at top,
        rgba(90, 120, 255, 0.25),
        rgba(10, 10, 20, 0.95) 60%,
        rgba(0, 0, 0, 1)
    );

    filter: blur(0px);
}

/* horizon glow */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;

    background: radial-gradient(
        circle at 50% 10%,
        rgba(160, 120, 255, 0.15),
        transparent 60%
    );
}

.stars {
    position: fixed;
    width: 100%;
    height: 60vh;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    opacity: 0.4;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.3); }
}

.aaa-transition {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
}

.aaa-transition.active {
    animation: aaaGlitch 0.6s steps(2) forwards;
}

@keyframes aaaGlitch {
    0% { opacity: 0; }
    20% { opacity: 1; transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-3px); }
    100% { opacity: 1; transform: translateX(0); }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    height: 70vh;
    background: radial-gradient(
        ellipse at top,
        rgba(90,120,255,0.25),
        rgba(10,10,20,0.95),
        black
    );
    z-index: 0;
    pointer-events: none;
}

/* =====================
HERO LOGO
===================== */

.hero-logo {

    width: 780px;

    max-width: 96vw;

    opacity: 0.98;

    animation: heroFloat 6s ease-in-out infinite;

    filter:
        drop-shadow(0 0 30px rgba(160,120,255,0.14));

}

/* léger mouvement premium */

@keyframes heroFloat {

    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* =====================
MOBILE VERSION
===================== */

@media (max-width: 768px) {

    nav {

        padding: 20px;

        flex-direction: column;
        gap: 18px;

        align-items: center;
    }

    .logo img {

        width: 95px;
    }

    .nav-links {

        gap: 18px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .nav-links a {

        font-size: 10px;

        letter-spacing: 1px;
    }

    .hero {

        padding: 40px 20px;
    }

 .hero-logo {

    width: 420px;

    max-width: 95vw;

}

    .grid {

        grid-template-columns: 1fr;

        max-width: 320px;
    }

    .card {

        height: 200px;
    }

    .shop {

        padding: 80px 20px;
    }

}