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

:root {
    /* App's exact color palette from Flutter */
    --primary: #D9D9D9;
    --primary-hover: #BFBFBF;
    --secondary: #999999;
    --accent: #D9D9D9;
    --success: #4CAF50;
    --warning: #FF9800;
    
    /* Text Colors from GistTextStyles */
    --text-primary: #D9D9D9;
    --text-secondary: #BFBFBF;
    --text-tertiary: #999999;
    --text-quaternary: #474747;
    
    /* Background Colors from app */
    --bg-primary: #191919;
    --bg-secondary: #2A2A2A;
    --bg-tertiary: #000000;
    --bg-card: #191919;
    
    /* Border Colors from app */
    --border: #474747;
    --border-hover: #666666;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    
    /* Border Radius from app */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    
    /* Typography from app */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font sizes from GistTextStyles */
    --font-xs: 11px;
    --font-sm: 12px;
    --font-base: 14px;
    --font-lg: 16px;
    --font-xl: 18px;
    --font-2xl: 24px;
    --font-3xl: 32px;
    --font-4xl: 48px;
    --font-5xl: 64px;
    
    /* Font weights - using regular weight */
    --font-normal: 400;
    --font-medium: 400;
    --font-semibold: 400;
    --font-bold: 400;
    --font-extrabold: 400;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow: hidden; /* No scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100vh;
}

/* Simple Navigation */
.simple-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #191919;
    background: rgba(25, 25, 25, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #474747;
    z-index: 1000;
    padding: 16px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    box-sizing: border-box;
}

.nav-left .logo-text {
    font-size: 18px;
    font-weight: 400;
    color: #D9D9D9;
    letter-spacing: 0.1px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.nav-right .nav-link {
    color: #BFBFBF;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.2s ease;
    padding: 8px 0;
    margin: 0;
}

.nav-right .nav-link:hover {
    color: #D9D9D9;
}

/* Adjust main container for fixed nav */
.main-container {
    margin-top: 60px;
}

/* Ensure Manrope is used everywhere */
* {
    font-family: var(--font-family) !important;
}

/* Main Container - Split Layout */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Side - Content */
.left-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: var(--bg-primary);
    position: relative;
}

.content {
    max-width: 500px;
    width: 100%;
}

.content-section {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-section.hidden {
    opacity: 0;
    transform: translateY(0);
    pointer-events: none;
    display: none;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.logo {
    margin-bottom: 40px;
}

.logo-text {
    font-size: var(--font-lg);
    font-weight: var(--font-normal);
    color: var(--text-primary);
    letter-spacing: 0.1px;
    font-family: var(--font-family);
}

.main-heading {
    font-size: var(--font-5xl);
    font-weight: var(--font-normal);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-family: var(--font-family);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: var(--font-xl);
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    font-family: var(--font-family);
}

/* Mobile-only elements */
.mobile-break {
    display: none;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Hide subtitles on mobile only */
@media (max-width: 1024px) {
    .subtitle {
        display: none;
    }
    
    /* Move title and button down on mobile */
    .content-section {
        padding-top: 40px;
    }
    
    .main-heading {
        margin-bottom: 20px;
    }
    
    /* Move logo down slightly */
    .logo {
        margin-top: 8px;
    }
    
    /* Center button and title */
    .download-section {
        text-align: center;
    }
    
    .content {
        text-align: center;
    }
    
    /* Mobile navigation */
    .simple-nav {
        padding: 12px 20px;
        min-height: 50px;
    }
    
    .nav-left .logo-text {
        font-size: 16px;
    }
    
    .nav-right .nav-link {
        font-size: 12px;
    }
    
    .main-container {
        margin-top: 50px;
    }
}

/* Download Section */
.download-section {
    margin-top: 16px;
}

.google-play-button {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.google-play-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

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


/* Right Side - App Screenshots */
.right-side {
    flex: 1;
    background: linear-gradient(to bottom, #1a1a1a 0%, #2d2d2d 30%, #667eea 60%, #f093fb 80%, #f5576c 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.screenshots-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.screenshots-scroll {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
    margin-bottom: 0;
}

.screenshot {
    width: auto;
    height: auto;
    max-width: 400px;
    max-height: 1200px;
    border-radius: 16px 16px 0 0;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.image-slide:hover .screenshot {
    transform: scale(1.02);
}

/* Center the image in the insights slide specifically */
.image-slide[data-content="insights"] {
    align-items: center;
    justify-content: center;
}

.image-slide[data-content="insights"] .screenshot {
    object-position: center;
    max-width: 300px;
    max-height: 80vh;
}

/* Navigation Controls */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}




/* App Preview Styles */
.app-preview {
    width: 100%;
    height: 100%;
    background: #191919;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-family: 'Manrope', sans-serif;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 0;
    height: 32px;
    color: #D9D9D9;
    font-size: 14px;
    font-weight: 400;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #191919;
}

.header h1 {
    color: #D9D9D9;
    font-size: 18px;
    font-weight: 400;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.ai-badge {
    background: #2A2A2A;
    color: #999999;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
}

.topic-filters {
    display: flex;
    gap: 8px;
    padding: 0 20px 16px;
    overflow-x: auto;
}

.topic-chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    border: 1px solid #474747;
    background: #191919;
    color: #D9D9D9;
    white-space: nowrap;
    flex-shrink: 0;
}

.topic-chip.selected {
    background: #D9D9D9;
    color: #191919;
    border-color: #D9D9D9;
}

.articles {
    flex: 1;
    padding: 0 20px 20px;
    overflow-y: auto;
}

.article-card {
    background: #2A2A2A;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #474747;
}

.article-image {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.circuit-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b6b, #74b9ff, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px, 15px 15px;
}

.ai-text {
    color: white;
    font-size: 24px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    z-index: 1;
}

.fed-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d3436, #636e72);
    position: relative;
}

.fed-bg::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 40px;
    background: linear-gradient(90deg, #e74c3c 0%, #e74c3c 30%, #fff 30%, #fff 70%, #e74c3c 70%);
    border-radius: 4px;
}

.article-content {
    padding: 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
    color: #999999;
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

.article-title {
    font-size: 14px;
    font-weight: 400;
    color: #D9D9D9;
    margin-bottom: 8px;
    line-height: 1.3;
    font-family: 'Manrope', sans-serif;
}

.premium-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 10px;
    color: #999999;
    font-family: 'Manrope', sans-serif;
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 4px 8px;
    background: #191919;
    color: #D9D9D9;
    border: 1px solid #474747;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 400;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-side {
        flex: none;
        padding: 10px 20px 5px 20px;
        min-height: 30vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .right-side {
        flex: none;
        padding: 0;
        margin-top: 10px;
        min-height: 90vh;
        height: 90vh;
        position: relative;
    }
    
    .main-heading {
        font-size: var(--font-3xl);
        margin-bottom: 12px;
    }
    
    .subtitle {
        margin-bottom: 8px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .download-section {
        text-align: center;
    }
    
    .content {
        text-align: center;
    }
    
    .mobile-break {
        display: block;
    }
    
    .mobile-only {
        display: inline;
    }
    
    .desktop-only {
        display: none;
    }
    
    .play-store-badge {
        height: 50px;
    }
    
    .screenshots-container {
        height: 100%;
        position: relative;
        overflow: hidden;
        width: 100%;
        padding: 0;
    }
    
    .screenshots-scroll {
        width: 300%;
        height: 100%;
        display: flex;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(0%);
    }
    
    .image-slide {
        flex: 0 0 33.333%;
        height: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
    }
    
    .screenshot {
        max-width: 360px;
        max-height: 75vh;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: bottom;
        border-radius: 16px 16px 0 0;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .prev-btn {
        left: 15px;
    }
    
    .next-btn {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .left-side {
        padding: 8px 20px 15px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .right-side {
        padding: 0;
        margin-top: 10px;
        height: 90vh;
    }
    
    .main-heading {
        font-size: var(--font-2xl);
        margin-bottom: 12px;
    }
    
    .subtitle {
        font-size: var(--font-lg);
        margin-bottom: 6px;
    }
    
    .logo {
        margin-bottom: 12px;
    }
    
    .download-section {
        text-align: center;
    }
    
    .content {
        text-align: center;
    }
    
    .play-store-badge {
        height: 45px;
    }
    
    .screenshot {
        max-width: 340px;
        max-height: 70vh;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: bottom;
    }
}

@media (max-width: 480px) {
    .left-side {
        padding: 6px 15px 12px 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .right-side {
        padding: 0;
        margin-top: 10px;
        height: 90vh;
    }
    
    .main-heading {
        font-size: var(--font-xl);
        margin-bottom: 10px;
    }
    
    .subtitle {
        font-size: var(--font-base);
        margin-bottom: 4px;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .download-section {
        text-align: center;
    }
    
    .content {
        text-align: center;
    }
    
    .play-store-badge {
        height: 40px;
    }
    
    .screenshot {
        max-width: 310px;
        max-height: 65vh;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: bottom;
    }
}


/* Ensure no scrollbars */
html, body {
    overflow: hidden;
    height: 100%;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Hover effects */

/* Focus states for accessibility */

/* Download Section - Minimal Button */
.download-section {
    margin-top: 16px;
}

.google-play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.google-play-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
}

.google-play-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.button-text {
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: var(--font-sm);
    font-weight: var(--font-normal);
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .google-play-button {
        padding: 10px 16px;
        gap: 10px;
    }
    
    .google-play-button svg {
        width: 20px;
        height: 20px;
    }
    
    .button-text {
        font-size: var(--font-xs);
    }
}

@media (max-width: 768px) {
    .google-play-button {
        padding: 8px 14px;
        gap: 8px;
    }
    
    .google-play-button svg {
        width: 18px;
        height: 18px;
    }
    
    .button-text {
        font-size: var(--font-xs);
    }
}

@media (max-width: 480px) {
    .google-play-button {
        padding: 6px 12px;
        gap: 6px;
    }
    
    .google-play-button svg {
        width: 16px;
        height: 16px;
    }
    
    .button-text {
        font-size: 10px;
    }
}

