/* Inherit Code Poet Labs Variables */
:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --primary-glow: #00fff2;
    --secondary-glow: #bd00ff;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --border-glass: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s ease;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.6;
}

/* Reused Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-glow), var(--primary-glow));
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 242, 0.4);
}

.btn-outline {
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--primary-glow);
    background: rgba(0, 255, 242, 0.05);
}

/* Header */
.glass-header {
    padding: 20px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 32px;
    border-radius: 6px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 24px;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-main);
}

/* Hero */
.hero {
    padding: 120px 0;
    display: flex;
    align-items: center;
    position: relative;
    /* Ensure content stays above if needed */
    z-index: 2;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-image {
    flex: 1;
    /* Default for mobile */
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    display: block;
}

/* Desktop Layout */
@media (min-width: 769px) {
    .hero-content {
        flex: 1;
        /* Reset width from fixed experiment */
        width: auto;
    }

    .hero-image {
        flex: 1;
        position: relative;
        /* Scrolls with page */
        top: auto;
        left: auto;
        transform: none;
        width: auto;
        max-width: 100%;
        margin: 0;
        pointer-events: auto;
    }

    .hero .container {
        justify-content: space-between;
    }
}

/* Features */
.features {
    position: relative;
    z-index: 10;
    /* Higher than fixed image */
    background: var(--bg-dark);
    /* Opaque background to cover image */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    padding: 80px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: 20px;
    transition: var(--transition-fast);
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Gallery */
.gallery {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.gallery-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    padding-bottom: 24px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 24px;
}

.gallery-item h3,
.gallery-item p {
    padding: 0 24px;
}

.gallery-item h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.gallery-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Download Section */
.download {
    text-align: center;
    padding: 100px 0;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.download p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-badge img {
    height: 60px;
    transition: transform 0.2s;
}

.app-store-badge:hover img {
    transform: scale(1.05);
}

/* Footer & Support Pages */
.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 16px;
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Text Pages (Privacy/Support) */
.policy-page {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.policy-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-glow);
}

.policy-content p,
.policy-content li {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.policy-content ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
}

.faq-item h3 {
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Mobile */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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