:root {
    /* Colors */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #0F172A;
    --accent: #FF6B6B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;

    /* Gradients */
    --grad-blue: linear-gradient(135deg, #4F46E5 0%, #3B82F6 100%);
    --grad-hero: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 1) 100%);

    /* Shades */
    --blue-bg: #EEF2FF;
    --purple-bg: #F5F3FF;
    --gold-bg: #FFFBEB;
    --green-bg: #F0FDF4;

    --blue-icon: #4F46E5;
    --purple-icon: #8B5CF6;
    --gold-icon: #D97706;
    --green-icon: #16A34A;

    /* Metrics */
    --max-width: 1200px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --primary: #6366F1;
    --primary-hover: #818CF8;
    --secondary: #E2E8F0;
    --accent: #F87171;
    --bg-light: #0F172A;
    --white: #1E293B;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border: #334155;

    --grad-hero: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);

    --blue-bg: rgba(79, 70, 229, 0.1);
    --purple-bg: rgba(139, 92, 246, 0.1);
    --gold-bg: rgba(217, 119, 6, 0.1);
    --green-bg: rgba(22, 163, 74, 0.1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', 'Pretendard', sans-serif;
    font-weight: 800;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    background: var(--blue-bg);
}

/* Buttons */
.btn-primary {
    background: var(--grad-blue);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

[data-theme="dark"] .btn-primary {
    color: var(--text-main);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary.lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

.btn-secondary.lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: var(--white);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--secondary);
}

.highlight {
    color: var(--primary);
    position: relative;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--blue-bg);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

[data-theme="dark"] .hero-image img {
    filter: brightness(0.8);
}

.hero-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-muted);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
}

/* Policies */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .card:hover {
    border-color: var(--primary);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon i {
    width: 32px;
    height: 32px;
}

.card-icon.blue {
    background: var(--blue-bg);
    color: var(--blue-icon);
}

.card-icon.purple {
    background: var(--purple-bg);
    color: var(--purple-icon);
}

.card-icon.gold {
    background: var(--gold-bg);
    color: var(--gold-icon);
}

.card-icon.green {
    background: var(--green-bg);
    color: var(--green-icon);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.policy-list {
    margin-bottom: 30px;
}

.policy-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.policy-list li i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.card-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
}

.card-link i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* CTA Section */
.cta-card {
    background: var(--grad-blue);
    padding: 80px;
    border-radius: var(--radius-lg);
    color: white;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .search-box {
    background: rgba(15, 23, 42, 0.4);
    border-color: #334155;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .search-box input::placeholder {
    color: var(--text-muted);
}

.search-box .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: none;
}

[data-theme="dark"] .search-box .btn-primary {
    background: var(--primary);
    color: var(--white);
}

/* Contact Form */
.contact.section {
    background: var(--bg-light);
}

[data-theme="dark"] .contact.section {
    background: rgba(30, 41, 59, 0.5);
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: rgba(15, 23, 42, 0.4);
}

@media (max-width: 768px) {
    .contact-card {
        padding: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: #0f172a;
    color: #E2E8F0;
    padding: 80px 0 0;
}

[data-theme="dark"] .footer {
    background: #020617;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-4px);
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
    color: white;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #94a3b8;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid var(--border);
    background: transparent;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.animate-fade.visible {
    opacity: 1;
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        height: 70px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .nav-links a {
        padding: 15px 0;
        display: block;
        width: 100%;
    }

    .navbar .btn-primary {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Policy Detail Page */
.policy-detail-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.policy-detail-header .card-icon {
    margin: 0 auto 20px;
}

.policy-detail-header h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.policy-detail-header .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.policy-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.key-info-card {
    background: var(--grad-blue);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.key-info-card h3 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.key-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.key-info-item i {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.key-info-item p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.key-info-item span {
    font-size: 1.2rem;
    font-weight: 700;
}

.detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    overflow: hidden;
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.detail-card-header i {
    color: var(--primary);
}

.detail-card-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.detail-card-body {
    padding: 24px;
}

.detail-card-body h4 {
    margin-top: 16px;
    margin-bottom: 8px;
}

.detail-card-body ul, .detail-card-body ol {
    padding-left: 20px;
}
.detail-card-body ul li, .detail-card-body ol li {
    margin-bottom: 8px;
}
.detail-card-body ul {
    list-style: disc;
}
.detail-card-body ol {
    list-style: none;
    padding-left: 0;
}

.note {
    background: var(--gold-bg);
    border-left: 4px solid var(--gold-icon);
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.note i {
    color: var(--gold-icon);
    flex-shrink: 0;
}

.step-process li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 24px;
    border-left: 2px solid var(--primary);
}

.step-process li span {
    position: absolute;
    left: -14px;
    top: 0;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.step-process li strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.policy-sidebar .sidebar-widget {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-list i {
    color: var(--primary);
    margin-top: 4px;
}

.contact-list span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s;
}

.resource-link:hover {
    background-color: var(--bg-light);
}

.resource-link span {
    font-weight: 600;
}

.related-links li a {
    display: block;
    padding: 8px 0;
    color: var(--text-muted);
    font-weight: 500;
}

.related-links li a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .policy-detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .key-info-grid {
        grid-template-columns: 1fr;
    }
    .policy-detail-header h1 {
        font-size: 2.2rem;
    }
}
