:root {
  --bg: #d9d6d1;
  --surface: #e5e2dd;
  --surface-2: #efede8;
  --text: #171717;
  --muted: #5f5f5f;
  --line: rgba(23, 23, 23, 0.12);
  --line-strong: rgba(23, 23, 23, 0.22);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --radius: 22px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Noto Sans KR",
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(217, 214, 209, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  font-size: 0.95rem;
  color: var(--muted);
}

.header-nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 72px 0 40px;
}

.hero-inner {
  text-align: center;
}

.hero-logo {
  width: min(280px, 60vw);
  margin: 0 auto 28px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-copy {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Apps */
.apps-section {
  padding: 24px 0 88px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.app-card {
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  margin-bottom: 18px;
  background: #dcd9d4;
  object-fit: cover;
}

.app-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  font-weight: 800;
}

.app-card-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.card-link {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Subpage */
.subpage-main {
  padding: 44px 0 80px;
}

.app-detail-card,
.policy-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-detail-card {
  padding: 28px;
  margin-bottom: 24px;
}

.app-detail-top {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.app-detail-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  background: #dcd9d4;
  flex-shrink: 0;
}

.detail-label {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-detail-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.02em;
}

.detail-copy {
  margin: 0;
  color: var(--muted);
}

.policy-card {
  padding: 32px 28px;
}

.policy-card h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.policy-card h3 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
}

.policy-card p,
.policy-card li {
  color: #2a2a2a;
}

.policy-card ul {
  padding-left: 20px;
}

.updated {
  color: var(--muted);
}

.policy-card hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive */
@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    padding-top: 56px;
  }

  .header-inner {
    min-height: 64px;
  }

  .brand-text {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
  }

  .app-detail-top {
    flex-direction: column;
  }

  .app-detail-icon {
    width: 84px;
    height: 84px;
  }

  .policy-card,
  .app-detail-card,
  .app-card {
    border-radius: 18px;
  }
}
