:root {
  --bg: #fffdf8;
  --bg-alt: #fff4e6;
  --text: #1f1d1a;
  --muted: #5f5a52;
  --accent: #e8702a;
  --accent-dark: #c45a1a;
  --sky: #4a90c2;
  --line: #eadfce;
  --radius: 16px;
  --header-h: 64px; /* 고정 머리 높이(.header-inner) */
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 위 메뉴로 이동할 때 고정 머리(높이 + 아래 선 1px)에 가리지 않게 */
section[id] { scroll-margin-top: calc(var(--header-h) + 1px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--text); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 100; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 253, 248, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap;
  /* 누르는 영역 44px 이상(보이는 글자 크기·위치는 그대로) */
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
}
.nav a:hover { color: var(--accent); }

/* hero */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 196, 120, .45), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(74, 144, 194, .18), transparent 45%);
}
.eyebrow { letter-spacing: .2em; font-weight: 700; color: var(--accent); font-size: .85rem; margin: 0 0 12px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.3; margin: 0 0 20px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: .15s;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { border: 2px solid var(--text); }
.btn.ghost:hover { background: var(--text); color: #fff; }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 16px; }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin: 0 0 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { margin: 0 0 8px; color: var(--accent-dark); }
.card p { margin: 0; color: var(--muted); }

/* offbeat */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.badge {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--sky); color: #fff; font-size: .85rem; font-weight: 700;
}
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.features li { padding-left: 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.features strong { display: block; color: var(--text); }
.note { font-size: .95rem; color: var(--muted); margin: 0; }

.mock {
  background: #fff; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(120, 70, 20, .12); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 10px 16px; border-radius: 16px; max-width: 80%; font-size: .95rem; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }

/* contact */
.contact { text-align: center; }
.contact .section-lead { margin-inline: auto; }
.mail {
  display: inline-block; font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800;
  color: var(--accent-dark); text-decoration: none; border-bottom: 3px solid currentColor;
  max-width: 100%; overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound .lead { margin-inline: auto; }
.notfound .actions { justify-content: center; }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .nav { gap: 14px; font-size: .95rem; }
  .brand span { display: none; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .section-lead { margin-bottom: 32px; }
}

/* 휴대폰 폭(약 320~414px) */
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .nav { gap: 12px; font-size: .9rem; }
  .hero { padding: 56px 0 48px; }
  h1 { font-size: 1.75rem; }
  .lead { font-size: 1.05rem; }
  .section { padding: 56px 0; }
  .section-lead { font-size: 1rem; }
  .btn { padding: 11px 18px; }
  .card { padding: 22px; }
  .mock-body { padding: 18px; }
  .bubble { max-width: 88%; }
  .mail { font-size: 1.2rem; }
  .notfound { padding: 32px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
