/* Balgyeon Studio — balgyeon.kr
 *
 * 한 장짜리 소개 사이트. 외부 글꼴·스크립트·이미지를 쓰지 않는다.
 * (Caddy 가 X-Frame-Options DENY / nosniff 를 걸고 있어도 그대로 동작하고,
 *  광고 스크립트 하나 말고는 밖으로 나가는 요청이 없다.)
 */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --card: #121214;
  --ink: #f4f2ee;
  --muted: #9d9993;
  --faint: #6e6a64;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff5a3c;
  --radius: 18px;
  --max: 1080px;
  --pad: clamp(20px, 5vw, 44px);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background:
    radial-gradient(60% 60% at 18% 0%, rgba(255, 90, 60, 0.16), transparent 70%),
    radial-gradient(50% 50% at 85% 6%, rgba(90, 140, 255, 0.12), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 10;
}

.skip:focus {
  left: 0;
}

/* ── 머리 ─────────────────────────────────────────── */

.site-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}

.brand svg {
  display: block;
}

.brand small {
  color: var(--faint);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 2px;
}

.site-head nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.site-head nav a:hover {
  color: var(--ink);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

/* ── 첫 화면 ───────────────────────────────────────── */

.hero {
  padding: clamp(40px, 8vw, 92px) 0 clamp(28px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.038em;
  max-width: 17ch;
}

.hero .lede {
  margin: 26px 0 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-solid {
  background: var(--ink);
  color: #0b0b0c;
  border-color: var(--ink);
}

.btn-solid:hover {
  background: #ffffff;
}

/* ── 앱 카드 ──────────────────────────────────────── */

.section {
  padding: clamp(30px, 5vw, 54px) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head p {
  margin: 0;
  color: var(--faint);
  font-size: 13.5px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* 넓은 화면에서도 두 칸까지만. 네 장이 3+1 로 갈라지면 마지막 카드가
   혼자 남아 눈에 걸린다. */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.app {
  --tint: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.app::before {
  content: "";
  position: absolute;
  inset: -60% 40% 55% -30%;
  background: radial-gradient(closest-side, var(--tint), transparent 72%);
  opacity: 0.16;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.app:hover {
  border-color: color-mix(in srgb, var(--tint) 45%, var(--line));
  background: #141416;
  transform: translateY(-2px);
}

.app:hover::before {
  opacity: 0.26;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tint) 30%, transparent);
  background: color-mix(in srgb, var(--tint) 12%, transparent);
  color: var(--tint);
}

.app-mark svg {
  display: block;
}

.app-num {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.app h3 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.app .tag {
  margin: -8px 0 0;
  font-size: 12.5px;
  color: var(--tint);
  letter-spacing: 0.01em;
}

.app .desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.app .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.chip {
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
}

.app .open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.app .open svg {
  transition: transform 0.2s ease;
}

.app:hover .open svg {
  transform: translate(2px, -2px);
}

/* ── 소개 · 연락 ──────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.about-copy p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.8;
  max-width: 52ch;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy strong {
  color: var(--ink);
  font-weight: 600;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.facts li {
  background: var(--card);
  padding: 15px 17px;
  display: grid;
  gap: 3px;
}

.facts b {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.facts span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  margin-top: 40px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #131315, #0e0e10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 46ch;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 550;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
}

.mail:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ── 꼬리 ─────────────────────────────────────────── */

.site-foot {
  margin-top: clamp(40px, 7vw, 72px);
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  color: var(--faint);
  font-size: 12.5px;
}

.foot-inner nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.foot-inner nav a:hover {
  color: var(--ink);
}

/* ── 문서(개인정보 처리방침) ───────────────────────── */

.doc {
  padding: clamp(32px, 6vw, 64px) 0 40px;
}

.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.doc .updated {
  margin: 0 0 34px;
  color: var(--faint);
  font-size: 13px;
}

.doc h2 {
  margin: 34px 0 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.82;
}

.doc p {
  margin: 0 0 12px;
  max-width: 68ch;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 18px;
  max-width: 68ch;
}

.doc li {
  margin-bottom: 6px;
}

.doc a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.doc a:hover {
  border-color: var(--accent);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 40px;
  font-size: 13.5px;
  color: var(--muted);
}

.back:hover {
  color: var(--ink);
}

/* ── 언어 ─────────────────────────────────────────── */

html[lang="ko"] .hero h1,
html[lang="ko"] .app h3,
html[lang="ko"] .doc h1 {
  letter-spacing: -0.018em;
}

html[lang="ko"] .eyebrow,
html[lang="ko"] .section-head h2 {
  letter-spacing: 0.1em;
}

html[lang="ko"] body,
html[lang="ko"] .hero .lede {
  word-break: keep-all;
}

[data-ret] {
  display: none;
}

/* ── 좁은 화면 ────────────────────────────────────── */

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

  .site-head nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-head {
    padding: 16px var(--pad);
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero .lede {
    font-size: 15px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .contact {
    padding: 22px 18px;
  }

  .foot-inner nav {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto;
  }
}
