/* --- VARIABLES & THEME --- */
:root {
    /* Brand Colors - Sophisticated Teal & Warm Accent */
    --primary: #0F766E;
    /* Deep Teal */
    --primary-light: #2DD4BF;
    /* Brighter, fresher Teal */
    --primary-dark: #115E59;
    --accent: #F97316;
    /* Soft Orange/Coral */
    --accent-hover: #EA580C;

    /* Neutrals - Fresher Light Mode */
    --bg-body: #F5FAFF;
    /* Crisp light blue tint */
    --bg-surface: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);
    /* More opaque for better contrast */

    --text-main: #334155;
    --text-muted: #64748B;
    --text-head: #0F172A;

    --border: #DAE4F0;
    --border-glass: rgba(255, 255, 255, 0.6);

    /* Effects - Softer, deeper shadows */
    --shadow-sm: 0 1px 2px 0 rgba(15, 118, 110, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(15, 118, 110, 0.08);
    --shadow-lg: 0 12px 24px -4px rgba(15, 118, 110, 0.12);
    --shadow-xl: 0 20px 32px -4px rgba(15, 118, 110, 0.15);
    --shadow-glow: 0 0 25px rgba(45, 212, 191, 0.2);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Animation Timing */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Dark Mode Overrides */
html.dark {
    --bg-body: #0B1121;
    /* Darker, richer */
    --bg-surface: #151F32;
    --bg-glass: rgba(21, 31, 50, 0.85);

    --text-main: #CBD5E1;
    --text-muted: #94A3B8;
    --text-head: #F8FAFC;

    --border: #1E293B;
    --border-glass: rgba(255, 255, 255, 0.05);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(45, 212, 191, 0.15);

    --primary-light: #14B8A6;
    /* Slightly muted for dark mode */
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
    /* Starte unsichtbar */
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}


/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Subtle background pattern */
    background-image: radial-gradient(circle at 10% 20%, rgba(20, 184, 166, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 25%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-head);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

p.lead {
    font-size: 1.25rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
}

p.small {
    font-size: 0.875rem;
}

/* --- COMPONENTS --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(15, 118, 110, 0.3), 0 2px 4px -1px rgba(15, 118, 110, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.4), 0 4px 6px -2px rgba(15, 118, 110, 0.2);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-head);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Glass Card */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(20, 184, 166, 0.3);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--primary);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.badge-warning {
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--accent);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    /* Will be overridden by scroll logic if needed, or kept simple */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
}

html.dark header {
    background: rgba(15, 23, 42, 0.85);
}

.nav-content {
    display: flex;
    align-items: center;
    /* justify-content: space-between;  <-- Removed to allow left alignment */
}

.brand {
    display: flex;
    /* Restored flex! */
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-head);
}

.brand img {
    height: 40px;
    /* Force small logo size */
    width: auto;
    border-radius: 8px;
}

/* --- NAVIGATION --- */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: 3rem;
    /* Space from logo */
    margin-right: auto;
    /* Pushes toggle switch to the far right */
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    /* Hidden by default on Desktop */
    background: none;
    border: none;
    color: var(--text-head);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
}

/* --- RESPONSIVE NAVIGATION --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hidden on Mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        /* Stack vertically */
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid var(--border);
        margin: 0;
        z-index: 49;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .mobile-menu-btn {
        display: block;
        /* Visible on Mobile */
        margin-left: auto;
        /* Push to right just before toggle */
        margin-right: 1rem;
    }

    /* Ensure toggle switch stays on the right */
    .switch-container {
        /* Already positioned by flex flow */
    }
}

/* --- TOGGLE SWITCH --- */
.switch-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s;
}

.switch-container:hover {
    border-color: var(--primary-light);
}

.switch-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.theme-switch {
    appearance: none;
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    outline: none;
}

.theme-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.dark .theme-switch {
    background: var(--primary);
}

html.dark .theme-switch::after {
    transform: translateX(20px);
}

.header-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

html.dark .header-blur {
    background: rgba(11, 17, 33, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- SECTIONS --- */
section,
#features,
#download,
#gallery,
#installation,
#roadmap {
    scroll-margin-top: 100px;
    /* Header height compensation */
}

.section {
    padding: 4rem 0;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background blob effects */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 10%;
    right: -5%;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 40px);
    }
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Hero Composition (Desktop + Mobile) */
.hero-composition {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    text-align: center;
    /* Center the whole block */
}

.hero-desktop-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: block;
}

.hero-mobile-wrapper {
    position: absolute;
    bottom: -30px;
    right: 40px;
    /* Shifted left */
    width: 220px;
    /* Adjust size relative to desktop */
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

    /* Transparent/Dark Bezel Effect */
    border: 8px solid rgba(20, 20, 20, 0.8);
    background: #000;
    /* Inner background behind image */
    backdrop-filter: blur(8px);

    overflow: hidden;
    z-index: 10;
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
    cursor: pointer;
    /* Clickable */
}

.hero-mobile-wrapper:hover {
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    z-index: 20;
    border-color: rgba(20, 20, 20, 0.95);
}

.hero-mobile-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    /* Inner radius */
}

@media (max-width: 768px) {
    .hero-mobile-wrapper {
        width: 140px;
        bottom: -15px;
        right: -10px;
        border-width: 3px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* --- FEATURES GRID (Bento) --- */
.grid-section {
    padding: 4rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-glow);
}

.feature-list {
    margin: 1rem 0;
    text-align: left;
}

.feature-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- INSTRUCTION STEPS --- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    counter-reset: steps;
}

.step-card {
    position: relative;
    padding-left: 1rem;
}

.step-card::before {
    counter-increment: steps;
    content: "0" counter(steps);
    font-size: 3rem;
    font-weight: 800;
    color: var(--border);
    opacity: 0.5;
    position: absolute;
    top: -1rem;
    left: 0;
    z-index: -1;
}

/* --- ROADMAP --- */
.roadmap {
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-left: 2px solid var(--border);
    position: relative;
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-body);
    border: 3px solid var(--primary);
}

.roadmap-item:last-child {
    border-left: 2px solid transparent;
}


/* --- DOWNLOAD SECTION (Pricing Style) --- */
.download-section {
    background: linear-gradient(to bottom, var(--bg-body), var(--bg-surface));
    padding: 6rem 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.dl-card {
    text-align: center;
    position: relative;
    border-top: 4px solid var(--primary);
}

.dl-card.featured {
    transform: scale(1.05);
    /* Slight lift for desktop */
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.dl-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

.dl-list {
    text-align: left;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.dl-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* --- MODAL --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-content {
    transform: translateY(0);
}

.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-body);
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--text-head);
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.checkbox-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    align-items: flex-start;
}

.checkbox-wrapper input {
    margin-top: 0.25rem;
}

.checkbox-wrapper label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.error-text {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* --- RESPONSIVE HELPERS --- */
.dual-system-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
    margin-bottom: 6rem;
}

.hero-glass-card {
    max-width: 900px;
    margin: 0 auto;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 6rem;
    }

    /* Compact Header for Mobile */
    header {
        padding: 0.5rem 0;
    }

    .brand {
        font-size: 1.25rem;
    }

    .brand img {
        height: 32px;
    }

    .switch-container {
        padding: 0.25rem 0.75rem;
        gap: 0.5rem;
    }

    .switch-label {
        font-size: 0.7rem;
    }

    .theme-switch {
        width: 36px;
        height: 20px;
    }

    .theme-switch::after {
        width: 16px;
        height: 16px;
    }

    html.dark .theme-switch::after {
        transform: translateX(16px);
    }

    .hero-glass-card {
        min-height: 300px;
    }

    .dual-system-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .carousel-slide img {
        height: 250px;
    }

    .dl-card.featured {
        transform: none;
    }
}

/* --- CAROUSEL & LIGHTBOX --- */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: var(--bg-surface);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(4px);
    /* Always visible */
    transform: translateY(0);
}

/* Removed hover effect since it's always visible */

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque */
    border: none;
    width: 44px;
    /* Slightly larger */
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    z-index: 10;
    opacity: 1;
    /* Always visible */
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn.prev {
    left: 1rem;
}

.carousel-nav-btn.next {
    right: 1rem;
    left: auto;
    /* Reset left just in case */
}

/* ... existing nav hover ... */

/* Lightbox Enhancements */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* Stack image and caption */
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    /* Leave room for caption */
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 2rem;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 1010;
}


.lightbox-close:hover {
    opacity: 1;
}

/* Hero Labels & Overlays */
.hero-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    /* More opaque */
    color: var(--primary-dark);
    /* Darker text for contrast */
    padding: 0.75rem 1.25rem;
    /* Larger padding */
    border-radius: 99px;
    font-size: 0.95rem;
    /* Larger font */
    font-weight: 700;
    /* Bolder */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Stronger shadow */
    backdrop-filter: blur(8px);
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid white;
    /* Thicker border */
    opacity: 1;
    transform: scale(1);
    transition: transform 0.2s;
}

.hero-label:hover {
    transform: scale(1.05);
}

.hero-label.desktop-label {
    top: 2rem;
    left: 2rem;
    animation-delay: 0.8s;
}

.hero-label.mobile-label {
    bottom: 3rem;
    right: 280px;
    /* Moved further left (was 250px) */
    animation-delay: 1s;
}

.hero-overlay-logo {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: white;
    padding: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 30;
    transform: rotate(10deg);
    animation: floatLogo 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

html.dark .hero-label {
    background: rgba(30, 41, 59, 0.9);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

@keyframes floatLogo {

    0%,
    100% {
        transform: rotate(10deg) translateY(0);
    }

    50% {
        transform: rotate(10deg) translateY(-10px);
    }
}

@media (max-width: 768px) {
    .hero-label {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .hero-label.desktop-label {
        top: 1rem;
        left: 1rem;
    }

    .hero-label.mobile-label {
        bottom: 140px;
        right: 10px;
    }

    .hero-overlay-logo {
        width: 45px;
        height: 45px;
        top: -10px;
        right: 10px;
    }
}