:root {
  --yak-blue-dark: #1f3a5f;
  --yak-blue-light: #4f8fcf;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-300: #cbd5e1;
  --ink: #e2e8f0;
  --panel: rgba(15, 23, 42, 0.75);
  --radius-md: 10px;
  --radius-lg: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Geist", "Satoshi", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--slate-900);
  overflow-x: hidden;
}

.backdrop,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  background:
    radial-gradient(circle at 15% 10%, rgba(79, 143, 207, 0.23), transparent 46%),
    radial-gradient(circle at 82% 20%, rgba(31, 58, 95, 0.6), transparent 52%),
    radial-gradient(circle at 50% 90%, rgba(79, 143, 207, 0.12), transparent 36%),
    var(--slate-900);
  z-index: -2;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(203, 213, 225, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 213, 225, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 18%, transparent 75%);
  z-index: -1;
}

.topbar,
main,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0 0.8rem;
}

.brand-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(79, 143, 207, 0.5);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.55);
}

.topbar-link {
  color: var(--slate-300);
  font-weight: 600;
  text-decoration: none;
}

main {
  padding: 1rem 0 3rem;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.3rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.84), rgba(31, 58, 95, 0.58));
  backdrop-filter: blur(8px);
  animation: reveal-up 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  border: 1px solid rgba(79, 143, 207, 0.34);
  pointer-events: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.hero h1 {
  margin: 0.6rem 0 0.9rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.04;
  text-transform: uppercase;
}

.lead {
  margin: 0 0 1.1rem;
  max-width: 58ch;
  color: #d1d5db;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 140ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(120deg, var(--yak-blue-dark), var(--yak-blue-light));
  border: 1px solid rgba(147, 197, 253, 0.65);
}

.button-ghost {
  color: var(--slate-300);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.55);
}

.hero-mark {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  min-height: 260px;
  overflow: hidden;
}

.hero-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.94;
  transform: scale(1.04);
}

.catalog {
  margin-top: 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.catalog-head h2 {
  margin: 0.4rem 0 0.35rem;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.catalog-head p {
  margin: 0 0 1rem;
  color: #cbd5e1;
}

code {
  color: #93c5fd;
}

.controls {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.search-wrap {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #dbeafe;
}

.search-wrap input {
  width: 100%;
  height: 2.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.8);
  color: white;
  padding: 0 0.8rem;
  font-size: 1rem;
}

.search-wrap input:focus {
  outline: 2px solid rgba(79, 143, 207, 0.6);
  outline-offset: 1px;
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-button {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5e1;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.34rem 0.72rem;
  cursor: pointer;
}

.tag-button.active {
  border-color: rgba(147, 197, 253, 0.8);
  color: #dbeafe;
  background: rgba(79, 143, 207, 0.25);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.tool-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.85));
  opacity: 0;
  transform: translateY(10px);
  animation: card-in 420ms ease forwards;
  animation-delay: var(--delay, 0ms);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.status-pill {
  border-radius: 999px;
  padding: 0.24rem 0.56rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}

.status-live {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.65);
  background: rgba(34, 197, 94, 0.16);
}

.status-prototype {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(234, 179, 8, 0.16);
}

.status-buggy {
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(234, 179, 8, 0.16);
}

.status-queued {
  color: #bfdbfe;
  border-color: rgba(59, 130, 246, 0.6);
  background: rgba(59, 130, 246, 0.17);
}

.persona {
  font-size: 0.77rem;
  color: #cbd5e1;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.tool-card p {
  margin: 0;
  color: #d1d5db;
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.7);
  color: #bfdbfe;
  padding: 0.22rem 0.52rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-action {
  margin-top: 0.25rem;
}

.card-link,
.card-disabled {
  width: 100%;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  height: 2.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.93rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, rgba(31, 58, 95, 0.9), rgba(79, 143, 207, 0.76));
  color: white;
  text-decoration: none;
}

.card-disabled {
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.65);
}

.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.4);
}

.site-footer {
  padding: 0.5rem 0 1.5rem;
  color: #94a3b8;
  text-align: center;
  font-size: 0.9rem;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-mark {
    min-height: 210px;
  }
}
