:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --fg: #0b1220;
  --muted: #5b6577;
  --line: #e3e8f0;
  --card: #ffffff;
  --accent: #2f6bff;
  --accent-2: #12c7b0;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #0f1829;
    --fg: #e8edf6;
    --muted: #9aa6ba;
    --line: #1e2a40;
    --card: #111b2e;
    --accent: #5b8cff;
    --accent-2: #2fe0c6;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand.small { font-size: 15px; }
.logo { width: 30px; height: 30px; color: var(--fg); }
.menu { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--muted); }
.menu a:hover { color: var(--fg); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.menu .btn { color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--muted); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 112px 0 104px; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero-in { position: relative; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.grad { background: linear-gradient(95deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 620px; margin-top: 24px; font-size: 19px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 48px 0 0; }
.chips li { font-size: 13px; font-weight: 500; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }

/* sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.sub { margin-top: 14px; max-width: 640px; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--bg-alt); color: var(--muted); }
.ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent); }
.steps span { font-size: 13px; font-weight: 700; color: var(--accent); }
.steps h3 { font-size: 19px; margin: 6px 0 8px; }
.steps p { font-size: 15px; color: var(--muted); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.work { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: border-color .15s ease, transform .15s ease; }
a.work:hover { border-color: var(--accent); transform: translateY(-2px); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent); padding: 3px 9px; border-radius: 6px; }
.work h3 { font-size: 20px; margin: 14px 0 6px; }
.work p { color: var(--muted); font-size: 15px; flex: 1; }
.go { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.go.muted { color: var(--muted); font-weight: 500; }

.contact { background: linear-gradient(135deg, #0b1220, #14234a); color: #e8edf6; }
.contact .eyebrow { color: #7fa3ff; }
.contact .sub { color: #aab6cc; }
.contact-in { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.mail {
  flex-shrink: 0; font-size: 20px; font-weight: 700; padding: 18px 26px; border-radius: 12px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.mail:hover { background: rgba(255, 255, 255, .14); }

.foot { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .works { grid-template-columns: 1fr; }
  .contact-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .menu a:not(.btn) { display: none; }
  .hero { padding: 72px 0 64px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .mail { font-size: 17px; padding: 14px 18px; width: 100%; text-align: center; }
}
