@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --brand-red: #CC1F1F;
    --brand-red-light: #E8393A;
    --brand-red-dark: #A01818;
    --brand-navy: #1C2B4A;
    --brand-navy-light: #2D4070;
    --brand-navy-dark: #0F1A2E;
    --brand-cream: #FAF3EC;
    --brand-off-white: #FDF8F5;
    --brand-gold: #D4A017;
    --brand-gold-light: #E6B82A;

    --text-primary: #1C2B4A;
    --text-secondary: #4A5568;
    --text-muted: #8896AB;
    --text-white: #FFFFFF;

    --bg-primary: #FAF3EC;
    --bg-white: #FFFFFF;
    --bg-navy: #1C2B4A;
    --bg-red: #CC1F1F;

    --shadow-sm: 0 1px 3px rgba(28, 43, 74, 0.08);
    --shadow-md: 0 4px 12px rgba(28, 43, 74, 0.1);
    --shadow-lg: 0 12px 36px rgba(28, 43, 74, 0.12);
    --shadow-xl: 0 24px 60px rgba(28, 43, 74, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --header-height: 72px;
    --sidebar-width: 240px;
    --sidebar-collapsed: 64px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: all var(--transition-normal);
}

input, select, textarea {
    font-family: inherit;
    outline: none;
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(204, 31, 31, 0.1);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Number and English font */
.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Scroll reveal animation base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Utility classes */
.text-red { color: var(--brand-red); }
.text-navy { color: var(--brand-navy); }
.text-gold { color: var(--brand-gold); }
.text-white { color: var(--text-white); }
.text-muted { color: var(--text-muted); }

.bg-cream { background: var(--brand-cream); }
.bg-white { background: var(--bg-white); }
.bg-navy { background: var(--brand-navy); }
.bg-red { background: var(--brand-red); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-red {
    background: var(--brand-red);
    color: white;
    box-shadow: 0 4px 14px rgba(204, 31, 31, 0.3);
}

.btn-red:hover {
    background: var(--brand-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 31, 31, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid #D1D5DB;
}

.btn-outline:hover {
    border-color: var(--brand-navy);
    background: rgba(28, 43, 74, 0.05);
}

.btn-white {
    background: white;
    color: var(--brand-red);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-navy {
    background: var(--brand-navy);
    color: white;
    box-shadow: 0 4px 14px rgba(28, 43, 74, 0.3);
}

.btn-navy:hover {
    background: var(--brand-navy-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* Card base */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-red {
    background: rgba(204, 31, 31, 0.08);
    color: var(--brand-red);
    border: 1px solid rgba(204, 31, 31, 0.2);
}

.badge-navy {
    background: rgba(28, 43, 74, 0.08);
    color: var(--brand-navy);
    border: 1px solid rgba(28, 43, 74, 0.2);
}

.badge-gold {
    background: rgba(212, 160, 23, 0.08);
    color: var(--brand-gold);
    border: 1px solid rgba(212, 160, 23, 0.2);
}

.badge-green {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Section spacing */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success { background: #059669; }
.toast-error { background: var(--brand-red); }
.toast-info { background: var(--brand-navy); }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.spinner-dark {
    border-color: rgba(28, 43, 74, 0.15);
    border-top-color: var(--brand-navy);
}

.spinner-red {
    border-color: rgba(204, 31, 31, 0.15);
    border-top-color: var(--brand-red);
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--brand-cream);
}

::-webkit-scrollbar-thumb {
    background: #C4B5A3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A89888;
}

/* Selection */
::selection {
    background: rgba(204, 31, 31, 0.15);
    color: var(--text-primary);
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .section { padding: 80px 0; }
    .section-title { font-size: 30px; }
    .section-subtitle { font-size: 16px; margin-bottom: 48px; }
}

@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .section-title { font-size: 26px; }
    .section-subtitle { font-size: 15px; margin-bottom: 40px; }
    .container { padding: 0 16px; }
    .btn-lg { padding: 16px 28px; font-size: 15px; }
}

@media (max-width: 480px) {
    .section { padding: 48px 0; }
    .section-title { font-size: 22px; }
}
