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

:root {
  --bg:           #111111;
  --surface:      #1c1c1c;
  --border:       #2a2a2a;
  --border-hover: #3a3a3a;
  --text:         #f0f0f0;
  --muted:        #888888;
  --subtle:       #555555;
  --accent:       #c89838;
  --accent2:      #c4847a;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#page-wrap { overflow-x: hidden; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }

.nav-icon {
  display: flex;
  align-items: center;
  color: var(--muted);
  transition: color 0.18s;
}
.nav-icon:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 3rem;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(200, 152, 56, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 55% at 85% 80%, rgba(196, 132, 122, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 24px rgba(200, 152, 56, 0.28));
  animation: fadeUp 0.6s ease both 0.1s;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  animation: fadeUp 0.6s ease both 0.2s;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent2), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease both 0.3s;
}

/* Search */
.search-wrap {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease both 0.4s;
}

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.9rem 1.25rem 0.9rem 3rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}

.search-input::placeholder { color: var(--subtle); }
.search-input:focus { border-color: var(--border-hover); box-shadow: 0 0 0 3px rgba(200, 152, 56, 0.08); }

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}

/* Filters */
.filters-wrap {
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
  animation: fadeUp 0.6s ease both 0.5s;
}

.filter-pill {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.filter-pill:hover  { border-color: var(--border-hover); color: var(--text); }
.filter-pill.active { border-color: var(--accent); color: var(--accent); background: rgba(200, 152, 56, 0.07); }

.filter-pill .pill-count {
  opacity: 0.55;
  font-size: 0.65em;
}

/* Content */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.result-count {
  font-size: 0.7rem;
  color: var(--subtle);
}

.section-line { flex: 1; height: 1px; background: var(--border); }

/* Asset grid */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.asset-grid li:not(.empty-state) { display: contents; }

.asset-card {
  background: var(--surface);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}

.asset-card:hover               { background: var(--border); }
.asset-card:hover .card-arrow   { color: var(--muted); transform: translate(3px, -3px); }

.card-icon { font-size: 1.8rem; line-height: 1; }

.asset-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); overflow-wrap: break-word; }

.asset-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; flex: 1; }

.card-footer { display: flex; align-items: center; gap: 0.5rem; }

.badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-json   { color: #7aabba; background: rgba(122, 171, 186, 0.08); border-color: rgba(122, 171, 186, 0.18); }
.badge-csv    { color: #7aba86; background: rgba(122, 186, 134, 0.08); border-color: rgba(122, 186, 134, 0.18); }
.badge-yaml   { color: #b07aba; background: rgba(176, 122, 186, 0.08); border-color: rgba(176, 122, 186, 0.18); }
.badge-xml    { color: #ba987a; background: rgba(186, 152, 122, 0.08); border-color: rgba(186, 152, 122, 0.18); }
.badge-txt    { color: var(--muted); background: rgba(136, 136, 136, 0.08); border-color: rgba(136, 136, 136, 0.18); }
.badge-other  { color: var(--accent); background: rgba(200, 152, 56, 0.08); border-color: rgba(200, 152, 56, 0.2); }

.card-meta {
  font-size: 0.72rem;
  color: var(--subtle);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, color 0.18s;
}

.tag-pill:hover  { background: rgba(255, 255, 255, 0.09); color: var(--text); }
.tag-pill.active { background: rgba(200, 152, 56, 0.12); color: var(--accent); }

.card-arrow {
  color: var(--subtle);
  transition: color 0.18s, transform 0.18s;
  flex-shrink: 0;
  margin-left: auto;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  background: var(--surface);
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.empty-state p      { font-size: 0.9rem; color: var(--muted); }
.empty-state strong { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.site-footer p { font-size: 0.8rem; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; transition: color 0.18s; }
.site-footer a:hover { color: var(--text); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.reveal         { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.05s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.19s; }

/* Responsive */
@media (max-width: 640px) {
  .site-nav { padding: 0.875rem 1.25rem; }
  .nav-links { gap: 1rem; }
  .hero      { padding: 5.5rem 1.25rem 2.5rem; }
  .content   { padding: 0 1.25rem 4rem; }
  .asset-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
