/* ============================================================
   AERP CRM — Common CSS (shared across all pages)
   Navy(#0E3830) + Emerald(#10B981) · Light mode base
   ============================================================ */

:root {
    --navy:        #0E3830;
    --navy-light:  #14453C;
    --accent:      #10B981;
    --accent-light:#34D399;
    --emerald:     #10B981;
    --violet:      #8B5CF6;
    --amber:       #F59E0B;
    --rose:        #F43F5E;
    --cyan:        #06B6D4;

    --white:   #FFFFFF;
    --g50:     #F8FAFC;
    --g100:    #F1F5F9;
    --g200:    #E2E8F0;
    --g300:    #CBD5E1;
    --g400:    #94A3B8;
    --g500:    #64748B;
    --g600:    #475569;
    --g700:    #334155;
    --g800:    #1E293B;
    --g900:    #0F172A;

    --font: 'Noto Sans KR', 'Plus Jakarta Sans', sans-serif;
    --font-d: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    --max-w: 1100px;
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--g700); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ====== Animations ====== */
[data-anim] { opacity: 0; transform: translateY(28px); transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1); }
[data-anim].is-visible { opacity: 1; transform: translateY(0); }

/* ====== NAV ====== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 14px 0; transition: background .3s, padding .3s, box-shadow .3s; background: rgba(14,56,48,.92); }
.nav.is-scrolled { background: rgba(14,56,48,.96); backdrop-filter: blur(14px); padding: 10px 0; box-shadow: 0 1px 0 rgba(255,255,255,.05); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; font-family: var(--font-d); font-weight: 800; font-size: 15px; }
.logo-mark--sm { width: 26px; height: 26px; font-size: 12px; border-radius: 6px; }
.logo-text { font-family: var(--font-d); font-weight: 700; font-size: 16px; color: #fff; }
.logo-text--sm { font-size: 14px; }
.logo-sub { font-size: 12px; color: rgba(255,255,255,.4); font-weight: 500; border-left: 1px solid rgba(255,255,255,.15); padding-left: 8px; margin-left: 4px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.5); transition: color .2s; }
.nav-links a:hover,
.nav-links a.is-active { color: rgba(255,255,255,.95); }
.nav-cta { font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); padding: 7px 18px; border-radius: 7px; transition: background .2s; }
.nav-cta:hover { background: #059669; }

/* ====== Buttons ====== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 14px; font-weight: 600; padding: 12px 28px; border-radius: 10px; transition: all .25s cubic-bezier(.16,1,.3,1); cursor: pointer; border: none; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(16,185,129,.25); }
.btn--primary:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(16,185,129,.3); }
.btn--outline { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.1); }
.btn--outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--outline-dark { background: transparent; color: var(--g600); border: 1px solid var(--g200); }
.btn--outline-dark:hover { background: var(--g50); color: var(--g900); border-color: var(--g300); }
.btn--lg { padding: 16px 36px; font-size: 15px; border-radius: 12px; }

/* ====== Section headings ====== */
.section-head { text-align: center; margin-bottom: 52px; }
.tag { display: inline-block; font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; text-transform: uppercase; }
.tag--light { color: var(--accent-light); }
.title-lg { font-size: clamp(26px,3.2vw,38px); font-weight: 800; color: var(--g900); line-height: 1.28; letter-spacing: -.025em; margin-bottom: 14px; }
.title--white { color: #fff; }
.subtitle { font-size: 15px; color: var(--g500); max-width: 480px; margin: 0 auto; line-height: 1.7; font-weight: 300; }
.subtitle--white { font-size: 15px; color: rgba(255,255,255,.4); max-width: 480px; margin: 0 auto; line-height: 1.7; font-weight: 300; }

/* ====== Cards ====== */
.pain-card { background: var(--white); border: 1px solid var(--g200); border-radius: 16px; padding: 32px; transition: transform .3s, box-shadow .3s; }
.pain-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.05); }
.pain-num { font-family: var(--font-d); font-size: 28px; font-weight: 800; color: var(--g200); margin-bottom: 12px; }
.pain-title { font-size: 17px; font-weight: 700; color: var(--g900); margin-bottom: 8px; }
.pain-desc { font-size: 14px; color: var(--g500); line-height: 1.65; font-weight: 300; }
.pain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.sol-card { background: var(--navy-light); border: 1px solid rgba(255,255,255,.06); border-radius: 16px; padding: 30px; transition: transform .3s, border-color .3s; }
.sol-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.12); }
.sol-icon { width: 46px; height: 46px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.sol-icon--blue    { background: rgba(59,130,246,.12); color: var(--accent-light); }
.sol-icon--emerald { background: rgba(16,185,129,.12); color: #34D399; }
.sol-icon--violet  { background: rgba(139,92,246,.12); color: #A78BFA; }
.sol-icon--amber   { background: rgba(245,158,11,.12); color: #FBBF24; }
.sol-icon--rose    { background: rgba(244,63,94,.12); color: #FB7185; }
.sol-icon--cyan    { background: rgba(6,182,212,.12); color: #22D3EE; }
.sol-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.sol-card p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; font-weight: 300; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ====== Flow ====== */
.flow-steps { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.flow-step { background: var(--g50); border: 1px solid var(--g200); border-radius: 14px; padding: 28px 24px; text-align: center; width: 200px; transition: transform .3s, box-shadow .3s; }
.flow-step:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.05); }
.flow-step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-d); font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.flow-step-body h3 { font-size: 15px; font-weight: 700; color: var(--g900); margin-bottom: 6px; }
.flow-step-body p { font-size: 12px; color: var(--g500); line-height: 1.5; font-weight: 300; }
.flow-arrow { color: var(--g300); padding: 0 8px; flex-shrink: 0; }

/* ====== Features Detail ====== */
.feat-list { display: flex; flex-direction: column; gap: 80px; }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feat-row--reverse { direction: rtl; }
.feat-row--reverse > * { direction: ltr; }
.feat-label { display: inline-block; font-family: var(--font-d); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; margin-bottom: 10px; }
.feat-title { font-size: 24px; font-weight: 800; color: var(--g900); margin-bottom: 12px; letter-spacing: -.02em; line-height: 1.3; }
.feat-desc { font-size: 14px; color: var(--g500); line-height: 1.7; margin-bottom: 16px; font-weight: 300; }
.feat-checks { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feat-checks li { font-size: 13px; color: var(--g600); font-weight: 500; padding-left: 20px; position: relative; }
.feat-checks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 3px; background: rgba(16,185,129,.1); border: 1.5px solid var(--accent); }

/* ====== Mockups ====== */
.feat-mockup { background: var(--white); border: 1px solid var(--g200); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.06); }
.mockup-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--g100); border-bottom: 1px solid var(--g200); }
.mockup-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--g300); }
.mockup-body { padding: 16px; }
.mockup-filter { display: flex; gap: 6px; margin-bottom: 14px; }
.m-pill { font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 6px; background: var(--g100); color: var(--g500); }
.m-pill--active { background: var(--g900); color: #fff; }
.mockup-table { display: flex; flex-direction: column; gap: 0; }
.m-row { display: grid; grid-template-columns: 1fr 1.2fr .8fr .6fr; gap: 8px; padding: 9px 12px; font-size: 12px; color: var(--g600); align-items: center; border-bottom: 1px solid var(--g100); }
.m-row--head { font-size: 10px; font-weight: 600; color: var(--g400); text-transform: uppercase; letter-spacing: .05em; background: var(--g50); border-radius: 6px; border-bottom: none; }
.m-row--alt { background: var(--g50); }
.m-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.m-badge--blue { background: #EFF6FF; color: #3B82F6; }
.m-badge--green { background: #ECFDF5; color: #059669; }
.m-badge--amber { background: #FFFBEB; color: #D97706; }
.m-badge--gray { background: var(--g100); color: var(--g400); }

/* Detail mockup */
.mockup-body--detail { padding: 20px; }
.m-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.m-avatar { width: 40px; height: 40px; border-radius: 10px; background: #EFF6FF; color: var(--accent); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.m-name { font-size: 14px; font-weight: 700; color: var(--g900); display: flex; align-items: center; gap: 8px; }
.m-phone { font-size: 11px; color: var(--g400); margin-top: 2px; }
.m-detail-meta { display: flex; gap: 16px; padding: 10px 14px; background: var(--g50); border-radius: 8px; margin-bottom: 14px; font-size: 12px; color: var(--g600); }
.m-detail-meta span { color: var(--g400); margin-right: 4px; }
.m-memo-list { display: flex; flex-direction: column; gap: 8px; }
.m-memo { padding: 10px 12px; background: var(--g50); border-radius: 8px; border-left: 3px solid var(--accent); }
.m-memo-date { font-size: 10px; color: var(--g400); margin-bottom: 3px; }
.m-memo-text { font-size: 12px; color: var(--g600); line-height: 1.5; }

/* Dashboard mockup */
.mockup-body--dash { padding: 20px; }
.m-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.m-stat { text-align: center; padding: 12px 8px; background: var(--g50); border-radius: 8px; }
.m-stat-num { font-family: var(--font-d); font-size: 22px; font-weight: 800; color: var(--g900); }
.m-stat-num--blue { color: var(--accent); }
.m-stat-num--green { color: var(--emerald); }
.m-stat-num--red { color: var(--rose); }
.m-stat-label { font-size: 10px; color: var(--g400); margin-top: 2px; }
.m-bar-chart { display: flex; flex-direction: column; gap: 8px; }
.m-bar-item { display: flex; align-items: center; gap: 10px; }
.m-bar-name { font-size: 11px; color: var(--g500); width: 48px; text-align: right; flex-shrink: 0; }
.m-bar { flex: 1; height: 8px; background: var(--g100); border-radius: 4px; overflow: hidden; }
.m-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 4px; transition: width 1s cubic-bezier(.16,1,.3,1); }
.m-bar-val { font-size: 11px; font-weight: 600; color: var(--g600); width: 36px; flex-shrink: 0; }

/* ====== Forms ====== */
.form-row { display: flex; gap: 10px; }
.form-row .form-input { flex: 1; }
.form-input { font-family: var(--font); font-size: 14px; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); color: #fff; outline: none; transition: border-color .2s, background .2s; }
.form-input::placeholder { color: rgba(255,255,255,.3); }
.form-input:focus { border-color: var(--accent); background: rgba(255,255,255,.1); }
.form-textarea { resize: vertical; min-height: 72px; }
.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-msg { font-size: 13px; margin-top: 8px; min-height: 20px; }
.form-msg--ok { color: var(--accent-light); }
.form-msg--err { color: var(--rose); }

/* ====== Hero (shared structure) ====== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--navy); overflow: hidden; padding: 120px 24px 80px; }
.hero-bg { position: absolute; inset: 0; }
.hero-mesh {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(16,185,129,.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, black 10%, transparent 65%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); }
.hero-glow--1 { width: 500px; height: 500px; background: var(--accent); top: -5%; left: 30%; opacity: .1; animation: drift 10s ease-in-out infinite alternate; }
.hero-glow--2 { width: 400px; height: 400px; background: var(--emerald); bottom: 0; right: 20%; opacity: .06; animation: drift 12s ease-in-out infinite alternate-reverse; }
.hero-grain { position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E"); opacity: .5; }
@keyframes drift { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(30px,-20px) scale(1.08)} }

.hero-content { position: relative; text-align: center; max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent-light); background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.18); padding: 6px 16px; border-radius: 100px; margin-bottom: 28px; }
.badge-icon { display: flex; color: var(--accent-light); }
.hero-title { font-size: clamp(32px,5vw,52px); font-weight: 900; color: #fff; line-height: 1.22; letter-spacing: -.03em; margin-bottom: 20px; }
.accent-text { background: linear-gradient(135deg, var(--accent-light), var(--emerald)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.45); line-height: 1.75; margin-bottom: 36px; font-weight: 300; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* ====== CTA Section ====== */
.cta { padding: 110px 0; background: var(--navy); }
.cta-box { position: relative; text-align: center; padding: 64px 40px; border-radius: 24px; background: var(--navy-light); border: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.cta-glow { position: absolute; width: 450px; height: 450px; top: -55%; left: 50%; transform: translateX(-50%); background: var(--accent); border-radius: 50%; filter: blur(140px); opacity: .1; pointer-events: none; }
.cta-actions { position: relative; margin-bottom: 18px; margin-top: 28px; }
.cta-contact { font-size: 13px; color: rgba(255,255,255,.28); position: relative; }
.cta-form { position: relative; max-width: 480px; margin: 28px auto 18px; display: flex; flex-direction: column; gap: 10px; }

/* ====== Section page-level backgrounds ====== */
.section--light { padding: 110px 0; background: var(--g50); }
.section--white { padding: 110px 0; background: var(--white); }
.section--dark  { padding: 110px 0; background: var(--navy); }

/* ====== "More" link ====== */
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 28px; transition: gap .2s; }
.more-link:hover { gap: 10px; }
.more-link svg { transition: transform .2s; }
.more-link:hover svg { transform: translateX(2px); }

/* ====== FOOTER ====== */
.footer { padding: 36px 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-by { font-size: 11px; color: rgba(255,255,255,.22); margin-left: 4px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-link:hover { color: rgba(255,255,255,.7); }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.18); }
.footer-links { display: flex; gap: 20px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .sol-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-row, .feat-row--reverse { grid-template-columns: 1fr; direction: ltr; }
    .feat-visual { order: -1; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding: 100px 20px 60px; min-height: auto; }
    .pain-grid { grid-template-columns: 1fr; }
    .sol-grid { grid-template-columns: 1fr; }
    .flow-steps { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
    .m-stat-row { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-links { flex-direction: column; gap: 8px; }
    .form-row { flex-direction: column; }
}
