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

:root {
    /* Storytel color palette */
    --storytel-orange: #ec5f36;
    --storytel-pink: #f099ac;
    --storytel-yellow: #ffcb4d;
    --storytel-green: #00b77d;
    --storytel-blue: #3481c9;
    --storytel-black: #000000;

    /* Primary colors based on Storytel brand */
    --primary-color: #ec5f36;
    --primary-dark: #d34d26;
    --secondary-color: #3481c9;
    --accent-color: #00b77d;

    /* Text colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;

    /* Background colors */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--storytel-pink) 50%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    margin-top: -30px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badges img {
    height: 20px;
}

/* Download Section */
.download-section {
    padding: 80px 20px;
    text-align: center;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 40px;
}

.download-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.download-card:nth-child(1) .platform-icon {
    color: var(--secondary-color);
}

.download-card:nth-child(2) .platform-icon {
    color: var(--text-primary);
}

.download-card:nth-child(3) .platform-icon {
    color: #000;
}

.platform-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.platform-icon svg {
    width: 100%;
    height: 100%;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.download-note {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.download-note a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.download-note a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--bg-white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card:nth-child(1):hover {
    border-color: var(--secondary-color);
}

.feature-card:nth-child(2):hover {
    border-color: var(--primary-color);
}

.feature-card:nth-child(3):hover {
    border-color: var(--storytel-yellow);
}

.feature-card:nth-child(4):hover {
    border-color: var(--accent-color);
}

.feature-card:nth-child(5):hover {
    border-color: var(--storytel-pink);
}

.feature-card:nth-child(6):hover {
    border-color: var(--primary-color);
}

.feature-card:nth-child(7):hover {
    border-color: var(--storytel-yellow);
}

.feature-card:nth-child(8):hover {
    border-color: var(--accent-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 20px;
}

.screenshots h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.screenshot-grid img:hover {
    transform: scale(1.02);
}

/* Tech Stack Section */
.tech-stack {
    padding: 80px 20px;
    background: var(--bg-white);
}

.tech-stack h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.tech-item {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    color: var(--text-secondary);
}

.tech-item:nth-child(1) {
    border-left: 4px solid var(--primary-color);
}

.tech-item:nth-child(2) {
    border-left: 4px solid var(--secondary-color);
}

.tech-item:nth-child(3) {
    border-left: 4px solid var(--accent-color);
}

.tech-item:nth-child(4) {
    border-left: 4px solid var(--storytel-yellow);
}

.tech-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

/* About Section */
.about {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.disclaimer {
    background: #fff4ed;
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    color: #78350f;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--storytel-pink) 50%, var(--secondary-color) 100%);
    color: white;
    border-radius: 20px;
    margin: 40px 20px;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta .btn-primary:hover {
    background: var(--bg-light);
}

.cta .btn-secondary {
    border-color: white;
    color: white;
}

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

/* Footer */
footer {
    background: var(--storytel-black);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer a {
    color: var(--storytel-orange);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
    color: var(--storytel-pink);
}

.footer-note {
    margin-top: 15px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .download-section h2,
    .features h2,
    .screenshots h2,
    .tech-stack h2,
    .about h2,
    .cta h2 {
        font-size: 1.8rem;
    }

    .download-cards,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 40px 20px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 40px 15px;
        margin-top: -20px;
    }

    .download-section,
    .features,
    .screenshots,
    .tech-stack,
    .about,
    .cta {
        padding: 50px 15px;
    }
}
