/* Boltmoa hub — pure static, no external resources.
   Mobile-first, dark/light via prefers-color-scheme. */

:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --text: #1c2430;
  --text-muted: #5a6675;
  --accent: #1d3557;        /* deep steel navy */
  --accent-contrast: #f1f5f9;
  --border: #d7dde4;
  --badge-bg: #e8edf3;
  --badge-text: #44546a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181e;
    --bg-alt: #1a2029;
    --surface: #1f2733;
    --text: #e6eaf0;
    --text-muted: #9aa7b6;
    --accent: #7fa6d9;
    --accent-contrast: #101722;
    --border: #303b4a;
    --badge-bg: #28313e;
    --badge-text: #aeb9c8;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Segoe UI", "Malgun Gothic", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  word-break: keep-all;
}

.container {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Hero --- */

.hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero-brand {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.bolt-mark {
  display: inline-block;
  vertical-align: middle;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
}

.hero-sub {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.cta-group {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* --- Buttons --- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  min-width: 14rem;
  text-align: center;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.1);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--badge-bg);
}

.btn.is-disabled {
  color: var(--text-muted);
  border-color: var(--border);
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Sections --- */

section {
  padding: 3rem 0;
}

h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

/* --- Lens --- */

.lens {
  border-bottom: 1px solid var(--border);
}

.lens-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.lens-slogan {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.lens-desc {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.lens p:last-child {
  margin-top: 1.25rem;
}

/* --- Items grid --- */

.items {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.items-sub {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.items-grid {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.items-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.items-grid small {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
}

/* --- Contact --- */

.contact p {
  margin-top: 0.75rem;
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand {
  font-weight: 700;
  color: var(--text);
}

.footer-meta {
  margin-top: 0.5rem;
}

.footer-links {
  margin-top: 0.75rem;
}

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

.link-disabled {
  color: var(--text-muted);
}

/* --- Wider screens --- */

@media (min-width: 40rem) {
  h1 {
    font-size: 2.5rem;
  }

  .cta-group {
    flex-direction: row;
    justify-content: center;
  }

  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* [hidden] must win over .badge display (QA B-1) */
.badge[hidden] { display: none; }
