:root {
  --color-background: #050505;
  --color-background-100: #0b0b0b;
  --color-background-200: #101010;
  --color-panel: rgba(255, 255, 255, 0.03);
  --color-panel-strong: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.18);
  --color-text: #f4f4f1;
  --color-text-muted: #a0a0a0;
  --color-text-soft: #777777;
  --color-accent: #ffb1ee;
  --color-accent-strong: #f39fe4;
  --color-accent-green: #00cfb7;
  --color-surface: #151515;
  --color-surface-strong: #1d1d1d;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, monospace;
  --font-pixel: "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 177, 238, 0.09), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 207, 183, 0.1), transparent 22%),
    var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 5, 5, 0.84);
  border-bottom: 1px solid var(--color-border);
}

.site-header-inner,
.page-shell,
.site-footer-inner {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
}

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

.header-left,
.header-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 1.8vw, 28px);
  letter-spacing: 0.14em;
}

.brand-mark span {
  color: var(--color-accent);
}

.brand-mark.small {
  font-size: 16px;
}

.header-nav a,
.footer-links a,
.footer-owner,
.back-link {
  color: var(--color-text-muted);
  transition: color 160ms ease;
}

.header-nav a:hover,
.footer-links a:hover,
.footer-owner:hover,
.back-link:hover {
  color: var(--color-text);
}

.button,
.filter-chip,
.toggle-button,
.icon-button {
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.button:hover,
.filter-chip:hover,
.toggle-button:hover,
.icon-button:hover {
  border-color: var(--color-border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.button-accent,
.button-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #0a0a0a;
  font-weight: 700;
}

.button-accent:hover,
.button-primary:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
}

.button-secondary {
  background: var(--color-panel);
}

.button.fill {
  width: 100%;
}

.page-shell {
  padding: 28px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.list-section,
.usage-card,
.intro-copy,
.preview-section,
.detail-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.hero-panel {
  padding: 32px;
  border-right: 1px solid var(--color-border);
}

.hero-panel:last-child {
  border-right: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.display-title {
  margin: 0 0 16px;
  font-family: var(--font-pixel);
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: 0.04em;
}

.hero-lede {
  margin: 0;
  max-width: 620px;
  color: var(--color-text-muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow span {
  color: var(--color-accent);
}

.stat-list {
  margin-top: 18px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.stat-row strong {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 16px;
}

.feature-eyebrow {
  margin-top: 26px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.featured-link,
.featured-cta {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
}

.featured-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.06);
}

.featured-cta {
  border: 1px dashed var(--color-border);
  font-style: italic;
}

.mini-window {
  min-height: 100%;
  border: 2px solid #9f9f9f;
  background: #c0c0c0;
  color: #111;
  box-shadow: inset 0 0 0 2px #e7e7e7;
}

.mini-window-bar {
  padding: 6px 10px;
  background: #000080;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
}

.brand-strip {
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 280px;
  padding: 0 14px;
}

.brand-strip-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
  animation: marquee 26s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.list-section,
.usage-card,
.intro-copy,
.preview-section,
.detail-hero {
  margin-top: 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

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

.section-kicker {
  margin: 0 0 6px;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-family: var(--font-mono);
}

.section-heading h2,
.detail-hero h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
}

.search-input {
  width: min(320px, 100%);
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  padding: 0 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 12px;
  color: var(--color-text-muted);
}

.filter-chip span {
  color: var(--color-accent);
  margin-left: 4px;
  font-family: var(--font-mono);
}

.filter-chip.is-active,
.toggle-button.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--color-text);
}

.table-shell {
  margin-top: 18px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
}

.table-head,
.design-row {
  display: grid;
  grid-template-columns: 56px 160px minmax(0, 1fr) 90px 100px;
  align-items: center;
  gap: 12px;
}

.table-head {
  padding: 14px 18px;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.03);
}

.design-row {
  padding: 14px 18px;
  border-top: 1px solid var(--color-border);
  transition: background 160ms ease;
}

.design-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.row-badge {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
}

.row-name {
  font-weight: 700;
}

.row-description,
.detail-subtitle,
.usage-card p,
.intro-copy p,
.markdown-body,
.empty-state {
  color: var(--color-text-muted);
  line-height: 1.7;
}

.row-description {
  min-width: 0;
}

.row-stat {
  color: var(--color-text-soft);
  text-align: right;
  font-family: var(--font-mono);
}

.empty-state {
  margin: 0;
  padding: 18px;
}

.detail-subtitle {
  margin: 14px 0 0;
  max-width: 820px;
  font-size: 18px;
}

.usage-card {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 18px;
}

.usage-command,
.metric-card,
.terminal-line,
.preview-frame-shell,
.markdown-shell {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.usage-command {
  padding: 20px;
}

.terminal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 0 14px;
  background: #0a0a0a;
  font-family: var(--font-mono);
  color: #e0e0e0;
}

.icon-button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--color-text-muted);
}

.usage-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.metric-card {
  min-height: 68px;
  padding: 14px;
}

.metric-card span {
  display: block;
  color: var(--color-text-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--color-accent);
  font-size: 18px;
}

.usage-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-accent);
}

.preview-toolbar,
.toggle-group,
.markdown-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toggle-group {
  flex-wrap: wrap;
}

.toggle-button {
  min-height: 36px;
  padding: 0 12px;
  color: var(--color-text-muted);
}

.preview-frame-shell {
  overflow: hidden;
}

.preview-frame-shell iframe {
  display: block;
  width: 100%;
  min-height: 2800px;
  border: 0;
  background: #fff;
}

.markdown-shell {
  padding: 18px;
}

.markdown-toolbar {
  margin-bottom: 18px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--color-text);
  line-height: 1.2;
}

.markdown-body code,
.markdown-body pre,
.markdown-body table th,
.markdown-body table td {
  font-family: var(--font-mono);
}

.markdown-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.markdown-body pre {
  padding: 16px;
  overflow: auto;
  border-radius: 14px;
  background: #090909;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.markdown-body th,
.markdown-body td {
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--color-border);
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 22px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 22px 0 34px;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--color-text-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
}

@media (max-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero-panel:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 920px) {
  .usage-card {
    grid-template-columns: 1fr;
  }

  .usage-stats {
    grid-template-columns: 1fr;
  }

  .table-head,
  .design-row {
    grid-template-columns: 48px 1fr;
  }

  .table-head span:nth-child(n + 3),
  .design-row .row-description,
  .design-row .row-stat {
    display: none;
  }

  .site-footer-inner,
  .section-heading,
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .page-shell,
  .site-header-inner,
  .site-footer-inner {
    width: min(100vw - 20px, 1480px);
  }

  .hero-panel,
  .list-section,
  .usage-card,
  .intro-copy,
  .preview-section,
  .detail-hero {
    padding: 20px;
  }

  .display-title {
    font-size: 52px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .small-hide {
    display: none;
  }
}
