:root {
    --primary: #2d3436;
    --accent: #0984e3; /* Blue theme for assessment */
    --accent-light: #74b9ff;
    --bg: #f8f9fa;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text: #2d3436;
    --text-muted: #636e72;
    --border: #dfe6e9;
    --shadow-bold: 0 20px 40px rgba(9, 132, 227, 0.08);
    --safe: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
}

[data-theme="dark"] {
    --primary: #dfe6e9;
    --bg: #0d1117;
    --card-bg: rgba(22, 27, 34, 0.95);
    --text: #f0f6fc;
    --text-muted: #8b949e;
    --border: #30363d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    height: 70px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
    background: var(--card-bg);
    display: flex; align-items: center;
}

.nav-container {
    max-width: 1000px; margin: 0 auto; width: 100%; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-size: 1.1rem; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.lang-selector { display: flex; background: var(--border); border-radius: 20px; padding: 2px; }
.lang-selector button { border: none; background: none; padding: 4px 10px; border-radius: 18px; font-size: 0.75rem; font-weight: 700; cursor: pointer; color: var(--text-muted); }
.lang-selector button.active { background: var(--accent); color: white; }
.icon-btn { background: none; border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Hero */
.hero-section { max-width: 800px; margin: 4rem auto 3rem; text-align: center; padding: 0 2rem; }
.hero-badge { display: inline-block; padding: 0.5rem 1.2rem; background: var(--accent); color: white; font-weight: 800; border-radius: 30px; font-size: 0.8rem; margin-bottom: 1.5rem; }
.hero-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; word-break: keep-all; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; word-break: keep-all; }

/* Tool Area */
.tool-section { max-width: 550px; margin: 0 auto; padding: 0 2rem; }
.card-glass { background: var(--card-bg); border: 1px solid var(--border); border-radius: 32px; padding: 2.5rem; box-shadow: var(--shadow-bold); }

.input-group { margin-bottom: 1.5rem; text-align: left; }
.input-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-muted); }

.radio-group { display: flex; gap: 1rem; margin-top: 0.5rem; }
.radio-group input[type="radio"] { display: none; }
.radio-group label {
    flex: 1; padding: 0.8rem; border: 1px solid var(--border); border-radius: 12px;
    text-align: center; cursor: pointer; font-weight: 600; color: var(--text-muted); background: var(--bg);
}
.radio-group input[type="radio"]:checked + label {
    background: var(--accent); color: white; border-color: var(--accent);
}

input[type="number"] {
    width: 100%; padding: 1rem; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 1rem; font-weight: 700;
}
input[type="number"]:focus { border-color: var(--accent); outline: none; }

.primary-btn {
    width: 100%; padding: 1.2rem; border: none; border-radius: 12px;
    background: var(--accent); color: white; font-size: 1.1rem; font-weight: 800;
    cursor: pointer; margin-top: 1rem;
}
.primary-btn:hover { background: #0773c5; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(9, 132, 227, 0.2); }

/* Result */
.result-area { margin-top: 2rem; text-align: center; animation: fadeIn 0.5s ease; }
.result-divider { height: 1px; background: var(--border); margin-bottom: 2rem; }
.result-value { margin-bottom: 1rem; }
.result-value span { display: block; font-size: 0.9rem; color: var(--text-muted); font-weight: 700; }
.result-value .score { font-size: 3.5rem; color: var(--text); margin-top: -0.5rem; }

.status-badge {
    display: inline-block; padding: 0.5rem 1.5rem; border-radius: 30px;
    color: white; font-weight: 700; font-size: 0.9rem; margin-bottom: 1rem;
}
.interpretation { font-size: 0.95rem; color: var(--text-muted); word-break: keep-all; }

/* Info & Compliance */
.info-section { max-width: 550px; margin: 4rem auto; padding: 0 2rem; text-align: left; }
.info-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.info-content { background: var(--card-bg); border: 1px solid var(--border); padding: 1.5rem; border-radius: 20px; font-size: 0.95rem; }

.compliance-info { max-width: 550px; margin: 4rem auto; padding: 0 2rem; display: grid; gap: 1rem; }
.info-card { background: rgba(0,0,0,0.02); padding: 1.5rem; border-radius: 16px; font-size: 0.85rem; }
.info-card h4 { margin-bottom: 0.4rem; font-size: 0.9rem; }

footer { padding: 4rem 2rem; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.8rem; }
.footer-logo { font-weight: 800; margin-bottom: 0.5rem; }

.status-normal { background-color: var(--safe); }
.status-warning { background-color: var(--warning); }
.status-danger { background-color: var(--danger); }

.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .card-glass { padding: 1.5rem; }
}
