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

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --success-dark: #059669;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-lg);
    color: white;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    flex-shrink: 0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.badge-icon {
    font-size: 1.5rem;
}

/* Info Card */
.info-card-link {
    text-decoration: none;
    display: block;
    margin-bottom: 32px;
    transition: transform 0.3s ease;
}

.info-card-link:hover {
    transform: translateY(-4px);
}

.info-card {
    background: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: start;
    cursor: pointer;
    transition: all 0.3s ease;
}

.info-card-link:hover .info-card {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    border-color: #2563eb;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: #1e40af;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.info-content p {
    color: #1e3a8a;
    line-height: 1.6;
    margin-bottom: 16px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.info-card-link:hover .download-btn {
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.download-btn svg {
    width: 24px;
    height: 24px;
}

/* App Features Section */
.app-features-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.app-features-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.features-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* Learning Approach Section */
.learning-approach-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.learning-approach-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.approach-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.approach-card {
    position: relative;
    padding: 28px;
    padding-left: 80px;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.approach-number {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.approach-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.approach-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.example-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--success);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.example-box strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.testimonials-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 12px;
    border: 2px solid #fed7aa;
}

.stars {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #f59e0b;
}

.testimonial-card p {
    color: var(--text-primary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 12px;
}

.author {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Editor Section */
.editor-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

/* Editor */
.editor-wrapper {
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.editor-wrapper:focus-within {
    border-color: var(--primary);
}

#adsTextarea {
    width: 100%;
    padding: 20px;
    border: none;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    min-height: 300px;
    background: #fafafa;
    color: var(--text-primary);
    outline: none;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--background);
    border-top: 1px solid var(--border);
}

#lineCount {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

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

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: var(--success-dark);
}

/* Guidelines Section */
.guidelines-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.guidelines-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guideline-card {
    padding: 24px;
    background: var(--background);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.guideline-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.guideline-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.guideline-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.guideline-card code {
    display: block;
    background: var(--surface);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-top: 8px;
    color: var(--primary);
    font-family: 'Monaco', 'Menlo', monospace;
    word-break: break-all;
}

/* Deployment Section */
.deployment-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
}

.deployment-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.deployment-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.step-content code {
    display: block;
    background: var(--background);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    border: 1px solid var(--border);
    margin-top: 8px;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success);
    color: white;
}

.notification.error {
    background: #ef4444;
    color: white;
}

.notification.info {
    background: #3b82f6;
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    margin-top: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.email-link svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    header {
        padding: 24px;
        margin-bottom: 24px;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-section {
        padding: 24px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .action-buttons {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

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

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

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

    .approach-card {
        padding-left: 24px;
        padding-top: 70px;
    }

    .approach-number {
        left: 50%;
        transform: translateX(-50%);
        top: 16px;
    }

    .notification {
        left: 12px;
        right: 12px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}
