/* Core Variables */
:root {
    --bg: #0c0e14;
    --sf: #13151e;
    --sf2: #1a1d29;
    --bd: #252836;
    --ac: #e8ff47;
    --tx: #e8eaf0;
    --tm: #6b7280;
    --td: #3d4455;
    --hd: #0f1118;
    --fu: 'DM Mono', monospace;
}

/* Global Reset and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--tx);
    font-family: var(--fu);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    color: var(--ac);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--bd);
    border-radius: 2px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* Top Navigation Bar */
.topbar {
    background: rgba(15, 17, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bd);
    padding: 0 40px;
    height: 60px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ldot {
    width: 8px;
    height: 8px;
    background: var(--ac);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ac);
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.55;
        transform: scale(0.82);
    }
}

.spacer {
    flex: 1;
}

.btn {
    background: var(--ac);
    color: #0c0e14;
    border: none;
    border-radius: 6px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 255, 71, .28);
}

/* Layout Structures */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 0;
}

section {
    padding: 120px 0;
    border-bottom: 1px solid var(--bd);
}

/* Animation Classes */
.hidden-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hidden-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--tm);
    max-width: 700px;
    margin-bottom: 40px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--ac);
    color: var(--ac);
    font-size: 12px;
    margin-bottom: 20px;
    border-radius: 100px;
    text-transform: uppercase;
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 80px;
}

.label {
    font-size: 11px;
    color: var(--ac);
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
    font-weight: 500;
}

.sticky-label {
    position: sticky;
    top: 120px;
    height: fit-content;
}

/* Content Formatting */
.content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.content p {
    margin-bottom: 20px;
    color: #a0a0b8;
    font-size: 1.1rem;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.product-card {
    background: var(--sf);
    border: 1px solid var(--bd);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.product-card h3 {
    color: var(--tx);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.product-card p {
    font-size: 0.95rem;
    flex: 1;
}

/* Image Placeholders */
.img-placeholder {
    width: 100%;
    background: var(--sf2);
    border: 1px dashed var(--td);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.hero .img-placeholder {
    aspect-ratio: 21/9;
}

.small-placeholder {
    aspect-ratio: 16/9;
    margin-top: 20px;
    padding: 20px;
}

.prompt {
    font-size: 11px;
    color: var(--ac);
    max-width: 80%;
    opacity: 0.7;
}

/* Footer */
footer {
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid var(--bd);
}

.cta {
    font-size: 2.2rem;
    color: var(--ac);
    text-decoration: none;
    font-family: 'Syne';
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sticky-label {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   NEW ADDITIONS: BANNER & MODAL
   ========================================= */

/* Banner Styles */
.banner {
    background: var(--ac);
    color: var(--bg);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 200;
    /* Above topbar */
    padding: 10px 20px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--bg);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.banner-btn {
    background: var(--bg);
    color: var(--tx);
    padding: 5px 12px;
    font-size: 11px;
}

.banner-btn:hover {
    background: var(--bd);
    box-shadow: none;
}

/* Push body down to account for top banner */
body {
    padding-top: 40px;
}

.topbar {
    top: 40px;
}

/* Modal Overlay System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 14, 20, 0.85);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-box {
    background: var(--sf);
    border: 1px solid var(--bd);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-box {
    transform: translateY(20px);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--tm);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--ac);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.modal-desc {
    color: var(--tm);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 11px;
    color: var(--ac);
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    background: var(--hd);
    border: 1px solid var(--bd);
    color: var(--tx);
    font-family: var(--fu);
    padding: 12px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus {
    border-color: var(--ac);
}

.checkbox-group {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.checkbox-group input {
    margin-top: 4px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 11px;
    color: var(--tm);
    line-height: 1.5;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 14px;
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Success State */
#success-ui {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--ac);
    color: var(--ac);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

/* =========================================
   ACTUAL IMAGE RENDERING RULES
   ========================================= */
.showcase-img {
    width: 100%;
    max-width: 100%;
    display: block;
    /* Removes the hidden inline text-baseline gap */
    border-radius: 8px;
    border: 1px solid var(--bd);
    object-fit: cover;
    /* Prevents aspect ratio distortion */
    background: var(--sf2);
    /* Fallback color while loading */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.showcase-img:hover {
    border-color: var(--ac);
    transform: translateY(-2px);
}

.hero-img {
    aspect-ratio: 21/9;
    margin-top: 20px;
}

.card-img {
    aspect-ratio: 16/9;
    margin-top: 20px;
}

/* =========================================
   LIGHTBOX MODAL ADDITIONS
   ========================================= */
.lightbox-box {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-overlay:not(.hidden) .lightbox-box {
    transform: scale(1);
}

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--bd);
    object-fit: contain;
    /* Prevents overflow while keeping aspect ratio */
    background: var(--bg);
}

.lightbox-box .close-btn {
    top: -40px;
    right: 0;
    color: var(--tx);
    font-size: 30px;
}

.lightbox-box .close-btn:hover {
    color: var(--ac);
}