/* Shared styles for LightUp Crowd site and download page */
html {
    scroll-behavior: smooth;
}

:root {
    --bg: #121212;
    --text: #ffffff;
    --text-muted: #cccccc;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --footer-color: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    text-align: center;
}

h1 {
    font-size: 32px;
    margin: 20px 0;
}

h2 {
    font-size: 24px;
    margin: 24px 0 16px;
}

p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
}

a {
    color: #7eb8ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Cards / feature blocks */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 350px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.feature h3 {
    font-size: 20px;
    margin-top: 0;
}

.feature p {
    font-size: 16px;
    margin-bottom: 0;
}

/* Store-style buttons (primary CTA) */
.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--bg);
    border-radius: 12px;
    padding: 16px 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.store-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: var(--bg);
}

.store-icon {
    font-size: 24px;
    margin-right: 12px;
}

/* Contact */
.contact-section {
    margin-top: 48px;
}

.contact-section h2 {
    margin-bottom: 12px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-info a {
    color: #7eb8ff;
}

.contact-tagline {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 16px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    font-size: 14px;
    color: var(--footer-color);
}

.site-footer a {
    color: var(--footer-color);
}

.site-footer a:hover {
    color: var(--text-muted);
}

.site-footer .sep {
    margin: 0 8px;
}

.site-footer p {
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--footer-color);
}

/* Marketing page: section blocks */
.section-block {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: left;
}

.section-block h2 {
    text-align: center;
}

/* Nav / header links */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 24px 0;
}

.nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text);
}

/* Modes table (marketing) */
.modes-table {
    width: 100%;
    max-width: 560px;
    margin: 0 auto 32px;
    border-collapse: collapse;
    font-size: 16px;
}

.modes-table th,
.modes-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--card-border);
}

.modes-table th {
    background: var(--card-bg);
    color: var(--text);
}

.modes-table td {
    color: var(--text-muted);
}

/* Advantages list */
.advantages-list {
    list-style: none;
    padding: 0;
    max-width: 640px;
    margin: 0 auto;
}

.advantages-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 16px;
}

.advantages-list li:last-child {
    border-bottom: none;
}

.advantages-list strong {
    color: var(--text);
}

/* Video embed */
.video-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: #000;
}

.video-wrap::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videos-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrap.video-in-card {
    max-width: 100%;
    margin-top: 12px;
}

/* Product detail videos: show full video (vertical or horizontal), no cropping */
.product-detail .video-wrap,
.product-detail-reveal .video-wrap {
    max-width: 100%;
    max-height: 70vh;
    margin: 16px 0;
}
.product-detail .video-wrap::before,
.product-detail-reveal .video-wrap::before {
    display: none;
}
.product-detail .video-wrap video,
.product-detail-reveal .video-wrap video {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .product-detail-reveal .product-videos {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
    }
    .product-detail .video-wrap,
    .product-detail-reveal .video-wrap {
        max-height: 85vh;
        margin: 12px 0;
    }
    .product-detail .video-wrap video,
    .product-detail-reveal .video-wrap video {
        max-height: 85vh;
    }
}

/* Multiple videos per product */
.product-detail .product-videos,
.product-detail-reveal .product-videos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}
.product-detail .product-videos .video-wrap,
.product-detail-reveal .product-videos .video-wrap {
    flex: 1 1 280px;
    min-width: 0;
}

/* Show type cards (with demo link) */
.show-type {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.show-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.show-type h3 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 12px;
}

.show-type p {
    font-size: 16px;
    margin-bottom: 16px;
}

.show-type .demo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7eb8ff;
    font-size: 15px;
    font-weight: 600;
}

.show-type .demo-link:hover {
    text-decoration: underline;
}

.show-types-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
}

/* Products: circles under "Light show options" */
.product-circles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px auto;
    max-width: 800px;
}

.product-circle {
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, font-size 0.4s ease;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 6px;
}

.product-circle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.product-circle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}

.product-circle.is-center {
    width: 116px;
    height: 116px;
    font-size: 16px;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.product-circle.is-center:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.product-circle-label {
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: opacity 0.25s ease;
}

/* Detail panel below circles (revealed when center circle is clicked) */
.product-detail-reveal {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 20px;
    display: none;
    text-align: left;
}

.product-detail-reveal.is-open {
    display: block;
}

.product-detail-reveal .product-detail-content {
    display: none;
}

.product-detail-reveal .product-detail-content.is-visible {
    display: block;
}

.product-detail-title {
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--text);
}

.product-detail-reveal p {
    font-size: 15px;
    margin: 0 0 16px;
}

.product-detail-reveal .product-videos {
    margin-top: 16px;
}

/* Product video slider (multiple videos with < > arrows) */
.product-videos-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}
.product-videos-slider:has(.product-video-item:only-child) .product-video-prev,
.product-videos-slider:has(.product-video-item:only-child) .product-video-next {
    display: none;
}
.product-videos-track {
    flex: 1;
    min-width: 0;
    position: relative;
}
.product-video-item {
    display: none;
}
.product-video-item.active {
    display: block;
}
.product-video-prev,
.product-video-next {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.product-video-prev:hover,
.product-video-next:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal: fade-in when section enters viewport */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}
