/* 1. Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #EA4C5A;
    --primary-light: #FF7A85;
    --background: #f8fafc;
    --card-background: #ffffff;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --light-border: #e2e8f0;
    --content-width: 1080px;
}

/* 2. Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0;
}

/* 3. Button Styles */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 1rem;
}

.btn:hover {
    color: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--card-background);
}

.btn-outline:hover {
    border-color: var(--text-muted);
}

.chrome-icon, .edge-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
    background: white;
    padding: 2px;
    border-radius: 50%;
    object-fit: contain;
}

/* 4. Hero Section */
.hero {
    position: relative;
    text-align: center;
    background: url('../images/bg.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero .container {
    z-index: 2;
}

.logo {
    width: 120px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.stats {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 3rem;
    font-weight: 400;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stats.visible {
    opacity: 1;
    visibility: visible;
}
.stats strong {
    font-weight: 700;
    color: var(--primary);
    font-size: 2rem;
    display: inline-block;
    margin: 0 0.25rem;
}

.stats-detail {
    display: block;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.75rem auto 0;
    transition: color 0.15s ease;
}

.stats-detail:hover {
    color: var(--primary);
}

.stats-detail svg {
    width: 14px;
    height: 14px;
    margin-left: 0.25rem;
    vertical-align: middle;
    margin-top: -2px;
}

.scroll-down {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.4;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* 5. Main Content */
.main-content {
    background: linear-gradient(to bottom, #ffffff 50%, #e3f4f9 100%);
    padding-top: 8rem;
}

/* 6. Video Section */
.video-section {
    padding-bottom: 8rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    line-height: 0;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button-overlay svg {
    width: 32px;
    height: 32px;
    margin-left: 5px;
    color: var(--primary);
}

.play-button-overlay:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

video[playing] + .video-overlay,
video[playing] ~ .play-button-overlay {
    opacity: 0;
    pointer-events: none;
}

/* 7. Features Section */
.features {
    padding-bottom: 8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: var(--content-width);
    margin: 0 auto;
}

.feature-card {
    background: radial-gradient(circle at bottom right, rgba(0, 201, 167, 0.06) 0%, var(--card-background) 40%);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 201, 167, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--text);
    letter-spacing: -0.025em;
}

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

.feature-icon {
    font-size: 2rem;
}

/* 8. Platforms Section */
.platforms {
    padding-bottom: 8rem;
}

.platforms h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    color: var(--text);
}

.platforms-grid {
    display: flex;
    gap: 0;
    max-width: var(--content-width);
    margin: 0 auto;
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--light-border);
    justify-content: space-evenly;
}

.platform-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.platform-group h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text);
    text-align: center;
}

.platform-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.platform-item {
    flex: 0 0 auto;
    min-width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.platform-item img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.platform-item span {
    color: var(--text);
    font-size: 0.875rem;
    text-align: center;
}

.platform-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 2rem;
}

.platform-arrow svg {
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 2px solid var(--text);
    border-radius: 50%;
    color: var(--text);
    background-color: transparent;
}

.platform-arrow svg:hover {
    background-color: transparent;
}

/* 9. Tutorial Section */
.tutorial {
    padding-bottom: 8rem;
}

.tutorial h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    color: var(--text);
}

.tutorial ol {
    background: var(--card-background);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--light-border);
    counter-reset: tutorial-counter;
}

.tutorial-list {
    list-style: none;
    padding-left: 0;
}

.tutorial-list li {
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.tutorial-list li:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 0;
    top: -0.4rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    width: 3rem;
    text-align: right;
    padding-right: 1rem;
}

.tutorial-list p {
    margin: 0.5rem;
    color: var(--text);
    line-height: 1.6;
}

.tutorial-list img {
    width: 100%;
    max-width: 580px;
    border-radius: 0.5rem;
    margin: 1rem 0 0 0;
}

/* 10. FAQ Section */
.faq {
    padding-bottom: 8rem;
}

.faq h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 2rem;
    color: var(--text);
}

.faq-grid {
    max-width: var(--content-width);
    margin: 0 auto;
    background: var(--card-background);
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--light-border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    padding: 1.5rem 0;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 1.125rem;
}

.faq-answer {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    display: none;
    line-height: 1.6;
    font-size: 1rem;
}

.faq-item.active .faq-answer {
    display: block;
}

/* 11. CTA Buttons */
.cta-buttons {
    padding-bottom: 8rem;
}

/* 12. Footer */
.footer {
    padding: 4rem 0;
    background: white;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: var(--content-width);
    margin: 0 auto;
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-weight: 500;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.15s ease;
}

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

.footer p {
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* 13. Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 32px;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

    .video-overlay,
    .play-button-overlay {
        display: none;
    }

    .platforms {
        padding-bottom: 4rem;
    }
    
    .platforms-grid {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }
    
    .platform-item img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        border: 1px solid var(--border);
    }

    .platform-arrow {
        padding: 0.5rem;
        margin-top: 0;
    }
    
    .platform-arrow svg {
        width: 32px;
        height: 32px;
        padding: 8px;
        transform: rotate(90deg);
    }

    .tutorial ol {
        padding: 2rem;
    }

    .faq-grid {
        padding: 0.5rem 1.5rem;
    }

    .video-section,
    .features,
    .tutorial,
    .faq,
    .cta-buttons {
        padding-bottom: 4rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .stats {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .stats strong {
        font-size: 1.75rem;
    }

    .stats-detail {
        margin: 0.75rem auto 0;
    }
}

/* Landing Page Specific Styles */
.hero-platforms {
    padding: 0;
    margin: 3rem auto;
}

.hero-platforms .platforms-grid {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 1080px;
    margin: 0 auto;
}

.hero-platforms .platform-item img {
    width: 48px;
    height: 48px;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    min-width: 180px;
}

.platform-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .hero-platforms .platforms-grid {
        padding: 1rem;
    }
    
    .hero-platforms .platform-item img {
        width: 40px;
        height: 40px;
    }
    
    .hero-buttons {
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        min-width: 0;
    }
}
