:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --line: #d9e0ea;
  --text: #1c2430;
  --muted: #667085;
  --blue: #2457c5;
  --blue-soft: #e8f0ff;
  --red: #d9343f;
  --red-soft: #fff0f1;
  --green: #177c59;
  --yellow: #f4bf45;
  --shadow: 0 12px 28px rgba(28, 36, 48, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Pretendard, "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 224, 234, 0.92);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-lockup img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 5px;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 18px;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 13px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.top-nav a {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.top-nav a:hover {
  border-color: var(--line);
  color: var(--blue);
  background: var(--blue-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  align-items: center;
  gap: 28px;
  min-height: 430px;
  padding: 44px 0 24px;
}

.hero-copy,
.page-title {
  display: grid;
  gap: 16px;
}

.page-title {
  padding: 44px 0 12px;
}

.hero-mark {
  min-height: 300px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(36, 87, 197, 0.1), transparent 45%),
    linear-gradient(315deg, rgba(217, 52, 63, 0.12), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
  padding: 36px;
}

.hero-mark img {
  max-height: 210px;
  object-fit: contain;
}

.eyebrow,
.badge,
.chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: var(--radius);
  font-weight: 800;
}

.eyebrow {
  padding: 6px 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 18px;
}

.lead,
.section-heading p,
.card p {
  color: var(--muted);
}

.lead {
  max-width: 720px;
  font-size: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
}

.section {
  padding: 18px 0 30px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading p {
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.card,
.metric-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.metric-card strong {
  color: var(--blue);
  font-size: 30px;
}

.metric-card span,
.meta,
.mono {
  color: var(--muted);
}

.badge {
  padding: 5px 8px;
  font-size: 12px;
}

.badge.candidate {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge.approved {
  background: #e8f7f1;
  color: var(--green);
}

.badge.generated {
  background: #fff7dd;
  color: #8a6500;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.meta {
  display: grid;
  gap: 5px;
}

.preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 18px;
}

.preview--dark {
  background: #1c2430;
}

.preview--soft {
  background: var(--surface-2);
}

.preview img {
  max-height: 260px;
  object-fit: contain;
}

.product-card .preview {
  min-height: 136px;
}

.product-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.category-card {
  min-height: 150px;
}

.category-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-list {
  display: grid;
  gap: 10px;
}

.path-list .card {
  gap: 6px;
  padding: 14px 16px;
}

.surface-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.surface {
  min-height: 180px;
  padding: 18px;
}

.surface--dark {
  color: #ffffff;
  background: #1c2430;
}

.surface__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.surface__logos img {
  max-height: 62px;
  width: auto;
}

.error-card {
  color: #8b1f2c;
  background: var(--red-soft);
}

@media (max-width: 1020px) {
  .grid-3,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-bar,
  .hero,
  .section-heading,
  .grid-2,
  .grid-3,
  .product-grid,
  .metric-row,
  .surface-row {
    grid-template-columns: 1fr;
  }

  .header-bar,
  .section-heading {
    display: grid;
    align-items: start;
  }

  .header-bar {
    padding: 14px 0;
  }

  .hero {
    min-height: auto;
  }
}
