/* Premium Design Variables */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary: #1e293b;
    --secondary-hover: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --accent: #f59e0b;
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
}

/* Base Reset & Typography */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 120px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.text-highlight { color: var(--primary); font-weight: 800; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-align: center;
}
.btn-primary { background-color: var(--primary); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.4); }
.btn-secondary { background-color: white; color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { background-color: var(--bg-light); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: white; }
.btn-block { width: 100%; }

/* Glassmorphism Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.4s ease;
}
.header.scrolled { box-shadow: var(--shadow); background-color: rgba(255, 255, 255, 0.95); }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.75rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-weight: 600; color: var(--text-main); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

/* Mobile Menu Button */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.mobile-menu-btn svg { width: 28px; height: 28px; stroke: var(--text-main); }

/* Mobile Navigation */
.mobile-nav {
    position: fixed; top: 80px; left: 0; width: 100%; height: 0;
    background-color: white; overflow: hidden;
    transition: height 0.3s ease; z-index: 999;
    box-shadow: var(--shadow-lg);
}
.mobile-nav.open { height: auto; padding: 20px 0; border-bottom: 1px solid var(--border); }
.mobile-nav a {
    display: block; padding: 16px 24px;
    font-weight: 600; font-size: 1.1rem;
    border-bottom: 1px solid var(--bg-light);
}
.mobile-nav a:hover { color: var(--primary); background-color: var(--primary-light); }

/* Hero Section */
.hero {
    position: relative; padding: 200px 0 140px;
    background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -40%; right: -10%;
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,158,11,0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
}
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 850px; margin: 0 auto; }
.hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.04em; }
.hero p { font-size: 1.35rem; color: var(--text-muted); margin-bottom: 48px; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* Stats Section */
.stats {
    background-color: white; padding: 48px 0;
    border-bottom: 1px solid var(--border);
    transform: translateY(-50%); position: relative; z-index: 10;
    max-width: 1000px; margin: 0 auto;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); height: 60%; width: 1px;
    background-color: var(--border);
}
.stat-number { font-size: 2.75rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 600; color: var(--text-muted); font-size: 1.1rem; }

/* Services */
.section-header { margin-bottom: 64px; }
.section-header h2 { font-size: 2.75rem; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.03em; }
.section-header p { font-size: 1.2rem; color: var(--text-muted); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.service-card {
    background: white; padding: 48px 32px;
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary); transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 72px; height: 72px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.service-icon svg { width: 36px; height: 36px; }
.bg-blue { background-color: #eff6ff; color: #3b82f6; }
.bg-green { background-color: #f0fdf4; color: #22c55e; }
.bg-red { background-color: #fef2f2; color: #ef4444; }
.bg-purple { background-color: #faf5ff; color: #a855f7; }
.service-card h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.service-card p { color: var(--text-muted); font-size: 1.05rem; }

/* Why Us */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-content h2 { font-size: 2.75rem; font-weight: 800; margin-bottom: 48px; line-height: 1.3; letter-spacing: -0.03em; }
.feature-list li { display: flex; gap: 24px; margin-bottom: 40px; }
.feature-icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    background-color: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-list h4 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.feature-list p { color: var(--text-muted); font-size: 1.1rem; }
.image-placeholder img {
    width: 100%; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); transition: transform 0.5s ease;
}
.image-placeholder:hover img { transform: scale(1.03); }

/* Board */
.board-list li {
    border-bottom: 1px solid var(--border); padding: 20px 0;
    transition: background-color 0.2s ease;
}
.board-list li:hover { background-color: white; border-radius: var(--radius-sm); padding: 20px 16px; margin: 0 -16px; border-bottom-color: transparent; box-shadow: var(--shadow-sm); }
.board-badge { background: var(--primary-light); color: var(--primary); font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.board-title { margin: 0; font-size: 1.15rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.board-date { color: var(--text-muted); font-size: 0.95rem; margin-left: 20px; white-space: nowrap; }

/* Consult Form */
.consult { background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%); color: white; position: relative; padding: 100px 0; }
.consult-content p { color: #94a3b8; font-size: 1.2rem; margin-top: 16px; margin-bottom: 48px; }
.form-wrapper {
    background: white; padding: 48px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-width: 650px; margin: 0 auto;
    color: var(--text-main); position: relative;
}
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--secondary); }
.form-group input {
    width: 100%; padding: 16px 20px; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: 1.05rem; font-family: inherit;
    transition: all 0.3s ease; background-color: var(--bg-light);
}
.form-group input:focus { outline: none; border-color: var(--primary); background-color: white; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
#formMessage { display: none; padding: 16px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 600; text-align: center; }
#formMessage.success { display: block; background-color: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
#formMessage.error { display: block; background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer */
.footer { background-color: #0f172a; color: white; padding: 100px 0 40px; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-logo { font-size: 2rem; font-weight: 800; margin-bottom: 20px; color: white; letter-spacing: -0.03em; }
.footer-info p { color: #64748b; font-size: 1.1rem; }
.footer h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 24px; color: white; }
.footer-contact p { margin-bottom: 12px; color: #94a3b8; }
.footer-contact .phone { font-size: 1.75rem; font-weight: 800; color: white; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: #94a3b8; transition: color 0.3s ease; font-weight: 500; }
.footer-links a:hover { color: white; padding-left: 4px; }
.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid #1e293b; color: #475569; font-size: 0.95rem; }

/* Animations */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.2rem; }
    .split-layout { grid-template-columns: 1fr; gap: 60px; }
    .stats { transform: translateY(0); margin-top: 40px; margin-bottom: 40px; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links, .contact-btn-wrap { display: none; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 160px 0 80px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .stats-grid { grid-template-columns: 1fr; gap: 32px; }
    .stat-item:not(:last-child)::after { display: none; }
    .section-header h2 { font-size: 2.2rem; }
    .footer-container { grid-template-columns: 1fr; gap: 40px; }
    .form-wrapper { padding: 32px 24px; }
}
