/* Font Import */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;500;600;700&display=swap');

:root {
    --bg-navy: #0F1923;
    --bg-navy-light: #1A2A3A;
    --text-white: #FFFFFF;
    --text-gray: #8B9CAD;
    --accent-gold: #D4AF37;
    --accent-blue: #2A4A6A;
    --gradient-start: #0F1923;
    --gradient-end: #1A2D40;
}

/* 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: var(--bg-navy);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Utility */
.serif {
    font-family: 'Noto Serif KR', serif;
}

.sans {
    font-family: 'Pretendard', sans-serif;
}

/* Language Switcher */
.lang-switch-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

.lang-switch-container select {
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.lang-switch-container select:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-switch-container select option {
    background: var(--bg-navy);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(ellipse at center bottom, var(--gradient-end) 0%, var(--gradient-start) 70%);
    overflow: hidden;
}

/* Background Particles */
.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    left: 75%;
    animation-delay: 1s;
    animation-duration: 19s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 21s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Logo Container */
.logo-container {
    position: relative;
    margin-bottom: 48px;
    display: inline-block;
    /* White background to fix PNG edge fringing */
    background: #ffffff;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(42, 74, 106, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-logo {
    position: relative;
    width: 680px;
    max-width: 90vw;
    height: auto;
    /* Crisp image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Remove filters that can cause blur */
    animation: logo-fade 1.5s ease-out forwards;
}

@keyframes logo-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Main Copy */
.main-copy {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #FFFFFF 0%, #B0C4D8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Sub Copy */
.sub-copy {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    color: var(--text-gray);
    margin-bottom: 48px;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.8;
}

/* CTA Button */
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, rgba(42, 74, 106, 0.6) 0%, rgba(26, 42, 58, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(42, 74, 106, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-arrow {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.cta-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    animation: fade-in-up 1s ease-out 1.5s both;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }

    to {
        opacity: 0.6;
        transform: translateX(-50%) translateY(0);
    }
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        top: 8px;
    }

    50% {
        opacity: 0.5;
        top: 16px;
    }

    100% {
        opacity: 0;
        top: 8px;
    }
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

/* Features Section */
.features-section {
    padding: 120px 24px;
    background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-navy-light) 50%, var(--bg-navy) 100%);
}

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

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 30px;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 500;
    background: linear-gradient(180deg, #FFFFFF 0%, #8B9CAD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(42, 74, 106, 0.4) 0%, rgba(26, 42, 58, 0.6) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-container {
    transform: scale(1.1);
}

.feature-icon {
    font-size: 2.2rem;
}

.feature-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.badge-active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.badge-ready {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 500;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.feature-line {
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-line {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 60px 24px;
    background: var(--bg-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .lang-switch-container {
        top: 16px;
        right: 16px;
    }

    .lang-switch-container select {
        padding: 8px 16px;
        font-size: 0.85rem;
        padding-right: 35px;
    }

    .hero-logo {
        width: 180px;
    }

    .logo-glow {
        width: 220px;
        height: 220px;
    }

    .cta-button {
        padding: 16px 36px;
        font-size: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .features-section {
        padding: 80px 16px;
    }

    .section-header {
        margin-bottom: 48px;
    }

    .features-grid {
        gap: 20px;
    }

    .feature-card {
        padding: 36px 24px;
    }

    .feature-icon-container {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .feature-icon {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 150px;
    }

    .logo-container {
        margin-bottom: 36px;
    }

    .main-copy {
        margin-bottom: 20px;
    }

    .sub-copy {
        margin-bottom: 36px;
    }
}