:root {
  color-scheme: light dark;
  --page: #f4f6f8;
  --surface: #fbfcfd;
  --surface-strong: #ffffff;
  --text: #172238;
  --muted: #5b6678;
  --line: #d8dee7;
  --accent: #174b88;
  --accent-hover: #0d386d;
  --focus: #1675c1;
  --dark-preview: #172238;
  --radius: 14px;
  --shadow: 0 16px 44px rgb(20 39 68 / 0.09);
  font-family: Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
  white-space: nowrap;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  min-height: min(620px, calc(100dvh - 68px));
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
  padding: 64px 0 86px;
}

.intro-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-copy p {
  max-width: 480px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.brand-preview {
  display: grid;
  gap: 18px;
  align-content: center;
}

.brand-preview-item {
  min-height: 188px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  box-shadow: var(--shadow);
}

.brand-preview-ncc {
  transform: translateX(-34px);
}

.brand-preview-sfg {
  transform: translateX(34px);
}

.brand-preview img {
  display: block;
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.usage-note {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.usage-note h2,
.usage-note p {
  margin: 0;
}

.usage-note h2 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.usage-note div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
}

.asset-group {
  padding: 92px 0 16px;
  scroll-margin-top: 40px;
}

.group-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

.group-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.group-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.asset-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 8px 28px rgb(20 39 68 / 0.06);
}

.asset-preview {
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 42px;
  background-color: #eef2f6;
  background-image:
    linear-gradient(45deg, rgb(23 34 56 / 0.055) 25%, transparent 25%),
    linear-gradient(-45deg, rgb(23 34 56 / 0.055) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgb(23 34 56 / 0.055) 75%),
    linear-gradient(-45deg, transparent 75%, rgb(23 34 56 / 0.055) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.asset-card[data-background="dark"] .asset-preview {
  background: var(--dark-preview);
}

.asset-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.asset-details {
  padding: 24px;
}

.asset-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.asset-title-row h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.format {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.asset-use {
  min-height: 50px;
  margin: 10px 0 0;
  color: var(--muted);
}

.asset-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.asset-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

button,
.download-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #f8fbff;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

button:active,
.download-link:active {
  transform: translateY(1px);
}

.download-link {
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.download-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.copy-status {
  min-height: 20px;
  margin: 9px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.loading-card {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-strong) 48%, var(--surface) 66%);
  background-size: 220% 100%;
}

.error-message {
  padding: 24px;
  border: 1px solid #b24b4b;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 86px auto 0;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101723;
    --surface: #151e2d;
    --surface-strong: #192334;
    --text: #edf2f8;
    --muted: #b6c0ce;
    --line: #334055;
    --accent: #70baf1;
    --accent-hover: #98cdf5;
    --focus: #70baf1;
    --dark-preview: #0b111c;
    --shadow: 0 16px 44px rgb(2 8 18 / 0.28);
  }

  .asset-preview {
    background-color: #e8edf3;
  }

  button {
    color: #102136;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  button,
  .download-link,
  nav a {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .loading-card {
    animation: loading-sweep 1.4s ease-in-out infinite;
  }
}

@keyframes loading-sweep {
  to {
    background-position-x: -120%;
  }
}

@media (max-width: 767px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), 1180px);
  }

  .site-header {
    min-height: 62px;
    gap: 14px;
  }

  nav {
    gap: 14px;
  }

  .intro {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 52px 0 70px;
  }

  .intro-copy h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .brand-preview-item {
    min-height: 140px;
    padding: 26px;
  }

  .brand-preview-ncc,
  .brand-preview-sfg {
    transform: none;
  }

  .usage-note,
  .usage-note div,
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .usage-note {
    gap: 24px;
  }

  .asset-group {
    padding-top: 70px;
  }

  .asset-preview {
    min-height: 210px;
    padding: 30px;
  }

  .asset-use {
    min-height: auto;
  }
}

@media (max-width: 430px) {
  .site-name {
    font-size: 16px;
  }

  nav a:nth-child(3) {
    display: none;
  }

  .asset-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
