/* supplAI v4 공통 — 메인과 REVIEW가 함께 쓰는 것만 둔다: 떠 있는 독 헤더, 푸터, 키캡 로고, 스크롤 등장, 접근성.
   색은 메인(type03) 기준: 브랜드 그린 #00a855 · 잉크 그린 #0b2417 · 라임 #b7ff2a. 변수는 페이지 CSS와 겹치지 않게 --sp- 접두어. */
:root {
  --sp-green: #00a855;
  --sp-green-dark: #008447;
  --sp-ink: #0b2417;
  --sp-lime: #b7ff2a;
  --sp-foot: #04110b;
  --sp-on-ink: #eef3ee;
  --sp-on-ink2: #a3b3a8;
  --sp-iline: rgba(218, 239, 226, .16);
  --sp-pad: clamp(20px, 4vw, 64px);
  --sp-max: 1440px;
  --sp-ease: cubic-bezier(.32, .72, 0, 1);
  --sp-sans: "Geist", "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --sp-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html { scroll-padding-top: 96px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 6px; background: var(--sp-green); color: #fff; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--sp-green); outline-offset: 4px; }
[hidden] { display: none !important; }  /* 페이지 CSS의 display 지정보다 우선 — 필터·탭이 hidden으로 숨긴다 */

/* ---------- 키캡 로고 (로고 애셋 SVG) ---------- */
.keycap-svg { display: block; height: 60px; width: auto; overflow: visible; }
.keycap-svg .kt { transition: transform .28s var(--sp-ease); }
.keycap-svg:hover .kt { transform: translateY(2px); }
.keycap-svg:active .kt { transform: translateY(6px); }
.ghost-key { display: inline-block; padding-bottom: 7px; border-radius: 12px; background: #00101e; }
.ghost-key .gk-top { display: block; padding: 18px 24px; border-radius: 12px; background: #283038; color: #fff; font-size: 24px; font-weight: 800; line-height: 1; transition: transform .28s var(--sp-ease); }

/* ---------- 독 헤더: 화면에 붙지 않는 잉크색 알약 ---------- */
.dock { position: fixed; top: 18px; left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 30px; width: max-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 8px 8px 8px 20px; border-radius: 999px; font-family: var(--sp-sans); }
.dock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(11, 36, 23, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px -24px rgba(11, 36, 23, .8); }
.dock > * { position: relative; }
.dock .logo { z-index: 1; display: block; }
.dock .logo .keycap-svg { height: 28px; }
#site-nav { display: flex; gap: 32px; font-size: 14px; color: var(--sp-on-ink2); }
#site-nav a { color: inherit; text-decoration: none; transition: color .3s var(--sp-ease); }
#site-nav a:hover { color: #fff; }
.dock-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--sp-green); color: #fff; font-size: 12px; font-weight: 650; letter-spacing: .1em; white-space: nowrap; text-decoration: none; transition: background .3s var(--sp-ease); }
.dock-cta:hover { background: var(--sp-green-dark); }
.dock-cta .ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: transform .4s var(--sp-ease); }
.dock-cta:hover .ic { transform: translate(2px, -1px); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; z-index: 2; }
.nav-toggle i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--sp-on-ink); transition: transform .5s var(--sp-ease), top .5s var(--sp-ease); }
.nav-toggle i:first-child { top: 18px; }
.nav-toggle i:last-child { top: 25px; }
.dock.open .nav-toggle i:first-child { top: 21.5px; transform: rotate(45deg); }
.dock.open .nav-toggle i:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- 스크롤 등장 ---------- */
.js [data-reveal] { opacity: 0; translate: 0 40px; }
.js [data-reveal].in { opacity: 1; translate: 0 0; transition: opacity .9s var(--sp-ease), translate .9s var(--sp-ease); transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- 푸터 (메인 디자인 기준) ---------- */
.site-foot { background: var(--sp-foot); color: var(--sp-on-ink); font-family: var(--sp-sans); }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot .shell { width: min(100%, var(--sp-max)); margin-inline: auto; padding-inline: var(--sp-pad); }
.site-foot__top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 48px; padding-block: 64px; border-bottom: 1px solid var(--sp-iline); }
.site-foot__top .keycap-svg { height: 34px; }
.site-foot__nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 50px; font-size: 14px; color: var(--sp-on-ink2); }
.site-foot__nav a { padding: 8px 0; transition: color .3s var(--sp-ease); }
.site-foot__nav a:hover { color: #fff; }
.site-foot__line { justify-self: end; margin: 0; text-align: right; font-size: 12px; line-height: 1.75; color: var(--sp-on-ink2); }
.site-foot__line span { display: block; }
.site-foot__wl { display: block; width: min(100%, var(--sp-max)); margin-inline: auto; padding: 54px var(--sp-pad) 66px; border-bottom: 1px solid var(--sp-iline); transition: background-color .3s var(--sp-ease), color .3s var(--sp-ease); }
.site-foot__wl:hover { background: var(--sp-lime); color: #061006; }
.site-foot__wl > span { display: block; margin-bottom: 30px; font-family: var(--sp-mono); font-size: 10px; letter-spacing: .25em; color: var(--sp-on-ink2); }
.site-foot__wl:hover > span { color: rgba(6, 16, 6, .62); }
.site-foot__wl > div { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; }
.site-foot__wl small { padding-bottom: 12px; font-family: var(--sp-mono); font-size: 11px; letter-spacing: .22em; }
.site-foot__wl strong { font-size: clamp(56px, 10vw, 150px); font-weight: 730; line-height: .8; letter-spacing: -.075em; color: transparent; background: linear-gradient(105deg, rgba(243, 245, 239, .34) 0%, rgba(243, 245, 239, .58) 38%, rgba(183, 255, 42, .82) 50%, rgba(243, 245, 239, .58) 62%, rgba(243, 245, 239, .34) 100%) 120% / 220% 100%; -webkit-background-clip: text; background-clip: text; animation: sweep 10s cubic-bezier(.45, .05, .55, .95) infinite; }
.site-foot__wl:hover strong { color: #061006; background: none; animation: none; }
.site-foot__wl svg { opacity: .58; }
.site-foot__wl:hover svg { opacity: 1; }
@keyframes sweep { 0%, 18% { background-position: 120%; } 62%, 100% { background-position: -120%; } }
.site-foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 24px 28px; font-family: var(--sp-mono); font-size: 10px; letter-spacing: .17em; color: rgba(192, 204, 195, .55); }

/* ---------- 반응형 ---------- */
@media (max-width: 920px) {
  .site-foot__top { grid-template-columns: 1fr 1fr; }
  .site-foot__line { display: none; }
}
@media (max-width: 768px) {
  .dock { justify-content: space-between; gap: 12px; width: calc(100% - 32px); padding: 8px 8px 8px 16px; }
  .dock .dock-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  #site-nav { position: fixed; inset: 0; z-index: 0; flex-direction: column; justify-content: center; gap: 6px; padding: 96px var(--sp-pad) 48px; background: rgba(11, 36, 23, .92); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); visibility: hidden; opacity: 0; transition: opacity .5s var(--sp-ease), visibility 0s var(--sp-ease) .5s; }
  .dock.open #site-nav { visibility: visible; opacity: 1; transition: opacity .5s var(--sp-ease); }
  #site-nav a { padding: 12px 0; border-bottom: 1px solid var(--sp-iline); font-size: 34px; font-weight: 650; letter-spacing: -.03em; color: var(--sp-on-ink); opacity: 0; translate: 0 36px; transition: opacity .6s var(--sp-ease), translate .6s var(--sp-ease); }
  .dock.open #site-nav a { opacity: 1; translate: 0 0; }
  .dock.open #site-nav a:nth-child(1) { transition-delay: .08s; }
  .dock.open #site-nav a:nth-child(2) { transition-delay: .16s; }
  .dock.open #site-nav a:nth-child(3) { transition-delay: .24s; }
  .site-foot__top { grid-template-columns: 1fr; gap: 40px; }
  .site-foot__wl { padding: 45px var(--sp-pad) 50px; }
  .site-foot__wl > div { grid-template-columns: 1fr auto; gap: 18px; }
  .site-foot__wl small { grid-column: 1 / -1; }
  .site-foot__wl strong { font-size: clamp(36px, 12.5vw, 50px); }
  .site-foot__wl svg { width: 36px; height: 36px; }
  .site-foot__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .dock .dock-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .keycap-svg .kt, .ghost-key .gk-top { transition: none; }
  .site-foot__wl strong { animation: none; }
}
