:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --subtle: #a1a1aa;
  --border: #e4e4e7;
  --accent: #2f6fed;
  --accent-soft: #eaf1fe;
  --warm: #ff7a45;
  --radius: 20px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --surface: #16161a;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --subtle: #71717a;
    --border: #27272a;
    --accent: #6b9bff;
    --accent-soft: #17213a;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 24px; }
.nav a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }

/* Hero */
.hero { padding: 120px 0 96px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 14em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 36em;
}
.hero-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }

/* Sections */
section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}
.section-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.about-card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.about-card h3 { margin-top: 12px; font-size: 19px; letter-spacing: -0.02em; }
.about-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Projects */
.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  margin-bottom: 24px;
  overflow: hidden;
}
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.project-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}
.project-tag.live { color: #16a34a; border-color: color-mix(in srgb, #16a34a 35%, transparent); }
.project-tag.soon { color: var(--warm); border-color: color-mix(in srgb, var(--warm) 35%, transparent); }
.project h3 {
  font-size: clamp(26px, 3.5vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.project h3 small {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 6px;
}
.project > p { margin-top: 20px; color: var(--muted); max-width: 40em; }
.features {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.features li {
  font-size: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
}

.video {
  margin-top: 36px;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.shots {
  margin: 36px -48px -48px;
  padding: 0 48px 48px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.shots img {
  flex: 0 0 auto;
  width: 220px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  scroll-snap-align: start;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

/* Contact */
.contact-card {
  background: var(--text);
  color: var(--bg);
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.contact-card p.lead { margin-top: 16px; opacity: .7; }
.contact-list { list-style: none; display: grid; gap: 20px; }
.contact-list dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .55;
}
.contact-list dd { margin-top: 4px; font-size: 17px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.email-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.copy-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.copy-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer .biz { line-height: 1.9; }
.site-footer a { color: var(--muted); }

/* Legal page */
.legal { padding: 80px 0 96px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; }
.legal .meta { margin-top: 8px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 40px; font-size: 20px; letter-spacing: -0.02em; }
.legal p, .legal li { margin-top: 12px; color: var(--muted); }
.legal ul { padding-left: 20px; }

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .hero { padding: 72px 0 56px; }
  section { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; }
  .project { padding: 28px 22px; border-radius: 22px; }
  .shots { margin: 28px -22px -28px; padding: 0 22px 28px; }
  .shots img { width: 168px; }
  .contact-card { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; border-radius: 22px; }
}
