@charset "utf-8";
/* ==========================================================================
   WebCel — 랩터스
   Concept: "스프레드시트가 시스템이 되는 순간"
   Dark engineering console. Cell-grid motifs, formula bar, sheet coordinates.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — blue-leaning charcoal, never pure black */
  --bg:          #0A0E13;
  --bg-2:        #0D131A;
  --surface:     #121A23;
  --surface-2:   #17212C;
  --surface-3:   #1E2A37;

  /* Lines */
  --line:        rgba(255,255,255,.075);
  --line-2:      rgba(255,255,255,.13);
  --line-grid:   rgba(255,255,255,.032);

  /* Type */
  --ink:         #E7EEF5;
  --ink-2:       #9BABBC;
  --ink-3:       #64768A;

  /* Accent — Excel green, tuned for a dark console */
  --mint-rgb:    45, 212, 160;
  --amber-rgb:   242, 178, 62;
  --danger-rgb:  242, 102, 78;
  --mint:        #2DD4A0;
  --mint-dim:    #1FA87D;
  --mint-glow:   rgba(var(--mint-rgb),.16);
  --mint-ink:    #06301F;

  /* Support */
  --amber:       #F2B23E;
  --danger:      #F2664E;

  /* Fonts */
  --sans: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --wrap:   1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --sec-y:  clamp(48px, 6vw, 82px);
  --r:      14px;
  --r-sm:   9px;

  /* 테마에 따라 갈리는 값들 — 라이트 모드는 아래 [data-theme="light"] 에서 재정의 */
  --line-3:       rgba(255,255,255,.22);
  --mint-hover:   #45E5B4;
  --link-hover:   #6FE9C2;
  --scrim:        rgba(10,14,19,.82);
  --scrim-solid:  rgba(10,14,19,.92);
  --scrim-soft:   rgba(10,14,19,.55);
  --tag-live-bg:  rgba(6,48,31,.72);
  --hover-wash:   rgba(255,255,255,.02);
  --title-wash:   rgba(255,255,255,.028);
  --shadow-1:     rgba(0,0,0,.75);
  --shadow-2:     rgba(0,0,0,.9);
  --scroll-hover: #2C3D4E;
  --glow-1:       rgba(var(--mint-rgb),.10);
  --glow-2:       rgba(56,141,255,.055);
  --grain:        .028;
  --sql-kw:       #7FBEFF;
  --sql-str:      #E4A6D8;
  --ok-ink:       #7CEBC5;
  --bad-ink:      #FF9C86;
  --shot-filter:  saturate(.86) contrast(1.02) brightness(.94);
  --tile-filter:  saturate(.9) brightness(.86);
  --tile-soon-filter: saturate(0) brightness(.5);

  color-scheme: dark;

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
}

/* --------------------------------------------------------------------------
   1b. 라이트 모드
   토큰만 갈아끼운다. 강조색은 흰 배경에서 대비가 나오도록 짙은 녹색으로 낮춘다
   (#2DD4A0 은 흰 배경 대비 1.9:1 로 본문에 쓸 수 없음).
   -------------------------------------------------------------------------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg:          #F6F8FA;
  --bg-2:        #FFFFFF;
  --surface:     #FFFFFF;
  --surface-2:   #F2F5F8;
  --surface-3:   #E3E9EF;

  --line:        rgba(16,30,44,.10);
  --line-2:      rgba(16,30,44,.18);
  --line-grid:   rgba(16,30,44,.05);

  --ink:         #0F1D28;
  --ink-2:       #46586A;
  --ink-3:       #75859A;

  --mint-rgb:    10, 122, 85;
  --amber-rgb:   140, 92, 6;
  --danger-rgb:  188, 56, 32;
  --mint:        #0A7A55;
  --mint-dim:    #086044;
  --mint-glow:   rgba(var(--mint-rgb),.18);
  --mint-ink:    #FFFFFF;
  --amber:       #8C5C06;
  --danger:      #BC3820;

  --line-3:       rgba(16,30,44,.26);
  --mint-hover:   #096B4A;
  --link-hover:   #065C40;
  --scrim:        rgba(255,255,255,.86);
  --scrim-solid:  rgba(255,255,255,.96);
  --scrim-soft:   rgba(255,255,255,.62);
  --tag-live-bg:  rgba(226,246,238,.9);
  --hover-wash:   rgba(16,30,44,.028);
  --title-wash:   rgba(16,30,44,.038);
  --shadow-1:     rgba(16,30,44,.13);
  --shadow-2:     rgba(16,30,44,.18);
  --scroll-hover: #C2CDD8;
  --glow-1:       rgba(var(--mint-rgb),.045);
  --glow-2:       rgba(56,141,255,.028);
  --grain:        .011;
  --sql-kw:       #1B62B8;
  --sql-str:      #9C3A84;
  --ok-ink:       #07684A;
  --bad-ink:      #9E2E19;
  --shot-filter:  saturate(1) contrast(1);
  --tile-filter:  saturate(1) brightness(1);
  --tile-soon-filter: saturate(0) brightness(1.3);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  font-weight: 400;
  letter-spacing: -.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cell-grid wash + two soft light sources. The grid is the signature. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 78% -6%, var(--glow-1), transparent 62%),
    radial-gradient(620px 500px at 4% 34%, var(--glow-2), transparent 66%),
    linear-gradient(to right,  var(--line-grid) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, var(--line-grid) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}

/* Fine grain so the flat darks don't band on large screens */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 2; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mint); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--link-hover); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.032em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--mint); color: var(--mint-ink); }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px;
  transform: translate(-50%, -180%);
  z-index: 200;
  background: var(--mint); color: var(--mint-ink);
  padding: 10px 20px; border-radius: 8px;
  font: 600 14px/1 var(--sans);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--mint-ink); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sec-y); position: relative; }
/* 섹션 사이는 여백으로만 구분한다 (구분선 없음) */

.section-head { margin-bottom: clamp(26px, 3.2vw, 40px); }

/* Sheet-coordinate label: the spreadsheet metaphor, made literal */
.coord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.coord b {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface);
  color: var(--mint);
  font-weight: 600;
  font-size: 12px;
}

.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  max-width: 22ch;
}
.section-sub {
  margin-top: 16px;
  max-width: 46em;   /* 한글 기준 ≒ 46자. ch 는 '0' 폭 기준이라 한글에서 과도하게 좁아진다 */
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 17px);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mint { color: var(--mint); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  letter-spacing: -.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--surface-3); border-color: var(--line-3); color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--mint-ink);
  box-shadow: 0 8px 26px -10px var(--mint-glow);
}
.btn--primary:hover {
  background: var(--mint-hover);
  border-color: var(--mint-hover);
  color: var(--mint-ink);
  box-shadow: 0 14px 34px -10px rgba(var(--mint-rgb),.42);
}

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface); }

.btn--sm { padding: 10px 17px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .38;
  pointer-events: none;
}

.btn .arw { transition: transform .18s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid transparent;
  transition: background .28s var(--ease), border-color .28s var(--ease), backdrop-filter .28s;
}
.nav.is-stuck {
  background: var(--scrim);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  /* 메뉴가 margin-inline:auto 로 간격을 흡수하므로,
     이 gap 은 사실상 CTA ↔ 테마토글 사이에만 보인다 */
  gap: 10px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 26px/1 var(--sans);
  letter-spacing: -.045em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
/* 도메인은 한 덩어리로 붙여 두고(gap 이 끼지 않도록), TLD 만 작게 + 포인트 컬러 */
.logo b { font-weight: 700; }
.logo em {
  font-style: normal;
  font-size: .55em;   /* 26px × .55 ≒ 14.3px — 기존 크기 유지 */
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--mint);
}
/* 현재 보고 있는 제품을 표시하는 칩 */
.logo span {
  padding: 4px 9px;
  border: 1px solid rgba(var(--mint-rgb),.38);
  border-radius: 6px;
  background: rgba(var(--mint-rgb),.10);
  font: 600 11px/1 var(--mono);
  letter-spacing: .02em;
  color: var(--mint);
  text-transform: none;
}

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-inline: auto;
}
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.is-active { color: var(--mint); }

/* 테마 전환 버튼 — 지금 상태가 아니라 '전환될 상태'의 아이콘을 보여준다 */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-3); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

/* 전환 순간에만 색을 부드럽게 넘긴다 (평소엔 걸어두지 않는다) */
.theme-anim, .theme-anim *,
.theme-anim *::before, .theme-anim *::after {
  transition: background-color .22s ease, border-color .22s ease,
              color .22s ease, box-shadow .22s ease !important;
}

.nav__cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; height: 64px; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(32px, 4.5vw, 56px);
  padding-bottom: clamp(48px, 6vw, 76px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

/* 제품명 등식: Web + Excel = WebCel.
   결과값(WebCel)을 스프레드시트의 '선택된 셀'처럼 처리해 컨셉과 묶는다. */
.eq {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
  font: 500 14px/1 var(--mono);
  color: var(--ink-2);
}
.eq i { font-style: normal; color: var(--ink-3); }
.eq b {
  padding: 7px 13px;
  border: 1px solid rgba(var(--mint-rgb),.45);
  border-radius: 7px;
  background: rgba(var(--mint-rgb),.12);
  color: var(--mint);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
}

/* 시트 카드 안의 수식 입력줄 */
.sheet-fx {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font: 500 11.5px/1.5 var(--mono);
  color: var(--ink-2);
  overflow: hidden;
  white-space: nowrap;
}
.sheet-fx i {
  font: italic 600 11.5px/1 var(--mono);
  color: var(--ink-3);
  flex-shrink: 0;
}
.sheet-fx b { color: var(--mint); font-weight: 600; }
.sheet-fx u {
  display: inline-block;
  width: 6px; height: 12px;
  margin-left: 2px;
  background: var(--mint);
  vertical-align: -2px;
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.16;
  letter-spacing: -.045em;
  max-width: 15ch;
}
.hero h1 .u {
  position: relative;
  color: var(--mint);
  white-space: nowrap;
}
.hero h1 .u::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .1em;
  background: var(--mint);
  opacity: .28;
  border-radius: 2px;
}

.hero__lead {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(16px, 1.9vw, 18px);
  color: var(--ink-2);
  line-height: 1.78;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__note {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 500 13px/1.5 var(--mono);
  color: var(--ink-3);
}
.hero__note .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-glow);
  flex-shrink: 0;
}

/* -- Hero visual: sheet card + app screenshot, overlapped ------------------ */
.viz {
  position: relative;
  /* 아래쪽 여백 = 결과 카드가 시트 밖으로 내려앉을 자리 */
  padding-bottom: 33%;
}
.viz::before {
  content: "";
  position: absolute;
  inset: -14% -10% 6% 4%;
  background: radial-gradient(closest-side, rgba(var(--mint-rgb),.15), transparent 72%);
  filter: blur(14px);
  z-index: 0;
}

.card-shell {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 28px 60px -22px var(--shadow-1);
}
.card-shell__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.card-shell__bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-2);
  flex-shrink: 0;
}
.card-shell__bar span {
  margin-left: 6px;
  font: 500 11.5px/1 var(--mono);
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The fake spreadsheet */
.viz__sheet {
  position: relative;
  z-index: 1;
  width: 78%;
}
.sheet {
  width: 100%;
  border-collapse: collapse;
  font: 500 11.5px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  background: var(--surface);
}
.sheet th, .sheet td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 7px 9px;
  text-align: left;
  white-space: nowrap;
  color: var(--ink-2);
  font-weight: 500;
}
.sheet th {
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 10.5px;
  letter-spacing: .05em;
}
.sheet .rownum {
  width: 26px;
  background: var(--surface-2);
  color: var(--ink-3);
  text-align: center;
  font-size: 10.5px;
}
.sheet td.num { text-align: right; }
.sheet tr:last-child td { border-bottom: 0; }
/* 열 문자(A·B·C·D)는 실제 엑셀처럼 가운데 정렬 */
.sheet thead th { text-align: center; }
.sheet thead th.rownum { text-align: center; }

/* 1행 = 표 제목 행. 데이터가 아니라 머리글임을 드러낸다. */
.sheet tr.is-title td {
  text-align: center;
  color: var(--ink);
  font-weight: 600;
  background: var(--title-wash);
}

.sheet td.sel {
  outline: 1.5px solid var(--mint);
  outline-offset: -1.5px;
  background: rgba(var(--mint-rgb),.07);
  color: var(--mint);
}

/* The result: real admin screenshot, overlapping down-right */
.viz__app {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  z-index: 2;
}
.viz__app .card-shell { box-shadow: 0 34px 70px -20px var(--shadow-2); }
.viz__app img {
  width: 100%;
  display: block;
  filter: var(--shot-filter);
}

/* 변환 결과: 다크 테마로 직접 그린 관리자 화면.
   클라이언트 스크린샷을 축소해 넣으면 톤이 깨지고 뭉개지므로 마크업으로 재현한다. */
.app { background: var(--surface); }

.app__top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.app__crumb {
  font: 600 10.5px/1 var(--sans);
  color: var(--ink);
  margin-right: auto;
  white-space: nowrap;
}
.app__field {
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  font: 500 9px/1 var(--mono);
  color: var(--ink-3);
  white-space: nowrap;
}
.app__btn {
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--mint);
  color: var(--mint-ink);
  font: 600 9px/1 var(--sans);
  white-space: nowrap;
}

.app__table {
  width: 100%;
  border-collapse: collapse;
  font: 500 9.5px/1 var(--mono);
  font-variant-numeric: tabular-nums;
}
.app__table th,
.app__table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: var(--ink-2);
}
.app__table th {
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 8.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.app__table td.num { text-align: right; }
.app__table tr:hover td { background: var(--hover-wash); }

.app__tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 8.5px;
  font-weight: 600;
  border: 1px solid;
}
.app__tag--ok   { color: var(--mint);  border-color: rgba(var(--mint-rgb),.4); background: rgba(var(--mint-rgb),.10); }
.app__tag--wait { color: var(--amber); border-color: rgba(var(--amber-rgb),.38); background: rgba(var(--amber-rgb),.10); }

.app__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  background: var(--surface-2);
}
.app__pager span {
  display: grid;
  place-items: center;
  min-width: 15px; height: 15px;
  padding: 0 3px;
  border-radius: 3px;
  font: 500 8.5px/1 var(--mono);
  color: var(--ink-3);
}
.app__pager span.is-on { background: var(--mint); color: var(--mint-ink); font-weight: 600; }

/* Connector between the two cards */
.viz__link {
  position: absolute;
  /* 두 카드가 겹치는 모서리에 놓아, 관리자 화면의 제목을 가리지 않게 한다 */
  left: 25%;
  top: 38%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(var(--mint-rgb),.42);
  background: var(--scrim-solid);
  color: var(--mint);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 0 7px rgba(var(--mint-rgb),.07);
}
.viz__link svg { width: 17px; height: 17px; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .viz { max-width: 620px; }
}
@media (max-width: 560px) {
  .viz__sheet { width: 86%; }
  .viz__app { width: 86%; }
  .viz__link { width: 34px; height: 34px; }
  .sheet th, .sheet td { padding: 5px 6px; font-size: 10px; }
}

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.chip::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
  opacity: .55;
}
.chip:hover { color: var(--ink); border-color: rgba(var(--mint-rgb),.4); background: var(--surface-2); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.card {
  position: relative;
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .22s var(--ease), transform .22s var(--ease), background .22s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--mint-rgb),.55), transparent);
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.card:hover::after { opacity: 1; }

.card__ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(var(--mint-rgb),.28);
  border-radius: 10px;
  background: rgba(var(--mint-rgb),.08);
  color: var(--mint);
}
.card__ico svg { width: 19px; height: 19px; }
.card h3 { font-size: 18.5px; letter-spacing: -.028em; }
.card p { margin-top: 11px; color: var(--ink-2); font-size: 15px; line-height: 1.72; }

/* --------------------------------------------------------------------------
   9. Portfolio
   -------------------------------------------------------------------------- */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.work {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  color: inherit;
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}
.work:hover { border-color: rgba(var(--mint-rgb),.36); transform: translateY(-4px); color: inherit; }

.work__shot {
  position: relative;
  aspect-ratio: 1500 / 731;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.work__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: var(--shot-filter);
  transition: transform .5s var(--ease), filter .35s var(--ease);
}
.work:hover .work__shot img { transform: scale(1.045); filter: saturate(1) contrast(1.03) brightness(1); }

.work__body { padding: 20px 22px 22px; }
.work p.work__tag {
  font: 500 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mint);
}
.work h3 { margin-top: 11px; font-size: 17.5px; }
.work p { margin-top: 7px; color: var(--ink-2); font-size: 14.5px; }

.center-action { margin-top: 32px; display: flex; justify-content: center; }

/* --------------------------------------------------------------------------
   9b. Proof — 크몽 Prime 검증 블록 (이미지 좌 / 내용 우)
   -------------------------------------------------------------------------- */
.proof {
  display: grid;
  /* 다른 섹션과 같은 가로폭을 쓴다 */
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: center;
  padding: clamp(26px, 3.6vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.proof__media {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: 0 20px 44px -22px var(--shadow-1);
}
.proof__media img { width: 100%; display: block; }

.proof__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 11px;
  border: 1px solid rgba(var(--mint-rgb),.4);
  border-radius: 999px;
  background: rgba(var(--mint-rgb),.10);
  margin-bottom: 18px;
}
.proof__badge em {
  font: italic 700 14px/1 var(--sans);
  letter-spacing: -.03em;
  color: var(--mint);
}
.proof__badge span {
  font: 500 12px/1 var(--mono);
  letter-spacing: .04em;
  color: var(--ink-2);
}

.proof h3 {
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.45;
}

.proof__list { list-style: none; margin-top: 22px; }
.proof__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
}
.proof__list li:first-child { border-top: 0; }
.proof__list svg { width: 15px; height: 15px; color: var(--mint); flex-shrink: 0; margin-top: 5px; }

.proof__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.proof__rating {
  font: 600 14px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.proof__rating b { color: var(--mint); font-size: 18px; }

@media (max-width: 760px) {
  .proof { grid-template-columns: 1fr; }
  .proof__media { max-width: 300px; }
}

/* --------------------------------------------------------------------------
   10. Demo links
   -------------------------------------------------------------------------- */
.demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 8px;
  list-style: none;
}
.demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.demo:hover { color: var(--ink); border-color: rgba(var(--mint-rgb),.4); background: var(--surface-2); transform: translateY(-2px); }
.demo strong { font-size: 15.5px; font-weight: 600; }
.demo em {
  display: block;
  margin-top: 4px;
  font: 500 11px/1 var(--mono);
  font-style: normal;
  letter-spacing: .1em;
  color: var(--mint);
  text-transform: uppercase;
}
.demo svg { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; transition: transform .2s var(--ease), color .2s var(--ease); }
.demo:hover svg { color: var(--mint); transform: translate(2px, -2px); }

.demo.is-soon { opacity: .48; pointer-events: none; }
.demo.is-soon em { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   11. Process timeline
   -------------------------------------------------------------------------- */
.proc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.steps { list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  padding: 0 0 30px 56px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -2px;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  font: 600 12px/1 var(--mono);
  color: var(--mint);
}
/* vertical rail */
.steps li::after {
  content: "";
  position: absolute;
  left: 17px; top: 38px; bottom: 6px;
  width: 1px;
  background: linear-gradient(var(--line-2), transparent);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 17px; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }

.panel {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.panel h3 { font-size: 16.5px; }
.panel ul { list-style: none; margin-top: 18px; }
.panel li {
  display: flex;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14.5px;
  align-items: flex-start;
}
.panel li:first-child { border-top: 0; padding-top: 0; }
.panel li svg { width: 15px; height: 15px; color: var(--mint); flex-shrink: 0; margin-top: 4px; }

/* 준비사항이 길어지면 문의를 미루게 되므로, 문턱을 낮추는 한 줄을 붙인다 */
.panel__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

@media (max-width: 860px) { .proc-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   12. Estimator — styled as a real spreadsheet
   -------------------------------------------------------------------------- */
.est-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 28px;
  /* 세 상자(UI 페이지 · 추가 기능 · 요약)의 아랫선을 맞춘다 */
  align-items: stretch;
}

.est-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.est-block__head h3 { font-size: 17px; }
.est-block__head span { font: 500 12.5px/1.5 var(--mono); color: var(--ink-3); }

/* Radio row list */
.opt-list {
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
}
/* UI 페이지 목록은 남는 세로 공간을 7개 행이 균등하게 나눠 갖는다 */
.est-cols .est-block:first-child .opt-list {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.est-cols .est-block:first-child .opt-list li { flex: 1 1 auto; }
.est-cols .est-block:first-child .opt { height: 100%; }
.opt-list li + li { border-top: 1px solid var(--line); }

.opt {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  background: var(--surface);
  cursor: pointer;
  transition: background .16s var(--ease);
}
.opt:hover { background: var(--surface-2); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.opt__mark {
  position: relative;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  background: var(--bg-2);
  flex-shrink: 0;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.opt--radio .opt__mark { border-radius: 50%; }
.opt--check .opt__mark { border-radius: 5px; }

.opt__mark::after {
  content: "";
  position: absolute;
  opacity: 0;
  transition: opacity .14s var(--ease), transform .14s var(--ease);
}
.opt--radio .opt__mark::after {
  inset: 3.5px;
  border-radius: 50%;
  background: var(--mint-ink);
  transform: scale(.4);
}
.opt--check .opt__mark::after {
  left: 5px; top: 1.5px;
  width: 5px; height: 10px;
  border: solid var(--mint-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(.7);
}

.opt input:checked ~ .opt__mark { background: var(--mint); border-color: var(--mint); }
.opt input:checked ~ .opt__mark::after { opacity: 1; transform: scale(1); }
.opt--check input:checked ~ .opt__mark::after { transform: rotate(45deg) scale(1); }
.opt input:focus-visible ~ .opt__mark { outline: 2px solid var(--mint); outline-offset: 3px; }

.opt__label { flex: 1; font-size: 15px; font-weight: 500; }
.opt__price {
  font: 500 14px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  white-space: nowrap;
}
.opt input:checked ~ .opt__price { color: var(--mint); }
.opt:has(input:checked) {
  background-image: linear-gradient(rgba(var(--mint-rgb),.055), rgba(var(--mint-rgb),.055));
}

/* UI 페이지 / 추가 기능을 좌우 절반으로 나눈다 */
.est-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  /* stretch + flex-basis:0 조합으로, 행 높이는 왼쪽(UI 페이지) 목록이 결정하고
     오른쪽 스크롤 박스가 그 높이에 정확히 맞춰진다. */
  align-items: stretch;
}
.est-cols .est-block {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 추가 기능은 항목이 많으므로 자체 스크롤 영역에 담는다 */
.opt-scroll {
  position: relative;
  /* basis 0 → 자기 콘텐츠 높이가 행 높이에 관여하지 않는다 */
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.opt-scroll::-webkit-scrollbar { width: 9px; }
.opt-scroll::-webkit-scrollbar-track { background: transparent; }
.opt-scroll::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 99px;
  border: 2px solid var(--surface);
}
.opt-scroll::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); }

/* 스크롤 영역 안에서는 바깥 테두리를 겹치지 않게 한다 */
.opt-scroll .opt-list { border: 0; border-radius: 0; }

/* 더 볼 내용이 있음을 알리는 하단 페이드 */
.est-block--scroll { position: relative; }
.est-block--scroll::after {
  content: "";
  position: absolute;
  left: 1px; right: 10px; bottom: 1px;
  height: 44px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: linear-gradient(transparent, var(--surface));
  pointer-events: none;
}

/* Summary — sticky on desktop */
.summary {
  position: sticky;
  top: 92px;
  /* 왼쪽 두 목록 상자와 위·아래 선을 모두 맞춘다.
     est-block__head 높이 35px 만큼 내리고, 나머지는 grid 의 stretch 가 채운다. */
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 22px 50px -26px var(--shadow-1);
}
.summary__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.summary__head i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 0 3px var(--mint-glow);
}
.summary__body {
  padding: 18px 20px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.summary__rows {
  list-style: none;
  /* 남는 높이를 이 영역이 흡수한다. 선택이 많아지면 스크롤. */
  flex: 1 1 0;
  min-height: 76px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.summary__rows::-webkit-scrollbar { width: 7px; }
.summary__rows::-webkit-scrollbar-track { background: transparent; }
.summary__rows::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
.summary__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.summary__rows li:last-child { border-bottom: 0; }
/* 항상 한 줄. 넘치면 말줄임 (전체 목록은 title 로 확인) */
.summary__rows b {
  font-weight: 500;
  color: var(--ink);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary__rows span { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; }
.summary__rows .is-empty { color: var(--ink-3); border-bottom: 0; font-style: normal; }

.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.summary__total dt { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.summary__total dd {
  margin: 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -.028em;
  color: var(--mint);
}
.summary__total dd small { font-size: .5em; color: var(--ink-2); margin-left: 4px; font-weight: 500; }
.summary__foot { padding: 0 20px 18px; }
.summary__foot .btn { width: 100%; }
.summary__foot p { margin-top: 11px; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; text-align: center; }

/* Mobile: summary collapses into a fixed bottom bar */
.est-bar { display: none; }

@media (max-width: 980px) {
  .est-grid { grid-template-columns: 1fr; align-items: start; }
  .summary { position: static; margin-top: 0; }
}
/* 좁은 화면에서 중첩 스크롤은 조작이 어려우므로 그대로 펼친다 */
@media (max-width: 760px) {
  .est-cols { grid-template-columns: 1fr; gap: 30px; }
  .est-cols .est-block { display: block; }
  .est-cols .est-block:first-child .opt-list { display: block; flex: none; }
  .opt-scroll { flex: none; max-height: none; overflow: visible; }
  .est-block--scroll::after { display: none; }
}
@media (max-width: 700px) {
  .summary { display: none; }
  .est-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    /* 우측 여백은 채널톡 런처(약 54px + 여백) 자리를 비워두기 위한 것 */
    padding: 12px 82px calc(12px + env(safe-area-inset-bottom)) 16px;
    background: var(--scrim-solid);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2);
    transform: translateY(110%);
    transition: transform .3s var(--ease);
  }
  .est-bar.is-on { transform: translateY(0); }
  .est-bar__label { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .est-bar__total {
    font-family: var(--mono); font-variant-numeric: tabular-nums;
    font-size: 20px; font-weight: 600; color: var(--mint); letter-spacing: -.02em;
  }
}

/* --------------------------------------------------------------------------
   12b. 상세 페이지 (description.html) 전용
   -------------------------------------------------------------------------- */
.page-head {
  padding-top: clamp(30px, 4vw, 52px);
  padding-bottom: clamp(8px, 1.5vw, 18px);
}
.page-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -.04em;
  max-width: 20ch;
}
.page-head p {
  margin-top: 18px;
  max-width: 46em;
  color: var(--ink-2);
  font-size: clamp(15px, 1.6vw, 17px);
}

/* 개발 4단계 */
.flow { display: grid; gap: 20px; }
.flow__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.flow__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 22px;
}
.flow__no {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface-2);
  font: 600 12px/1 var(--mono);
  color: var(--mint);
  align-self: flex-start;
}
.flow__head h2 { font-size: 18px; letter-spacing: -.03em; }
.flow__head p { margin-top: 6px; color: var(--ink-2); font-size: 14.5px; }

/* 도식은 이미지가 아니라 마크업으로 직접 그린다 (다크 테마 유지 + 확대해도 선명) */
.flow__figure {
  padding: clamp(16px, 2.4vw, 26px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  overflow-x: auto;
}
.flow__figure > * { min-width: 520px; }

/* -- 2단계: 스키마 -- */
.schema {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 14px;
  /* 두 카드의 높이를 맞춘다. 긴 쪽(SQL)이 행 높이를 정하고,
     컬럼 목록은 남는 높이를 행끼리 균등하게 나눠 갖는다. */
  align-items: stretch;
}
.schema > .card-shell { display: flex; flex-direction: column; }
.schema__cols { flex: 1 1 auto; display: flex; flex-direction: column; }
.schema__col {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 9px;
  padding: 6px 13px;
  border-top: 1px solid var(--line);
  font: 500 10.5px/1.5 var(--mono);
  color: var(--ink-2);
}
.schema__col:first-of-type { border-top: 0; }
.schema__col i {
  font-style: normal;
  color: var(--mint);
  flex-shrink: 0;
  width: 20px;          /* "PK" 가 두 줄로 깨지지 않을 폭 */
  font-size: 9px;
  letter-spacing: .04em;
}
.schema__col span { margin-left: auto; color: var(--ink-3); }

.sql {
  margin: 0;
  padding: 14px 16px;
  font: 500 10.5px/1.95 var(--mono);
  color: var(--ink-2);
  white-space: pre;
  overflow-x: auto;
  tab-size: 2;
}
.sql b { color: var(--sql-kw); font-weight: 500; }   /* 키워드 */
.sql u { color: var(--mint); text-decoration: none; }  /* 식별자 */
.sql em { color: var(--sql-str); font-style: normal; }        /* 문자열 */
.sql i  { color: var(--ink-3); font-style: normal; }   /* 주석 */

/* -- 3단계: CRUD 화면 -- */
.crud {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 14px;
  /* 두 카드 높이를 맞춘다. 목록은 행 수가 적어 아래가 비지만,
     실제 관리 화면처럼 페이징을 카드 맨 아래에 붙인다. */
  align-items: stretch;
}
.crud > .card-shell { display: flex; flex-direction: column; }
.crud .app__pager,
.crud .crud__foot { margin-top: auto; }
.crud__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  flex-wrap: wrap;
}
.crud__count { font: 500 9.5px/1 var(--mono); color: var(--mint); }
.crud__spacer { margin-left: auto; }

.crud__field {
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  font: 500 9px/1.4 var(--mono);
  color: var(--ink-3);
  white-space: nowrap;
}
.crud__row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 13px;
  border-top: 1px solid var(--line);
}
.crud__row:first-of-type { border-top: 0; }
.crud__row dt { font: 500 9.5px/1 var(--mono); color: var(--ink-3); }
.crud__row dd {
  margin: 0;
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-2);
  font: 500 9.5px/1.4 var(--mono);
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crud__foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 11px 13px;
  border-top: 1px solid var(--line);
}
.app__btn--ghost {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-2);
}
.app__btn--mini { padding: 3px 7px; font-size: 8.5px; }

/* -- 4단계: DB 테이블 -- */
.dbtable { overflow-x: auto; }
.dbtable table { min-width: 900px; }
.app__table th small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  font-weight: 500;
  color: var(--ink-3);
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .schema, .crud { grid-template-columns: 1fr; }
}

/* 서비스 사양 */
.spec {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.spec > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}
.spec > div:first-child { border-top: 0; }
.spec dt {
  font: 500 12.5px/1.7 var(--mono);
  letter-spacing: .05em;
  color: var(--ink-3);
}
.spec dd { margin: 0; font-size: 15px; color: var(--ink); }
.spec dd small { display: block; margin-top: 4px; color: var(--ink-3); font-size: 13.5px; }

@media (max-width: 620px) {
  .spec > div { grid-template-columns: 1fr; gap: 6px; }
}

/* 하단 전환 블록 */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(26px, 3.4vw, 38px);
  border: 1px solid rgba(var(--mint-rgb),.28);
  border-radius: var(--r);
  background:
    linear-gradient(rgba(var(--mint-rgb),.05), rgba(var(--mint-rgb),.05)),
    var(--surface);
}
.cta-band h2 { font-size: clamp(20px, 2.6vw, 26px); }
.cta-band p { margin-top: 10px; color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 견적에 포함된 것 — 금액 바로 옆에서 "이 돈에 뭐가 들어있나"에 답한다 */
.incl {
  margin-top: 14px;
  padding: 18px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.incl h4 {
  margin: 0 0 12px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.incl ul { list-style: none; }
.incl li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.incl svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--mint);
}
.incl li.is-note {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink-3);
  font-size: 13px;
}
.incl li.is-note svg { color: var(--ink-3); }

/* --------------------------------------------------------------------------
   12c. AppBox — 앱 데모 타일
   -------------------------------------------------------------------------- */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
  list-style: none;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0;
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}
.app-card__shot {
  position: relative;
  aspect-ratio: 353 / 326;
  overflow: hidden;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.app-card__shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: var(--tile-filter);
  transition: transform .5s var(--ease), filter .35s var(--ease);
}
.app-card__body { padding: 15px 17px 17px; }
.app-card h3 { font-size: 16px; letter-spacing: -.02em; }
.app-card p { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; }

.app-card__tag {
  position: absolute;
  top: 11px; left: 11px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid;
  font: 600 10px/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.app-card__tag--live {
  color: var(--mint);
  border-color: rgba(var(--mint-rgb),.5);
  background: var(--tag-live-bg);
}
.app-card__tag--live::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px var(--mint-glow);
}
.app-card__tag--soon {
  color: var(--ink-3);
  border-color: var(--line-2);
  background: var(--scrim);
}

/* 실행 가능한 데모만 반응한다 */
.app-card--live { cursor: pointer; }
.app-card--live:hover { border-color: rgba(var(--mint-rgb),.42); transform: translateY(-3px); }
.app-card--live:hover .app-card__shot img { transform: scale(1.05); filter: saturate(1) brightness(1); }
.app-card--live:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.app-card--soon { opacity: .5; }
.app-card--soon .app-card__shot img { filter: var(--tile-soon-filter); }

/* 준비중 카드 위에 얹는 안내 */
.app-card--live .app-card__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  background: var(--scrim-soft);
  transition: opacity .22s var(--ease);
}
.app-card--live:hover .app-card__play,
.app-card--live:focus-visible .app-card__play { opacity: 1; }
.app-card__play span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--mint-ink);
  font: 600 13px/1 var(--sans);
}

/* --------------------------------------------------------------------------
   13. Team
   -------------------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  list-style: none;
}
/* 아바타 좌 / 텍스트 우 */
.member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.member__body { min-width: 0; }
.member:hover { border-color: var(--line-2); background: var(--surface-2); }
.member img {
  width: 56px; height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
  filter: grayscale(1) contrast(1.04);
  transition: filter .3s var(--ease);
}
.member:hover img { filter: grayscale(0); }
.member p.member__role {
  margin-top: 0;
  font: 500 11px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mint);
}
.member h3 { margin-top: 7px; font-size: 17px; }
.member p { margin-top: 5px; font-size: 13.5px; color: var(--ink-3); font-family: var(--mono); }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block;
  margin-bottom: 8px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--ink);
  font: 400 15px/1.65 var(--sans);
  transition: border-color .18s var(--ease), background .18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--mint);
  background: var(--surface);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }

.field__err {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: var(--danger);
}
.field.has-error .field__err { display: block; }

.form-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.65;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  border: 1px solid;
}
.form-status.is-on { display: block; }
.form-status.is-ok { border-color: rgba(var(--mint-rgb),.42); background: rgba(var(--mint-rgb),.08); color: var(--ok-ink); }
.form-status.is-bad { border-color: rgba(var(--danger-rgb),.42); background: rgba(var(--danger-rgb),.08); color: var(--bad-ink); }

.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; }

.contact-aside .quote-echo {
  padding: 20px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  margin-top: 26px;
}
.contact-aside .quote-echo dt {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-aside .quote-echo dd {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 600;
  color: var(--mint);
}
.contact-aside .quote-echo p { margin-top: 8px; font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(28px, 3.4vw, 40px);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; }
.footer__nav a { color: var(--ink-2); font-size: 14px; }
.footer__nav a:hover { color: var(--mint); }
/* 사업자 정보 — 의미상 address 요소 */
.footer__biz {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  padding-top: 16px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.footer__biz b { color: var(--ink-2); font-weight: 600; }
.footer__biz a {
  color: var(--ink-3);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.footer__biz a:hover { color: var(--mint); }

.footer__bot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  padding-top: 12px;
  font: 500 12.5px/1.7 var(--mono);
  color: var(--ink-3);
}
.footer__bot a { color: var(--ink-3); }
.footer__bot a:hover { color: var(--ink-2); }

/* 패밀리 사이트 — 현재 도메인은 스크립트가 목록에서 제거한다 */
.family {
  position: relative;
  margin-left: auto;
}
.family select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink-2);
  font: 500 12.5px/1 var(--mono);
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}
.family select:hover { color: var(--ink); border-color: var(--line-3); background: var(--surface-2); }
.family select:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.family::after {
  content: "";
  position: absolute;
  right: 13px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -4px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
/* JS 가 살아있을 때만 숨긴다.
   .rv 로 전체 콘텐츠를 감싸므로, 스크립트가 실패하면 빈 페이지가 되어서는 안 된다. */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.js .rv.is-in { opacity: 1; transform: none; }
.rv-2 { transition-delay: .07s; }
.rv-3 { transition-delay: .14s; }
.rv-4 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .rv { opacity: 1; transform: none; }
}
