/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C5F6F;
    --primary-dark: #1e4450;
    --primary-light: #4A7C8C;
    --accent-color: #FF6B6B;
    --success-color: #51CF66;
    --warning-color: #FFB84D;
    --background-color: #FFF8F0;
    --white: #FFFFFF;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --light-gray: #F5EFE7;
    --border-color: #E0E0E0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #2C5F6F 0%, #4A7C8C 100%);
    --gradient-hero: linear-gradient(135deg, rgba(44, 95, 111, 0.05) 0%, rgba(74, 124, 140, 0.02) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.version-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(44, 95, 111, 0.08) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    animation: fadeInDown 0.6s ease-out;
}

.badge-icon {
    font-size: 18px;
    margin-right: 4px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary.large {
    padding: 18px 50px;
    font-size: 20px;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.download-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat strong {
    font-size: 22px;
    color: var(--primary-color);
    font-weight: 700;
}

.stat span {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.hero-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: var(--white);
    border-radius: 30px;
    padding: 15px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-image {
    max-width: 60%;
    height: auto;
}

/* Highlights Section */
.highlights {
    padding: 60px 0;
    background-color: var(--white);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.highlight-card {
    background: var(--gradient-hero);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.highlight-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: block;
}

.highlight-card h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Download Section */
.download-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

.download-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.qr-box {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.qr-code {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: var(--white);
}

.qr-code canvas,
.qr-code img {
    max-width: 100%;
    height: auto;
}

.qr-text {
    margin-top: 20px;
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qr-icon {
    font-size: 20px;
}

.download-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-lighter);
    font-weight: 600;
    font-size: 14px;
}

.download-divider span {
    background: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.download-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.btn-download {
    display: flex;
    align-items: center;
    background: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.download-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.download-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

.download-note svg {
    width: 16px;
    height: 16px;
}

/* Platform Grid Styles */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.platform-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.platform-card.platform-highlighted {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(44, 95, 111, 0.1), var(--shadow-xl);
}

.platform-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 30px;
    text-align: center;
    position: relative;
}

.platform-ios .platform-header {
    background: linear-gradient(135deg, #4A7C8C 0%, #2C5F6F 100%);
}

.platform-icon {
    font-size: 60px;
    margin-bottom: 15px;
    display: block;
}

.platform-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.platform-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ios-badge {
    background: rgba(255, 255, 255, 0.3);
}

.platform-body {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.platform-card .qr-box {
    padding: 25px;
    width: 100%;
    max-width: 280px;
}

.platform-card .qr-code {
    width: 200px;
    height: 200px;
}

.platform-card .qr-text {
    font-size: 14px;
    margin-top: 15px;
}

.platform-card .download-divider {
    width: 100%;
    margin: 10px 0;
}

.platform-card .btn-download {
    width: 100%;
    max-width: 350px;
    justify-content: center;
}

.btn-ios {
    background: linear-gradient(135deg, #4A7C8C 0%, #2C5F6F 100%);
    color: var(--white);
    border: none;
}

.btn-ios:hover {
    background: linear-gradient(135deg, #2C5F6F 0%, #1e4450 100%);
}

.btn-ios .download-icon {
    color: var(--white);
}

.btn-ios .btn-title {
    color: var(--white);
}

.btn-ios .btn-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.platform-requirements {
    text-align: center;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.platform-requirements p {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.download-note-general {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-light);
}

.download-note-general svg {
    width: 18px;
    height: 18px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--gradient-hero);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: block;
}

.feature-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* What's New Section */
.whats-new {
    padding: 80px 0;
    background-color: var(--background-color);
}

.changelog {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.changelog-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.changelog-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.changelog-badge {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.changelog-badge.new {
    background-color: var(--success-color);
    color: var(--white);
}

.changelog-badge.improved {
    background-color: var(--primary-color);
    color: var(--white);
}

.changelog-badge.fixed {
    background-color: var(--warning-color);
    color: var(--white);
}

.changelog-content h4 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 600;
}

.changelog-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.5;
}

/* Instructions Section */
.instructions {
    padding: 80px 0;
    background-color: var(--white);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 50px;
}

.step {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background: var(--gradient-hero);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.step-content h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.help-box {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 4px solid var(--warning-color);
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.help-box h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
}

.help-box p {
    color: var(--text-color);
    font-size: 15px;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--background-color);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    user-select: none;
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question h4 {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Requirements Section */
.requirements {
    padding: 80px 0;
    background-color: var(--white);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.requirement-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--gradient-hero);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.requirement-item svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.requirement-item h4 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 6px;
    font-weight: 600;
}

.requirement-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    width: 35px;
    height: 35px;
}

.footer-logo span {
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.version-info-footer {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.update-date {
    font-size: 13px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-preview {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-container {
        flex-direction: column;
        gap: 30px;
    }

    .download-divider {
        transform: rotate(90deg);
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 30px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .qr-code {
        width: 200px;
        height: 200px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    /* Platform Grid Responsive */
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .platform-card .qr-code {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .app-name {
        font-size: 22px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .btn-primary {
        padding: 14px 30px;
        font-size: 16px;
    }

    .btn-primary.large {
        padding: 16px 35px;
        font-size: 18px;
    }

    .download-stats {
        flex-direction: column;
        gap: 15px;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}
