:root {
  --bg: #070707;
  --surface: rgba(14, 14, 14, 0.82);
  --fg: #f0eee9;
  --muted: rgba(240, 238, 233, 0.52);
  --faint: rgba(240, 238, 233, 0.14);
  --line-strong: rgba(240, 238, 233, 0.42);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#bg-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 28px 80px;
}

.hero {
  border-bottom: 1px solid var(--faint);
  padding-bottom: 34px;
  margin-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
  display: inline-block;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

h1 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero-desc {
  max-width: 440px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-desc a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

.hero-desc a:hover {
  border-color: var(--fg);
}

.model-section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.model-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.model-label span.idx {
  color: var(--muted);
}

.model-count {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--faint);
  background: var(--surface);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: transparent;
  border-style: solid;
  transition: border-color 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.card::before {
  top: 8px;
  left: 8px;
  border-width: 1px 0 0 1px;
}

.card::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 1px 1px 0;
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card:hover::before,
.card:hover::after {
  border-color: var(--fg);
}

.card-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #060606;
  border-bottom: 1px solid var(--faint);
  overflow: hidden;
}

.card-preview.paper {
  background: #f1ece1;
}

.card-preview canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.card-index {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  z-index: 2;
}

.card-preview.paper .card-index {
  color: rgba(20, 18, 16, 0.5);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card-arrow {
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.22s ease, color 0.22s ease;
}

.card:hover .card-arrow {
  color: var(--fg);
  transform: translate(3px, -2px);
}

.card-desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

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

.tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--faint);
  padding: 3px 7px;
}

.footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--faint);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
}

.footer a:hover {
  border-color: var(--fg);
}

@media (max-width: 720px) {
  .page {
    padding: 36px 18px 56px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
