/* ============================================
   NEMOSLAB v3 — "Live Infrastructure" Theme
   다크 관제실 히어로 + 웜 페이퍼 본문
   참조 문법: CPaaS(Twilio/Sendbird) × Infra(Stripe/Linear)
   ============================================ */

:root {
  --ink-0: #0a0d1c;
  --ink-1: #12162e;
  --ink-2: #1b2142;
  --dk-line: rgba(255,255,255,.09);
  --dk-text: #eef0fa;
  --dk-text-soft: rgba(238,240,250,.66);
  --dk-text-faint: rgba(238,240,250,.42);

  --paper: #faf9f6;
  --white: #ffffff;
  --ink: #14121f;
  --ink-soft: #4c4a5a;
  --ink-faint: #8b8898;
  --line: #e7e4dc;

  --violet: #6a5ae0;
  --violet-bright: #8d7eff;
  --violet-deep: #241e5c;
  --violet-tint: #efecff;
  --mint: #2bd4a4;
  --mint-deep: #0c8a66;
  --mint-tint: #e0f6ee;
  --amber: #b97912;
  --amber-tint: #faf0dc;

  --grad-accent: linear-gradient(100deg, #8d7eff 0%, #2bd4a4 100%);
  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Roboto Mono", monospace;
  --maxw: 1140px;
  --r-md: 10px;
  --r-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 다크 인프라 패턴 (네모 그리드 배경) ---------- */
.dk {
  background-color: var(--ink-0);
  background-image:
    linear-gradient(var(--dk-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dk-line) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--dk-text);
}

/* ---------- Header (다크 고정) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,13,28,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dk-line);
  color: var(--dk-text);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .05em; }
.logo .mark {
  width: 25px; height: 25px; flex: none; background: var(--grad-accent);
  -webkit-mask: url(mark.png) center/contain no-repeat;
  mask: url(mark.png) center/contain no-repeat;
}
.logo .lab {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.gnb { display: flex; gap: 34px; font-size: 14.5px; font-weight: 500; color: var(--dk-text-soft); }
.gnb a { transition: color .15s; }
.gnb a:hover { color: #fff; }
.gnb .active { color: var(--violet-bright); }

.btn { display: inline-block; font-weight: 600; font-size: 14.5px; padding: 11px 24px; border-radius: 999px; transition: all .18s ease; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 0 0 0 rgba(106,90,224,0); }
.btn-primary:hover { background: var(--violet-bright); box-shadow: 0 6px 24px -6px rgba(106,90,224,.55); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }
.dk .btn-ghost, .page-hero .btn-ghost { border-color: rgba(255,255,255,.25); color: var(--dk-text-soft); }
.dk .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-lg { padding: 15px 34px; font-size: 15.5px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--dk-line); border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: var(--dk-text); }

/* ---------- Eyebrow (네모 시그니처) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: .14em;
  color: var(--violet); font-weight: 700; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--violet); border-radius: 2px; }
.eyebrow.mint { color: var(--mint-deep); }
.eyebrow.mint::before { background: var(--mint-deep); }
.dk .eyebrow, .page-hero .eyebrow { color: var(--mint); }
.dk .eyebrow::before, .page-hero .eyebrow::before { background: var(--mint); box-shadow: 0 0 12px rgba(43,212,164,.7); }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.tight { padding: 72px 0; }
.section.surface { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(27px, 3.5vw, 38px); font-weight: 800; line-height: 1.32; letter-spacing: -.022em; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Hero (다크 관제실) ---------- */
.hero { padding: 104px 0 0; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 220px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10,13,28,.9));
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 72px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: .06em;
  color: var(--mint); border: 1px solid rgba(43,212,164,.35); border-radius: 999px;
  padding: 7px 16px; margin-bottom: 26px; background: rgba(43,212,164,.07);
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; box-shadow: 0 0 8px rgba(43,212,164,.9); } 50% { opacity: .35; box-shadow: none; } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.22; letter-spacing: -.028em; color: #fff; }
.hero h1 em {
  font-style: normal;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin: 24px 0 38px; font-size: 18px; color: var(--dk-text-soft); max-width: 500px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* 라이브 상태 바 */
.status-bar {
  margin-top: 72px; border-top: 1px solid var(--dk-line);
  font-family: var(--font-mono); font-size: 13px; color: var(--dk-text-faint);
  display: flex; gap: 36px; flex-wrap: wrap; padding: 20px 0 26px; letter-spacing: .02em;
}
.status-bar b { color: var(--mint); font-weight: 700; }
.status-bar .k { color: var(--dk-text-faint); }

/* 네모 그리드 비주얼 (라이브 트래픽 모니터) */
.nemo-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 10px;
  aspect-ratio: 1; width: 100%; max-width: 400px; margin-left: auto;
  padding: 22px; border: 1px solid var(--dk-line); border-radius: var(--r-lg);
  background: rgba(255,255,255,.03);
}
.nemo-grid span { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); border-radius: 6px; min-height: 0; }
.nemo-grid span.v  { background: rgba(141,126,255,.55); border-color: rgba(141,126,255,.8); box-shadow: 0 0 14px rgba(141,126,255,.5); animation: pulse 3.2s ease-in-out infinite; }
.nemo-grid span.vd { background: var(--violet-bright); border-color: var(--violet-bright); box-shadow: 0 0 22px rgba(141,126,255,.85); animation: pulse 3.2s ease-in-out infinite .8s; }
.nemo-grid span.m  { background: rgba(43,212,164,.6); border-color: rgba(43,212,164,.9); box-shadow: 0 0 16px rgba(43,212,164,.6); animation: pulse 3.2s ease-in-out infinite 1.6s; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .25; transform: scale(.82); } }

/* ---------- 고객사 ---------- */
.client-strip { background: var(--white); border-bottom: 1px solid var(--line); padding: 30px 0; }
.client-strip .wrap { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; justify-content: center; }
.client-strip .label { font-size: 11.5px; letter-spacing: .16em; color: var(--ink-faint); }
.client-strip .name { font-weight: 700; font-size: 16.5px; color: #9a97a6; transition: color .2s; }
.client-strip .name:hover { color: var(--ink); }

/* ---------- 지표 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 26px; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-accent); opacity: 0; transition: opacity .2s; }
.stat:hover::before { opacity: 1; }
.stat .num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.stat .num small { font-size: 16px; color: var(--ink-faint); font-weight: 500; }
.stat .desc { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 카드 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 32px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.card:hover {
  border-color: rgba(106,90,224,.55); transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(20,18,31,.18);
}
.card .tag {
  align-self: flex-start; font-size: 11.5px; letter-spacing: .1em;
  background: var(--violet-tint); color: var(--violet-deep); padding: 5px 12px; border-radius: 6px;
  margin-bottom: 20px; font-weight: 700;
}
.card .tag.mint { background: var(--mint-tint); color: var(--mint-deep); }
.card h3 { font-size: 19.5px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.card .more { margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--violet); }
a.card:hover .more { color: var(--violet-bright); }

/* ---------- 기능 리스트 ---------- */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 26px; }
.feature-list li {
  display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft);
  padding: 12px 14px; border-radius: var(--r-md); transition: background .15s;
}
.feature-list li:hover { background: rgba(106,90,224,.05); }
.feature-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-accent); margin-top: 9px; }

/* ---------- 솔루션 상세 공통 ---------- */
.page-hero {
  padding: 88px 0 76px; position: relative;
  background-color: var(--ink-0);
  background-image:
    linear-gradient(var(--dk-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dk-line) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--dk-text);
}
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, transparent, rgba(10,13,28,.85)); pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; line-height: 1.26; letter-spacing: -.025em; max-width: 740px; color: #fff; }
.page-hero .lede { margin: 20px 0 34px; font-size: 17.5px; color: var(--dk-text-soft); max-width: 640px; }
.breadcrumb { font-size: 12.5px; color: var(--dk-text-faint); margin-bottom: 26px; letter-spacing: .06em; }
.breadcrumb a:hover { color: var(--mint); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { width: 200px; font-size: 13px; letter-spacing: .05em; color: var(--violet); font-weight: 700; white-space: nowrap; background: rgba(106,90,224,.04); }
.spec-table td { color: var(--ink-soft); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow .step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; position: relative; transition: border-color .2s, transform .2s;
}
.flow .step:hover { border-color: rgba(106,90,224,.45); transform: translateY(-3px); }
.flow .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 14px;
}
.flow .step h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 7px; }
.flow .step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 레퍼런스 ---------- */
.ref-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.ref-table thead th { background: var(--ink-0); color: #fff; font-size: 13px; font-weight: 600; padding: 15px 20px; text-align: left; letter-spacing: .04em; }
.ref-table td { padding: 15px 20px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.ref-table tbody tr:last-child td { border-bottom: none; }
.ref-table tbody tr { transition: background .15s; }
.ref-table tbody tr:hover { background: rgba(106,90,224,.035); }
.ref-table td:first-child { font-weight: 600; color: var(--ink); }
.ref-table .badge { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--mint-tint); color: var(--mint-deep); font-weight: 700; white-space: nowrap; }
.ref-table .badge.onprem { background: var(--amber-tint); color: var(--amber); }
.ref-logos { display: flex; flex-wrap: wrap; gap: 14px; }
.ref-logos span {
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 24px;
  font-weight: 600; font-size: 15px; color: var(--ink-soft); background: var(--white);
  transition: border-color .2s, color .2s, transform .2s;
}
.ref-logos span:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
@media (max-width: 920px) { .ref-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* ---------- 고객사례 ---------- */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.case-meta > div { padding: 24px 26px; border-right: 1px solid var(--line); }
.case-meta > div:last-child { border-right: none; }
.case-meta .k { font-size: 11.5px; letter-spacing: .12em; color: var(--violet); margin-bottom: 9px; font-weight: 700; }
.case-meta .v { font-size: 15.5px; font-weight: 700; }

.prose { max-width: 720px; }
.prose h2 { font-size: 25px; font-weight: 800; margin: 60px 0 18px; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 16.5px; }
.prose strong { color: var(--ink); }

.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0; }
.result { background: var(--ink-0); border-radius: var(--r-lg); padding: 28px 26px; border: 1px solid var(--ink-2); }
.result .num {
  font-size: 26px; font-weight: 700;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.result .desc { margin-top: 8px; font-size: 13.5px; color: var(--dk-text-soft); }

.note { margin-top: 30px; padding: 16px 20px; background: var(--amber-tint); border-radius: var(--r-md); font-size: 13.5px; color: var(--amber); line-height: 1.6; }

/* ---------- CTA ---------- */
.cta-block {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 50% -30%, #2c2470 0%, var(--ink-0) 62%);
  border: 1px solid var(--ink-2);
  border-radius: 24px; padding: 72px 48px; text-align: center; color: #fff;
}
.cta-block::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--dk-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--dk-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 100% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000 30%, transparent 100%);
}
.cta-block > * { position: relative; }
.cta-block h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 800; line-height: 1.38; letter-spacing: -.02em; }
.cta-block p { margin: 16px auto 34px; max-width: 500px; color: var(--dk-text-soft); font-size: 16px; }
.cta-block .btn-white { background: #fff; color: var(--ink-0); }
.cta-block .btn-white:hover { background: var(--mint); color: var(--ink-0); transform: translateY(-1px); box-shadow: 0 8px 28px -8px rgba(43,212,164,.6); }
.cta-block .btn-ghost { border-color: rgba(255,255,255,.3); color: var(--dk-text-soft); }
.cta-block .btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

/* ---------- Footer (다크) ---------- */
.site-footer {
  margin-top: 104px; padding: 64px 0 44px;
  background: var(--ink-0); color: var(--dk-text-soft);
  border-top: 1px solid var(--ink-2);
}
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.footer-slogan { font-size: 11.5px; letter-spacing: .3em; color: var(--mint); margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .14em; color: var(--dk-text-faint); margin-bottom: 18px; font-weight: 700; }
.footer-grid ul li { margin-bottom: 11px; }
.footer-grid ul a { font-size: 14.5px; color: var(--dk-text-soft); transition: color .15s; }
.footer-grid ul a:hover { color: var(--mint); }
.footer-info { font-size: 13px; color: var(--dk-text-faint); line-height: 1.9; }
.footer-bottom { border-top: 1px solid var(--dk-line); padding-top: 26px; font-size: 12.5px; color: var(--dk-text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a:hover { color: var(--mint); }

/* ---------- 반응형 ---------- */
@media (max-width: 920px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .nemo-grid { margin: 0 auto; max-width: 320px; }
  .status-bar { gap: 18px; font-size: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.three { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .case-meta > div { border-bottom: 1px solid var(--line); }
  .result-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gnb { display: none; }
  .gnb.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--ink-0); border-bottom: 1px solid var(--dk-line); padding: 12px 24px;
  }
  .gnb.open a { padding: 13px 0; border-bottom: 1px solid var(--dk-line); }
  .gnb.open a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .section { padding: 68px 0; }
  .cta-block { padding: 52px 28px; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- 메일 안내 토스트 ---------- */
#mail-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  background: var(--ink-1); color: var(--dk-text); border: 1px solid var(--ink-2);
  padding: 14px 26px; border-radius: 16px; font-size: 13.5px; line-height: 1.7;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  z-index: 300; max-width: min(92vw, 560px); text-align: center;
  box-shadow: 0 18px 48px -12px rgba(10,13,28,.6);
}
#mail-toast b { color: var(--mint); }
#mail-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 문의 폼 ---------- */
.contact-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.field label .req { color: #E24B4A; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--violet); box-shadow: 0 0 0 3px rgba(106,90,224,.15); background: #fff;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); grid-column: 1 / -1; }
.consent input { margin-top: 4px; accent-color: var(--violet); width: 16px; height: 16px; }
.form-msg { grid-column: 1 / -1; display: none; padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; line-height: 1.6; }
.form-msg.ok { display: block; background: var(--mint-tint); color: var(--mint-d, #0C8A66); }
.form-msg.err { display: block; background: #FCEBEB; color: #A32D2D; }
.contact-side .card + .card { margin-top: 18px; }
.contact-side .card h3 { display: flex; align-items: center; gap: 10px; }
.contact-side .card h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--grad-accent); }
.contact-side .card a { color: var(--violet); font-weight: 600; }
@media (max-width: 920px) {
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 28px 22px; }
}

/* ---------- 인증서 갤러리 ---------- */
.cert-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.cert-gallery a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.cert-gallery a:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 14px 32px -16px rgba(20,18,31,.2); }
.cert-gallery img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
.cert-gallery .cap { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: center; }
@media (max-width: 920px) { .cert-gallery { grid-template-columns: repeat(2, 1fr); } }
