:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --ink: #17211b;
  --muted: #5e6a62;
  --line: #d9dfd6;
  --panel: #ffffff;
  --green: #1f7a54;
  --blue: #245f9f;
  --amber: #b66a1c;
  --shadow: 0 22px 70px rgba(23, 33, 27, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(31, 122, 84, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(36, 95, 159, 0.12), transparent 38%),
    var(--bg);
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.hero {
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 28px;
  padding: 34px;
  border: 1px solid rgba(23, 33, 27, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66)),
    repeating-linear-gradient(90deg, rgba(31, 122, 84, 0.1) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(36, 95, 159, 0.1) 0 1px, transparent 1px 44px);
  box-shadow: var(--shadow);
}

.eyebrow,
.panel-label,
.project-tag {
  margin: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 10px 0 14px;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.summary {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hero-panel {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.signal {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 42px;
}

.signal span {
  width: 12px;
  border-radius: 4px 4px 0 0;
  background: var(--green);
}

.signal span:nth-child(1) {
  height: 16px;
}

.signal span:nth-child(2) {
  height: 28px;
  background: var(--amber);
}

.signal span:nth-child(3) {
  height: 42px;
  background: var(--blue);
}

.panel-value {
  margin: 6px 0 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 26px 0 18px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  stroke: var(--muted);
}

.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.search input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 122, 84, 0.13);
}

.count {
  min-width: 86px;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.project-card {
  min-height: 0;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(31, 122, 84, 0.55);
  box-shadow: 0 18px 46px rgba(23, 33, 27, 0.13);
  transform: translateY(-2px);
  outline: none;
}

.search svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-preview {
  min-height: 116px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.app-preview::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.85;
}

.preview-logo {
  width: 58px;
  height: 74px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-logo svg {
  width: 52px;
  height: 52px;
  padding: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.preview-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-copy strong {
  font-size: clamp(1.9rem, 5vw, 2.55rem);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-copy small {
  max-width: 420px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.financing {
  color: #2f8cff;
  background: #06111f;
}

.financing .preview-kicker {
  color: #b7cce5;
}

.financing .preview-copy strong {
  color: #ffffff;
}

.financing .preview-copy strong span,
.financing .preview-logo span {
  color: #2f8cff;
}

.financing .preview-copy small {
  color: #7eb5ec;
}

.gibberish {
  color: #22c55e;
  background: #101816;
}

.gibberish .preview-kicker {
  color: #a7f3d0;
}

.gibberish .preview-copy strong {
  color: #f7fff9;
}

.gibberish .preview-copy strong span,
.gibberish .preview-logo span {
  color: #22c55e;
}

.gibberish .preview-copy small {
  color: #b6c8bc;
}

.tech {
  color: #3b82f6;
  background: #f5f9ff;
  border: 1px solid #d6e5f7;
}

.tech .preview-kicker {
  color: #1f7a54;
}

.tech .preview-copy strong {
  color: #1f2937;
}

.tech .preview-copy strong span,
.tech .preview-logo span {
  color: #245f9f;
}

.tech .preview-copy small {
  color: #5e6a62;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding: 18px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px;
  }

  .hero-panel {
    min-height: 126px;
  }

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

  .search {
    max-width: none;
  }

  .count {
    text-align: left;
  }

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

  .project-card {
    min-height: 0;
  }

  .app-preview {
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 13px;
  }

  .preview-logo {
    width: 50px;
    height: 68px;
  }

  .preview-logo svg {
    width: 46px;
    height: 46px;
  }

  .preview-copy strong {
    font-size: 1.65rem;
  }

  .preview-kicker {
    font-size: 0.58rem;
  }
}
