:root {
    --primary-color: #0066FF;
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-main: #ffffff;
    --text-sub: #a0a0a0;
    --text-muted: #666666;
    --accent-gradient: linear-gradient(135deg, #0066FF 0%, #00D1FF 100%);
    --glass-bg: rgba(10, 10, 10, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

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

.nav-links a {
    font-size: 15px;
    color: var(--text-sub);
    font-weight: 500;
}

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

.nav-links a.active {
    font-weight: 700;
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Page Layout --- */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
    animation: pageFadeIn 0.6s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Home Section --- */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #111 0%, #0a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-sub);
    max-width: 700px;
    margin-bottom: 40px;
    word-break: keep-all;
}

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

/* Partners */
.partners {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.partners-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.5;
    filter: grayscale(1);
}

.partner-item {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
}

/* Stats */
.stats {
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-sub);
    font-size: 16px;
}

/* Value Section */
.values {
    padding: 120px 0;
    background-color: #0d0d0d;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
}

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

.value-card {
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 102, 255, 0.3);
    background-color: #1a1a1a;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    margin-bottom: 30px;
}

.value-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.value-card p {
    color: var(--text-sub);
    font-size: 15px;
}

/* --- Sub-pages --- */
.sub-hero {
    padding: 120px 0 60px;
    text-align: center;
}

.sub-hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.content-block {
    padding: 80px 0;
}

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

.text-content h3 {
    font-size: 32px;
    margin-bottom: 24px;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    overflow: hidden;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: #222;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.team-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Contact & Form Common */
.form-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 24px;
    margin-bottom: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-sub);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 15px;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Notice Section */
.notice-list {
    margin-top: 40px;
}

.notice-item {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.2s;
    position: relative;
}

.notice-item:hover {
    transform: scale(1.01);
}

.notice-date {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.notice-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.notice-item p {
    color: var(--text-sub);
    font-size: 14px;
    white-space: pre-wrap;
}

.notice-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: none;
    gap: 10px;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
}

/* Auth Helper */
#adminControls {
    display: none;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-bar {
    text-align: right;
    margin-bottom: 20px;
}

.auth-bar span {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 15px;
}

/* --- CTA --- */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(to bottom, #0a0a0a, #001133);
}

/* --- Footer --- */
footer {
    padding: 200px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #050505;
}

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

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
    font-size: 14px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 16px;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 40px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

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

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

    .hero h1 {
        font-size: 48px;
    }

    .menu-toggle {
        display: block !important;
    }

    .form-container {
        padding: 30px 20px;
    }
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}