/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.logo h1 {
    font-size: 26px;
    color: #E63946;
    font-weight: 800;
}

.logo h1 a {
    color: #E63946;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #E63946;
}

/* ==================== AD SPACES ==================== */
.ad-space {
    margin: 25px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
}

.ad-top-banner {
    min-height: 90px;
    max-width: 728px;
}

.ad-horizontal {
    min-height: 250px;
    max-width: 970px;
}

.ad-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 70px 20px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 18px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 45px;
    opacity: 0.95;
    font-weight: 500;
}

/* ==================== DOWNLOAD TOOL ==================== */
.download-tool {
    max-width: 750px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.input-group input {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.input-group input:focus {
    outline: 3px solid rgba(255,255,255,0.5);
}

.btn-download {
    background: #E63946;
    color: #fff;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(230,57,70,0.4);
}

.btn-download:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(230,57,70,0.5);
}

.btn-download:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.input-hint {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    text-align: left;
}

.error-msg {
    background: rgba(230,57,70,0.95);
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 18px;
    font-weight: 600;
}

.result-section {
    margin-top: 25px;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 70px 20px;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a202c;
    font-weight: 800;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
}

.feature-card {
    text-align: center;
    padding: 35px 25px;
    background: #f9f9f9;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #667eea;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== HOW IT WORKS ==================== */
.how-it-works {
    padding: 70px 20px;
    background: #f5f5f5;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.step {
    text-align: center;
    padding: 35px 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}

.step h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 700;
}

.step p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 70px 20px;
    background: #fff;
}

.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 12px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #667eea;
}

.faq-icon {
    font-size: 28px;
    color: #667eea;
    transition: transform 0.3s;
    font-weight: 400;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding-bottom: 22px;
}

.faq-answer p {
    color: #666;
    line-height: 1.9;
    font-size: 15px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 20px 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

.footer-col h3 {
    font-size: 19px;
    margin-bottom: 18px;
    color: #E63946;
    font-weight: 700;
}

.footer-col p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.9;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: #E63946;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #333;
    color: #999;
    font-size: 14px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 18px;
    }
    
    .nav {
        gap: 18px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-download {
        justify-content: center;
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .feature-icon {
        font-size: 42px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

/* ==================== PAGE CONTENT STYLES ==================== */
.page-content {
    padding: 70px 20px;
    background: #fff;
    min-height: 60vh;
}

.page-title {
    font-size: 40px;
    margin-bottom: 35px;
    color: #1a202c;
    text-align: center;
    font-weight: 800;
}

.content-box {
    max-width: 950px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 45px;
    border-radius: 12px;
    line-height: 1.9;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.content-box h2 {
    font-size: 28px;
    margin-top: 35px;
    margin-bottom: 18px;
    color: #667eea;
    font-weight: 700;
}

.content-box h3 {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #1a202c;
    font-weight: 700;
}

.content-box p {
    margin-bottom: 18px;
    color: #555;
    font-size: 15px;
}

.content-box ul {
    list-style: disc;
    margin-left: 35px;
    margin-bottom: 18px;
}

.content-box ul li {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

.content-box a {
    color: #667eea;
    text-decoration: underline;
    font-weight: 600;
}

.content-box a:hover {
    color: #E63946;
}

/* Contact Page Specific */
.contact-info {
    text-align: center;
}

.email-display {
    font-size: 24px;
    margin: 25px 0;
    font-weight: 700;
}

.email-display a {
    color: #E63946;
    text-decoration: none;
}

.email-display a:hover {
    text-decoration: underline;
}