@charset "UTF-8";

/* ==========================================================================
   1. CSS Variables & Design Tokens (High-End Fintech Style)
   ========================================================================== */
:root {
    /* Color Palette */
    --brand-blue: #2563EB;
    --brand-blue-hover: #1D4ED8;
    --brand-coral: #FF5A5F;
    --brand-gradient: linear-gradient(135deg, #2563EB 0%, #6366F1 100%);
    --neon-glow: rgba(37, 99, 235, 0.4);
    
    /* Backgrounds */
    --bg-body: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-muted: #F1F5F9;
    --bg-highlight: #EFF6FF;
    
    /* Typography Colors */
    --text-heading: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    
    /* UI Elements */
    --border-light: rgba(0, 0, 0, 0.05);
    --border-strong: rgba(0, 0, 0, 0.1);
    
    /* Multi-layered Soft Shadows (Ultra-Professional) */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.03), 0 5px 15px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 24px rgba(0,0,0,0.05), 0 20px 48px rgba(0,0,0,0.05), 0 1px 4px rgba(0,0,0,0.03);
    --shadow-glow: 0 0 20px var(--neon-glow);
    
    /* Layout */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Typography */
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'sans-serif';
    --font-en: 'Outfit', sans-serif;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.65;
    letter-spacing: -0.015em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* word-break for Korean text flow */
    word-break: keep-all; 
    overflow-wrap: break-word;
}
a { text-decoration: none; color: inherit; transition: all 0.25s ease; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.035em; /* Ultra-tight tracking for headers */
}

/* Helper for mobile line breaks */
.mobile-hidden { display: inline; }
.desktop-only { display: inline; }

/* ==========================================================================
   3. Layout Components & Shared
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section-header { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section-header h2 { 
    font-size: clamp(2rem, 4vw, 2.85rem); 
    margin-bottom: 16px; 
    font-weight: 800; 
    letter-spacing: -0.04em; 
}
.section-header p { 
    font-size: clamp(1rem, 2vw, 1.15rem); 
    color: var(--text-muted); 
    font-weight: 500; 
}

.highlight {
    color: transparent;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { font-family: var(--font-en); font-size: clamp(1.4rem, 3vw, 1.6rem); font-weight: 800; color: var(--text-heading); letter-spacing: -0.03em; }
.logo span { color: var(--brand-blue); }

.nav-links { display: flex; gap: 36px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-body); }
.nav-links a:hover { color: var(--brand-blue); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.login-link { font-weight: 600; font-size: 0.95rem; }

/* Ultra-professional Button with Glow effect */
.btn-primary {
    position: relative;
    background: var(--brand-gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 99px; /* Pill shape */
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
    color: white;
}
.btn-primary:hover::before { opacity: 1; }
.btn-lg { padding: 16px 40px; font-size: clamp(1rem, 2vw, 1.1rem); }

/* ==========================================================================
   5. Hero Section (Product-as-the-Hero)
   ========================================================================== */
.hero-section {
    padding: clamp(120px, 15vw, 180px) 0 clamp(60px, 8vw, 80px);
    background: radial-gradient(circle at top right, #EEF2FF 0%, #FFFFFF 40%, var(--bg-body) 100%);
    position: relative;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 60px);
    align-items: center;
}
.hero-text { z-index: 2; }
.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--bg-card);
    color: var(--brand-blue);
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.8rem;
    font-family: var(--font-en);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}
.hero-title {
    /* Fluid typography via clamp */
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.04em;
}
.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: clamp(24px, 4vw, 40px);
}
.hero-cta { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

/* Advanced 3D Mockup */
.hero-visual {
    position: relative;
    height: clamp(400px, 50vw, 600px);
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}
.mockup-window {
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mockup-window:hover { transform: rotateY(0deg) rotateX(0deg) scale(1); }
.mockup-header {
    height: 40px; background-color: #F8FAFC; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; padding: 0 16px; gap: 8px;
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background-color: #FF5F56; }
.mockup-dot:nth-child(2) { background-color: #FFBD2E; }
.mockup-dot:nth-child(3) { background-color: #27C93F; }

.mockup-body {
    height: calc(100% - 40px);
    background: radial-gradient(circle at center, #1E293B 0%, #0F172A 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.mockup-stream-text {
    color: rgba(255, 255, 255, 0.05); font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 800; font-family: var(--font-en); letter-spacing: 0.15em;
}

/* 3D Pop-up Widget Animation */
.widget-overlay {
    position: absolute;
    bottom: 40px; left: 5%; right: 5%;
    max-width: 360px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: clamp(12px, 2vw, 20px) clamp(16px, 3vw, 24px);
    border-radius: var(--border-radius-md);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255,255,255,0.8);
    display: flex; align-items: flex-start; gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
    animation: popupWidget 6s infinite cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom center;
}
.widget-overlay:nth-child(2) { animation-delay: 2s; z-index: 2; bottom: 50px; }
.widget-overlay:nth-child(3) { animation-delay: 4s; z-index: 3; bottom: 60px; }

@keyframes popupWidget {
    0% { opacity: 0; transform: translateY(50px) scale(0.9) rotateX(20deg); }
    15% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
    80% { opacity: 1; transform: translateY(0) scale(1) rotateX(0deg); }
    95% { opacity: 0; transform: translateY(-30px) scale(1.05) rotateX(-10deg); }
    100% { opacity: 0; transform: translateY(-30px) scale(1.05) rotateX(-10deg); }
}

.widget-avatar {
    width: clamp(40px, 8vw, 56px); height: clamp(40px, 8vw, 56px); border-radius: 50%;
    background-color: #CBD5E1; overflow: hidden; flex-shrink: 0;
    border: 3px solid white; box-shadow: var(--shadow-sm);
}
.widget-avatar img { width: 100%; height: 100%; object-fit: cover; }
.widget-info { flex: 1; min-width: 0; /* for text truncation if needed */ }
.widget-header-text { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; flex-wrap: wrap; gap: 4px; }
.donator { font-weight: 800; color: var(--text-heading); font-size: clamp(0.9rem, 2vw, 1.05rem); }
.amount { font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; color: transparent; font-family: var(--font-en); font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
.message { font-size: clamp(0.85rem, 2vw, 1rem); color: var(--text-body); line-height: 1.4; font-weight: 600; }

/* ==========================================================================
   5.5 Social Proof (Infinite Marquee)
   ========================================================================== */
.social-proof {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: clamp(20px, 4vw, 32px) 0;
    overflow: hidden;
    position: relative;
    display: flex;
    white-space: nowrap;
}
.social-proof::before, .social-proof::after {
    content: ''; position: absolute; top: 0; width: clamp(50px, 10vw, 150px); height: 100%; z-index: 2;
}
.social-proof::before { left: 0; background: linear-gradient(to right, var(--bg-card) 0%, transparent 100%); }
.social-proof::after { right: 0; background: linear-gradient(to left, var(--bg-card) 0%, transparent 100%); }

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    gap: clamp(40px, 8vw, 80px);
    padding-left: clamp(40px, 8vw, 80px);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
.proof-item { display: flex; align-items: center; gap: 12px; }
.proof-item i { font-size: clamp(24px, 4vw, 32px); color: var(--brand-blue); opacity: 0.8; }
.proof-item span { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 700; color: var(--text-heading); font-family: var(--font-en); }
.proof-item p { font-size: clamp(0.85rem, 2vw, 1rem); color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   6. Features Section (Bento Grid)
   ========================================================================== */
.features-section { padding: clamp(80px, 12vw, 120px) 0; background-color: var(--bg-body); }
.bento-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: clamp(16px, 3vw, 24px);
}
.bento-item {
    position: relative; background-color: var(--bg-card); border-radius: var(--border-radius-lg);
    padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-md); display: flex; flex-direction: column; z-index: 1; overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.bento-item::before {
    content: ''; position: absolute; inset: 1px; background-color: var(--bg-card); border-radius: calc(var(--border-radius-lg) - 1px); z-index: -1;
}
.bento-item::after {
    content: ''; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0%, transparent 70%, var(--brand-blue) 90%, var(--brand-coral) 100%);
    z-index: -2; opacity: 0; transition: opacity 0.5s ease; animation: rotateGradient 4s linear infinite;
}
.bento-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bento-item:hover::after { opacity: 1; }
@keyframes rotateGradient { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.bento-icon-wrapper {
    width: clamp(48px, 8vw, 64px); height: clamp(48px, 8vw, 64px); border-radius: 20px;
    background: var(--bg-highlight); display: flex; align-items: center; justify-content: center; margin-bottom: clamp(24px, 4vw, 32px);
}
.bento-icon { font-size: clamp(24px, 4vw, 32px); color: var(--brand-blue); }
.bento-item h3 { font-size: clamp(1.2rem, 3vw, 1.4rem); margin-bottom: 16px; font-weight: 800; letter-spacing: -0.03em; }
.bento-item p { color: var(--text-muted); font-size: clamp(0.95rem, 2vw, 1.05rem); line-height: 1.6; font-weight: 500; }
.bento-item:nth-child(1), .bento-item:nth-child(4) { grid-column: span 2; }

/* ==========================================================================
   7. How it Works (SEO)
   ========================================================================== */
.how-it-works-section { padding: clamp(80px, 12vw, 120px) 0; background-color: var(--bg-card); border-top: 1px solid var(--border-light); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 5vw, 40px); position: relative; }
.step-card { text-align: center; padding: clamp(24px, 4vw, 40px) 24px; }
.step-number {
    width: 56px; height: 56px; background: var(--brand-gradient); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800; font-family: var(--font-en); margin: 0 auto 24px; box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}
.step-card h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); margin-bottom: 16px; font-weight: 800; }
.step-card p { color: var(--text-muted); font-size: clamp(0.95rem, 2vw, 1.05rem); font-weight: 500; }

/* ==========================================================================
   8. Use Cases (SEO)
   ========================================================================== */
.usecases-section { padding: clamp(80px, 12vw, 120px) 0; background-color: var(--bg-body); border-top: 1px solid var(--border-light); }
.usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 32px); }
.usecase-card {
    background-color: var(--bg-card); border-radius: var(--border-radius-md); padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
    border: 1px solid var(--border-light); box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.usecase-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.usecase-card i { font-size: 48px; color: var(--brand-coral); margin-bottom: 24px; }
.usecase-card h3 { font-size: clamp(1.2rem, 3vw, 1.4rem); margin-bottom: 16px; font-weight: 800; }
.usecase-card p { color: var(--text-muted); font-size: clamp(0.95rem, 2vw, 1.05rem); font-weight: 500; }

/* ==========================================================================
   9. FAQ Section (Accordion)
   ========================================================================== */
.faq-section { padding: clamp(80px, 12vw, 120px) 0; background-color: var(--bg-card); border-top: 1px solid var(--border-light); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-light); padding: 24px 0; }
.faq-question {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    font-size: clamp(1.05rem, 2.5vw, 1.25rem); font-weight: 800; color: var(--text-heading); gap: 16px;
}
.faq-icon { font-size: 24px; color: var(--brand-blue); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-answer p { padding-top: 16px; color: var(--text-muted); font-size: clamp(0.95rem, 2vw, 1.05rem); line-height: 1.6; font-weight: 500; }

/* ==========================================================================
   10. Trust Section
   ========================================================================== */
.trust-section { padding: clamp(80px, 12vw, 120px) 0; background-color: var(--bg-body); border-top: 1px solid var(--border-light); }
.trust-container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 80px); align-items: center; }
.trust-image-wrapper {
    position: relative; border-radius: var(--border-radius-lg); background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
    height: clamp(300px, 40vw, 480px); display: flex; align-items: center; justify-content: center;
    border: 1px solid white; box-shadow: var(--shadow-lg); overflow: hidden;
}
.trust-content h2 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 24px; letter-spacing: -0.04em; }
.trust-content p { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted); margin-bottom: 40px; font-weight: 500; }
.check-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: clamp(16px, 3vw, 24px); font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 700; }
.check-list i { color: var(--brand-blue); font-size: 28px; flex-shrink: 0; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer { background-color: #0F172A; color: white; padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.footer .logo { color: white; }
.footer-desc { color: #94A3B8; margin-top: 16px; font-size: 0.95rem; max-width: 320px; font-weight: 500; }
.footer-title { font-size: 1.1rem; margin-bottom: 24px; color: white; font-weight: 700; }
.footer-links li { margin-bottom: 16px; }
.footer-links a { color: #94A3B8; font-size: 0.95rem; font-weight: 500; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; display: flex; flex-direction: column; gap: 16px; align-items: center; color: #64748B; font-size: 0.9rem; font-weight: 500; text-align: center; }
@media (min-width: 768px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}
.social-links { display: flex; gap: 16px; }
.social-links a { color: #94A3B8; font-size: 24px; }
.social-links a:hover { color: white; }

/* ==========================================================================
   12. Animations & Utilities
   ========================================================================== */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   13. Responsive Media Queries (Perfect Polishing)
   ========================================================================== */
/* Tablet & Small Desktop */
@media (max-width: 1024px) {
    .hero-container, .trust-container { grid-template-columns: 1fr; }
    .hero-text { text-align: center; }
    .hero-cta { justify-content: center; }
    
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-item:nth-child(1), .bento-item:nth-child(4) { grid-column: span 1; }
    
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .mockup-window { transform: none; }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links, .login-link { display: none; } /* Hide secondary links on mobile */
    .header-actions { gap: 0; }
    .btn-primary.btn-lg { padding: 12px 24px; font-size: 0.95rem; } /* Shrink CTA */
    
    .bento-grid, .steps-grid, .usecase-grid { grid-template-columns: 1fr; }
    .bento-item:nth-child(1), .bento-item:nth-child(4) { grid-column: span 1; }
    
    .step-card { padding: 24px 0; }
    
    .footer-top { grid-template-columns: 1fr; }
    
    .mobile-hidden { display: none !important; }
    .desktop-only { display: none !important; }
}
