:root {
  --page-max: 1220px;
  --sidebar-width: 264px;
  --surface: #ffffff;
  --surface-soft: color-mix(in srgb, var(--acellere-color-warm-white) 82%, white 18%);
  --line: rgb(6 11 38 / 10%);
  --muted: rgb(6 11 38 / 62%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--acellere-color-background-primary);
  color: var(--acellere-color-text-primary);
  font-family: var(--acellere-font-body);
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  background: rgb(250 248 244 / 86%);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand-home { text-decoration: none; display: grid; gap: 10px; }
.brand-home img { width: 162px; height: auto; object-fit: contain; object-position: left center; }
.brand-home span {
  font-family: var(--acellere-font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-nav { margin-top: 48px; display: grid; gap: 8px; }
.side-nav a {
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: .18s ease;
}
.side-nav a:hover,
.side-nav a:focus-visible {
  color: var(--acellere-color-deep-navy);
  background: white;
  outline: none;
}
.source-card {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}
.source-card div { display: grid; gap: 3px; }
.source-card strong { font-size: 12px; }
.source-card span:last-child { font-size: 11px; color: var(--muted); }
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acellere-color-coral);
  margin-top: 4px;
}

main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  background: rgb(246 243 238 / 82%);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 48px;
}
.mobile-brand { display: none; }
.search-box {
  width: min(420px, 100%);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
}
.search-box span { font-size: 20px; line-height: 1; color: var(--muted); }
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--acellere-color-deep-navy);
  background: transparent;
}
.search-box input::placeholder { color: rgb(6 11 38 / 42%); }

.hero,
.section,
footer,
.empty-state {
  width: min(calc(100% - 96px), var(--page-max));
  margin-inline: auto;
}
.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 48px;
  align-items: center;
  padding: 80px 0 64px;
}
.hero-copy { max-width: 760px; }
.eyebrow {
  display: inline-block;
  color: var(--acellere-color-coral);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-family: var(--acellere-font-heading);
  font-size: 12px;
  font-weight: 800;
}
.hero h1 {
  margin: 14px 0 20px;
  font-family: var(--acellere-font-heading);
  font-size: clamp(44px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero p,
.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.hero p { max-width: 670px; margin: 0; }
.hero-mark {
  aspect-ratio: 1;
  border-radius: 48px;
  background: white;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  box-shadow: var(--acellere-shadow-subtle);
}
.hero-mark img { width: 58%; }

.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section[hidden] { display: none; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}
.section-head h2,
.subsection-head h3,
.style-card h3 {
  font-family: var(--acellere-font-heading);
  color: var(--acellere-color-deep-navy);
}
.section-head h2 { margin: 8px 0 6px; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.035em; }
.section-head p { margin: 0; max-width: 660px; }
.subsection-head { margin: 48px 0 20px; }
.subsection-head h3,
.style-card h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.025em; }

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.color-card {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.color-card:hover { transform: translateY(-2px); box-shadow: var(--acellere-shadow-subtle); }
.color-swatch { height: 145px; background: var(--swatch); }
.color-meta { padding: 16px; display: grid; gap: 4px; }
.color-meta strong { font-family: var(--acellere-font-heading); font-size: 14px; }
.color-meta code { color: var(--muted); font-size: 12px; }

.token-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.token-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
}
.token-dot { width: 34px; height: 34px; border-radius: 11px; background: var(--swatch); border: 1px solid rgb(6 11 38 / 8%); flex: 0 0 auto; }
.token-chip div { min-width: 0; display: grid; gap: 2px; }
.token-chip strong { font-size: 12px; }
.token-chip code { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.type-card { padding: 28px; border-radius: 28px; background: white; border: 1px solid var(--line); }
.type-card .type-role { color: var(--acellere-color-coral); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.type-card h3 { margin: 12px 0 22px; font-size: 40px; }
.type-sample { margin: 0 0 18px; font-size: clamp(30px, 3vw, 48px); line-height: 1.05; }
.weight-row { display: flex; gap: 8px; flex-wrap: wrap; }
.weight-pill { padding: 7px 10px; border-radius: 999px; background: var(--acellere-color-soft-sand); font-size: 11px; }

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.asset-card { overflow: hidden; border-radius: 26px; border: 1px solid var(--line); background: white; }
.asset-preview { min-height: 220px; padding: 32px; display: grid; place-items: center; background: var(--preview-bg, #fff); }
.asset-preview img { max-width: 82%; max-height: 150px; object-fit: contain; }
.icon-grid .asset-preview { min-height: 300px; }
.icon-grid .asset-preview img { max-height: 220px; }
.asset-body { padding: 18px; border-top: 1px solid var(--line); }
.asset-body h3 { margin: 0 0 5px; font-family: var(--acellere-font-heading); font-size: 16px; }
.asset-body p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.asset-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--acellere-color-soft-sand);
  color: var(--acellere-color-deep-navy);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.action-btn.primary { background: var(--acellere-color-coral); border-color: var(--acellere-color-coral); }

.style-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.style-card { background: white; border: 1px solid var(--line); border-radius: 28px; padding: 26px; }
.style-title-row { margin-bottom: 22px; }
.spacing-list, .radius-list { display: grid; gap: 12px; }
.spacing-row, .radius-row { display: grid; grid-template-columns: 80px 1fr 70px; gap: 14px; align-items: center; }
.spacing-row code, .radius-row code { font-size: 11px; color: var(--muted); }
.space-visual { height: 18px; width: var(--space); max-width: 100%; background: var(--acellere-color-coral); border-radius: 999px; }
.radius-visual { height: 44px; width: 100%; background: var(--acellere-color-deep-navy); border-radius: var(--radius); }

.token-table-wrap { background: white; border-radius: 26px; border: 1px solid var(--line); overflow: hidden; }
.token-table { width: 100%; border-collapse: collapse; }
.token-table th, .token-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.token-table th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.token-table td { font-size: 12px; }
.token-table tr:last-child td { border-bottom: 0; }
.token-table code { font-size: 11px; }
.token-table td:last-child { width: 1%; white-space: nowrap; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { border-radius: 28px; overflow: hidden; background: white; border: 1px solid var(--line); }
.product-band { height: 120px; display: flex; }
.product-band span { flex: 1; }
.product-copy { padding: 24px; }
.product-copy h3 { margin: 0 0 8px; font-family: var(--acellere-font-heading); font-size: 23px; }
.product-copy p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.product-meta span { padding: 7px 10px; background: var(--acellere-color-soft-sand); border-radius: 999px; font-size: 11px; }

.empty-state { padding: 80px 0; display: grid; gap: 6px; text-align: center; }
.empty-state strong { font-family: var(--acellere-font-heading); font-size: 24px; }
.empty-state span { color: var(--muted); }
footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--acellere-color-deep-navy);
  color: var(--acellere-color-warm-white);
  font-size: 12px;
  font-weight: 600;
  transition: .2s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .token-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 72px; padding: 12px 20px; justify-content: space-between; gap: 16px; }
  .mobile-brand { display: block; font-family: var(--acellere-font-heading); font-weight: 800; font-size: 14px; }
  .mobile-brand span { color: var(--acellere-color-coral); }
  .search-box { width: min(360px, 70vw); }
  .hero, .section, footer, .empty-state { width: min(calc(100% - 40px), var(--page-max)); }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 56px; }
  .hero-mark { max-width: 300px; }
  .type-grid, .style-columns, .product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 16px; }
  .section { padding: 58px 0; }
  .color-grid, .asset-grid, .token-chip-grid { grid-template-columns: 1fr; }
  .color-swatch { height: 130px; }
  .asset-preview { min-height: 190px; }
  .token-table th:nth-child(2), .token-table td:nth-child(2) { display: none; }
  .spacing-row, .radius-row { grid-template-columns: 72px 1fr 56px; }
  footer { flex-direction: column; }
}
