/* ===== 디자인 토큰 (색상은 여기서 한 번에 바꿀 수 있습니다) =====
   대표 앱 Clipboard+ 의 브랜드 팔레트(딥 네이비 + 틸)를 그대로 사용합니다.
   colorPrimary #2F3B59 · colorPrimaryVariant #1E2A47 · colorSecondary(teal) #4DB6AC */
:root {
  --brand: #2f3b59;        /* 앱 colorPrimary (딥 네이비) */
  --brand-2: #3e4e76;      /* 그라디언트용 밝은 네이비 */
  --brand-dark: #1e2a47;   /* 앱 colorPrimaryVariant */
  --accent: #4db6ac;       /* 앱 colorSecondary (틸 액센트) */
  --accent-dark: #38948b;  /* 틸 hover */
  --accent-tint: #e3f0ee;  /* 틸 컨테이너 틴트 */
  --link-teal: #2f8f84;    /* 링크용 진한 틸 (흰 배경 가독성 확보) */
  --link-teal-h: #1f6d64;  /* 링크 hover (더 진한 틸) */
  --brand-tint: #e9edf4;   /* 아이콘 칩·배지 배경 (네이비 틴트) */
  --ink: #101828;
  --body: #3d4457;
  --muted: #6f7686;
  --line: #e5e8ef;
  --line-soft: #f0f2f7;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;       /* 앱 surfaceContainerLow */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow: 0 8px 28px rgba(30, 42, 71, .08);
  --shadow-lg: 0 24px 60px rgba(30, 42, 71, .16);
  --ring: 0 0 0 4px rgba(47, 59, 89, .18);
  --grad-brand: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 58%, var(--accent) 145%);
  --grad-teal: linear-gradient(135deg, #35998e 0%, #2a8479 55%, #1f6d64 130%); /* 버튼용 진한 틸 (흰 글자 대비) */
  --max: 1120px;
}

/* ===== 기본 리셋 ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; }
h1, h2 { letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: rgba(77, 182, 172, .22); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ===== 스크롤 리빌 (site.js가 .is-in 을 붙임) ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-teal); color: #fff;
  box-shadow: 0 8px 20px rgba(31, 109, 100, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31, 109, 100, .40); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--link-teal-h); transform: translateY(-2px); }

/* ===== 헤더 / 네비게이션 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(20, 30, 60, .06);
  background: rgba(255, 255, 255, .85);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-weight: 900; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.logo span { color: var(--brand); }
.logo.small { font-size: 18px; }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; font-weight: 500; color: var(--body); transition: color .2s; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right .25s ease;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* 언어 전환 (드롭다운) */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink);
  padding: 7px 13px; transition: border-color .2s, color .2s, box-shadow .2s;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-sm); }
.lang-btn .caret { font-size: 10px; color: var(--muted); transition: transform .2s; }
.lang-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 168px;
  display: none; z-index: 60; max-height: 72vh; overflow-y: auto;
}
.lang-menu.open { display: block; animation: pop .18s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.lang-item {
  display: block; padding: 9px 14px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--body); white-space: nowrap;
  transition: background .15s, color .15s;
}
.lang-item:hover { background: var(--bg-alt); color: var(--link-teal-h); }
.lang-item.is-active { color: var(--link-teal-h); background: var(--accent-tint); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== 히어로 ===== */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(760px 380px at 12% -8%, #e6ecf6 0%, transparent 60%),
    radial-gradient(820px 440px at 100% -4%, #e3f1ee 0%, transparent 58%),
    var(--bg);
  padding: 108px 0 96px;
  text-align: center;
}
/* 미세 그리드 오버레이 (가장자리로 자연스럽게 페이드) */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(to right, rgba(47, 59, 89, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 59, 89, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 78%);
}
.eyebrow {
  display: inline-block; margin-bottom: 20px;
  padding: 7px 15px; border-radius: 999px;
  background: rgba(77, 182, 172, .12); border: 1px solid rgba(77, 182, 172, .30);
  color: var(--accent-dark); font-weight: 700; letter-spacing: 1.5px; font-size: 12.5px;
}
.hero h1 { font-size: clamp(34px, 5.6vw, 58px); font-weight: 900; letter-spacing: -.03em; }
.hero-sub { color: var(--muted); margin: 22px auto 36px; font-size: 18px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* 히어로 지표 스트립 (Play Store 데이터) */
.hero-stats {
  list-style: none; margin: 52px 0 0; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 18px clamp(24px, 5vw, 56px);
}
.hstat { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; padding: 0 6px; }
.hstat + .hstat::before {
  content: ''; position: absolute; left: calc(clamp(24px, 5vw, 56px) / -2); top: 50%;
  transform: translateY(-50%); width: 1px; height: 34px; background: var(--line);
}
.hstat-num { font-size: clamp(28px, 4.4vw, 38px); font-weight: 900; color: var(--brand); letter-spacing: -.02em; line-height: 1; }
.hstat-label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ===== 섹션 공통 ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-label {
  display: inline-block; margin-bottom: 12px;
  padding: 6px 13px; border-radius: 999px;
  background: var(--accent-tint); color: var(--link-teal-h);
  font-weight: 700; letter-spacing: 1.5px; font-size: 12px;
}
.section-title { font-size: clamp(27px, 4vw, 40px); font-weight: 900; margin: 4px 0 16px; }
.section-lead { color: var(--muted); max-width: 640px; font-size: 17px; margin-bottom: 48px; }

/* 회사명 의미 (CodeDAC = Code + Development And Consulting) */
.name-meaning {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 6px 0 22px; padding: 12px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 15px; font-weight: 700;
}
.name-meaning .nm-brand { color: var(--ink); font-weight: 900; letter-spacing: -.02em; }
.name-meaning .nm-brand span { color: var(--brand); }
.name-meaning .nm-eq { color: var(--muted); }
.name-meaning .nm-expand { color: var(--body); font-weight: 500; }
.name-meaning .nm-expand b { color: var(--brand); font-weight: 900; }

/* ===== 그리드 & 카드 ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 서비스 그리드 */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.services-cta { text-align: center; margin-top: 40px; }

/* 기술 스택 배지 */
.tech-stack { text-align: center; margin-top: 52px; }
.tech-label { color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.tech-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-badges li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.tech-badges li:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfd6e4; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 18px;
  border-radius: 14px; font-size: 27px;
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px rgba(47, 59, 89, .08);
}

/* ===== 앱 그리드 ===== */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.app-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfd6e4; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 15px; object-fit: cover;
  box-shadow: 0 6px 16px rgba(20, 30, 60, .16);
}
.app-meta h3 { font-size: 19px; }
.app-meta-row { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.app-tag {
  display: inline-block;
  background: var(--accent-tint); color: var(--link-teal-h);
  font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px;
}
.app-langs { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.app-langs .globe { font-size: 12.5px; line-height: 1; }
.app-desc { color: var(--muted); font-size: 14.5px; flex: 1; }

/* 스크린샷 썸네일 */
.app-shots { display: flex; gap: 10px; margin-top: 16px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.app-shots .shot {
  height: 150px; border-radius: 12px; border: 1px solid var(--line);
  cursor: zoom-in; flex: 0 0 auto; transition: transform .2s ease, box-shadow .2s ease;
  background: var(--bg-alt); scroll-snap-align: start;
}
.app-shots .shot:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow); }
.app-shots::-webkit-scrollbar { height: 6px; }
.app-shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

.app-link { display: inline-block; margin-top: 16px; color: var(--link-teal); font-weight: 700; font-size: 14px; transition: color .2s; }
.app-link:hover { color: var(--link-teal-h); }

/* ===== 사용자 후기 ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.review-card {
  margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfd6e4; }
.review-stars { color: #f2a900; font-size: 15px; letter-spacing: 3px; line-height: 1; }
.review-text { margin: 0; color: var(--body); font-size: 15.5px; line-height: 1.75; }
.review-meta { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.review-name { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.review-app { color: var(--muted); font-size: 12.5px; }

/* ===== 라이트박스 ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 14, 26, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-img { max-width: 90vw; max-height: 88vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0;
  cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); transform: scale(1.06); }
.lb-close { top: 22px; right: 22px; width: 44px; height: 44px; font-size: 26px; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; line-height: 1; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ===== 푸터 ===== */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 3px; }
.footer-based { color: var(--muted); font-size: 13px; }
.footer-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-email { color: var(--brand); font-weight: 700; font-size: 14px; transition: color .2s; }
.footer-email:hover { color: var(--brand-dark); }
.site-footer p { color: var(--muted); font-size: 14px; }

/* 앱 카드의 상세 페이지 링크 */
.app-card .app-meta h3 a { color: inherit; }
.app-card .app-meta h3 a:hover { color: var(--brand); }
.app-more { display: inline-block; margin-top: 16px; margin-right: 16px; color: var(--link-teal); font-weight: 700; font-size: 14px; transition: color .2s; }
.app-more:hover { color: var(--link-teal-h); }
.app-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-top: auto; }
.app-links .app-link, .app-links .app-more { margin-top: 16px; }

/* ===== 앱 상세 페이지 ===== */
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 22px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--line); margin: 0 8px; }
.breadcrumb .current { color: var(--body); }

.app-hero-d { padding: 30px 0 14px; }
.app-hero-inner { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.app-icon-lg {
  width: 96px; height: 96px; flex: 0 0 96px;
  border-radius: 24px; object-fit: cover;
  box-shadow: 0 12px 30px rgba(20, 30, 60, .2);
}
.app-hero-text { flex: 1; min-width: 260px; }
.app-hero-text h1 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 900; letter-spacing: -.03em; margin-bottom: 12px; }
.app-tagline { color: var(--body); font-size: 18px; margin-top: 12px; max-width: 640px; }
.app-hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.app-platform-note { color: var(--muted); font-size: 14px; margin-top: 14px; }

.detail-section { padding: 48px 0; border-top: 1px solid var(--line); }
.detail-title { font-size: 22px; font-weight: 900; margin-bottom: 22px; letter-spacing: -.02em; }
.detail-long { font-size: 17px; color: var(--body); max-width: 780px; }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; }
.feature-list li { position: relative; padding-left: 32px; color: var(--body); font-size: 15.5px; }
.feature-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent-dark);
  border-radius: 6px; font-size: 12px; font-weight: 900;
}

.faq-list { display: grid; gap: 14px; max-width: 840px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; background: var(--bg); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: #cfd6e4; box-shadow: var(--shadow); }
.faq-q { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.faq-a { color: var(--muted); font-size: 15px; }

.detail-shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.detail-shots .shot {
  height: 380px; border-radius: 18px; border: 1px solid var(--line);
  cursor: zoom-in; flex: 0 0 auto; background: var(--bg-alt); transition: transform .2s ease, box-shadow .2s ease;
  scroll-snap-align: start;
}
.detail-shots .shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.detail-shots::-webkit-scrollbar { height: 6px; }
.detail-shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }

.detail-cta { text-align: center; padding: 54px 0 10px; }

/* ===== 법적 고지(개인정보처리방침 등) ===== */
.legal { max-width: 860px; margin: 0 auto; padding: 40px 24px 80px; }
.legal .eff { color: var(--muted); font-size: 14px; margin-top: 6px; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 900; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--body); font-size: 15.5px; line-height: 1.8; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal a { color: var(--brand); font-weight: 500; }
.legal a:hover { color: var(--brand-dark); }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--brand); font-weight: 700; }
.legal .note { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 18px 0; font-size: 14.5px; }

/* ===== 반응형 ===== */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 84px 0 72px; }
  .section { padding: 72px 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .app-shots .shot { height: 130px; }
  .feature-list { grid-template-columns: 1fr; }
  .detail-shots .shot { height: 300px; }
  .app-hero-inner { gap: 18px; }
  .app-icon-lg { width: 72px; height: 72px; flex-basis: 72px; }
  .lb-nav { width: 42px; height: 42px; font-size: 26px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .br-pc { display: none; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 260px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-toggle { display: flex; }
}

/* ===== 모션 최소화 선호 ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== 다크 모드 토글 버튼 ===== */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--line); cursor: pointer;
  color: var(--ink); font-size: 15px; line-height: 1; padding: 0;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.ti-light { display: none; }
:root[data-theme="dark"] .ti-dark { display: none; }
:root[data-theme="dark"] .ti-light { display: inline; }

/* ===== 다크 모드 팔레트 (대표 앱 Clipboard+ 다크 테마 기반: 네이비/틸) ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #8ea3cc;        /* 라이트 네이비 — 로고·지표 숫자 (다크 배경 가독) */
  --brand-2: #6f86b8;
  --brand-dark: #b9c6e2;
  --accent: #4db6ac;
  --accent-dark: #63c6bb;  /* 다크에서 밝은 틸 (아이라인·체크마크) */
  --accent-tint: #16302c;  /* 다크 틸 칩 배경 */
  --brand-tint: #1c2431;   /* 다크 네이비 칩 배경 */
  --link-teal: #64c8bd;    /* 다크 배경 인라인 링크 */
  --link-teal-h: #86d8ce;
  --ink: #f1f4f9;
  --body: #c3c9d4;
  --muted: #8b93a3;
  --line: #282e3a;
  --line-soft: #20252e;
  --bg: #0f1115;
  --bg-alt: #161a21;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
  --shadow: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  --ring: 0 0 0 4px rgba(77, 182, 172, .35);
}

/* 하드코딩된 라이트 색 보정 (다크) */
:root[data-theme="dark"] .site-header { background: rgba(15, 17, 21, .72); }
:root[data-theme="dark"] .site-header.is-scrolled { background: rgba(15, 17, 21, .88); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(760px 380px at 12% -8%, #172234 0%, transparent 60%),
    radial-gradient(820px 440px at 100% -4%, #10231e 0%, transparent 58%),
    var(--bg);
}
:root[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
}
:root[data-theme="dark"] .card:hover,
:root[data-theme="dark"] .app-card:hover,
:root[data-theme="dark"] .faq-item:hover,
:root[data-theme="dark"] .review-card:hover { border-color: #39424f; }
:root[data-theme="dark"] .app-tag,
:root[data-theme="dark"] .section-label { box-shadow: inset 0 0 0 1px rgba(77, 182, 172, .12); }

@media (max-width: 640px) {
  :root[data-theme="dark"] .nav { background: var(--bg); }
}
