/* --- Reset & Base Styles --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; color: #333; background-color: #fff; line-height: 1.6; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; transition: color 0.3s, background-color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* --- Colors (벨로아 테마) --- */
:root {
    --primary-color: #7b94b7; 
    --primary-hover: #6580a3;
    --bg-light-gray: #f6f7fa;
    --bg-pale: #edf0f5; 
    --text-muted: #888;
    --border-light: #e2e8f0;
    --footer-bg: #141724;
    --footer-text: #8e95a5;
}

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.relative-z { position: relative; z-index: 2; }
.align-center { align-items: center; }
.flex-center-gap { display: flex; align-items: center; justify-content: center; gap: 12px; }
.flex-space-between { display: flex; justify-content: space-between; align-items: flex-start; }
.grid-3-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-20 { margin-top: 20px; }

/* --- Buttons & Badges --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; transition: all 0.3s; cursor: pointer; border: none; }
.btn-filled-cyan { background-color: var(--primary-color); color: #fff; }
.btn-filled-cyan:hover { background-color: var(--primary-hover); }
.btn-bg-white { background-color: rgba(255, 255, 255, 0.9); color: var(--primary-color); }
.btn-bg-white:hover { background-color: #fff; }
.btn-border-white { border: 1px solid rgba(255,255,255,0.5); background: transparent; color: #fff; }
.btn-border-white:hover { background-color: rgba(255,255,255,0.1); }

.badge { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 20px; }
.badge-hero { background-color: rgba(255, 255, 255, 0.2); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); }
.badge-cyan-plain { background-color: var(--bg-pale); color: var(--primary-color); }
.badge-cta { background-color: rgba(255,255,255,0.2); color: #fff; }

.badge-table { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.outline-gray { background: #f1f5f9; color: #475569; }
.outline-cyan { background: var(--bg-pale); color: var(--primary-color); }

/* --- Background Overlays (벨로아 모눈종이 패턴) --- */
.pattern-overlay { position: relative; }
.pattern-overlay::after {
    content: ""; position: absolute; top:0; left:0; width:100%; height:100%;
    background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px; z-index: 1; pointer-events: none;
}

/* --- Header (투명 -> 스크롤 시 흰색 변환) --- */
.global-header { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 100; transition: all 0.3s; color: #fff; }
.global-header.scrolled { background-color: #fff; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 0; }
.logo-icon { width: 40px; height: 40px; background: var(--primary-color); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.logo-text { font-size: 22px; font-weight: 700; color: inherit; }
.gnb-menu { display: flex; gap: 30px; font-weight: 500; font-size: 15px; }
.gnb-menu a:hover { color: var(--primary-color); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 24px; color: inherit; cursor: pointer; }

/* --- Sections --- */
section { padding: 100px 0; }
section h2 { font-size: 32px; font-weight: 700; margin-bottom: 15px; color: #111; }
section h2 + p { font-size: 16px; color: #666; margin-bottom: 50px; }
.bg-gray { background-color: var(--bg-light-gray); }
.bg-white { background-color: #fff; }

/* --- Hero Section --- */
.hero { padding-top: 160px; padding-bottom: 100px; background: linear-gradient(135deg, #a5b9ce 0%, #b3cddb 50%, #d8d3ec 100%); color: #fff; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 18px; color: rgba(255, 255, 255, 0.9); margin-bottom: 40px; }
.hero-feature-cards { text-align: center; margin-top: 60px; }
.hero-card { background-color: rgba(255, 255, 255, 0.95); padding: 35px 25px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); color: #333; transition: transform 0.3s; }
.hero-card:hover { transform: translateY(-5px); }
.hero-card .icon-wrapper { width: 48px; height: 48px; background-color: var(--bg-pale); color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; margin: 0 auto 20px; }
.hero-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #222; }
.hero-card p { font-size: 14.5px; color: #555; line-height: 1.6; word-break: keep-all; margin: 0; }

/* --- Feature Cards --- */
.feature-grid .feature-item { background-color: #fff; border: 1px solid var(--border-light); padding: 35px 30px; border-radius: 12px; text-align: left; transition: transform 0.2s; }
.feature-grid .feature-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.03); }
.feature-item .icon-wrapper { width: 40px; height: 40px; border: 1px solid var(--primary-color); color: var(--primary-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 16px; margin-bottom: 20px; }
.feature-item h4 { font-size: 17px; font-weight: 700; margin-bottom: 12px; color: #222; }
.feature-item p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }

/* --- Data Cards (벨로아 대시보드 룩) --- */
.data-card { background-color: #fff; padding: 24px; border-radius: 12px; border: 1px solid var(--border-light); display: flex; flex-direction: column; }
.data-card.active-card { background-color: #fff0f2; border-color: #d32f2f; }
.card-top { align-items: center; margin-bottom: 15px; color: var(--text-muted); font-size: 14px; font-weight: 600; }
.data-value { font-size: 28px; font-weight: 700; color: #111; margin-bottom: 5px; }
.active-card .data-value { color: #d32f2f; }
.data-sub { font-size: 13px; color: var(--text-muted); }
.active-card .data-sub { color: #d32f2f; }

/* --- Table --- */
.table-container { background: #fff; border-radius: 12px; border: 1px solid var(--border-light); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; min-width: 600px; }
th { background: #f8fafc; padding: 18px 24px; font-size: 13px; color: #64748b; font-weight: 600; border-bottom: 1px solid var(--border-light); white-space: nowrap; }
td { padding: 18px 24px; font-size: 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; white-space: normal; line-height: 1.6;}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background-color: #f8fafc; }
.fw-600 { font-weight: 600; color: #222; }
.text-muted { color: #666; }

/* --- CTA --- */
.bottom-cta { background: linear-gradient(135deg, #94a8c1 0%, #b1b5d1 100%); color: #fff; }
.bottom-cta h2 { color: #fff; font-size: 42px; margin-bottom: 20px; }
.bottom-cta p { color: rgba(255,255,255,0.9); font-size: 18px; margin-bottom: 40px; }

/* --- Footer --- */
.global-footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 80px 0 30px; }
.footer-content { padding-bottom: 50px; border-bottom: 1px solid #2a2e40; display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-info { max-width: 400px; display: flex; flex-direction: column; }
.logo-area { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-info p { font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; background: #232738; color: #fff; border-radius: 6px; transition: background 0.3s; }
.social-icons a:hover { background: var(--primary-color); }

.footer-links { flex-grow: 1; display: flex; justify-content: flex-end; gap: 60px; }
.link-column h5 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 25px; }
.link-column ul li { margin-bottom: 12px; }
.link-column ul a { font-size: 14px; color: var(--footer-text); }
.link-column ul a:hover { color: #fff; }

.footer-bottom { padding-top: 25px; font-size: 13px; color: #666; display: flex; justify-content: space-between; align-items: center; }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 40px; }
    .grid-4-cols, .grid-3-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-links { gap: 40px; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .global-header .flex-space-between { flex-direction: row; justify-content: space-between; align-items: center; gap: 0; }
    .global-header .flex-center-gap { flex-direction: row; margin-bottom: 0; gap: 10px; }
    
    .hero-btns.flex-center-gap { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px; }
    
    .gnb-nav { 
        display: block; width: 100%; position: absolute; top: 100%; left: 0; 
        background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; 
        transition: all 0.3s ease-in-out; 
    }
    .gnb-nav.active { 
        max-height: 400px; opacity: 1; visibility: visible; 
    }
    .gnb-menu { flex-direction: column; gap: 0; text-align: center; }
    .gnb-menu a { display: block; padding: 15px; color: #333; border-bottom: 1px solid #f1f1f1; }
    
    .mobile-menu-toggle { display: block; padding: 5px; cursor: pointer; } 
    .global-header.scrolled .mobile-menu-toggle { color: #333; }
    
    .hero h1 { font-size: 32px; }
    
    .grid-4-cols, .grid-3-cols { grid-template-columns: 1fr; gap: 15px; }
    
    .flex-space-between { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-info { align-items: center; max-width: 100%; }
    .footer-info .logo-area { justify-content: center; flex-direction: row; margin-bottom: 20px; }
    .footer-info .social-icons { justify-content: center; }
    .footer-links { justify-content: center; width: 100%; margin-top: 10px; gap: 40px; }
    .link-column { text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}
