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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #dbeafe;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f9fafb;
    --bg-dark: #111827;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    sticky: top;
}

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

.logo {
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 14px;
    transition: color 0.3s;
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-large, .btn-small-pro {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--border);
    color: var(--text);
}

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

.btn-large {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
}

.btn-small-pro {
    padding: 6px 12px;
    background: var(--warning);
    color: var(--white);
    font-size: 12px;
    margin-left: 10px;
}

.btn-small-pro:hover {
    background: #d97706;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.hero .tagline {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Features */
.features {
    padding: 60px 0;
    background: var(--white);
}

.features h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

.problem-grid, .features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.problem-card, .feature {
    background: var(--bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.problem-card:hover, .feature:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.problem-card h3, .feature h4 {
    margin-bottom: 10px;
    color: var(--text);
}

.feature {
    display: flex;
    gap: 15px;
}

.feature .icon {
    font-size: 24px;
    min-width: 40px;
}

/* Pricing */
.pricing {
    padding: 60px 0;
    background: var(--bg);
}

.pricing h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

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

.pricing-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-card li {
    padding: 8px 0;
    color: var(--text-light);
}

.pricing-card li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 5px;
}

.pricing-card li:has(::before:contains("✗")) {
    opacity: 0.5;
}

.pro-note {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* CTA */
.cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

/* App Wrapper */
.app-wrapper {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.app-wrapper h1 {
    margin-bottom: 30px;
    font-size: 28px;
}

.app-wrapper h2 {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.plan-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-light);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

#plan-badge {
    font-weight: 600;
    color: var(--primary-dark);
}

.input-section .hint {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    resize: vertical;
    min-height: 150px;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.input-actions, .export-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat {
    background: var(--bg);
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 2px solid var(--border);
}

.stat.valid {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.05);
}

.stat.invalid {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.stat.suspicious {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
}

/* Results Table */
.results-table {
    overflow-x: auto;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead {
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
}

th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

tr:hover {
    background: var(--bg);
}

.status-valid {
    color: var(--success);
    font-weight: 600;
}

.status-invalid {
    color: var(--danger);
    font-weight: 600;
}

.status-suspicious {
    color: var(--warning);
    font-weight: 600;
}

.reason {
    font-size: 12px;
    color: var(--text-light);
}

/* Error */
.error-section {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid var(--danger);
    color: var(--danger);
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
}

#error-text {
    margin: 0;
}

/* Footer */
footer {
    background: var(--text);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 60px;
}

footer p {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 28px;
    }

    .app-wrapper {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1);
    }
}
