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

:root {
    --bg: #0a0a0b;
    --surface: #141416;
    --surface-hover: #1c1c1f;
    --border: #2a2a2e;
    --text: #fafafa;
    --text-muted: #8a8a8e;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

main {
    max-width: 640px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Detector Section */
.detector {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.detector label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.detector textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.detector textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.detector textarea::placeholder {
    color: var(--text-muted);
}

.detector button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.detector button:hover {
    background: var(--accent-hover);
}

/* Result */
.result {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.result.hidden {
    display: none;
}

.result.found {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.result.clean {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.result.empty {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.result-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.result-details {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Dash Comparison */
.info {
    margin-bottom: 3rem;
}

.dash-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.2s;
}

.dash-char {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dash-name {
    display: block;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.dash-code {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* About Section */
.about p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.about p em {
    color: var(--text);
    font-style: italic;
}

.disclaimer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.disclaimer h3 {
    color: var(--warning);
}

.disclaimer p {
    margin-bottom: 0;
}

.links {
    list-style: none;
}

.links li {
    margin-bottom: 0.5rem;
}

.links a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.links a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 480px) {
    main {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .dash-comparison {
        grid-template-columns: 1fr;
    }

    .dash-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .dash-char {
        font-size: 2rem;
        margin-bottom: 0;
    }

    .dash-name, .dash-code {
        display: inline;
    }

    .dash-code {
        margin-left: 0.5rem;
    }
}
