/* ============================================
   ReReader Promotional Website
   Color palette from the Android app theme
   ============================================ */

:root {
    --primary: #5B8C5A;
    --primary-dark: #3D5C3C;
    --primary-light: #7BAF7A;
    --secondary: #E8B86D;
    --secondary-dark: #D4A24A;
    --bg: #F5F2ED;
    --surface: #FFFFFF;
    --surface-variant: #F0EDE6;
    --text: #2D2D2D;
    --text-secondary: #6B6B6B;
    --divider: #E0E0E0;
    --error: #CF6679;
    --success: #2A9D8F;
    --warning: #F4A261;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-nav {
    background: var(--primary);
    color: #fff;
    padding: 10px 22px;
    font-size: 0.88rem;
}
.btn-nav:hover { background: var(--primary-dark); }

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 242, 237, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--divider);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-dark);
    text-decoration: none;
}
.nav-logo img { border-radius: 8px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(160deg, var(--bg) 0%, #e8efe7 50%, var(--surface-variant) 100%);
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}
.hero-content h1 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.5;
}
.hero-disclaimer svg { flex-shrink: 0; margin-top: 2px; }
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}
.hero-wave svg { display: block; width: 100%; height: auto; }

/* Hero Screenshot */
.hero-visual { display: flex; justify-content: center; }
.hero-screenshot {
    width: 280px;
    height: auto;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

/* ---- Stats ---- */
.stats {
    background: #fff;
    padding: 48px 0;
}
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ---- Features ---- */
.features {
    padding: 100px 0;
    background: #fff;
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.section-header h2 { color: var(--primary-dark); margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.08rem; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.feature-card {
    background: var(--surface-variant);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---- Tests ---- */
.tests {
    padding: 100px 0;
    background: var(--bg);
}
.test-category { margin-bottom: 56px; }
.test-category:last-child { margin-bottom: 0; }
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
}
.category-1 { background: linear-gradient(135deg, rgba(91,140,90,0.1), rgba(91,140,90,0.05)); }
.category-2 { background: linear-gradient(135deg, rgba(232,184,109,0.15), rgba(232,184,109,0.05)); }
.category-3 { background: linear-gradient(135deg, rgba(42,157,143,0.1), rgba(42,157,143,0.05)); }
.category-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.5;
}
.category-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2px;
}
.category-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.test-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.test-card {
    background: #fff;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--divider);
    transition: transform 0.25s, box-shadow 0.25s;
}
.test-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.test-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}
.test-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 14px;
}
.test-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(91,140,90,0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ---- Screenshots ---- */
.screenshots {
    padding: 100px 0;
    background: #fff;
}
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.screenshot-card { text-align: center; }
.screenshot-card img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    transition: transform 0.25s;
}
.screenshot-card:hover img {
    transform: translateY(-4px);
}
.screenshot-label {
    display: block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---- How It Works ---- */
.how-it-works {
    padding: 100px 0;
    background: linear-gradient(160deg, #e8efe7, var(--bg));
}
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}
.step {
    text-align: center;
    max-width: 280px;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}
.step h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}
.step-arrow {
    color: var(--divider);
    margin-top: 20px;
}

/* ---- Privacy ---- */
.privacy {
    padding: 100px 0;
    background: #fff;
}
.privacy-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}
.privacy-text h2 { color: var(--primary-dark); margin-bottom: 16px; }
.privacy-text > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 28px;
    max-width: 520px;
}
.privacy-list { list-style: none; }
.privacy-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    font-weight: 500;
}
.privacy-list li svg { flex-shrink: 0; }
.privacy-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.shield {
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Partner CTA ---- */
.partner-cta {
    padding: 100px 0;
    background: var(--primary-dark);
    color: #fff;
}
.cta-content { text-align: center; max-width: 900px; margin: 0 auto; }
.cta-content h2 {
    color: #fff;
    margin-bottom: 16px;
}
.cta-content > p {
    color: rgba(255,255,255,0.8);
    font-size: 1.08rem;
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.cta-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}
.cta-benefit {
    background: rgba(255,255,255,0.08);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.12);
    text-align: left;
}
.cta-benefit h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary);
}
.cta-benefit p {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}
.cta-contact p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}
.cta-contact .btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary-dark);
    font-size: 1.05rem;
}
.cta-contact .btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

/* ---- Footer ---- */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 48px 0 32px;
}
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
}
.footer-brand img { border-radius: 6px; }
.footer-links {
    display: flex;
    gap: 28px;
}
.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary-light); }
.footer-disclaimer {
    max-width: 700px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #777;
}
.footer-copyright {
    font-size: 0.78rem;
    color: #555;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshots-grid { grid-template-columns: repeat(3, 1fr); }
    .cta-benefits { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--divider);
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero { padding: 120px 0 80px; }
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-disclaimer { justify-content: center; text-align: left; margin: 0 auto; }
    .hero-visual { order: -1; }
    .hero-screenshot { width: 220px; }

    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 24px; }

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

    .test-cards { grid-template-columns: 1fr; }

    .screenshots-grid { grid-template-columns: repeat(3, 1fr); }

    .steps { flex-direction: column; align-items: center; }
    .step-arrow { transform: rotate(90deg); }

    .privacy-content { grid-template-columns: 1fr; text-align: center; }
    .privacy-text > p { margin-left: auto; margin-right: auto; }
    .privacy-list li { justify-content: center; }

    .cta-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .btn-lg { text-align: center; justify-content: center; }
    .screenshots-grid { grid-template-columns: repeat(2, 1fr); max-width: 400px; margin-left: auto; margin-right: auto; }
    .stat-number { font-size: 1.8rem; }
}
