/* ===== Global Reset & Variables ===== */
:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --secondary: #00D2D3;
    --accent: #FD79A8;
    --dark: #0a0a1a;
    --dark-card: #12122a;
    --dark-lighter: #1a1a3e;
    --text: #e0e0e0;
    --text-muted: #8888aa;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6C5CE7 0%, #00D2D3 100%);
    --gradient-accent: linear-gradient(135deg, #FD79A8 0%, #6C5CE7 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.6);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(108, 92, 231, 0.2);
    color: var(--white);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 210, 211, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(253, 121, 168, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Services ===== */
.services {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 60px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    display: block;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* ===== Stats ===== */
.stats {
    padding: 80px 0;
    background: var(--dark-card);
}

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

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 8px;
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    text-align: center;
    background: 
        radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.1) 0%, transparent 60%);
}

.cta h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--white);
}

.cta p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(108, 92, 231, 0.1);
}

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

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

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

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Page Header (for sub pages) ===== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 210, 211, 0.08) 0%, transparent 50%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Content Sections ===== */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--dark-card);
}

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

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.content-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    margin-top: 24px;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text);
}

.feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

.content-image {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background: var(--dark-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    border-radius: 20px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

/* ===== Donate Page ===== */
.donate-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.donate-card {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 20px;
    padding: 36px;
    text-align: center;
}

.donate-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.donate-card .wallet-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.wallet-address {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 12px;
    padding: 14px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    word-break: break-all;
    color: var(--secondary);
    margin: 16px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.wallet-address:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.copy-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.donate-reward {
    background: var(--dark-card);
    border: 2px solid rgba(253, 121, 168, 0.3);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    margin-top: 60px;
}

.donate-reward h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--white);
}

.donate-reward p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.reward-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.reward-step {
    text-align: center;
    padding: 24px;
}

.reward-step .step-num {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
    color: var(--white);
    margin: 0 auto 16px;
}

.reward-step h4 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 8px;
}

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

/* ===== Support Page ===== */
.support-notice {
    background: var(--dark-card);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    margin-top: 40px;
}

.support-notice h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--white);
}

.support-notice p {
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    }

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

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

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

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

    .content-block,
    .content-block.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .donate-reward {
        padding: 30px;
    }
}