:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --ink: #17171a;
  --muted: #5f5f66;
  --line: #e2e0da;
  --accent: #2f5bd3;
  --accent-ink: #ffffff;
  --accent-soft: #e7ecfb;
  --night: #0e1016;
  --night-ink: #f3f2ee;
  --night-muted: #b9bac2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 30, 0.06), 0 12px 32px rgba(20, 20, 30, 0.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121317; --surface: #1b1d23; --ink: #ecebe6; --muted: #a6a7af; --line: #2c2e36;
    --accent: #7c9bf2; --accent-ink: #0e1016; --accent-soft: #232b45;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.google { background: #ffffff; color: #1f1f1f; border-color: #dadce0; }
.btn.google svg { width: 20px; height: 20px; flex: none; }
.btn[hidden], .who[hidden] { display: none; }

/* ---------- 머리글 ---------- */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(16px, 4vw, 48px);
  color: var(--night-ink);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(47, 91, 211, 0.25); }
.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-account { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-account .btn:not(.ghost) { background: rgba(255, 255, 255, 0.14); color: var(--night-ink); border-color: rgba(255, 255, 255, 0.28); }
.who { font-size: 14px; color: var(--night-muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 첫 화면 ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92vh, 860px);
  display: flex; align-items: flex-end;
  background: var(--night); color: var(--night-ink);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 18, 0.92) 0%, rgba(10, 12, 18, 0.72) 38%, rgba(10, 12, 18, 0.15) 75%),
    linear-gradient(0deg, rgba(10, 12, 18, 0.85) 0%, rgba(10, 12, 18, 0) 45%);
}
.hero-copy { position: relative; z-index: 2; width: min(640px, 100%); padding: 120px clamp(16px, 5vw, 64px) clamp(48px, 9vh, 96px); }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: #a9bdf7; }
.hero h1 { margin: 0; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.15; letter-spacing: -0.035em; font-weight: 780; }
.lead { margin: 20px 0 0; font-size: clamp(16px, 1.5vw, 19px); color: var(--night-muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn.ghost { color: var(--night-ink); border-color: rgba(255, 255, 255, 0.45); }
.fine { margin: 16px 0 0; font-size: 13.5px; color: var(--night-muted); }

/* ---------- 기능 ---------- */
section { padding: clamp(64px, 10vw, 112px) clamp(16px, 5vw, 64px); }
section h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; letter-spacing: -0.03em; text-align: center; }
.section-lead { margin: 12px auto 0; text-align: center; color: var(--muted); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1180px; margin: 48px auto 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
.card-body { padding: 22px 22px 26px; }
.step { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.card h3 { margin: 6px 0 8px; font-size: 20px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- 작업 순서 ---------- */
.flow { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 40px auto 0; padding: 0; }
.steps li { counter-increment: s; padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 8px; }
.steps strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.steps span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- 마무리·바닥 ---------- */
.closing { text-align: center; }
.closing .cta { justify-content: center; }
.closing .btn.ghost { color: var(--ink); }
.foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center;
  padding: 28px 16px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line);
}
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.badge { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 600; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .who { display: none !important; }
  .hero { min-height: 640px; }
  .hero-img { object-position: 70% 50%; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 12, 18, 0.95) 0%, rgba(10, 12, 18, 0.7) 55%, rgba(10, 12, 18, 0.35) 100%); }
  .hero-copy { padding-top: 160px; }
  .cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
