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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.main-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

.input-section, .loading-section, .error-section, .lead-gate {
    padding: 40px;
}

.analyze-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

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

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.privacy-note {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
}

.hidden {
    display: none !important;
}

.loading-section {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.loading-subtext {
    color: #888;
}

.error-box {
    background: #fff3f3;
    border: 2px solid #ffcccc;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
}

.error-box h3 {
    color: #d32f2f;
    margin-bottom: 15px;
}

.error-box p {
    color: #666;
    margin-bottom: 20px;
}

.lead-gate-content {
    max-width: 600px;
    margin: 0 auto;
}

.analysis-preview h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

.summary-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-stat {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-number.critical {
    color: #d32f2f;
}

.stat-number.warning {
    color: #f57c00;
}

.stat-number.success {
    color: #388e3c;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.unlock-message {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.email-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
}

.report-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
}

.report-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.report-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.report-url {
    font-size: 1.1rem;
    color: #667eea;
    margin-bottom: 5px;
}

.report-date {
    color: #888;
}

.report-summary {
    margin-bottom: 40px;
}

.report-summary h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.critical-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.warning-card {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
}

.success-card {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.card-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

.report-sections {
    margin-bottom: 40px;
}

.report-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8rem;
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.check-item {
    background: #f9f9f9;
    border-left: 5px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.check-item.check-fail {
    border-left-color: #d32f2f;
    background: #fff8f8;
}

.check-item.check-pass {
    border-left-color: #388e3c;
    background: #f8fff8;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-critical {
    background: #d32f2f;
    color: white;
}

.badge-success {
    background: #388e3c;
    color: white;
}

.check-description {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.check-impact, .check-fix {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    line-height: 1.6;
}

.check-impact {
    border-left: 3px solid #f57c00;
}

.check-fix {
    border-left: 3px solid #2196f3;
}

.check-impact strong, .check-fix strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.report-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.report-footer h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.report-footer p {
    line-height: 1.8;
    margin-bottom: 15px;
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .app-container {
        box-shadow: none;
    }

    .report-container {
        padding: 20px;
    }

    .report-header {
        page-break-after: avoid;
    }

    .report-section {
        page-break-inside: avoid;
    }

    .check-item {
        page-break-inside: avoid;
    }

    .summary-card,
    .check-item.check-fail {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .summary-box {
        grid-template-columns: 1fr;
    }

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