/* Chromission Web — shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-elev: #f7f7f9;
  --bg-soft: #fafbfc;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111418;
  --text-muted: #5b6370;
  --text-soft: #8a8f98;
  --brand: #2f6bff;
  --brand-soft: #eaf0ff;
  --accent: #ff7a59;
  --shadow: 0 1px 2px rgba(17, 20, 24, 0.04), 0 4px 12px rgba(17, 20, 24, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg-elev: #15181f;
    --bg-soft: #1a1d25;
    --border: #262a33;
    --border-strong: #353a45;
    --text: #f1f3f5;
    --text-muted: #a8aeb8;
    --text-soft: #6f7682;
    --brand: #5b8bff;
    --brand-soft: #1c2540;
    --accent: #ff8a6c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
    'Malgun Gothic', system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 18px 64px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: conic-gradient(
    from 210deg,
    #ff7a59 0deg,
    #ffd166 90deg,
    #06d6a0 180deg,
    #2f6bff 270deg,
    #ff7a59 360deg
  );
  flex: none;
}
.site-nav {
  display: flex;
  gap: 4px;
  font-size: 13px;
}
.site-nav a {
  color: var(--text-muted);
  padding: 6px 8px;
  border-radius: 8px;
}
.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--bg-elev);
}

.hero {
  padding: 28px 4px 8px;
}
.hero h1 {
  font-size: 28px;
  line-height: 1.25;
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}
.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-card {
  margin-top: 20px;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.grid-cell {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 22px;
}
.grid-cell:nth-child(1) { background: linear-gradient(135deg, #ffd1a8, #ff7a59); }
.grid-cell:nth-child(2) { background: linear-gradient(135deg, #cde2ff, #5b8bff); }
.grid-cell:nth-child(3) { background: linear-gradient(135deg, #d6f5e2, #06d6a0); }
.grid-cell:nth-child(5) { background: linear-gradient(135deg, #fff3b5, #ffd166); }
.grid-cell:nth-child(7) { background: linear-gradient(135deg, #e9d6ff, #b388ff); }
.grid-cell:nth-child(9) { background: linear-gradient(135deg, #ffd6e0, #ff5d8f); }

section {
  margin-top: 36px;
}
section > h2 {
  font-size: 20px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
section > p {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.feature-card {
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.feature-card h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.feature-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.mission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex: none;
}
.step h3 {
  margin: 2px 0 4px;
  font-size: 16px;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.tag {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-muted);
}

/* Legal document layout */
.doc h1 {
  font-size: 24px;
  margin: 8px 0 6px;
  letter-spacing: -0.01em;
}
.doc .meta {
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 18px;
}
.doc h2 {
  font-size: 17px;
  margin: 28px 0 8px;
  padding-top: 8px;
}
.doc h3 {
  font-size: 15px;
  margin: 18px 0 6px;
  color: var(--text);
}
.doc p,
.doc li {
  font-size: 15px;
  color: var(--text);
}
.doc ul,
.doc ol {
  padding-left: 20px;
  margin: 8px 0 12px;
}
.doc ul li,
.doc ol li {
  margin-bottom: 4px;
}
.doc strong {
  font-weight: 600;
}

.toc {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 8px;
}
.toc h2 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}
.toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
}
.toc ol li {
  margin-bottom: 2px;
}
.toc a {
  color: var(--text-muted);
}
.toc a:hover {
  color: var(--text);
}

.callout {
  border-left: 3px solid var(--brand);
  background: var(--bg-elev);
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
}

table.simple {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 12px;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.simple thead th {
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 10px;
  font-weight: 600;
  white-space: nowrap;
}
table.simple tbody td {
  border: 1px solid var(--border);
  padding: 10px;
  vertical-align: top;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 20px 18px 36px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}
.site-footer .links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.site-footer .links a {
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .container {
    padding: 28px 24px 80px;
  }
  .hero {
    padding: 36px 0 8px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .feature-list {
    grid-template-columns: 1fr 1fr;
  }
  .doc h1 {
    font-size: 28px;
  }
}

@media (min-width: 960px) {
  .hero h1 {
    font-size: 40px;
  }
}
