﻿
:root {
    --primary-color: #2CB89D;
    --secondary-color: #2a3d45;
    --background-color: #f4f7f6;
    --text-color: #333;
    --light-text-color: #fff;
    --container-width: 1200px;
    --border-radius: 8px;
}

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

.home-body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a8b7a 100%);
    overflow-x: hidden;
}

    .home-body .container {
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 20px;
    }


.cta-button {
    background: linear-gradient(135deg, var(--primary-color), #1a8b7a);
    color: var(--light-text-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(44, 184, 157, 0.3);
    }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a8b7a 100%);
    color: var(--light-text-color);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-visual {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-ereader {
    width: 350px;
    height: 500px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 25px;
    box-shadow: 0 0 0 8px rgba(44, 184, 157, 0.1), 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    animation: deviceFloat 6s ease-in-out infinite;
    overflow: hidden;
}

@keyframes deviceFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    50% {
        transform: translateY(-5px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

.screen {
    position: absolute;
    top: 40px;
    left: 25px;
    right: 25px;
    bottom: 80px;
    background: var(--text-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.status-bar {
    height: 25px;
    background: linear-gradient(135deg, var(--primary-color), #1a8b7a);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    font-size: 11px;
    color: var(--light-text-color);
    font-weight: 500;
}

.app-header {
    height: 50px;
    background: var(--light-text-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.app-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

.book-content {
    flex: 1;
    background: var(--light-text-color);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.page-line {
    height: 8px;
    background: #e8e8e8;
    margin-bottom: 8px;
    border-radius: 4px;
    animation: fadeInLine 2s ease-in-out infinite;
}

    .page-line:nth-child(1) {
        width: 90%;
        animation-delay: 0s;
    }

    .page-line:nth-child(2) {
        width: 85%;
        animation-delay: 0.2s;
    }

    .page-line:nth-child(3) {
        width: 95%;
        animation-delay: 0.4s;
    }

    .page-line:nth-child(4) {
        width: 70%;
        animation-delay: 0.6s;
    }

    .page-line:nth-child(5) {
        width: 88%;
        animation-delay: 0.8s;
    }

    .page-line:nth-child(6) {
        width: 82%;
        animation-delay: 1s;
    }

@keyframes fadeInLine {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.highlight-note {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 60px;
    height: 40px;
    background: rgba(44, 184, 157, 0.2);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
    animation: noteSlide 4s ease-in-out infinite;
}

@keyframes noteSlide {
    0%, 100% {
        transform: translateX(70px);
        opacity: 0;
    }

    25%, 75% {
        transform: translateX(0);
        opacity: 1;
    }
}

.reading-progress {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), #1a8b7a);
    border-radius: 2px;
    animation: progressGrow 8s ease-in-out infinite;
}

@keyframes progressGrow {
    0% {
        width: 20%;
    }

    50% {
        width: 65%;
    }

    100% {
        width: 20%;
    }
}

.home-button {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    border-radius: 50%;
    border: 2px solid #ddd;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
}

.primary-button {
    background: var(--light-text-color);
    color: var(--primary-color);
}

    .primary-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(255,255,255,0.3);
    }

.secondary-button {
    background: rgba(255,255,255,0.2);
    color: var(--light-text-color);
    border: 2px solid rgba(255,255,255,0.3);
}

    .secondary-button:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-3px);
    }

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--background-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--light-text-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 184, 157, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(135deg, var(--primary-color), #1a8b7a);
    }

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px rgba(44, 184, 157, 0.2);
    }

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background: var(--light-text-color);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.benefits-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

    .benefits-list li {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        font-weight: 500;
        color: var(--text-color);
    }

        .benefits-list li::before {
            content: '✓';
            background: linear-gradient(135deg, var(--primary-color), #1a8b7a);
            color: var(--light-text-color);
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-weight: bold;
            font-size: 0.8rem;
        }

.benefits-visual {
    position: relative;
}

.device-mockup {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), #1a8b7a);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(44, 184, 157, 0.3);
    animation: float 6s ease-in-out infinite;
}

.mockup-screen {
    background: var(--light-text-color);
    border-radius: 20px;
    padding: 1.5rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mockup-header {
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), #1a8b7a);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.mockup-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mockup-line {
    height: 8px;
    background: var(--background-color);
    border-radius: 4px;
}

    .mockup-line:nth-child(2) {
        width: 80%;
    }

    .mockup-line:nth-child(3) {
        width: 60%;
    }

    .mockup-line:nth-child(4) {
        width: 90%;
    }

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a8b7a 100%);
    color: var(--light-text-color);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--light-text-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: var(--light-text-color);
            }

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .animated-ereader {
        width: 280px;
        height: 400px;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
}
