@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");

/*
 * APT Insights 소개/벤치마크 랜딩 (www.apt-insights.com) — 빌드 없는 정적 스타일.
 * apps/web 의 /benchmark 페이지(Tailwind dark slate/indigo)를 플레인 CSS 로 이식.
 */

:root {
  --bg: #020617;            /* slate-950 */
  --panel: rgba(15, 23, 42, 0.6);   /* slate-900/60 */
  --panel-solid: #0f172a;   /* slate-900 */
  --inset: rgba(2, 6, 23, 0.4);     /* slate-950/40 */
  --border: #1e293b;        /* slate-800 */
  --text: #f1f5f9;          /* slate-100 */
  --text-2: #cbd5e1;        /* slate-300 */
  --text-3: #94a3b8;        /* slate-400 */
  --text-4: #64748b;        /* slate-500 */
  --indigo: #818cf8;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --emerald: #34d399;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --violet-300: #c4b5fd;
  --rose-300: #fda4af;
  --amber-300: #fcd34d;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 72rem;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans KR", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

strong { color: #fff; font-weight: 700; }
a { color: inherit; }

/* ── 배경 토폴로지 ── */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  left: 50%;
  top: 0;
  height: 64rem;
  width: 128rem;
  transform: translateX(-50%);
  stroke: rgba(51, 65, 85, 0.3);
  -webkit-mask-image: radial-gradient(64rem 64rem at top, white, transparent);
  mask-image: radial-gradient(64rem 64rem at top, white, transparent);
}
.bg-blob {
  position: absolute;
  left: calc(50% - 4rem);
  top: 2.5rem;
  aspect-ratio: 1108 / 632;
  width: 69.25rem;
  background: linear-gradient(to right, #6366f1, #7c3aed);
  opacity: 0.2;
  filter: blur(64px);
  clip-path: polygon(73.6% 51.7%, 91.7% 11.8%, 100% 46.4%, 97.4% 82.2%, 92.5% 84.9%,
    75.7% 64%, 55.3% 47.5%, 46.5% 49.4%, 45% 62.9%, 50.3% 87.2%, 21.3% 64.1%, 0.1% 100%,
    5.4% 51.1%, 21.4% 63.9%, 58.9% 0.2%, 73.6% 51.7%);
}

/* ── 레이아웃 ── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px 80px;
}
.stack > * + * { margin-top: 40px; }
@media (min-width: 640px) {
  .container { padding: 0 24px 80px; }
  .stack > * + * { margin-top: 56px; }
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 24px 16px 56px;
}
@media (min-width: 640px) { .hero { padding: 40px 24px 80px; } }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
  color: var(--indigo-200);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.badge .dot { color: rgba(165, 180, 252, 0.6); }
.hero h1 {
  margin: 0 auto;
  max-width: 56rem;
  font-size: clamp(30px, 7vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.grad-text {
  background: linear-gradient(135deg, #fff, #c7d2fe 60%, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .sub-brand {
  display: block;
  font-size: clamp(13px, 2.5vw, 16px);
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.hero .lede {
  margin: 20px auto 0;
  max-width: 42rem;
  font-size: clamp(14px, 2.4vw, 18px);
  color: var(--text-2);
  line-height: 1.65;
}

/* responsive line break utility */
.md-inline {
  display: none;
}
@media (min-width: 768px) {
  .md-inline {
    display: inline;
  }
}

/* mobile-specific overrides for hero text wrap and size */
@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(21px, 6.5vw, 28px);
    line-height: 1.3;
    letter-spacing: -0.03em;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .hero h1 .sub-brand {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .hero .lede {
    font-size: 13.5px;
    margin-top: 16px;
    padding: 0 8px;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

/* Hero stat callouts */
.stat-grid {
  margin: 32px auto 0;
  max-width: 42rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
}
.stat.emerald { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.1); }
.stat.highlight {
  border: 1px solid rgba(16, 185, 129, 0.6) !important;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%) !important;
  box-shadow: 0 0 20px 2px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}
.stat.highlight .val {
  color: #fff !important;
  font-size: 26px !important;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.stat.highlight .lbl {
  color: #fff !important;
  font-weight: 700;
}
.stat.highlight .sub {
  color: rgba(110, 231, 183, 0.8) !important;
}
.stat .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(165, 180, 252, 0.7); }
.stat.emerald .lbl { color: rgba(110, 231, 183, 0.7); }
.stat .val { margin-top: 2px; font-family: var(--mono); font-size: 24px; font-weight: 900; color: var(--indigo-200); }
.stat.emerald .val { color: var(--emerald-200); }
.stat .sub { font-size: 10px; color: rgba(165, 180, 252, 0.5); }
.stat.emerald .sub { color: rgba(110, 231, 183, 0.5); }

/* ── 섹션 카드 ── */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
}
@media (min-width: 640px) { .card { border-radius: var(--radius-lg); padding: 32px; } }
@media (min-width: 768px) { .card { padding: 40px; } }

.sec-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.sec-icon {
  display: inline-flex;
  height: 40px; width: 40px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3);
  color: var(--indigo-300);
  flex-shrink: 0;
  margin-top: 0 !important; /* 모바일/데스크탑 분리로 보정 마진 불필요 */
}
.sec-icon.emerald { background: rgba(16,185,129,0.1); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.3); color: var(--emerald-300); }
.sec-icon.violet { background: rgba(139,92,246,0.1); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.3); color: var(--violet-300); }
.sec-icon svg { width: 20px; height: 20px; }
.sec-head h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (min-width: 641px) {
  .sec-head {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }
}

.lede-2 { margin: 0 0 24px; font-size: clamp(14px, 2.2vw, 16px); color: var(--text-2); line-height: 1.65; }

/* ── 표 (mobile responsive & scroll) ── */
.tbl-wrap { 
  display: block; 
  width: 100%;
  max-height: 290px; 
  overflow-x: auto; 
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; 
  border-radius: var(--radius); 
  border: 1px solid var(--border); 
}
.tbl-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.tbl-wrap::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.5);
}
.tbl-wrap::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.7);
  border-radius: 4px;
}
.tbl-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.9);
}
table { width: 100%; min-width: 600px; border-collapse: collapse; text-align: left; font-size: 14px; }
thead { 
  background: #0f172a; 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
th { padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.text-right, th.r, td.r { text-align: right; }
tbody { background: var(--inset); }
tbody tr { border-top: 1px solid rgba(30,41,59,0.8); }
td { padding: 12px 16px; color: var(--text-2); vertical-align: top; white-space: nowrap; }
td .t1 { color: var(--text); font-weight: 500; }
td .t2 { font-size: 12px; color: var(--text-4); }
td.mono { font-family: var(--mono); color: #e2e8f0; }
td.danger { font-family: var(--mono); font-weight: 700; color: var(--rose-300); }
tr.highlight { background: linear-gradient(to right, rgba(99,102,241,0.15), rgba(139,92,246,0.1), transparent); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); }
tr.highlight td { padding: 16px; }
tr.highlight .lead { font-weight: 900; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
tr.highlight .lead svg { width: 16px; height: 16px; color: var(--indigo-300); }
tr.highlight .big { font-family: var(--mono); font-size: 16px; font-weight: 900; color: var(--indigo-300); }
.avm-ours-col { background: rgba(99,102,241,0.1); color: var(--indigo-200); font-weight: 700; }
td.avm-ours { background: rgba(99,102,241,0.05); color: #fff; font-weight: 600; }
.pill { display: inline-block; margin-top: 6px; border-radius: 6px; padding: 2px 8px; font-size: 11px; }
.pill.muted { background: var(--border); color: var(--text-3); }
.pill.indigo { background: rgba(99,102,241,0.15); color: var(--indigo-200); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); font-weight: 500; }

.avm-compare-section .tbl-wrap { display: none; }
@media (min-width: 768px) {
  .avm-compare-section .tbl-wrap { display: block; }
}

/* ── 카드 리스트 (mobile) ── */
.card-list { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) { .card-list { display: none; } }
.mini {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2,6,23,0.6);
  padding: 16px;
}
.mini .name { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.mini .meta { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.mini .meta .sm { font-size: 10px; color: var(--text-4); }
.mini .duo { display: flex; gap: 16px; font-size: 12px; }
.mini .duo > div { flex: 1; }
.mini .duo .k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-4); }
.mini .duo .v { font-family: var(--mono); font-size: 14px; font-weight: 600; color: #e2e8f0; }
.mini.hl { border-color: rgba(99,102,241,0.4); background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.1), rgba(15,23,42,0.4)); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); }
.mini.hl .name { display: flex; align-items: center; gap: 6px; font-weight: 900; }
.mini.hl .name svg { width: 16px; height: 16px; color: var(--indigo-300); }
.mini.hl .v, .mini.hl .duo .k { color: var(--indigo-200); }

/* AVM mobile */
.avm-mini { overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: rgba(2,6,23,0.6); }
.avm-mini .head { background: rgba(15,23,42,0.8); padding: 8px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-2); }
.avm-mini .row { padding: 12px 16px; }
.avm-mini .row + .row { border-top: 1px solid var(--border); }
.avm-mini .row.ours { background: rgba(99,102,241,0.05); }
.avm-mini .k { margin-bottom: 4px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-4); }
.avm-mini .row.ours .k { color: var(--indigo-300); }
.avm-mini .v { font-size: 14px; color: var(--text-3); }
.avm-mini .row.ours .v { color: #fff; font-weight: 600; }

/* ── info / note 박스 ── */
.note {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2,6,23,0.6);
  padding: 16px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
}
@media (min-width: 640px) { .note { font-size: 14px; } }
.note svg { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; color: var(--text-4); }
.note .body > * { margin: 0; }
.note .body > * + * { margin-top: 8px; }
.note .muted { color: var(--text-3); }

.note.emerald { display: block; border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.05); }
.note .title-em { margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--emerald-300); }

/* 실거주 주타깃 강조 박스 */
.prime {
  margin-bottom: 12px;
  border-radius: 10px;
  border: 2px solid rgba(52,211,153,0.5);
  background: rgba(16,185,129,0.15);
  box-shadow: inset 0 0 0 1px rgba(52,211,153,0.3);
  padding: 12px;
}
.prime .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prime .ttl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--emerald-200); }
.prime .sub { font-size: 10px; color: rgba(167,243,208,0.7); margin-top: 2px; }
.prime .kpis { display: flex; gap: 12px; }
.prime .kpi { text-align: center; }
.prime .kpi .k { font-size: 9px; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(167,243,208,0.6); }
.prime .kpi .v { font-family: var(--mono); font-size: 20px; font-weight: 900; color: var(--emerald-200); }
.prime .foot { margin-top: 8px; font-size: 10px; color: rgba(167,243,208,0.8); }

/* forward OOS 3-grid */
.oos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.oos { border-radius: 10px; border: 1px solid rgba(16,185,129,0.2); background: rgba(2,6,23,0.5); padding: 10px; text-align: center; }
.oos .h { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-4); }
.oos .r2 { margin-top: 4px; font-family: var(--mono); font-size: 16px; font-weight: 900; color: var(--emerald-300); }
.oos .mp { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* 게이지 바 차트 */
.gauge-card { margin-top: 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(2,6,23,0.6); padding: 16px; }
@media (min-width: 640px) { .gauge-card { padding: 20px; } }
.gauge-card .ttl { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #fff; }
.metric { margin-bottom: 16px; }
.metric:last-child { margin-bottom: 0; }
.metric .lbl { margin-bottom: 6px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bar-row .name { width: 96px; flex-shrink: 0; font-size: 11px; color: var(--text-3); }
.bar-row .name.em { font-weight: 600; color: var(--emerald-300); }
.track { height: 16px; flex: 1; overflow: hidden; border-radius: 4px; background: var(--border); }
.fill { height: 100%; border-radius: 4px; }
.fill.gray { background: #64748b; }
.fill.em { background: #34d399; }
.bar-row .num { width: 56px; flex-shrink: 0; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.bar-row .num.em { font-weight: 700; color: var(--emerald-300); }
.gauge-card .cap { margin: 4px 0 0; font-size: 10px; line-height: 1.6; color: var(--text-4); }

/* ── 3대 엔진 / 이론 카드 그리드 ── */
.center-head { text-align: center; margin-bottom: 32px; }
@media (min-width: 640px) { .center-head { margin-bottom: 40px; } }
.center-head h2 { margin: 0; font-size: clamp(22px, 4vw, 30px); font-weight: 900; color: #fff; line-height: 1.3; word-break: keep-all; overflow-wrap: break-word; }
.center-head p { margin: 12px auto 0; max-width: 42rem; font-size: clamp(14px, 2.2vw, 16px); color: var(--text-3); line-height: 1.65; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #334155; background: var(--panel); border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700; color: var(--text-2); margin-bottom: 12px; white-space: nowrap; flex-shrink: 0; }
.pill-tag svg { width: 14px; height: 14px; flex-shrink: 0; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ── 공통 카드 컴포넌트 (Feature, Engine, Theory 카드 통합) ── */
.feature-card, .theory, .engine {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s, box-shadow 0.25s;
}
@media (min-width: 640px) {
  .feature-card, .theory, .engine {
    padding: 28px;
  }
}
.feature-card:hover, .theory:hover, .engine:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 
              0 0 15px 1px rgba(99, 102, 241, 0.15);
}

/* 공통 카드 헤더 */
.card-header, .tech-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
@media (min-width: 641px) {
  .card-header, .tech-card-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

/* 아이콘 크기 규격화 (Type 1 Large: 48px, Type 2 Medium: 40px) */
.icn-lg {
  display: inline-flex;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  margin-bottom: 16px; /* 수직 스택형 카드를 위한 마진 */
}
.icn-lg svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.icn-md {
  display: inline-flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  margin-bottom: 0 !important; /* 헤더형 카드를 위한 마진 제거 */
}
.icn-md svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* 카드 내부 타이포그래피 공통화 */
.feature-card h3, .theory h3, .engine h3 {
  margin: 0 0 10px;
  font-size: clamp(16px, 2.4vw, 18px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}
.card-header h3, .tech-card-header h3 {
  flex: 1;
  min-width: 0;
  margin: 0 !important; /* card-header 내 h3 마진 완전 제거 */
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.feature-card p, .theory .desc, .engine p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.card-header > .icn-lg,
.card-header > .icn-md,
.tech-card-header > .icn-lg,
.tech-card-header > .icn-md {
  margin-bottom: 0;
}

/* 2. Theory Card 고유 레이아웃 */
.theory .desc {
  margin-bottom: 20px;
  color: var(--text-3);
}

.refs { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--border); }
.refs li + li { margin-top: 12px; }
.refs .au { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: #e2e8f0; }
.refs .nt { margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-3); }

/* 아이콘 개별 색상 토큰 */
.icn.indigo { background: rgba(99,102,241,0.1); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3); color: var(--indigo-300); }
.icn.emerald { background: rgba(16,185,129,0.1); box-shadow: inset 0 0 0 1px rgba(16,185,129,0.3); color: var(--emerald-300); }
.icn.rose { background: rgba(244,63,94,0.1); box-shadow: inset 0 0 0 1px rgba(244,63,94,0.3); color: var(--rose-300); }
.icn.fuchsia { background: rgba(217,70,239,0.1); box-shadow: inset 0 0 0 1px rgba(217,70,239,0.3); color: #f0abfc; }
.icn.violet { background: rgba(139,92,246,0.1); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.3); color: var(--violet-300); }
.disclaimer { margin: 24px auto 0; max-width: 42rem; text-align: center; font-size: 11px; line-height: 1.65; color: var(--text-4); }

/* ── 클로징 배너 + CTA ── */
.closing {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}
@media (min-width: 640px) { .closing { border-radius: var(--radius-lg); padding: 40px; } }
.closing .blob1, .closing .blob2 { position: absolute; height: 16rem; width: 16rem; border-radius: 999px; opacity: 0.3; filter: blur(80px); pointer-events: none; }
.closing .blob1 { left: -5rem; top: -5rem; background: #6366f1; }
.closing .blob2 { right: -5rem; bottom: -5rem; background: #7c3aed; }
.closing .inner { position: relative; z-index: 1; margin: 0 auto; max-width: 48rem; }
.closing h2 { margin: 0; font-size: clamp(20px, 3.5vw, 30px); font-weight: 900; color: #fff; line-height: 1.3; }
.closing p { margin: 20px 0 0; font-size: clamp(14px, 2.2vw, 18px); font-weight: 300; line-height: 1.65; color: var(--text-2); }

.cta-row { margin-top: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
@media (min-width: 640px) { .cta-row { flex-direction: row; } }
.cta {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, opacity 0.15s;
}
@media (min-width: 640px) { .cta { width: auto; } }
.cta:active { transform: scale(0.98); }
.cta svg { width: 18px; height: 18px; }
.cta-primary { background: #6366f1; color: #fff; box-shadow: 0 10px 25px -5px rgba(99,102,241,0.4); }
.cta-primary:hover { background: #818cf8; }
.cta-secondary { background: rgba(255,255,255,0.06); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.cta-secondary:hover { background: rgba(255,255,255,0.1); }
.cta-hint { margin-top: 12px; font-size: 11px; color: var(--text-4); }
.closing .cta-hint { font-size: 11px; font-weight: 400; color: var(--text-4); }


/* ── 푸터 ── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(9, 13, 26, 0.7) 100%);
  padding: 48px 24px 32px;
  color: var(--text-4);
  font-size: 13px;
  line-height: 1.6;
}

.notch { padding-top: env(safe-area-inset-top); }

/* ── 법무 페이지 (privacy / terms) ── */
.legal-wrap {
  width: 100%;
  max-width: 48rem;
  margin: 0 auto;
  padding: 40px 24px;
}
@media (min-width: 1024px) { .legal-wrap { padding: 64px 48px; } }
.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
@media (min-width: 640px) { .legal-header { margin-bottom: 32px; } }
.legal-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; }
.legal-brand:hover { color: #fff; }
.legal-brand .mark { display: inline-flex; height: 32px; width: 32px; align-items: center; justify-content: center; border-radius: 8px; background: rgba(99,102,241,0.1); box-shadow: inset 0 0 0 1px rgba(99,102,241,0.2); color: var(--indigo-300); }
.legal-brand .mark svg { width: 16px; height: 16px; }
.legal-brand .name { font-size: 14px; font-weight: 600; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); text-decoration: none; }
.legal-back:hover { color: #fff; }
.legal-back svg { width: 14px; height: 14px; }

.legal-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.8);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  padding: 24px;
}
@media (min-width: 640px) { .legal-card { padding: 32px; } }
@media (min-width: 1024px) { .legal-card { padding: 40px; } }

.legal-title {
  margin: 0;
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  word-break: keep-all;
}
.legal-date { margin: 12px 0 0; font-size: 12px; color: var(--text-4); }
.legal-date .d { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.legal-head { margin-bottom: 32px; }
@media (min-width: 1024px) { .legal-head { margin-bottom: 48px; } }

.legal-sections > * + * { margin-top: 32px; }
@media (min-width: 1024px) { .legal-sections > * + * { margin-top: 48px; } }

.legal-section {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 12px;
  align-items: start;
}
@media (min-width: 640px) {
  .legal-section {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 16px;
  }
}
.legal-badge {
  display: inline-flex;
  height: 28px; width: 28px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(99,102,241,0.15);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0.3);
  color: var(--indigo-300);
  font-size: 12px; font-weight: 600;
  grid-column: 1;
  grid-row: 1;
}
@media (min-width: 640px) {
  .legal-badge {
    height: 32px; width: 32px;
  }
}
.legal-section h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 18px; font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}
@media (min-width: 640px) { .legal-section h2 { font-size: 20px; } }
.legal-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.legal-section .sbody {
  grid-column: 1 / -1;
  margin-top: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  word-break: keep-all;
}
@media (min-width: 640px) { .legal-section .sbody { grid-column: 2; } }
@media (min-width: 1024px) { .legal-section .sbody { font-size: 16px; line-height: 1.8; } }
.legal-section .sbody > * + * { margin-top: 12px; }
.legal-section .sbody p { margin: 0; }
.legal-section ul, .legal-section ol { margin: 0; padding-left: 20px; }
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li + li { margin-top: 4px; }
.legal-section ol.spaced li + li { margin-top: 12px; }
.legal-section .sub { margin-top: 8px; font-size: 12px; color: var(--text-3); }
.legal-section a { color: inherit; text-decoration: underline; }
.legal-section a:hover { color: #fff; }
.legal-section .group + .group { margin-top: 16px; }

.legal-dl { display: grid; grid-template-columns: 1fr; gap: 12px 0; margin: 0; }
@media (min-width: 640px) { .legal-dl { grid-template-columns: 8rem 1fr; gap: 8px 16px; } }
@media (min-width: 1024px) { .legal-dl { grid-template-columns: 10rem 1fr; gap: 8px 24px; } }
.legal-dl dt { font-size: 13px; font-weight: 600; color: var(--text-3); word-break: keep-all; }
@media (min-width: 640px) { .legal-dl dt { font-size: 14px; } }
.legal-dl dd { margin: 0; font-size: 14px; color: #e2e8f0; word-break: keep-all; }
.legal-dl dd a { color: inherit; text-decoration: underline; }

.legal-alert {
  border-radius: 12px;
  border: 1px solid rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.1);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
@media (min-width: 640px) { .legal-alert { padding: 20px; } }
.legal-alert svg { margin-top: 2px; width: 20px; height: 20px; flex-shrink: 0; color: var(--amber-300); }
.legal-alert p { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 600; color: #fde68a; word-break: keep-all; }

.legal-foot {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
@media (min-width: 640px) { .legal-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.legal-foot .back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.legal-foot .back-btn:hover { background: rgba(255,255,255,0.1); }
.legal-foot .back-btn svg { width: 16px; height: 16px; }
.legal-foot .cross { font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.legal-foot .cross:hover { color: #fff; }
.legal-copyright { margin: 24px 0 0; text-align: center; font-size: 10px; color: var(--text-4); }

/* ── 신규: 3대 핵심 기능 그리드 ── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}
/* Feature-card 고유 아이콘 스타일 (공통 구조는 상단 통합 정의에서 계승) */
.feature-card .f-icon {
  background: rgba(99, 102, 241, 0.1);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.2);
  color: var(--indigo-300);
}
.feature-card:nth-child(2) .f-icon {
  background: rgba(139, 92, 246, 0.1);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.2);
  color: var(--violet-300);
}
.feature-card:nth-child(3) .f-icon {
  background: rgba(16, 185, 129, 0.1);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.2);
  color: var(--emerald-300);
}

/* ── 신규: 요금제(후원 구조) 그리드 ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}
.price-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}
.price-card.premium {
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(99, 102, 241, 0.03));
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(99, 102, 241, 0.2);
}
.price-card.premium:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.6), 0 0 20px 2px rgba(99, 102, 241, 0.2), inset 0 0 0 1px rgba(99, 102, 241, 0.3);
}
.price-card .p-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--border);
  color: var(--text-3);
  margin-bottom: 12px;
}
.price-card.premium .p-tag {
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo-300);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.3);
}
.price-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.price-card .cost-row {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-card .cost {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}
.price-card .period {
  font-size: 12px;
  color: var(--text-4);
}
.price-card .desc {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
  min-height: 40px;
}
.price-card .features {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.price-card .features li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-card .features li svg {
  width: 14px;
  height: 14px;
  color: var(--text-4);
  flex-shrink: 0;
}
.price-card.premium .features li svg {
  color: var(--indigo-300);
}
.price-card .btn-wrap {
  margin-top: 32px;
}
.price-card .cta {
  padding: 10px 18px;
  font-size: 14px;
}

/* FAQ Accordion Styles for Generative Engine Optimization */
.faq-section {
  margin-top: 40px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--inset);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(15, 23, 42, 0.4);
}
.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.8);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-question > span:first-child {
  min-width: 0;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::marker {
  display: none;
  content: "";
}

.faq-question:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: -2px;
}
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--text-3);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s;
}
.faq-icon svg {
  width: 16px;
  height: 16px;
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--indigo-300);
}
.faq-answer {
  padding: 0 20px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  border-top: 1px solid rgba(30, 41, 59, 0.3);
  animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.faq-answer p {
  margin: 12px 0 0;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 신규: 모바일 스크린샷 폰 목업 스타일 ── */
.screenshots-section {
  position: relative;
  overflow: hidden;
}
.screenshot-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}
@media (min-width: 768px) {
  .screenshot-grid {
    gap: 32px;
  }
}
.screenshot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 auto;
}
.phone-mockup {
  position: relative;
  box-sizing: content-box; /* Enforce border to grow outward (outer border) */
  width: 176px; /* Precise screen content width */
  aspect-ratio: 1 / 2.4; /* Matches the exact 872x2096 aspect ratio of the mock screenshots to prevent vertical cropping completely */
  border-radius: 28px;
  border: 8px solid #1e293b; /* Slightly lighter dark bezel for better visibility */
  outline: 1px solid rgba(255, 255, 255, 0.12); /* Subtle outline to make it pop on dark backgrounds */
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), 
              0 0 25px 2px rgba(99, 102, 241, 0.08);
  overflow: hidden;
  background: #f8fafc;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
/* Smartphone notch camera speaker layout */
.phone-mockup::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 10px;
  background: #090d16;
  border-radius: 0 0 6px 6px;
  z-index: 10;
}
.phone-mockup:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 30px 50px -12px rgba(0, 0, 0, 0.9), 
              0 0 25px 4px rgba(99, 102, 241, 0.2);
}
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.screenshot-desc {
  margin-top: 14px;
  max-width: 180px;
}
.screenshot-desc h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.screenshot-desc p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
}

/* ── 이미지 확대 모달 스타일 및 애니메이션 ── */
.phone-mockup {
  cursor: zoom-in; /* 플러스 모양 돋보기 커서 적용 */
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Safari 지원 */
  opacity: 0;
}

.modal.active .modal-backdrop {
  animation: modalFadeIn 0.22s ease forwards;
}

.modal-content {
  position: relative;
  z-index: 1010;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.85);
  opacity: 0;
}

.modal.active .modal-content {
  animation: modalZoomIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalZoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-img {
  max-height: 80vh;
  width: auto;
  border-radius: 20px;
  border: 4px solid #090d16;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 
              0 0 30px 4px rgba(99, 102, 241, 0.2);
  cursor: zoom-out; /* 마이너스 모양 돋보기 커서 적용 */
  display: block;
}

.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 1020;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* 모달이 활성화되었을 때 뒤의 body 스크롤 차단 */
body.modal-open {
  overflow: hidden;
}

/* ── 스크롤 감지 카드 포커스 애니메이션 ── */
.card.reveal-ready {
  opacity: 0.65;
  transform: scale(0.975) translateY(12px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s ease, 
              box-shadow 0.5s ease;
  will-change: transform, opacity;
}

.card.reveal-ready.revealed {
  opacity: 1;
  transform: scale(1.015) translateY(-4px); /* 부드러운 스케일업 및 부유 효과 */
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 
              0 0 25px 2px rgba(99, 102, 241, 0.15);
}

/* ── 세련된 푸터 세부 요소 ── */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.footer-brand .brand-logo {
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 15px;
}

.footer-brand .brand-ver {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-3);
  font-family: monospace;
}

.footer-model {
  font-size: 12px;
  color: var(--text-3);
  margin: 0;
}

.footer-disclaimer {
  font-size: 11.5px;
  color: rgba(148, 163, 184, 0.6);
  max-width: 700px;
  margin: 0;
  text-wrap: balance;
}

.footer-disclaimer strong {
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}

@media (min-width: 640px) {
  .footer-contact {
    flex-direction: row;
    gap: 12px;
  }
}

.footer-contact span {
  font-size: 12px;
  color: var(--text-3);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.12);
  transition: all 0.2s ease;
  cursor: pointer;
}

.email-link:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.copy-icon {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.email-link:hover .copy-icon {
  opacity: 1;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-4);
  margin-top: 12px;
}

/* PC에서만 개행 */
.pc-only {
  display: none;
}
@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* ── 이메일 복사 Toast 알림 ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.1),
              0 0 20px rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── model.html 전용 레이아웃 & 카드 컴포넌트 ── */
.container.narrow {
  max-width: 800px;
}

.doc-header {
  text-align: center;
  margin-bottom: 48px;
  padding-top: 40px;
}
.doc-header .logo-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--indigo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.doc-header h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 12px;
}
.doc-header .subtitle {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 12px;
  word-break: keep-all;
}

/* 핵심 벤치마크 성적 (Glassmorphism) */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 640px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.metric-card {
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
}
.metric-card.blue::before { background: linear-gradient(90deg, var(--indigo), #a5b4fc); }
.metric-card.orange::before { background: linear-gradient(90deg, #f97316, #fcd34d); }

.m-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.m-val {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.metric-card.blue .m-val {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric-card.orange .m-val {
  background: linear-gradient(135deg, #fde047 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.m-desc {
  font-size: 11px;
  color: var(--text-4);
}

/* 기술 카드 (Engine) */
.tech-card {
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.tech-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.5);
}
.tech-tag {
  display: inline-flex;
  align-items: center;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 0; /* 수직 스택으로의 변경에 따라 보정 마진 제거 */
  margin-bottom: 0;
}
.tech-tag.blue { background: rgba(99, 102, 241, 0.15); color: var(--indigo-200); border: 1px solid rgba(99, 102, 241, 0.25); }
.tech-tag.purple { background: rgba(139, 92, 246, 0.15); color: var(--violet-300); border: 1px solid rgba(139, 92, 246, 0.25); }
.tech-tag.emerald { background: rgba(52, 211, 153, 0.15); color: var(--emerald-200); border: 1px solid rgba(52, 211, 153, 0.25); }

.tech-card h3 {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #fff;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.tech-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}

section.card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* 판정 배지 */
.pass-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}
.warn-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: #f97316;
  background: rgba(249, 115, 22, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}
