/* CSS Design System for Co Czytam Landing Page */

:root {
    --primary: hsl(238, 83%, 66%);
    --primary-hover: hsl(238, 83%, 60%);
    --primary-light: rgba(99, 102, 241, 0.15);
    
    --bg-dark: hsl(222, 47%, 11%);
    --bg-card: hsl(223, 47%, 15%);
    --bg-header: rgba(15, 23, 42, 0.8);
    
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 65%);
    --text-dark: hsl(222, 47%, 11%);
    
    --success: hsl(142, 71%, 45%);
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Common Layout and Typography */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, hsl(238, 83%, 75%) 0%, hsl(263, 80%, 70%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: hsl(238, 83%, 75%);
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1f 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Simulated App Mockup (Premium UI look) */
.app-mockup {
    width: 320px;
    background-color: var(--bg-card);
    border: 8px solid rgba(255, 255, 255, 0.1);
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(10deg);
    transition: var(--transition);
}

.app-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.mockup-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-body {
    padding: 20px;
}

.mockup-nav-title {
    font-size: 16px;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
    text-align: center;
}

.mockup-stat-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 24px;
}

.mockup-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin: 4px 0 10px 0;
}

.mockup-stat-unit {
    font-size: 14px;
    color: var(--text-muted);
}

.mockup-progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.mockup-progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 99px;
}

.mockup-bar-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    padding: 10px 10px 0 10px;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
}

.mockup-bar {
    width: 20px;
    background-color: rgba(99, 102, 241, 0.7);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.mockup-bar:hover {
    background-color: var(--primary);
}

.mockup-bar-month {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.feature-description {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Premium Section */
.premium {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
}

.premium-box {
    background: linear-gradient(135deg, hsl(223, 47%, 16%) 0%, hsl(223, 47%, 11%) 100%);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.premium-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.premium-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.premium-text {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.premium-list {
    list-style: none;
}

.premium-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-main);
    font-size: 15px;
}

.premium-list li::before {
    content: "✦";
    color: #f59e0b;
    font-weight: 700;
}

.premium-pricing-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.pricing-price {
    font-size: 28px;
    font-weight: 800;
    margin: 12px 0;
    color: #f59e0b;
}

.pricing-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.pricing-feature-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
}

/* Download Section */
.download {
    padding: 120px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    border-top: 1px solid var(--border-color);
}

.download-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    justify-content: center;
}

.google-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background-color: var(--text-main);
    color: var(--text-dark);
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.google-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background-color: #ffffff;
}

.play-icon {
    font-size: 32px;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-subtext {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    opacity: 0.8;
}

.btn-maintext {
    font-size: 20px;
    font-weight: 800;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.2);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

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

.divider {
    opacity: 0.3;
}

/* Responsive Web Design (RWD) */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .premium-box {
        grid-template-columns: 1fr;
        padding: 48px;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 0;
    }
    
    .nav {
        display: none; /* simple hidden layout for mobile nav in this preview */
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}

/* Mockup body for real screenshots */
.mockup-body-screenshot {
    background-color: #000;
    line-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Statuses Section */
.statuses {
    padding: 100px 0;
    background-color: rgba(255, 255, 255, 0.01);
}

.statuses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.status-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.status-badge {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 20px;
    display: inline-block;
}

.badge-reading {
    background-color: rgba(59, 130, 246, 0.15);
    color: hsl(217, 91%, 60%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-completed {
    background-color: rgba(16, 185, 129, 0.15);
    color: hsl(142, 71%, 45%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-plan {
    background-color: rgba(139, 92, 246, 0.15);
    color: hsl(263, 90%, 70%);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.border-reading:hover { border-color: hsl(217, 91%, 60%); }
.border-completed:hover { border-color: hsl(142, 71%, 45%); }
.border-plan:hover { border-color: hsl(263, 90%, 70%); }

.status-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.status-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Screens / Gallery Section */
.screens {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.screens-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.gallery-item {
    text-align: center;
}

.gallery-mockup {
    background-color: var(--bg-card);
    border: 6px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.gallery-item:hover .gallery-mockup {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gallery-desc {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 240px;
    margin: 0 auto;
}

/* Updated Responsive Web Design (RWD) */
@media (max-width: 992px) {
    .statuses-grid, .screens-gallery {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .gallery-mockup {
        max-width: 280px;
    }
}

/* Centered Hero Styles */
.hero-container-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content-centered {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-actions-centered {
    display: flex;
    gap: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-actions-centered {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-actions-centered .btn {
        width: 100%;
    }
}

/* Language Switcher Styles */
.lang-switcher {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 8px;
}

.lang-active {
    color: var(--text-main);
}

.lang-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.lang-link:hover {
    color: var(--primary);
}
