:root {
    --primary: #d4ff00;
    --secondary: #2563eb;
    --dark: #121212;
    --dark-grey: #1e1e1e;
    --light-grey: #2d2d2d;
    --text: #ffffff;
    --text-muted: #a0a0a0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(18, 18, 18, 0.86), rgba(18, 18, 18, 0.86)),
        url("images/background.png") center / cover no-repeat;
    z-index: -1;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(30, 30, 30, 0.96);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

#nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.app-shell {
    width: 100%;
}

.screen {
    display: none;
    min-height: calc(100vh - 84px);
    padding: 34px 20px 52px;
}

.screen.is-active {
    display: block;
}

.hero-screen,
.product-screen,
.community-screen {
    max-width: 1180px;
    margin: 0 auto;
}

.carousel {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
    height: clamp(220px, 32vw, 420px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s ease;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    object-fit: contain;
    
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.hero-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 26px 0 10px;
}

.hero-brand img,
.loading-logo {
    width: min(280px, 55vw);
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 255, 0, 0.18));
}

.loading-logo {
    animation: pulseLogo 2.2s ease-in-out infinite;
}

.hero-copy {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.05;
    margin-bottom: 14px;
    text-wrap: balance;
}

.hero-copy p {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 56px;
    flex-wrap: wrap;
}

button {
    border: none;
    font-family: inherit;
    cursor: pointer;
}

.cta-buttons button,
.product-actions button,
.community-btn,
.auth-tab {
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.cta-buttons button {
    width: auto;
    min-width: 240px;
    padding: 18px 34px;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.cta-buttons .btn-primary,
.btn-primary {
    background: linear-gradient(135deg, #d4ff00, #b8de00);
    color: #121212;
}

.cta-buttons .btn-secondary,
.btn-secondary {
    background: linear-gradient(135deg, #0e0e0e, #000000);
    color: #d4ff00;
}

.cta-buttons button:hover,
.product-actions button:hover,
.community-btn:hover,
.auth-tab:hover {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.08);
}

.loading-screen,
.modal-screen {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 12, 0.82);
    backdrop-filter: blur(14px);
    z-index: 250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loading-screen.is-visible,
.modal-screen.is-visible {
    display: flex;
}

.loading-card,
.auth-card {
    width: min(92vw, 520px);
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(212, 255, 0, 0.18);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    text-align: center;
    position: relative;
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-close:hover {
    background: rgba(212, 255, 0, 0.16);
    color: var(--primary);
}

.loading-logo {
    margin-bottom: 18px;
}

.loading-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.loading-bar {
    width: 100%;
    height: 12px;
    background: #2a2a2a;
    border-radius: 999px;
    overflow: hidden;
}

.loading-bar-fill {
    width: 35%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), #ffffff, var(--primary));
    animation: loadingBar 1.2s ease-in-out infinite;
}

.auth-card {
    text-align: left;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-tab {
    padding: 14px 16px;
    border-radius: 12px;
    background: #2a2a2a;
    color: var(--text);
    font-weight: 700;
}

.auth-tab.is-active {
    background: linear-gradient(135deg, #d4ff00, #b8de00);
    color: #121212;
}

.auth-form {
    display: none;
}

.auth-form.is-active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 16px;
    text-align: center;
}

.auth-form input,
input,
textarea {
    width: 100%;
    padding: 14px 14px;
    margin-bottom: 14px;
    background-color: var(--light-grey);
    border: 1px solid #444;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
}

.auth-form input:focus,
input:focus,
textarea:focus {
    border-color: var(--primary);
}

.auth-link-copy {
    text-align: center;
    margin-top: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
}

.product-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 26px;
}

.product-badge {
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(212, 255, 0, 0.12);
    color: var(--primary);
    font-weight: 700;
    margin: 0 auto;
}

.product-intro {
    background: rgba(30, 30, 30, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
    color: #ececec;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.info-card {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 22px;
}

.info-card h3 {
    margin-bottom: 12px;
    color: var(--primary);
}

.info-card ul {
    padding-left: 18px;
    color: #e7e7e7;
}

.info-card li {
    margin-bottom: 8px;
}

.reference-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.reference-box {
    min-height: 180px;
    border-radius: 18px;
    border: 1px dashed rgba(212, 255, 0, 0.35);
    background: rgba(10, 10, 10, 0.65);
    display: grid;
    place-items: center;
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
    overflow: hidden;
}

.reference-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.product-actions button {
    width: auto;
    min-width: 200px;
    padding: 16px 26px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
}

.community-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto 24px;
    max-width: 760px;
}

.community-btn {
    padding: 22px 18px;
    border-radius: 18px;
    background: rgba(30, 30, 30, 0.9);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.05rem;
    font-weight: 700;
}

.community-panel {
    max-width: 760px;
    margin: 0 auto 28px;
    background: rgba(30, 30, 30, 0.86);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px;
    min-height: 220px;
    display: grid;
    place-items: center;
}

.panel-empty {
    color: var(--text-muted);
    text-align: center;
    max-width: 480px;
}

.hidden {
    display: none;
}

@keyframes pulseLogo {
    0%,
    100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.82; }
}

@keyframes loadingBar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(360%); }
}

@media (max-width: 820px) {
    .product-grid,
    .reference-layout,
    .community-menu {
        grid-template-columns: 1fr;
    }

    .topbar {
        gap: 16px;
        flex-direction: column;
    }

    .cta-buttons {
        gap: 16px;
    }

    .cta-buttons button,
    .product-actions button {
        min-width: 100%;
    }
}

@media (max-width: 640px) {
    .screen {
        padding-inline: 14px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-brand img,
    .loading-logo {
        width: min(220px, 68vw);
    }

    .loading-card,
    .auth-card {
        padding: 20px;
    }
}
