:root {
  --bg: #FAF7F2; --ink: #1E2A44; --blue: #3B6EF6; --coral: #FF6B5E; --yellow: #FFC24B;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; line-height: 1.6; word-break: keep-all; }

/* ---- 공통 레이아웃 ---- */
section { max-width: 960px; margin: 0 auto; padding: 72px 24px; }
h1 { font-size: 2.6rem; line-height: 1.25; letter-spacing: -0.02em; }
h2 { font-size: 1.8rem; letter-spacing: -0.01em; margin-bottom: 12px; }
h3 { font-size: 1.05rem; margin-bottom: 4px; }
.section-sub { color: #5A6478; margin-bottom: 28px; }

.cta-btn {
  display: inline-block; background: var(--blue); color: #fff; border: 0; cursor: pointer;
  padding: 14px 28px; border-radius: 12px; font-size: 1.05rem; font-weight: 700;
  text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 0 #2A50C0;
}
.cta-btn:hover { transform: translateY(-2px); }
.cta-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #2A50C0; }
.cta-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- 히어로 ---- */
#hero { padding-top: 88px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
.brand-line { font-size: 1.05rem; margin-bottom: 20px; }
.brand-line strong { color: var(--blue); font-size: 1.25rem; letter-spacing: -0.01em; }
.tagline { color: #5A6478; }
.hero-sub { font-size: 1.15rem; color: #5A6478; margin: 16px 0 32px; }

/* ---- 문제 공감 ---- */
#problem { text-align: center; }
.problem-text { max-width: 620px; margin: 0 auto; color: #444E63; }

/* ---- 업무 카드 ---- */
.job-cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job-cards li {
  background: #fff; border: 1px solid #EDE7DC; border-radius: 16px; padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(30, 42, 68, 0.05);
}
.job-cards p { color: #5A6478; font-size: 0.92rem; }
.job-icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }

/* ---- 차별점 ---- */
.why-list { list-style: none; counter-reset: why; display: grid; gap: 16px; }
.why-list li {
  background: #fff; border: 1px solid #EDE7DC; border-radius: 16px; padding: 24px 24px 24px 72px;
  position: relative; counter-increment: why;
}
.why-list li::before {
  content: counter(why); position: absolute; left: 24px; top: 26px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.why-list p { color: #5A6478; }

/* ---- 신청 폼 ---- */
#signup { max-width: 560px; }
#signup-form { background: #fff; border: 1px solid #EDE7DC; border-radius: 20px; padding: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #D8D2C6; border-radius: 10px;
  font-size: 1rem; background: #FDFCFA; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.form-error { color: var(--coral); font-weight: 700; margin-bottom: 12px; }
.form-done { background: #fff; border: 1px solid #EDE7DC; border-radius: 20px; padding: 28px; margin-bottom: 16px; }
#form-fallback a { margin-top: 8px; }

/* ---- 푸터 ---- */
#site-footer { text-align: center; padding: 48px 24px 64px; color: #5A6478; border-top: 1px solid #EDE7DC; margin-top: 40px; }
#site-footer a { color: var(--blue); }
.copyright { font-size: 0.85rem; margin-top: 8px; }

/* ---- 히어로 하이라이트 ---- */
.hl { background: linear-gradient(transparent 60%, var(--yellow) 60%, var(--yellow) 90%, transparent 90%); }

/* ---- 아이소메트릭 오피스 장면 (시그니처) ---- */
.iso-scene { position: relative; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.iso-floor {
  position: relative; width: 250px; height: 250px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(45deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 49px, #EDE3D2 49px 50px),
    repeating-linear-gradient(90deg, transparent 0 49px, #EDE3D2 49px 50px),
    #FFF8EC;
  border-radius: 10px;
  box-shadow: 0 0 0 6px #F3EBDD;
}
.box { position: absolute; width: var(--w); height: var(--d); transform-style: preserve-3d; transform: translateZ(var(--z, 0px)); }
.box i { position: absolute; display: block; }
.box .t { width: var(--w); height: var(--d); transform: translateZ(var(--h)); background: var(--ct); }
.box .f { width: var(--w); height: var(--h); bottom: 0; transform-origin: bottom; transform: rotateX(-90deg); background: var(--cf); }
.box .s { width: var(--h); height: var(--d); right: 0; transform-origin: right; transform: rotateY(90deg); background: var(--cs); }
.desk { --ct: #3B6EF6; --cf: #2A50C0; --cs: #1E3A8F; }
.mon  { --ct: #FFFFFF; --cf: #E3DED2; --cs: #CFC8B8; }
.wall { --ct: #FF6B5E; --cf: #D14E42; --cs: #B03A30; }
.lamp { --ct: #FFC24B; --cf: #D99B27; --cs: #B57E1B; }

/* 말풍선 */
.bubble {
  position: absolute; top: 6%; right: 4%;
  background: #fff; border: 1.5px solid #EDE3D2; border-radius: 14px 14px 14px 4px;
  padding: 10px 14px; font-size: 0.9rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(30, 42, 68, 0.08);
  animation: bob 3s ease-in-out infinite alternate;
}
.bubble.reply {
  top: auto; bottom: 10%; right: auto; left: 2%;
  border-radius: 14px 14px 4px 14px;
  color: var(--blue);
  animation-delay: 1.2s;
}
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* ---- 카드 미세 인터랙션 ---- */
.job-cards li { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.job-cards li:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(30, 42, 68, 0.09); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble { animation: none; }
  .job-cards li, .cta-btn { transition: none; }
}

/* ---- 반응형 ---- */
@media (max-width: 640px) {
  section { padding: 48px 20px; }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.45rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .job-cards { grid-template-columns: 1fr; }
  .iso-scene { min-height: 280px; transform: scale(0.82); }
}
