﻿:root {
  --white: #ffffff;
  --bg: #ececec;
  --surface: #f7f7f7;
  --card: #ffffff;
  --text: #121212;
  --muted: #6b7280;
  --line: #dddddd;
  --mint: #13cfa3;
  --blue: #4f7cff;
  --violet: #8b6df6;
  --cta-grad: linear-gradient(135deg, var(--mint) 0%, var(--blue) 55%, var(--violet) 100%);
  --accent: var(--blue);
}

[data-theme='dark'] {
  --bg: #111214;
  --surface: #181a1f;
  --card: #1f232b;
  --text: #f8f9fb;
  --muted: #b2bccb;
  --line: #2c3240;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Noto Sans KR', sans-serif;
}

.brand-serif { font-family: 'Noto Sans KR', sans-serif; font-weight: 900; letter-spacing: -0.02em; }
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
[data-theme='dark'] .top-nav {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.nav-inner { height: 72px; }
.site-main { padding-top: 96px; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.desktop-nav a:hover { color: var(--text); }

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 14px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-cta {
  background: var(--cta-grad);
  color: #ffffff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--blue) 24%, transparent);
}
.btn-cta:hover { filter: brightness(1.06); }
.btn-ghost {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 34px;
}
.hero-copy {
  padding-top: 18px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.23;
  letter-spacing: -0.03em;
}
.hero-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.hero-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.hero-rail::-webkit-scrollbar { display: none; }
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 418px;
  display: flex;
  flex-direction: column;
}
.hero-media {
  width: 100%;
  height: 305px;
  object-fit: cover;
  display: block;
}
.hero-meta { padding: 14px; }
.hero-meta h3 {
  margin: 0 0 6px;
  font-size: 1.33rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hero-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 22px;
  margin: 20px 0;
  background: var(--surface);
}
.section-title { font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.2; margin: 0 0 8px; }
.section-sub { color: var(--muted); max-width: 760px; line-height: 1.7; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.process { counter-reset: step; }
.process li {
  list-style: none;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.process li::before {
  counter-increment: step;
  content: '0' counter(step);
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
}

.portfolio-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.portfolio-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 102px;
  margin-top: 58px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  padding: 10px 16px 12px;
}
.sticky-inner {
  max-width: 1200px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--white) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
[data-theme='dark'] .sticky-inner { background: color-mix(in srgb, var(--surface) 92%, transparent); }

input, select, textarea {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
}

@media (max-width: 860px) {
  .page-wrap { padding: 0 16px; }
  .site-main { padding-top: 88px; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section-panel { padding: 22px 16px; }
  .sticky-inner { flex-direction: column; align-items: stretch; }
}
