@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
    --bg: #ffffff;
    --bg-soft: #f3f4f6;
    --panel: #ffffff;
    --panel-strong: #f9fafb;
    --text: #111827;
    --muted: #6b7280;
    --accent: #0ea5e9; /* Sky Blue */
    --accent-strong: #0284c7; /* Darker Blue */
    --stroke: #e5e7eb;
    --stroke-strong: #d1d5db;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --radius: 0px; /* Square look restored */
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderPulse {
    0% { border-color: var(--stroke); }
    50% { border-color: var(--accent); }
    100% { border-color: var(--stroke); }
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-soft);
    border-left: 1px solid var(--stroke);
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 2px solid var(--bg-soft);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

body {
    font-family: "Space Grotesk", "Noto Sans KR", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-size: 0.95rem;
}

/* Grid Background Pattern */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, #f1f5f9 1px, transparent 1px),
        linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(8px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    border: 2px solid var(--text);
    padding: 3px 10px;
    background: var(--bg);
    transition: all 0.3s ease;
}

.logo:hover {
    background: var(--text);
    color: var(--bg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2px; /* Tight gap for boxy feel */
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-strong);
    background: #f0f9ff;
    border-color: #bae6fd;
}

.nav-links a.active {
    color: var(--bg);
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

/* Main */
main {
    flex: 1;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--muted);
}

.lead {
    font-size: 1.05rem;
    color: #4b5563;
    max-width: 650px;
    margin-top: 0.7rem;
}

.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-strong);
    font-weight: 700;
    display: block;
    margin-bottom: 0.4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--accent-strong);
    color: white;
    padding: 12px 24px;
    border: 1px solid var(--accent-strong);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.15);
    background: var(--accent);
}

.btn:active {
    transform: translate(0, 0);
    box-shadow: 0px 0px 0px rgba(0,0,0,0);
}

.btn.ghost {
    background: transparent;
    color: var(--accent-strong);
    border: 1px solid var(--accent-strong);
    box-shadow: 4px 4px 0px rgba(2, 132, 199, 0.1);
}

.btn.ghost:hover {
    background: #f0f9ff;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(2, 132, 199, 0.2);
}

.btn.small {
    padding: 7px 14px;
    font-size: 0.85rem;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}
.btn.small:hover {
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

/* Chips & Pills */
.chip-row, .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1rem 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    background: white;
    color: var(--text);
    border: 1px solid var(--stroke-strong);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius);
}

.chip.soft {
    background: #f0f9ff;
    color: var(--accent-strong);
    border-color: #bae6fd;
}

/* Cards & Grid Common */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border: 1px solid var(--stroke-strong);
    border-radius: var(--radius);
    transition: all 0.2s ease;
    position: relative;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 6px 6px 0px rgba(14, 165, 233, 0.15);
    transform: translate(-2px, -2px);
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.list-check {
    list-style: none;
    display: grid;
    gap: 12px;
}

.list-check li {
    padding-left: 24px;
    position: relative;
    color: var(--text);
}

.list-check li::before {
    content: "■";
    font-size: 0.7em;
    position: absolute;
    left: 0;
    top: 0.4em;
    color: var(--accent);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    background: #f9fafb;
    border: 2px solid var(--stroke);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 4px 4px 0px rgba(14, 165, 233, 0.1);
}

textarea {
    min-height: 160px;
    resize: vertical;
}

/* Footer */
footer {
    background: #f1f5f9;
    color: var(--text);
    text-align: center;
    padding: 2.5rem 0;
    border-top: 1px solid var(--stroke);
    margin-top: auto;
}

footer a {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

footer a:hover {
    color: var(--accent);
}

/* Utility */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
}