/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-color: #050505;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.15);
    --primary-gradient: linear-gradient(135deg, #4285f4 0%, #d96570 50%, #9013fe 100%);
    --text-main: #ffffff;
    --text-muted: #d0d0d0;
    --accent-color: #4285f4;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;

    --container-width: 1200px;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.logo img {
    width: 32px;
    border-radius: 8px;
}

.btn-primary {
    background: white;
    color: black;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

.hero-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 650px;
    margin: 0 auto;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.play-badge {
    height: 60px;
    width: auto;
}

.play-badge-link:hover {
    opacity: 0.9;
}

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

.hero-pills span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.hero-pills span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.3);
}

/* Mobile: Header & Hero adjustments */
@media (max-width: 768px) {
    .logo {
        font-size: 0.95rem;
        gap: 8px;
    }
    .logo img {
        width: 28px;
    }
    nav .nav-badge img {
        height: 28px;
    }
    .hero-image-container {
        margin: var(--spacing-md) 0;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--border-radius-lg);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.feature-card p {
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .feature-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* How it Works */
.steps-section {
    text-align: center;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        gap: var(--spacing-md);
    }
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--surface-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

/* Section Title/Subtitle (shared across sections) */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: calc(-1 * var(--spacing-md)); /* Pull up closer to title */
    margin-bottom: var(--spacing-lg);
}

/* Setup Tabs */

.setup-tabs {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

@media (min-width: 768px) {
    .setup-tabs {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--spacing-xl);
    }
}

.setup-tabs__list-wrapper {
    flex-shrink: 0;
    width: 400px;
}

.setup-tabs__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.setup-tab {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-main);
    font-family: inherit;
}

.setup-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.setup-tab.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.3);
    background: rgba(66, 133, 244, 0.1);
}

.setup-tab {
    position: relative;
    overflow: hidden;
}

.setup-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent-color);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.setup-tab.progress::after {
    animation: progressBar 4.5s linear forwards;
}

@keyframes progressBar {
    from { width: 0; }
    to { width: 100%; }
}

.setup-tab__number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: var(--surface-border);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.setup-tab__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    font-family: 'Outfit', sans-serif;
}

.setup-tab__content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: var(--spacing-xs) 0 0 0;
    line-height: 1.4;
}

.setup-tab:not(.active) .setup-tab__content p {
    display: none;
}

/* Mobile images and dots - hidden on desktop */
.setup-tab__mobile-img,
.setup-tab__mobile-dots {
    display: none;
}

.setup-tabs__preview {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Panel-based image display */
.setup-tabs__panel {
    display: none;
}

.setup-tabs__panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.setup-tabs__panel > img,
.setup-tabs__panel > picture img {
    max-width: 300px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Dual image layout for step 2 */
.setup-tabs__dual {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

@media (min-width: 768px) {
    .setup-tabs__dual {
        flex-direction: row;
        gap: var(--spacing-md);
        justify-content: center;
    }
}

.setup-tabs__dual-item {
    text-align: center;
}

.setup-tabs__dual-item img {
    max-width: 280px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.setup-tabs__dual-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: var(--spacing-sm);
}

/* Mobile: Steps with inline images */
@media (max-width: 768px) {
    .setup-tabs__list-wrapper {
        width: 100%;
    }

    .setup-tabs__preview {
        display: none !important;
    }

    .setup-tab {
        flex-direction: column;
        align-items: flex-start;
    }

    .setup-tab__content {
        width: 100%;
    }

    .setup-tab__mobile-img {
        display: block !important;
        margin-top: var(--spacing-md);
        width: 100%;
    }

    .setup-tab__mobile-img img {
        max-width: 200px !important;
        height: auto;
        border-radius: var(--border-radius-md);
        margin: 0 auto;
        display: block;
    }

    .setup-tab__mobile-dual {
        display: flex !important;
        gap: var(--spacing-md);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--spacing-xs);
    }

    .setup-tab__mobile-dual-item {
        flex: 0 0 auto;
        scroll-snap-align: center;
        text-align: center;
    }

    .setup-tab__mobile-dual-item picture {
        display: block;
    }

    .setup-tab__mobile-dual img {
        max-width: 200px !important;
    }

    .setup-tab__mobile-dual-label {
        display: block;
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
        margin-top: var(--spacing-xs);
    }

    .setup-tab__mobile-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: var(--spacing-sm);
    }

    .setup-tab__mobile-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: background 0.2s ease;
    }

    .setup-tab__mobile-dots .dot.active {
        background: var(--accent-color);
    }

    .setup-tab:not(.active) .setup-tab__content p {
        display: block;
    }

    .setup-tab {
        cursor: default;
    }

    .setup-tab::after {
        display: none;
    }

    .setup-tab {
        overflow: visible;
    }

    .setup-tab.active {
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: none;
        background: rgba(255, 255, 255, 0.05);
    }
}

/* Watch Face Gallery */
.watch-gallery-section {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.watch-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.watch-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

/* Desktop: marquee wrappers are invisible */
.marquee-row {
    display: contents;
}

.marquee-content {
    display: contents;
}

.marquee-content[aria-hidden="true"] {
    display: none;
}

.watch-face {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #3a3a3a;
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    object-fit: cover;
}

.watch-face:hover {
    transform: scale(1.05);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(66, 133, 244, 0.3);
}


/* Mobile: Infinite marquee */
@media (max-width: 768px) {
    .watch-gallery-grid {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        overflow: hidden;
    }

    .marquee-row {
        display: flex !important;
        width: max-content;
    }

    .marquee-content {
        display: flex !important;
        gap: 12px;
        padding-right: 12px;
    }

    .marquee-content[aria-hidden="true"] {
        display: flex !important;
    }

    .marquee-left {
        -webkit-animation: marquee-left 40s linear infinite;
        animation: marquee-left 40s linear infinite;
    }

    .marquee-right {
        -webkit-animation: marquee-right 40s linear infinite;
        animation: marquee-right 40s linear infinite;
    }

    @-webkit-keyframes marquee-left {
        from { -webkit-transform: translateX(0); transform: translateX(0); }
        to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
    }

    @keyframes marquee-left {
        from { transform: translateX(0); }
        to { transform: translateX(-50%); }
    }

    @-webkit-keyframes marquee-right {
        from { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
        to { -webkit-transform: translateX(0); transform: translateX(0); }
    }

    @keyframes marquee-right {
        from { transform: translateX(-50%); }
        to { transform: translateX(0); }
    }

    .watch-face {
        flex-shrink: 0;
        width: 90px;
        height: 90px;
    }

    .watch-gallery-grid:hover .marquee-row {
        -webkit-animation-play-state: paused;
        animation-play-state: paused;
    }
}

/* Accessibility: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .marquee-row {
        animation: none !important;
    }
}

/* Gallery CTA */
.gallery-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.gallery-cta p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.gallery-cta a {
    display: inline-block;
}

.gallery-cta a img {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery-cta a:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-cta .cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-color);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: opacity 0.2s;
}

.gallery-cta .cta-button:hover {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background 0.3s ease, visibility 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: background 0.2s, border-color 0.2s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

details {
    cursor: pointer;
}

summary {
    padding: var(--spacing-md);
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.2s;
    line-height: 1;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details[open] summary {
    border-bottom: 1px solid var(--surface-border);
    background: rgba(255, 255, 255, 0.02);
}

.faq-content {
    padding: var(--spacing-md);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.faq-content a:hover {
    opacity: 0.8;
}

.faq-content ol,
.faq-content ul {
    padding-left: 1.5rem;
    margin: 0.75rem 0 1rem;
}

.faq-content p {
    margin: 0.5rem 0;
}

.faq-content .faq-secondary {
    margin-top: 1.25rem;
    font-weight: 500;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: var(--spacing-lg) 0;
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

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

/* Badge Overrides */
.nav-badge img,
.hero-badge img {
    display: block;
    border-radius: 0 !important;
}

.nav-badge,
.hero-badge {
    padding: 0;
    background: none;
    box-shadow: none;
}

.nav-badge:hover,
.hero-badge:hover {
    transform: translateY(-2px);
    background: none;
    box-shadow: none;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(to top, rgba(66, 133, 244, 0.1), transparent);
    padding: 80px 0;
}