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

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100vw;
    height: 500vh;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 70%, transparent 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: linear-gradient(135deg, #4a90e2 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

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

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4a90e2, #a855f7);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

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

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
    color: transparent;
}

h1 {
    text-align: center;
    font-size: clamp(2.5rem, 9vw, 7rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    position: relative;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
    border-radius: 2px;
}

h2 {
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #e0e0e0;
    text-transform: uppercase;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: #b0b0b0;
    text-transform: none;
}

.model {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 80px rgba(74, 144, 226, 0.3)) 
            drop-shadow(0 0 40px rgba(168, 85, 247, 0.2));
    animation: modelFloat 6s ease-in-out infinite;
}

@keyframes modelFloat {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 80px rgba(74, 144, 226, 0.3)) 
                drop-shadow(0 0 40px rgba(168, 85, 247, 0.2));
    }
    50% { 
        transform: translate(-50%, -52%) scale(1.02);
        filter: drop-shadow(0 0 100px rgba(74, 144, 226, 0.4)) 
                drop-shadow(0 0 50px rgba(168, 85, 247, 0.3));
    }
}

section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5em;
    z-index: 2;
    padding: 4rem 2rem;
}

.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    margin-bottom: 1.2em;
    animation: fadeInUp 1s ease-out, textGlow 3s ease-in-out infinite;
}

.hero h2 {
    animation: fadeInUp 1.3s ease-out;
    margin-bottom: 0.8em;
    font-weight: 400;
    color: #a8a8a8;
    text-transform: none;
}

.hero p {
    width: min(90%, 700px);
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    line-height: 1.9;
}

@keyframes textGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(74, 144, 226, 0.2));
    }
    50% { 
        filter: drop-shadow(0 0 30px rgba(74, 144, 226, 0.4));
    }
}

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

.info {
    gap: 5em;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 26, 0.6) 50%, transparent 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info .tags {
    width: min(95%, 900px);
    display: flex;
    gap: 1.2em;
    flex-wrap: wrap;
    justify-content: center;
}

.info .tags p {
    padding: 1em 2.5em;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a90e2;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info .tags p::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.info .tags p:hover::before {
    left: 100%;
}

.info .tags p:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.2) 0%, rgba(168, 85, 247, 0.15) 100%);
    border-color: rgba(74, 144, 226, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    color: #6ab0f7;
}

.info h2 {
    width: min(90%, 1000px);
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.5rem);
    background: linear-gradient(135deg, #ffffff 0%, #808080 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info p {
    width: 60%;
    text-align: center;
}

.scan-info {
    position: absolute;
    top: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    padding: 2.5em;
    color: #e0e0e0;
}

.scan-container {
    width: 300px;
    height: 500px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: 1.5em;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    backdrop-filter: blur(30px);
    box-shadow: 
        0 0 60px rgba(74, 144, 226, 0.2),
        inset 0 0 60px rgba(74, 144, 226, 0.05);
    position: relative;
    overflow: hidden;
}

.scan-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.1) 50%, transparent 70%);
    animation: scanSweep 3s linear infinite;
}

@keyframes scanSweep {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

.barcode {
    position: absolute;
    bottom: 1.5em;
    left: 2.5em;
    width: 220px;
    height: 110px;
    opacity: 0.7;
    filter: brightness(0.8) contrast(1.2);
}

.purchased {
    position: absolute;
    bottom: 2.5em;
    right: 2.5em;
    padding: 1em 3.5em;
    color: #ff4d6a;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(40, 20, 25, 0.95) 100%);
    border: 2px solid #ff4d6a;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 5px 25px rgba(255, 77, 106, 0.3),
        inset 0 0 20px rgba(255, 77, 106, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.purchased::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.purchased:hover::before {
    left: 100%;
}

.purchased:hover {
    background: linear-gradient(135deg, #ff4d6a 0%, #ff3355 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(255, 77, 106, 0.5);
    border-color: #ff6680;
}

.outro {
    background: linear-gradient(180deg, transparent 0%, rgba(74, 144, 226, 0.05) 50%, transparent 100%);
}

.outro h2 {
    width: min(90%, 1100px);
    text-align: center;
    line-height: 1.6;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    padding: 2em 0;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain !important;
}

.lenis.lenis-stopped {
   overflow: clip !important;
}

.lenis.lenis-smooth iframe {
    pointer-events: none !important;
}

@media (max-width: 900px) {
    .main-nav {
        padding: 1.2rem 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        gap: 1.2rem;
        flex-wrap: wrap;
    }
    .nav-logo {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .hero h2 {
        font-size: 1.1rem;
    }
    .info h2 {
        font-size: 1.2rem;
    }
    .tags p {
        font-size: 0.9rem;
        padding: 0.3em 0.7em;
    }
    .scanner {
        flex-direction: column;
        padding: 1.5em 0.5em;
    }
    .scan-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .barcode img {
        width: 120px;
        height: auto;
    }
    .outro h2 {
        font-size: 1.1rem;
        padding: 1em 0;
    }
}

@media (max-width: 600px) {
    html, body {
        font-size: 15px;
        min-width: 100vw;
        min-height: 100vh;
    }
    .main-nav {
        padding: 0.7rem 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links {
        gap: 0.7rem;
    }
    .nav-logo {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    .hero h1 {
        font-size: 1.2rem;
        line-height: 1.1;
    }
    .hero h2 {
        font-size: 1rem;
    }
    .info h2 {
        font-size: 1rem;
    }
    .tags {
        flex-wrap: wrap;
        gap: 0.3em;
    }
    .tags p {
        font-size: 0.8rem;
        padding: 0.2em 0.5em;
    }
    .scanner {
        flex-direction: column;
        padding: 1em 0.2em;
    }
    .scan-info {
        flex-direction: column;
        align-items: flex-start;
    }
    .barcode img {
        width: 90px;
        height: auto;
    }
    .outro h2 {
        font-size: 0.95rem;
        padding: 0.7em 0;
    }
}