*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0D1B2E;
    --primary-light: #1B3A5C;
    --accent: #1E6FBB;
    --accent-dark: #155A9A;
    --gray-50: #F8F9FB;
    --gray-100: #F0F2F5;
    --gray-200: #E2E6EC;
    --gray-400: #9BA5B2;
    --gray-600: #4A5568;
    --white: #fff;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(13,27,46,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 64px;
}
.nav-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.nav-logo span { color: var(--accent); }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.nav-menu a {
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    border-radius: 5px;
    transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-menu a.active { color: #fff; }
.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: 5px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #0D1B2E 0%, #122847 60%, #1B3A5C 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 64px;
}
.hero-blob1 { position: absolute; top: 15%; right: 8%; width: 480px; height: 480px; background: rgba(30,111,187,0.15); border-radius: 50%; filter: blur(100px); pointer-events: none; }
.hero-blob2 { position: absolute; bottom: 15%; left: 3%; width: 320px; height: 320px; background: rgba(30,111,187,0.08); border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: 60px 0 100px; }
.hero-tag { display: inline-block; background: rgba(30,111,187,0.2); color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 28px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; color: #fff; line-height: 1.18; letter-spacing: -1px; margin-bottom: 24px; }
.hero h1 span { color: #6DB8F0; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.85; margin-bottom: 44px; max-width: 500px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; }
.hero-wave svg { display: block; width: 100%; height: 60px; }

/* ── PAGE HERO (내부 페이지) ── */
.page-hero {
    background: linear-gradient(135deg, #0D1B2E 0%, #1B3A5C 100%);
    padding: 120px 0 64px;
    text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; margin-top: 16px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.6); margin-top: 12px; }

/* ── TYPOGRAPHY ── */
.tag { display: inline-block; padding: 4px 12px; background: rgba(30,111,187,0.1); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; color: var(--primary); line-height: 1.25; letter-spacing: -0.02em; }
.section-sub { font-size: 16px; color: var(--gray-600); margin-top: 14px; line-height: 1.75; }

/* ── BUTTONS ── */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.4);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); }
.btn-navy {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.btn-navy:hover { background: var(--primary-light); }

/* ── CARD ── */
.card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: transparent; box-shadow: 0 8px 32px rgba(13,27,46,0.1); transform: translateY(-3px); }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat-card { padding: 32px 24px; text-align: center; }
.stat-num { font-size: clamp(36px, 4vw, 52px); font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--gray-600); margin-top: 8px; font-weight: 500; }

/* ── SERVICES ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.service-card { padding: 40px 32px; }
.service-icon { width: 64px; height: 64px; background: rgba(13,27,46,0.06); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--gray-600); line-height: 1.8; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ── PORTFOLIO GRID ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.portfolio-card { overflow: hidden; }
.portfolio-thumb { height: 180px; background: var(--gray-100); overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
.portfolio-body { padding: 24px; }
.portfolio-cat { font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(30,111,187,0.1); padding: 3px 10px; border-radius: 4px; }
.portfolio-title { font-size: 17px; font-weight: 700; color: var(--primary); margin: 12px 0 6px; }
.portfolio-client { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; }
.portfolio-tags { font-size: 12px; color: var(--gray-400); font-family: monospace; }

/* ── FILTER ── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; border-radius: 24px; border: 1.5px solid var(--gray-200); background: transparent; font-size: 14px; font-weight: 500; color: var(--gray-600); cursor: pointer; font-family: inherit; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── PROCESS ── */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2px; }
.process-step { padding: 32px 22px; background: rgba(255,255,255,0.04); border-radius: 10px; border-top: 2px solid rgba(255,255,255,0.1); }
.process-step.highlight { background: rgba(30,111,187,0.15); border-top-color: var(--accent); }
.process-num { font-size: 12px; color: rgba(255,255,255,0.35); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 10px; }
.process-step.highlight .process-num { color: var(--accent); }
.process-step h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.process-step p { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.75; }

/* ── CASES ── */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.case-card { padding: 36px 32px; }
.case-industry { font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(30,111,187,0.1); padding: 3px 10px; border-radius: 4px; }
.case-company { font-size: 14px; color: var(--gray-400); margin: 10px 0 4px; }
.case-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.case-summary { font-size: 14px; color: var(--gray-600); line-height: 1.8; margin-bottom: 20px; }
.case-result { font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 16px; border-top: 1px solid var(--gray-100); }

/* ── NOTICE ── */
.notice-list { background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200); overflow: hidden; }
.notice-item { display: flex; align-items: center; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--gray-100); transition: background 0.15s; }
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--gray-50); }
.notice-pin { font-size: 11px; font-weight: 700; color: var(--accent); background: rgba(30,111,187,0.1); padding: 2px 8px; border-radius: 3px; flex-shrink: 0; }
.notice-title { flex: 1; font-size: 15px; color: var(--primary); font-weight: 500; }
.notice-date { font-size: 13px; color: var(--gray-400); flex-shrink: 0; }
.notice-detail { background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200); padding: 40px; }
.notice-detail-title { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.notice-detail-meta { font-size: 13px; color: var(--gray-400); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-100); }
.notice-detail-body { font-size: 15px; color: var(--gray-600); line-height: 2; white-space: pre-wrap; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.contact-info h3 { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-item-icon { width: 40px; height: 40px; background: rgba(30,111,187,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-text { font-size: 14px; color: var(--gray-600); line-height: 1.6; }
.contact-item-label { font-size: 12px; font-weight: 600; color: var(--gray-400); margin-bottom: 2px; }
.contact-form-wrap { background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200); padding: 40px; }
.contact-form-wrap h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-control { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: 6px; font-size: 14px; font-family: inherit; color: var(--primary); outline: none; transition: border-color 0.2s; }
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-submit { margin-top: 8px; }
.form-msg { margin-top: 12px; font-size: 14px; padding: 10px 14px; border-radius: 6px; display: none; }
.form-msg.success { background: #e8f5e9; color: #2e7d32; display: block; }
.form-msg.error { background: #fce4ec; color: #c62828; display: block; }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card { padding: 36px 32px; }
.testimonial-quote { font-size: 48px; color: var(--accent); line-height: 1; margin-bottom: 16px; font-family: Georgia, serif; opacity: 0.6; }
.testimonial-text { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-footer { border-top: 1px solid var(--gray-100); padding-top: 20px; }
.testimonial-name { font-weight: 700; color: var(--primary); font-size: 15px; }
.testimonial-company { font-size: 13px; color: var(--gray-400); margin-top: 4px; }

/* ── TECH STACK ── */
.tech-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech-badge { padding: 10px 22px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 24px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ── FOOTER ── */
.footer { background: var(--primary); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 16px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.8; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── CTA SECTION ── */
.cta-section { background: var(--gray-50); padding: 96px 0; text-align: center; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeInUp 0.5s ease forwards; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .section-sm { padding: 48px 0; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); padding: 1rem; gap: 0; }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 0.75rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-toggle { display: block; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
