/* ============================================================
   FIREINS — Common Styles (shared across all pages)
   LIGHT THEME — B+C Hybrid
   ============================================================ */

:root {
    --bg:          #FFFFFF;
    --bg-card:     #F9FAFB;
    --bg-elevated: #F3F4F6;
    --bg-dark:     #111827;
    --accent:      #D97706;
    --accent-light:#F59E0B;
    --accent-dim:  rgba(217,119,6,.08);
    --red:         #DC2626;
    --red-dim:     rgba(220,38,38,.08);
    --emerald:     #059669;
    --emerald-dim: rgba(5,150,105,.08);
    --cyan:        #0891B2;
    --violet:      #7C3AED;

    --white:   #FFFFFF;
    --t90:     #111827;
    --t70:     #374151;
    --t50:     #6B7280;
    --t30:     #9CA3AF;
    --t15:     #D1D5DB;
    --t08:     #E5E7EB;
    --t04:     #F3F4F6;

    --font: 'Noto Sans KR', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-d: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
    --max-w: 1100px;
    --max-w-narrow: 720px;
}

*, *::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(--t70); background: var(--bg);
    line-height: 1.6; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }

/* ====== Scroll Animations ====== */
[data-anim] { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s 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: 16px 0;
    transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.is-scrolled {
    background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
    padding: 10px 0; box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.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: 10px; }
.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); font-weight: 800; font-size: 9px;
    line-height: 1.15; text-align: center; white-space: pre-line;
}
.logo-text { font-family: var(--font-d); font-weight: 700; font-size: 15px; color: var(--t90); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    font-size: 13px; font-weight: 500; color: var(--t30);
    transition: color .2s; position: relative;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--t90); }
.nav-links a.is-active::after {
    content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 1px;
}
.nav-cta {
    font-size: 12px; font-weight: 600; color: #fff;
    background: var(--accent); padding: 8px 20px; border-radius: 8px;
    transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-light); transform: translateY(-1px); }

/* ====== Buttons ====== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font); font-size: 14px; font-weight: 600;
    padding: 14px 32px; border-radius: 10px; border: none; cursor: pointer;
    transition: all .25s cubic-bezier(.16,1,.3,1);
}
.btn--primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 4px 16px rgba(217,119,6,.2);
}
.btn--primary:hover {
    background: #B45309; transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217,119,6,.25);
}
.btn--ghost {
    background: transparent; color: var(--t50);
    border: 1px solid var(--t15); padding: 13px 31px;
}
.btn--ghost:hover { background: var(--t04); color: var(--t90); border-color: var(--t30); }
.btn--dark {
    background: var(--bg-dark); color: #fff;
    box-shadow: 0 4px 16px rgba(17,24,39,.15);
}
.btn--dark:hover { background: #1F2937; transform: translateY(-2px); }
.btn--lg { padding: 18px 40px; font-size: 16px; border-radius: 12px; }
.btn--full { width: 100%; justify-content: center; }
.btn svg { width: 18px; height: 18px; }

/* ====== Section utilities ====== */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-card); }
.section-label {
    font-family: var(--font-d); font-size: 11px; font-weight: 700;
    letter-spacing: .16em; color: var(--accent); text-transform: uppercase;
    margin-bottom: 16px; display: block;
}
.section-title {
    font-size: clamp(28px,4vw,40px); font-weight: 900;
    color: var(--t90); line-height: 1.2; letter-spacing: -.03em;
    margin-bottom: 16px;
}
.section-desc {
    font-size: 15px; color: var(--t50); line-height: 1.8;
    max-width: 560px; font-weight: 300;
}

/* ====== Dark section (inverted) ====== */
.section--dark { background: var(--bg-dark); }
.section--dark .section-label { color: var(--accent-light); }
.section--dark .section-title { color: #fff; }
.section--dark .section-desc { color: rgba(255,255,255,.4); }

/* ====== Big number display ====== */
.big-num {
    font-family: var(--font-d); font-weight: 900;
    line-height: 1; letter-spacing: -.04em;
}
.big-num--accent { color: var(--accent); }
.big-num--red { color: var(--red); }
.big-num--dark { color: var(--t90); }
.big-num-unit { font-size: .4em; font-weight: 700; margin-left: 4px; vertical-align: baseline; }

/* ====== Card base ====== */
.card {
    background: var(--white); border: 1px solid var(--t08);
    border-radius: 16px; padding: 32px;
    transition: border-color .3s, box-shadow .3s;
}
.card:hover { border-color: var(--t15); box-shadow: 0 8px 32px rgba(0,0,0,.06); }

/* ====== Tag / Badge ====== */
.tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    padding: 5px 12px; border-radius: 6px;
}
.tag--red { background: var(--red-dim); color: var(--red); }
.tag--amber { background: var(--accent-dim); color: var(--accent); }
.tag--emerald { background: var(--emerald-dim); color: var(--emerald); }

/* ====== FOOTER ====== */
.footer { padding: 40px 0; border-top: 1px solid var(--t08); }
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-mark { width: 24px; height: 24px; font-size: 11px; border-radius: 6px; }
.footer-brand .logo-text { font-size: 13px; }
.footer-by { font-size: 11px; color: var(--t30); margin-left: 4px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--t30); transition: color .2s; }
.footer-links a:hover { color: var(--t70); }
.footer-copy { font-size: 11px; color: var(--t30); }

/* ====== Form ====== */
.form-input {
    font-family: var(--font); font-size: 14px;
    padding: 14px 18px; border-radius: 10px;
    border: 1.5px solid var(--t08); background: var(--white);
    color: var(--t90); outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: var(--t30); }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,6,.08); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-input { flex: 1; }

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .section { padding: 80px 0; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { justify-content: center; }
    .form-row { flex-direction: column; }
}
