@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --bg: #0e0f11;
  --bg-2: #17181b;
  --ink: #f2efe9;
  --ink-2: #b9b4ab;
  --ink-3: #7d786f;
  --accent: #e8a33d;
  --accent-ink: #1a1206;
  --line: rgba(242, 239, 233, 0.12);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }

.h-display {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: clamp(34px, 6.4vw, 88px);
  margin: 0;
}
.h-2 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
  font-size: clamp(26px, 3.6vw, 48px);
  margin: 0;
}
.lead { color: var(--ink-2); font-size: clamp(15px, 1.3vw, 18px); max-width: 34em; margin: 18px 0 0; }
.small { color: var(--ink-3); font-size: 13px; }
.accent { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform 160ms ease-out, background 160ms ease-out;
}
.btn:hover { transform: translateY(-2px); background: #f0b257; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(242,239,233,.06); }

/* 상단 바 — 모든 데모 공통 */
.kit-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  font-size: 14px; font-weight: 600;
  background: linear-gradient(rgba(14,15,17,.72), rgba(14,15,17,0));
  pointer-events: none;
}
.kit-bar a { pointer-events: auto; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(14,15,17,.55); border: 1px solid var(--line); backdrop-filter: blur(8px); }

/* 데모 아래 일반 섹션 */
.after { padding-block: clamp(80px, 14vw, 180px); }
.after .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.after .cell { background: var(--bg-2); border-radius: var(--r); padding: 28px; }
.after .cell b { display: block; font-size: 18px; margin-bottom: 8px; letter-spacing: -0.015em; }
.after .cell p { margin: 0; color: var(--ink-2); }
.band {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r);
  padding: clamp(32px, 6vw, 72px);
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.band .h-2 { max-width: 16em; }
.band .btn { background: var(--accent-ink); color: var(--ink); }
.band .btn:hover { background: #2b2012; }

footer.kit-foot { padding: 40px var(--gutter) 56px; color: var(--ink-3); font-size: 13px; text-align: center; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 줄바꿈 규칙: 문장마다 새 줄, 긴 문장은 줄 길이를 고르게 */
.sent { display: block; }
p, .sent, h1, h2, h3, .cell b { text-wrap: balance; }
