:root {
    --primary-blue: #0284c7; /* A bit deeper sky blue for contrast against light bg */
    --light-blue: #e0f2fe; /* Light sky blue */
    --text-main: #1e293b; /* Dark text */
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(2, 132, 199, 0.15);
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--light-blue);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Image & Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.85) 0%, rgba(248, 250, 252, 0.6) 100%);
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--primary-blue);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-blue);
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 3rem;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.cta-button:hover {
    background-color: #0369a1;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
    transform: translateY(-2px);
}

/* Glass Panels */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--glass-shadow);
}

.about-section h2, .trial-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* Trial Form */
.trial-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
}

input[type="text"], textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    background: #0369a1;
}

.submit-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Result Area */
.result-area {
    margin-top: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding-top: 2rem;
}

.processing-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    color: var(--primary-blue);
    font-weight: 700;
}

.cyber-circle {
    width: 60px;
    height: 60px;
    border: 3px dashed var(--primary-blue);
    border-radius: 50%;
    animation: spin 3s linear infinite;
    margin-bottom: 1rem;
}

.judgment-result {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-left: 5px solid var(--primary-blue);
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.judgment-result h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.1);
    padding-bottom: 0.5rem;
}

.judgment-content {
    line-height: 1.8;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Cases Section */
.case-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.case-header h3 {
    color: var(--text-main);
    font-size: 1.3rem;
}

.case-badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.case-arguments {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #cbd5e1;
    margin-bottom: 1.5rem;
}

.case-arguments p {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.case-arguments p:last-child {
    margin-bottom: 0;
}

.case-divider {
    border: 0;
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    margin: 2rem 0;
}

.judgment-title {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.judgment-intro {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.judgment-points .point {
    margin-bottom: 1.5rem;
}

.judgment-points h4 {
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.judgment-conclusion {
    background: var(--light-blue);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
    border-left: 4px solid var(--primary-blue);
}

.judgment-conclusion h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    nav ul { gap: 1rem; font-size: 0.9rem; }
    .glass-panel { padding: 2rem; }
}
