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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navbar, .app-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.tagline {
    font-size: 0.9rem;
    opacity: 0.9;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pro-status {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 3rem;
}

/* Hero */
.hero {
    background: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.problem {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 2rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.cta-button.large {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

/* Features */
.features {
    background: white;
    padding: 3rem 0;
}

.features h3, .comparison h3, .use-cases h3, .pricing h3, .faq h3, .cta-final h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature h4 {
    margin-bottom: 0.5rem;
    color: #667eea;
}

/* Comparison */
.comparison {
    background: white;
    padding: 3rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.comparison-table th, .comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.comparison-table .ok {
    color: #27ae60;
    font-weight: bold;
}

.comparison-table .bad {
    color: #e74c3c;
}

/* Use cases */
.use-cases {
    background: #f9f9f9;
    padding: 3rem 0;
}

.use-case-list {
    list-style: none;
    max-width: 700px;
    margin: 2rem auto;
}

.use-case-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

/* Pricing */
.pricing {
    background: white;
    padding: 3rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.plan {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.plan.pro {
    border-color: #667eea;
    background: white;
}

.plan h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.plan ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan li {
    padding: 0.5rem 0;
    color: #666;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 1rem;
}

/* FAQ */
.faq {
    background: #f9f9f9;
    padding: 3rem 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.faq-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #666;
}

/* CTA Final */
.cta-final {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-final h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

/* App Page */
.app-page {
    background: #f5f5f5;
}

.app-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-left: 1rem;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #333;
}

.sidebar ol, .sidebar ul {
    padding-left: 1.5rem;
}

.sidebar li {
    margin-bottom: 0.5rem;
    color: #666;
}

.sidebar hr {
    margin: 1.5rem 0;
    border: none;
    border-top: 1px solid #eee;
}

.sidebar h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.codes {
    list-style: none;
    padding: 0;
}

.codes li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}

.code {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
}

.code.ok {
    background: #d4edda;
    color: #155724;
}

.code.warn {
    background: #fff3cd;
    color: #856404;
}

.code.err {
    background: #f8d7da;
    color: #721c24;
}

.app-main {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-right: 1rem;
}

.app-main h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.input-section {
    margin-bottom: 2rem;
}

#urlInput {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
}

#urlInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

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

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.button.secondary {
    background: #f5f5f5;
    color: #333;
    border: 2px solid #eee;
}

.button.secondary:hover {
    background: #eee;
}

.button-small {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.button-small:hover {
    background: rgba(255,255,255,0.3);
}

.status-text {
    color: #667eea;
    font-weight: bold;
    margin-top: 0.5rem;
}

.results-section h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.results-container {
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.result-item {
    display: grid;
    grid-template-columns: 1fr 100px;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.result-item:last-child {
    border-bottom: none;
}

.result-url {
    word-break: break-all;
    font-family: monospace;
    font-size: 0.9rem;
    color: #667eea;
}

.result-status {
    text-align: right;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.result-status.ok {
    background: #d4edda;
    color: #155724;
}

.result-status.warn {
    background: #fff3cd;
    color: #856404;
}

.result-status.error {
    background: #f8d7da;
    color: #721c24;
}

.result-status.info {
    background: #d1ecf1;
    color: #0c5460;
}

.placeholder {
    text-align: center;
    color: #999;
    padding: 3rem;
}

.loading {
    text-align: center;
    padding: 2rem;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-left: 0;
    }

    .app-main {
        margin-right: 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    .input-actions {
        flex-direction: column;
    }

    .button, .button-small {
        width: 100%;
    }

    .result-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .result-status {
        text-align: left;
    }
}
