/* ═══════════════════════════════════════════════════════
   common.css — YourTeam 공통 디자인 시스템
   v1.0 · 2026-03

   사용법: 모든 페이지에서 <link rel="stylesheet" href="common.css"> 로 포함
═══════════════════════════════════════════════════════ */

/* ──────────────────────────────────────
   1. DESIGN TOKENS
   - 다크 모드 기본, 라이트 모드 override
   - [data-theme="light"] 를 <html>에 적용
────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:           #0A0A0A;
  --bg-2:         #111111;
  --bg-3:         #181818;
  --surface:      rgba(255,255,255,0.04);
  --surface-2:    rgba(255,255,255,0.07);

  /* Text */
  --text:         #FFFFFF;
  --text-2:       rgba(255,255,255,0.62);
  --text-3:       rgba(255,255,255,0.36);

  /* Accent (lime green) */
  --accent:       #9EFF00;
  --accent-rgb:   158,255,0;
  --accent-dim:   rgba(158,255,0,0.10);
  --accent-glow:  0 8px 28px rgba(158,255,0,0.28);

  /* Borders */
  --border:       rgba(255,255,255,0.08);
  --border-2:     rgba(255,255,255,0.15);

  /* Nav — 반투명 글래스 */
  --nav-blur-bg:  rgba(8,8,8,0.62);

  /* Buttons — primary always uses brand lime regardless of theme */
  --btn-primary-bg:   #9EFF00;
  --btn-primary-text: #0A0A0A;

  /* Logo filter — brand colors 그대로 표시 */

  /* Grain opacity */
  --grain-opacity: 0.028;

  /* Easings */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std:  cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-w: 1160px;
  --ph:    52px;
}

[data-theme="light"] {
  --bg:           #FAFAFA;
  --bg-2:         #F2F2F2;
  --bg-3:         #E8E8E8;
  --surface:      rgba(0,0,0,0.04);
  --surface-2:    rgba(0,0,0,0.07);

  --text:         #111111;
  --text-2:       rgba(17,17,17,0.65);
  --text-3:       rgba(17,17,17,0.38);

  --accent:       #9EFF00;
  --accent-rgb:   158,255,0;
  --accent-dim:   rgba(158,255,0,0.12);
  --accent-glow:  0 8px 28px rgba(158,255,0,0.22);

  --border:       rgba(0,0,0,0.09);
  --border-2:     rgba(0,0,0,0.18);

  --nav-blur-bg:  rgba(252,252,252,0.70);

  --btn-primary-bg:   #9EFF00;
  --btn-primary-text: #0A0A0A;


  --grain-opacity: 0.015;
}

/* ──────────────────────────────────────
   2. RESET & BASE
────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* 테마 전환 시 부드러운 전환 */
body,
.nav,
section,
.card,
.btn,
.tag,
.tool-chip,
.form-input,
.form-select,
.form-textarea,
.scope-item::before {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ──────────────────────────────────────
   3. FILM GRAIN
────────────────────────────────────── */
#grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: var(--grain-opacity);
  transition: opacity 0.3s ease;
}

/* ──────────────────────────────────────
   4. CUSTOM CURSOR
────────────────────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .15s var(--ease-expo), height .15s var(--ease-expo);

  /* 다크 기본: 흰 코어 + 다층 글로우 → 유리/정령 느낌 */
  background: #FFFFFF;
  box-shadow:
    0 0 3px  rgba(255,255,255,1),
    0 0 10px rgba(255,255,255,0.85),
    0 0 24px rgba(255,255,255,0.45),
    0 0 48px rgba(200,255,120,0.18);
}
#cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-expo), height .35s var(--ease-expo), opacity .3s;

  /* 다크: 반투명 흰 테두리 + 안쪽 미세 글로우 → 액체 렌즈 */
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.035);
  box-shadow:
    0 0 18px rgba(255,255,255,0.06),
    inset 0 0 12px rgba(255,255,255,0.04);
}

/* 라이트 모드: 잉크 도트 + 미세 섀도 링 */
[data-theme="light"] #cursor-dot {
  background: #111111;
  box-shadow:
    0 0 4px  rgba(17,17,17,0.55),
    0 0 12px rgba(17,17,17,0.18);
}
[data-theme="light"] #cursor-ring {
  border-color: rgba(17,17,17,0.18);
  background: rgba(17,17,17,0.025);
  box-shadow: none;
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  * { cursor: auto !important; }
}

/* ──────────────────────────────────────
   5. NAVIGATION
────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--ph);
  height: 64px;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s, backdrop-filter .4s;
  --nav-mx: 50%;
}

/* 커서 따라 빛나는 오버레이 (::before) */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--nav-mx) 50%,
    rgba(255,255,255,0.10) 0%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity .4s;
  z-index: 0;
}
/* 스크롤 후 활성화 */
.nav.scrolled::before { opacity: 1; }

/* 하단 테두리에 커서 위치 광원 반사 */
.nav::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.0) calc(var(--nav-mx) - 18%),
    rgba(255,255,255,0.35) var(--nav-mx),
    rgba(255,255,255,0.0) calc(var(--nav-mx) + 18%),
    transparent 100%
  );
  opacity: 0;
  transition: opacity .4s;
  z-index: 1;
}
.nav.scrolled::after { opacity: 1; }

/* 라이트 모드: lime 틴트 광원 */
[data-theme="light"] .nav::before {
  background: radial-gradient(
    320px circle at var(--nav-mx) 50%,
    rgba(var(--accent-rgb), 0.07) 0%,
    transparent 62%
  );
}
[data-theme="light"] .nav::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--accent-rgb), 0.0) calc(var(--nav-mx) - 18%),
    rgba(var(--accent-rgb), 0.4) var(--nav-mx),
    rgba(var(--accent-rgb), 0.0) calc(var(--nav-mx) + 18%),
    transparent 100%
  );
}

/* nav 자식 요소들이 ::before 위에 올라오게 */
.nav > * { position: relative; z-index: 1; }

.nav.scrolled {
  background: var(--nav-blur-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
}
.nav-logo {
  display: flex;
  align-items: flex-start;
  cursor: none;
  text-decoration: none;
  flex-shrink: 0;
}

/* ── Text + symbol wrapper ── */
.nl-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.nl-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Symbol mark ── */
.nl-symbol {
  display: block;
  flex-shrink: 0;
  transition: filter .4s, transform .45s var(--ease-expo);
}
.nav-logo:hover .nl-symbol {
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.55));
  transform: scale(1.06);
}

/* Light mode: flip bar colors to dark, chevron to deeper green */
[data-theme="light"] .nl-bar-el {
  fill: #1A1A1A !important;
}
[data-theme="light"] .nl-bar-edge {
  fill: rgba(0,0,0,0.2) !important;
}
[data-theme="light"] .nl-g-start {
  stop-color: #7ACC00 !important;
}
[data-theme="light"] .nl-g-end {
  stop-color: #5AAA00 !important;
}
[data-theme="light"] .nl-crack-mid {
  stop-color: #5AAA00 !important;
}
[data-theme="light"] .nl-chev-el {
  filter: drop-shadow(0 0 4px rgba(90,170,0,0.35));
}

/* ── Text lockup ── */
.nl-brand {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}
.nl-accent {
  color: var(--accent);
  transition: text-shadow .4s;
}
.nav-logo:hover .nl-accent,
.nav.scrolled .nl-accent {
  text-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6);
}
.nl-slogan {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    var(--text-3) 0%,
    var(--accent) 40%,
    rgba(255,255,180,0.9) 55%,
    var(--accent) 70%,
    var(--text-3) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-shimmer 3.2s linear infinite;
}
@keyframes logo-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}
/* 라이트 모드에서 슬로건 shimmer 조정 */
[data-theme="light"] .nl-slogan {
  background: linear-gradient(
    90deg,
    var(--text-3) 0%,
    #5a8a00 40%,
    #aacc00 55%,
    #5a8a00 70%,
    var(--text-3) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-shimmer 3.2s linear infinite;
}
/* Legacy span support (footer) */
.nav-logo > span {
  color: var(--accent);
  transition: text-shadow .4s;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
  cursor: none;
}
.nav-link:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Theme toggle — Day/Night Scene */
.theme-toggle {
  position: relative;
  width: 82px; height: 36px;
  border-radius: 18px;
  border: 1.5px solid rgba(255,255,255,0.10);
  padding: 0;
  cursor: none;
  overflow: hidden;
  flex-shrink: 0;
  /* Dark: night sky */
  background: linear-gradient(120deg, #0b1528 0%, #000000 55%, #ffffff 100%);
  transition: background 0.5s ease, border-color 0.35s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 2px 8px rgba(0,0,0,0.4);
}
[data-theme="light"] .theme-toggle {
  /* Light: sky blue */
  background: linear-gradient(120deg, #5ab8f5 0%, #78cafc 45%, #aadeff 100%);
  border-color: rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 8px rgba(0,80,180,0.18);
}

/* ── Knob (Moon / Sun) ── */
.tg-knob {
  position: absolute;
  top: 4px; left: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  z-index: 4;
  /* Dark = Moon: right side */
  transform: translateX(46px);
  background: radial-gradient(circle at 38% 32%, #d4d4e0 0%, #aaaabb 50%, #8888a4 100%);
  box-shadow:
    inset -3px -2px 5px rgba(0,0,0,0.30),
    inset  1px  1px 3px rgba(255,255,255,0.15),
    0 0 0 3px rgba(60,70,110,0.40),
    0 0 0 7px rgba(40,55,100,0.18),
    0 3px 12px rgba(0,0,0,0.55);
  transition:
    transform 0.52s cubic-bezier(0.16,1,0.3,1),
    background 0.45s ease,
    box-shadow 0.45s ease;
}
[data-theme="light"] .tg-knob {
  /* Light = Sun: left side */
  transform: translateX(0);
  background: radial-gradient(circle at 38% 32%, #fff176 0%, #ffcc00 45%, #f5a800 100%);
  box-shadow:
    inset 0 -2px 5px rgba(180,90,0,0.28),
    inset 0  1px 3px rgba(255,255,200,0.55),
    0 0 0 3px rgba(255,200,0,0.32),
    0 0 0 7px rgba(255,180,0,0.14),
    0 3px 14px rgba(255,150,0,0.55);
}

/* Moon craters */
.tg-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(0,0,0,0.20);
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.18), 1px 1px 0 rgba(255,255,255,0.06);
  transition: opacity 0.3s ease;
}
[data-theme="light"] .tg-crater { opacity: 0; }
.tg-crater--1 { width: 7px; height: 7px; bottom: 6px; left: 6px; }
.tg-crater--2 { width: 5px; height: 5px; top: 5px;   right: 6px; }
.tg-crater--3 { width: 4px; height: 4px; bottom: 4px; right: 8px; }

/* ── Stars (dark mode only) ── */
.tg-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
[data-theme="light"] .tg-stars { opacity: 0; }

.tg-star {
  position: absolute;
  background: rgba(255,255,255,0.88);
  clip-path: polygon(50% 0%,54% 46%,100% 50%,54% 54%,50% 100%,46% 54%,0% 50%,46% 46%);
}
/* Small diamond left */
.tg-star--a { width: 5px; height: 5px; left: 11px; top: 50%; transform: translateY(-50%); }
/* Larger sparkle center-left */
.tg-star--b { width: 9px; height: 9px; left: 28px; top: 8px; }
/* Tiny bottom */
.tg-star--c { width: 4px; height: 4px; left: 19px; bottom: 8px; }

/* ── Clouds (light mode only) ── */
.tg-clouds {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
[data-theme="light"] .tg-clouds { opacity: 1; }

/* Main cloud — large, bottom-right */
.tg-cloud--1 {
  position: absolute;
  bottom: -1px; right: 4px;
  width: 34px; height: 16px;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
}
.tg-cloud--1::before {
  content: '';
  position: absolute;
  top: -10px; left: 5px;
  width: 15px; height: 15px;
  background: #ffffff;
  border-radius: 50%;
}
.tg-cloud--1::after {
  content: '';
  position: absolute;
  top: -14px; left: 16px;
  width: 13px; height: 13px;
  background: #ffffff;
  border-radius: 50%;
}

/* Secondary cloud — smaller, behind main */
.tg-cloud--2 {
  position: absolute;
  bottom: 3px; right: 30px;
  width: 20px; height: 10px;
  background: rgba(255,255,255,0.75);
  border-radius: 5px 5px 0 0;
}
.tg-cloud--2::before {
  content: '';
  position: absolute;
  top: -7px; left: 2px;
  width: 10px; height: 10px;
  background: rgba(255,255,255,0.75);
  border-radius: 50%;
}
.tg-cloud--2::after {
  content: '';
  position: absolute;
  top: -9px; left: 9px;
  width: 9px; height: 9px;
  background: rgba(255,255,255,0.75);
  border-radius: 50%;
}

/* Remove old icon rules (no longer used) */
.icon-sun, .icon-moon { display: none; }

/* 모바일 우측 컨트롤 */
.nav-mobile-controls {
  display: none;
  align-items: center;
  gap: 8px;
}

/* ── 햄버거 버튼 — 커서 링과 동일한 글래스 원형 ── */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 18px rgba(255,255,255,0.06), inset 0 0 12px rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav-hamburger:hover {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 24px rgba(255,255,255,0.14), inset 0 0 16px rgba(255,255,255,0.06);
}
.nav-hamburger.open {
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 28px rgba(255,255,255,0.16), inset 0 0 18px rgba(255,255,255,0.08);
}
[data-theme="light"] .nav-hamburger {
  border-color: rgba(17,17,17,0.18);
  background: rgba(17,17,17,0.025);
  box-shadow: none;
}
[data-theme="light"] .nav-hamburger:hover {
  border-color: rgba(17,17,17,0.35);
  box-shadow: 0 2px 12px rgba(17,17,17,0.1);
}
.nav-hamburger span {
  display: block;
  width: 16px; height: 1.5px;
  background: rgba(255,255,255,0.82);
  border-radius: 2px;
  transition: transform .38s var(--ease-expo), opacity .25s, background .3s;
}
[data-theme="light"] .nav-hamburger span { background: rgba(17,17,17,0.72); }
/* X 변환 */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════
   모바일 풀스크린 메뉴
   커서와 동일한 글래스/정령 미학
══════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: hidden;

  background: rgba(5,5,5,0.96);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);

  /* 닫힌 상태 */
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity .45s var(--ease-expo), transform .45s var(--ease-expo);
}
.mobile-menu.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
[data-theme="light"] .mobile-menu {
  background: rgba(248,248,248,0.96);
}

/* 배경 장식 오브 */
.mm-orb {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158,255,0,0.07) 0%, transparent 68%);
  top: -15%; right: -18%;
  pointer-events: none;
}

/* 메뉴 링크 */
.mm-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 56px;
}
.mm-link {
  font-size: clamp(38px, 9vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.28);
  transition:
    color .35s,
    text-shadow .35s,
    opacity .55s var(--ease-expo),
    transform .55s var(--ease-expo);
  /* 닫힌 상태 */
  opacity: 0;
  transform: translateY(18px);
}
[data-theme="light"] .mm-link { color: rgba(17,17,17,0.28); }

.mm-link:hover {
  color: #FFFFFF;
  text-shadow: 0 0 32px rgba(255,255,255,0.22);
}
[data-theme="light"] .mm-link:hover {
  color: #111111;
  text-shadow: none;
}

/* 오픈 시 링크 순차 등장 */
.mobile-menu.open .mm-link            { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mm-link:nth-child(1){ transition-delay: .08s; }
.mobile-menu.open .mm-link:nth-child(2){ transition-delay: .14s; }
.mobile-menu.open .mm-link:nth-child(3){ transition-delay: .20s; }
.mobile-menu.open .mm-link:nth-child(4){ transition-delay: .26s; }

/* 하단 CTA */
.mm-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-expo) .32s, transform .5s var(--ease-expo) .32s;
}
.mobile-menu.open .mm-bottom { opacity: 1; transform: translateY(0); }
.mm-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  letter-spacing: .01em;
}
[data-theme="light"] .mm-hint { color: rgba(17,17,17,0.35); }

/* 반응형 */
@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav-links  { display: none; }
  .nav-right  { display: none; }
  .nav-mobile-controls { display: flex; }
}

/* ──────────────────────────────────────
   6. BUTTONS
────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 48px; padding: 0 26px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: .005em;
  cursor: none;
  transition:
    transform .55s cubic-bezier(.16,1,.3,1),
    background .2s,
    box-shadow .25s,
    border-color .2s,
    color .2s;
}
.btn-sm  { height: 38px; padding: 0 18px; font-size: 13px; }
.btn-lg  { height: 56px; padding: 0 36px; font-size: 15px; }
.btn-primary  { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-primary:hover { box-shadow: var(--accent-glow); }
.btn-ghost {
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ──────────────────────────────────────
   7. LAYOUT UTILITIES
────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--ph); }
.s-pad    { padding: 120px 0; }
.s-pad-lg { padding: 160px 0; }
.s-divider { border-top: 1px solid var(--border); }

/* ──────────────────────────────────────
   8. EYEBROW LABEL
────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--accent);
  opacity: .6;
}

/* ──────────────────────────────────────
   9. SCROLL REVEAL
────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s var(--ease-expo), transform .75s var(--ease-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .06s; }
.d2 { transition-delay: .13s; }
.d3 { transition-delay: .21s; }
.d4 { transition-delay: .30s; }
.d5 { transition-delay: .39s; }

/* ──────────────────────────────────────
   10. TAGS & CHIPS
────────────────────────────────────── */
.tag {
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
}

/* Tool chip */
.tool-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: none;
  transition: border-color .25s, background .25s;
}
.tool-chip:hover { border-color: var(--border-2); background: var(--surface); }
.tool-chip img {
  width: 16px; height: 16px;
  object-fit: contain;
  filter: none;
  opacity: 0.72;
  transition: opacity .25s;
}
.tool-chip:hover img { opacity: 1; }
[data-theme="light"] .tool-chip img { opacity: 0.80; }
[data-theme="light"] .tool-chip:hover img { opacity: 1; }
.tool-chip span {
  font-size: 13px; font-weight: 500;
  color: var(--text-2); white-space: nowrap;
  transition: color .25s;
}
.tool-chip:hover span { color: var(--text); }

/* Live tag */
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.6); }
}

/* ──────────────────────────────────────
   11. MARQUEE
────────────────────────────────────── */
.marquee-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 40px;
  width: max-content;
  animation: mq 26s linear infinite;
}
.marquee-track span {
  font-size: 12px; font-weight: 500;
  color: var(--text-3); white-space: nowrap;
  letter-spacing: .04em;
}
@keyframes mq {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ──────────────────────────────────────
   12. FLOATING CTA
────────────────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 90;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s, transform .4s var(--ease-expo);
  pointer-events: none;
}
.floating-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta .btn { gap: 8px; box-shadow: 0 8px 32px var(--accent-dim); }
.f-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--btn-primary-text);
  animation: pulse 1.5s ease-in-out infinite;
}

/* ──────────────────────────────────────
   13. FOOTER
   컴포넌트 스펙: 항상 다크 배경 (#111), 흰 텍스트
────────────────────────────────────── */
footer {
  background: #111111;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px var(--ph);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.f-logo { color: #FFFFFF; }
.f-logo-text { font-size: 14px; font-weight: 800; letter-spacing: -.02em; color: #FFFFFF; }
.f-logo-text span { color: #9EFF00; }
/* legacy compat */
.f-logo > a > span { color: #9EFF00; }
.f-links { display: flex; gap: 24px; }
.f-links a { font-size: 13px; color: rgba(255,255,255,0.42); transition: color .2s; }
.f-links a:hover { color: #FFFFFF; }
.f-copy { font-size: 12px; color: rgba(255,255,255,0.36); }

/* ──────────────────────────────────────
   14. BLOG CARD  (블로그 페이지 준비)
────────────────────────────────────── */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: none;
  transition: border-color .25s, transform .35s var(--ease-expo);
}
.card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.card-thumb {
  aspect-ratio: 16/9;
  background: var(--bg-3);
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease-expo);
}
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-category {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-title {
  font-size: 18px; font-weight: 700;
  line-height: 1.4; letter-spacing: -.015em;
  margin-bottom: 10px;
}
.card-desc { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 18px;
  font-size: 12px; color: var(--text-3);
}

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ──────────────────────────────────────
   15. FORM COMPONENTS  (견적/문의 페이지 준비)
────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-2);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit; font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.form-select option { background: var(--bg-2); }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Checkbox / Radio */
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: none; }
.form-check-input {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1px solid var(--border-2);
  border-radius: 4px;
  background: var(--surface);
  appearance: none; cursor: none;
  transition: background .2s, border-color .2s;
  margin-top: 2px;
}
.form-check-input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.form-check-label { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ──────────────────────────────────────
   16. PAGE HEADER  (내부 페이지 공통)
────────────────────────────────────── */
.page-header {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--border);
}
.page-header-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.page-header-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.page-header-desc {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.85;
  color: var(--text-2);
  max-width: 600px;
}

/* ──────────────────────────────────────
   17. PAGINATION  (블로그 준비)
────────────────────────────────────── */
.pagination {
  display: flex; align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
}
.page-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  cursor: none;
  transition: border-color .2s, background .2s, color .2s;
}
.page-btn:hover, .page-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}
.page-btn.active { background: var(--accent-dim); }

/* ──────────────────────────────────────
   18. BADGE / STATUS
────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-neutral { background: var(--surface-2); color: var(--text-2); }

/* ──────────────────────────────────────
   19. DIVIDER
────────────────────────────────────── */
.divider {
  width: 100%; height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ──────────────────────────────────────
   20. RESPONSIVE
────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --ph: 24px; }
  .nav-links .btn-ghost:not(.keep-mobile) { display: none; }
  footer { flex-direction: column; text-align: center; }
  .f-links { justify-content: center; }
  .floating-cta { bottom: 20px; right: 20px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .s-pad    { padding: 80px 0; }
  .s-pad-lg { padding: 100px 0; }
  .blog-grid { grid-template-columns: 1fr; }
}
