:root {
  --bg: #f7f3eb;
  --surface: #fffdf8;
  --text: #2c2416;
  --muted: #6b5f4d;
  --accent: #8b4513;
  --accent-soft: #e8d5c4;
  --ok: #2d6a4f;
  --fail: #9b2226;
  --border: #e2d8c8;
  --shadow: 0 8px 24px rgba(44, 36, 22, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  background: linear-gradient(180deg, #f7f3eb 0%, #efe6d8 100%);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: 'Noto Serif KR', serif;
  font-size: 1.6rem;
  box-shadow: var(--shadow);
}

.brand strong {
  display: block;
  font-size: 1.25rem;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pill-ok {
  background: #d8f3dc;
  color: var(--ok);
}

.pill-fail {
  background: #fde2e4;
  color: var(--fail);
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-btn {
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.nav-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.text-ok { color: var(--ok); }
.text-fail { color: var(--fail); }

.api-list {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.8;
}

.api-list code {
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 12px;
  font-family: 'Noto Serif KR', serif;
  font-size: 2rem;
}

.hero-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.status-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.status-card strong {
  font-size: 1.4rem;
}

.notice {
  border-radius: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.notice p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.notice code {
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.notice-error {
  background: #fff5f5;
  border-color: #f5c2c7;
}

.notice-info {
  background: #f0f7ff;
  border-color: #b6d4fe;
}

.app-footer {
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 24px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}
