/* 내지원금 — supanova "Clean Structural" 프리미엄 시스템
   Double-Bezel 카드 · cubic-bezier(.16,1,.3,1) 모션 · 플로팅 글래스 네비 · 초확산 그림자 · break-keep */

:root {
  --brand: #2f5dff; --brand-ink: #1b3bb3; --brand-soft: rgba(47,93,255,.10);
  --navy: #0b1430; --navy-2: #15224a;
  --ink: #101729; --ink-soft: #44506a; --muted: #717c97;
  --bg: #f3f5fb; --surface: #ffffff; --surface-2: #f7f9fe;
  --line: #e7ebf5; --hair: rgba(16,26,60,.06);

  --urgent: #e5295b; --urgent-bg: #fff0f4; --urgent-line: #ffd2dd;
  --open: #0f9b5a; --open-bg: #e9f8f0; --open-line: #c7edd6;
  --closed: #8b95ab; --closed-bg: #eef1f6;
  --always: #6a4df4; --always-bg: #efeaff;

  --r-pill: 999px; --r-lg: 26px; --r: 18px; --r-sm: 12px;
  /* 초확산 앰비언트 그림자 */
  --sh-1: 0 2px 6px -2px rgba(16,26,60,.08);
  --sh-2: 0 20px 50px -22px rgba(16,26,60,.22);
  --sh-3: 0 30px 70px -25px rgba(16,26,60,.30);
  --glow: 0 14px 34px -10px rgba(47,93,255,.45);
  --ease: cubic-bezier(.16,1,.3,1);
  --maxw: 1100px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: var(--font); line-height: 1.6; letter-spacing: -.012em;
  word-break: keep-all; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(47,93,255,.16); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: .9rem; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.25; margin: 0; }

/* ── Floating glass nav ───────────────── */
.site-header { position: sticky; top: 0; z-index: 60; padding: 14px 16px; background: transparent; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px 9px 18px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.6); box-shadow: var(--sh-2), inset 0 1px 0 rgba(255,255,255,.7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.16rem; }
.brand .logo {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(150deg, var(--brand), #6f8cff); color: #fff; font-size: 1.02rem; box-shadow: var(--glow);
}
.brand-sub { font-size: .73rem; font-weight: 600; color: var(--muted); }
.nav { display: flex; gap: 4px; }
.nav a { font-size: .92rem; font-weight: 600; color: var(--ink-soft); padding: 8px 13px; border-radius: var(--r-pill); transition: all .4s var(--ease); }
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
@media (max-width: 700px) { .nav { display: none; } .brand-sub { display: none; } }

/* ── Buttons (pill + nested arrow) ────── */
.btn-apply, .search-box button, .subscribe button {
  font-family: inherit; font-weight: 700; cursor: pointer; border: 0; color: #fff;
  background: var(--brand); border-radius: var(--r-pill); transition: all .4s var(--ease);
}
.search-box button, .subscribe button { padding: 0 24px; font-size: 1rem; box-shadow: var(--glow); }
.search-box button:hover, .subscribe button:hover { background: var(--brand-ink); transform: scale(1.02); }
.search-box button:active, .subscribe button:active { transform: scale(.98); }
.btn-apply { display: inline-flex; align-items: center; gap: 12px; font-size: 1.02rem; padding: 13px 14px 13px 26px; margin: 4px 0 26px; box-shadow: var(--glow); }
.btn-apply:hover { background: var(--brand-ink); transform: scale(1.02); }
.btn-apply .ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.18); transition: transform .4s var(--ease); }
.btn-apply:hover .ico { transform: translateX(3px); }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 520px at 80% -12%, rgba(47,93,255,.16), transparent 60%),
    radial-gradient(820px 460px at 4% -4%, rgba(106,77,244,.12), transparent 55%),
    linear-gradient(180deg, #fbfcff, var(--bg));
}
.hero:before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(20,40,90,.05) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%); mask-image: linear-gradient(180deg, #000, transparent 78%); }
.hero .wrap { position: relative; text-align: center; padding: clamp(56px, 9vw, 104px) 20px clamp(48px, 7vw, 84px); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--brand-ink);
  background: var(--brand-soft); border: 1px solid rgba(47,93,255,.16); padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 22px; }
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 4px rgba(15,155,90,.18); animation: float 3s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; line-height: 1.22; margin-bottom: 18px; }
.hero h1 .hl { color: var(--brand); }
.hero-sub { color: var(--ink-soft); font-size: clamp(1rem, 2.2vw, 1.12rem); max-width: 640px; margin: 0 auto 30px; }
.hero-sub strong { color: var(--ink); font-weight: 700; }

.search-box { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; padding: 8px;
  background: #fff; border: 1px solid var(--hair); border-radius: 20px; box-shadow: var(--sh-2); transition: all .4s var(--ease); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 16px; font-size: 1.04rem; font-family: inherit; color: var(--ink); }
.search-box input:focus { outline: none; }
.search-box:focus-within { box-shadow: var(--sh-3), 0 0 0 4px rgba(47,93,255,.14); }

.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.qf { font-family: inherit; padding: 9px 16px; border: 1px solid var(--hair); background: rgba(255,255,255,.7);
  border-radius: var(--r-pill); font-size: .88rem; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .4s var(--ease); }
.qf:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-1); }

.trust-bar { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-top: 28px; font-size: .85rem; color: var(--muted); font-weight: 500; }
.trust-bar span { display: inline-flex; align-items: center; gap: 6px; }
.trust-bar b { color: var(--brand-ink); font-weight: 800; }
.trust-check { color: var(--open); font-weight: 900; }

/* ── Sections ─────────────────────────── */
.main { padding-top: 56px; }
section.wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 4px; }
.nav-section { padding-top: clamp(40px, 6vw, 72px); }
h1 { font-size: 1.8rem; } h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 18px; }
.eyebrow { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: var(--r-pill); margin-bottom: 12px; }
.lead { color: var(--ink-soft); font-size: 1.04rem; margin: -4px 0 22px; }
.results-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.results-head h2 { margin: 0; }

/* ── Double-Bezel cards ───────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(282px, 1fr)); gap: 16px; }
.card { display: block; padding: 6px; border-radius: var(--r-lg); background: rgba(16,26,60,.045);
  box-shadow: inset 0 0 0 1px var(--hair); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1px rgba(47,93,255,.28), var(--sh-3); }
.card-body { display: flex; flex-direction: column; gap: 10px; height: 100%;
  background: var(--surface); border-radius: calc(var(--r-lg) - 6px); padding: 18px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.7), var(--sh-1); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { font-size: 1.05rem; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-summary { color: var(--muted); font-size: .9rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.amount { color: var(--brand-ink); font-weight: 800; font-size: .9rem; white-space: nowrap; }
.amount-lg { color: var(--brand-ink); font-weight: 800; font-size: 1.24rem; }
.empty { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 52px 0;
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--r); }

/* ── Badges (마감) ────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 800; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.badge:before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-urgent { color: var(--urgent); background: var(--urgent-bg); box-shadow: inset 0 0 0 1px var(--urgent-line); }
.badge-urgent:before { animation: pulse 1.4s infinite; }
.badge-open { color: var(--open); background: var(--open-bg); box-shadow: inset 0 0 0 1px var(--open-line); }
.badge-closed { color: var(--closed); background: var(--closed-bg); }
.badge-always { color: var(--always); background: var(--always-bg); }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(229,41,91,.5)} 70%{box-shadow:0 0 0 6px rgba(229,41,91,0)} 100%{box-shadow:0 0 0 0 rgba(229,41,91,0)} }

/* ── Tags / Chips ─────────────────────── */
.tag { font-size: .75rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 9px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0; }
.chip { padding: 9px 17px; border: 1px solid var(--hair); background: #fff; border-radius: var(--r-pill);
  font-size: .9rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--sh-1); transition: all .4s var(--ease); }
.chip:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ── Program detail ───────────────────── */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 24px 0 14px; }
.breadcrumb a:hover { color: var(--brand); }
.program { max-width: 780px; }
.program-head { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 12px; }
.program h1 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); font-weight: 800; margin-bottom: 10px; }
.program-summary { font-size: 1.12rem; color: var(--ink-soft); margin-bottom: 20px; }
.program .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px 18px;
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 16px 18px; margin-bottom: 20px; box-shadow: var(--sh-1); }
.program .meta > div { padding: 6px 0; }
.program .meta dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.program .meta dd { margin: 3px 0 0; font-weight: 700; }
.block { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r); padding: 20px 22px; margin: 14px 0; box-shadow: var(--sh-1); }
.block h2 { display: flex; align-items: center; gap: 8px; font-size: 1.14rem; margin-bottom: 10px; }
.block-lead { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.block-reject { border-color: var(--urgent-line); background: linear-gradient(180deg, var(--urgent-bg), #fff 130%); }
.block-reject h2 { color: var(--urgent); }
.check-list, .doc-list, .reject-list { list-style: none; margin: 0; padding: 0; }
.check-list li, .doc-list li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.check-list li:last-child, .doc-list li:last-child { border-bottom: 0; }
.check-list li:before { content: "✓"; position: absolute; left: 2px; top: 8px; color: var(--open); font-weight: 900; }
.doc-list li:before { content: "📄"; position: absolute; left: 2px; top: 8px; font-size: .85rem; }
.reject-list li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px dashed var(--urgent-line); font-weight: 500; }
.reject-list li:last-child { border-bottom: 0; }
.reject-list li:before { content: "✕"; position: absolute; left: 4px; top: 10px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--urgent); color: #fff; font-size: .7rem; font-weight: 900; display: grid; place-items: center; }
.content { white-space: pre-wrap; color: var(--ink-soft); line-height: 1.85; }

/* ── Subscribe (dark accent band) ─────── */
.subscribe { position: relative; overflow: hidden; text-align: center; color: #fff;
  background: radial-gradient(720px 320px at 82% -25%, rgba(99,130,255,.5), transparent 60%), linear-gradient(155deg, var(--navy), var(--navy-2));
  border-radius: var(--r-lg); padding: clamp(34px, 5vw, 52px) 26px; margin: 48px auto; box-shadow: var(--sh-3); }
.subscribe:before { content:""; position:absolute; width:240px; height:240px; right:-40px; top:-90px; border-radius:50%;
  background: radial-gradient(circle, rgba(99,130,255,.35), transparent 70%); animation: float 7s ease-in-out infinite; }
.subscribe h2 { color: #fff; font-size: 1.5rem; }
.subscribe p { color: #b9c4e4; max-width: 470px; margin: 8px auto 20px; position: relative; }
.subscribe strong { color: #fff; }
.subscribe form { display: flex; gap: 9px; max-width: 450px; margin: 0 auto; position: relative; }
.subscribe input { flex: 1; border: 0; border-radius: var(--r-sm); padding: 14px 16px; font-size: 1rem; font-family: inherit; }
.subscribe input:focus { outline: none; box-shadow: 0 0 0 4px rgba(99,130,255,.4); }
.subscribe-msg { min-height: 1.2em; margin-top: 12px; font-size: .9rem; font-weight: 600; color: #cdd6ee; }
.subscribe-msg.ok { color: #74f0ac; } .subscribe-msg.err { color: #ff9fb0; }

/* ── Footer ───────────────────────────── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; padding: 32px 0; }
.site-footer p { margin: 7px 0; font-size: .82rem; color: var(--muted); }
.site-footer .disclaimer { max-width: 780px; line-height: 1.75; }
.site-footer a { color: var(--ink-soft); font-weight: 600; }
.site-footer a:hover { color: var(--brand); }

/* ── Motion (supanova signature) ──────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(2rem); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pulseDot { 0%,100%{opacity:1} 50%{opacity:.4} }
[data-reveal] { opacity: 0; }
[data-reveal].in { animation: fadeInUp .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.hero .wrap > * { animation: fadeInUp .8s var(--ease) both; }
.hero-eyebrow { animation-delay: .02s; } .hero h1 { animation-delay: .08s; } .hero-sub { animation-delay: .16s; }
#search-form, .search-box { animation-delay: .24s; } .quick-filters { animation-delay: .3s; } .trust-bar { animation-delay: .36s; }
.grid .card { animation: fadeInUp .5s var(--ease) both; }
.program .block { animation: fadeInUp .55s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *,*:before,*:after { animation: none !important; transition: none !important; scroll-behavior: auto; } [data-reveal]{opacity:1;} }

/* ── Responsive ───────────────────────── */
@media (max-width: 700px) {
  .site-header { padding: 10px 12px; }
  .search-box, .subscribe form { flex-direction: column; }
  .search-box button, .subscribe button { padding: 13px; }
  .program .meta { grid-template-columns: 1fr 1fr; }
}
