/* ============================================
   Midnight Gold & Glassmorphism Design System
   ============================================ */

:root {
    /* Colors */
    --bg-dark: #0a0f1d;
    --bg-darker: #05080f;
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --accent-gold: #fbbf24;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(20, 25, 40, 0.4);
    --glass-bg-hover: rgba(30, 35, 50, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    --gradient-text: linear-gradient(to right, #fff, #cbd5e1);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
}

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

body.landing-page {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Wrapper for injected content */
.landing-wrapper {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    z-index: 10; /* Ensure it sits above other potential overlays */
}

/* Safety fallback for AOS */
.landing-wrapper [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

.landing-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.landing-wrapper a { text-decoration: none; color: inherit; }
.landing-wrapper ul { list-style: none; }

/* Background Effects */
.ambient-light {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: float 20s infinite alternate;
    pointer-events: none;
}

.ambient-light-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    animation: float 25s infinite alternate-reverse;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-nav {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
}

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

.landing-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
}

.logo-text {
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-dot {
    color: var(--primary-blue);
    font-size: 1.5rem;
    line-height: 0;
}

.landing-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.landing-nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: #fff;
}

.nav-btn-highlight {
    color: var(--primary-blue) !important;
    font-weight: 600 !important;
}

/* Hero Section */
.landing-hero {
    padding-top: 180px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 32px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
}

/* Buttons */
.btn-primary-glow {
    position: relative;
    padding: 16px 32px;
    background: var(--gradient-primary);
    border-radius: 12px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    transition: transform 0.2s;
}

.btn-primary-glow:hover {
    transform: translateY(-2px);
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn-primary-glow:hover .btn-glow {
    transform: translateX(100%);
}

.btn-secondary-glass {
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 24px 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    display: inline-flex;
}

.stat-box {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-value small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Carrier Ticker */
.carrier-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--bg-darker);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carrier-ticker {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    padding: 0 40px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ticker-item:hover {
    opacity: 1;
}

.ticker-item img {
    height: 24px;
    object-fit: contain;
    filter: grayscale(100%) brightness(3);
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features Section */
.landing-features {
    padding: var(--section-padding) 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
}

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

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Trust Section */
.landing-trust {
    padding: var(--section-padding) 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-darker));
}

.trust-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.trust-card-visual {
    padding: 0;
    overflow: hidden;
    max-width: 400px;
    margin: 0 auto;
}

.visual-header {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.visual-content {
    padding: 40px;
    text-align: center;
}

.trust-score {
    margin-bottom: 16px;
}

.score-num {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stars {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.trust-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-left { text-align: left; }

.check-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.check-list i {
    color: var(--primary-blue);
}

/* Inquiry Section */
.landing-inquiry {
    padding: var(--section-padding) 0;
}

.inquiry-wrapper {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.1);
}

.inquiry-header {
    text-align: center;
    margin-bottom: 40px;
}

.inquiry-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.inquiry-header p {
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 체크박스는 label 스타일 적용 안 함 */
.checkbox-wrapper label.custom-checkbox {
    display: flex;
    margin-bottom: 0;
}

.carrier-select-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.carrier-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.carrier-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.carrier-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

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

.landing-section-wrapper input[type="text"],
.landing-section-wrapper input[type="tel"],
.landing-inquiry input[type="text"],
.landing-inquiry input[type="tel"] {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.landing-section-wrapper input:focus,
.landing-inquiry input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
    padding: 8px 0;
    position: relative;
    width: 100%;
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    margin-right: 0;
}

.custom-checkbox:hover .checkmark {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.checkmark:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.label-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
    margin-left: 0;
    padding-left: 0;
    display: inline-block;
}

.btn-submit-glow {
    width: 100%;
    padding: 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.btn-submit-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

/* Final CTA */
.landing-final-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(to top, #000, var(--bg-dark));
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-cta-main {
    padding: 16px 32px;
    background: white;
    color: #000 !important;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-cta-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-cta-kakao {
    padding: 16px 32px;
    background: #FEE500;
    color: #000 !important;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-cta-kakao:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(254, 229, 0, 0.2);
}

/* Footer */
.landing-footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    background: #000;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: white;
}

.footer-copyright {
    text-align: center;
    color: #4b5563;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-stats-row {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .trust-container {
        grid-template-columns: 1fr;
    }
    
    .trust-visual {
        order: -1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}
