:root {
    --brand-50: #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --ink-950: #020617;
    --ink-900: #0f172a;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --ink-300: #cbd5e1;
    --ink-200: #e2e8f0;
    --ink-100: #f1f5f9;
    --ink-50: #f8fafc;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
    color: var(--ink-900);
}

::selection {
    background: var(--brand-600);
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-700), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-overlay {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.18), rgba(37, 99, 235, 0.04)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.12));
}

.glass-nav {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.surface-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.soft-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.soft-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: var(--ink-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.soft-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.soft-input::placeholder {
    color: #94a3b8;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
}

.article-content {
    color: var(--ink-700);
    font-size: 1.05rem;
    line-height: 1.95;
}

.article-content p + p {
    margin-top: 1.35rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--ink-900);
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content a {
    color: var(--brand-600);
}

.article-content ul,
.article-content ol {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.article-content li + li {
    margin-top: 0.5rem;
}

.alert {
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    font-size: 0.925rem;
    border: 1px solid transparent;
}

.alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.alert-success {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 36%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }
}
