:root {
  --bg: #f1f3f5;
  --surface: #ffffff;
  --surface-card: #f8f9fa;
  --ink: #0a0a0a;
  --text-secondary: #495057;
  --muted: #868e96;
  --border: #dee2e6;
  --brand: #4c6ef5;
  --brand-dark: #3b5bdb;
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-body);
  background-color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

/* ---- HEADER ---- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--border);
}

.header-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header-meta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- HERO ---- */

.hero {
  margin-bottom: 40px;
}

.hero-heading {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-sub {
  margin: 0;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---- SERVICE GRID ---- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* ---- CARD ---- */

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10, 10, 10, 0.08);
}

/* ---- CARD INTERNALS ---- */

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.08em;
}

.card-domain {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.card-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.card-desc {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 40ch;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.card-tags li {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 160ms ease;
}

.card-cta:hover {
  background: var(--brand-dark);
}

/* ---- FOOTER ---- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-email {
  color: var(--brand);
  font-weight: 600;
}

/* ---- RESPONSIVE ---- */

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: calc(100% - 32px);
    padding: 20px 0 44px;
  }

  .site-header {
    margin-bottom: 40px;
  }

  .hero {
    margin-bottom: 32px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .card {
    padding: 22px;
  }
}
