:root {
  --bg: #f8faf8;
  --surface: #ffffff;
  --ink: #102118;
  --ink-soft: #405649;
  --line: #d8e4db;
  --accent: #0f9d58;
  --accent-2: #1f7a56;
  --gold: #f5b301;
  --shadow: 0 20px 45px rgba(8, 33, 22, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #e8f9ec 0 20%, transparent 50%),
    radial-gradient(circle at 85% 8%, #fff5cf 0 12%, transparent 35%),
    linear-gradient(180deg, #fbfefb 0%, #f5faf6 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
}

.bg-shape-1 {
  width: 260px;
  height: 260px;
  right: -80px;
  top: 100px;
  border-radius: 40% 60% 60% 40%;
  background: rgba(15, 157, 88, 0.2);
  animation: drift 11s ease-in-out infinite alternate;
}

.bg-shape-2 {
  width: 280px;
  height: 280px;
  left: -110px;
  bottom: 80px;
  border-radius: 55% 45% 30% 70%;
  background: rgba(245, 179, 1, 0.18);
  animation: drift 13s ease-in-out infinite alternate-reverse;
}

.topbar,
.layout,
.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(15, 157, 88, 0.35);
}

.brand h1 {
  margin: 0;
  font: 800 1.2rem/1 "Archivo", sans-serif;
}

.brand p {
  margin: 0.1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.search-wrap {
  display: grid;
  gap: 0.3rem;
  min-width: min(420px, 100%);
}

.search-wrap span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.search-wrap input {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  font: 500 0.98rem/1.2 "Space Grotesk", sans-serif;
  background: rgba(255, 255, 255, 0.85);
}

.search-wrap input:focus {
  outline: 2px solid rgba(15, 157, 88, 0.25);
  border-color: var(--accent);
}

.layout {
  display: grid;
  gap: 1.2rem;
  padding-bottom: 2rem;
}

.hero {
  background: linear-gradient(130deg, #e7f9ee 0%, #fff7dc 100%);
  border-radius: 26px;
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: rise 500ms ease;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hero h2 {
  margin: 0;
  font: 800 clamp(1.7rem, 4vw, 2.7rem) / 1.05 "Archivo", sans-serif;
  max-width: 16ch;
}

.hero p {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  max-width: 55ch;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0c874b;
}

.btn-ghost {
  border-color: rgba(16, 33, 24, 0.17);
  color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font: 600 0.87rem/1 "Space Grotesk", sans-serif;
}

.chip.is-active {
  background: #e9f8ef;
  border-color: #bee8cf;
  color: #0f6e3f;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid #e5eee8;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(8, 33, 22, 0.06);
  display: grid;
  gap: 0.7rem;
  animation: rise 460ms ease;
}

.app-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.app-title {
  margin: 0;
  font: 700 1.02rem/1.2 "Archivo", sans-serif;
}

.app-meta {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.app-description {
  margin: 0;
  color: #2b4134;
  font-size: 0.89rem;
  min-height: 3.4em;
}

.app-stats {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.stat {
  font-size: 0.76rem;
  color: #2f4338;
  border: 1px solid #deebe1;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.btn-download {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #0a7f46);
  color: #fff;
}

.btn-download:hover {
  filter: brightness(1.05);
}

.how-to {
  margin-top: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem 1.1rem;
}

.how-to h3 {
  margin: 0;
  font: 800 1.1rem/1.2 "Archivo", sans-serif;
}

.how-to ol {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
  color: #294133;
}

.footer {
  padding: 0.6rem 0 1.6rem;
  color: #4e6258;
  font-size: 0.84rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  background: #fff;
  border: 1px dashed #bfd4c6;
  border-radius: 14px;
  padding: 1.2rem;
  color: #4d6157;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  from {
    transform: translateY(0) rotate(0deg);
  }
  to {
    transform: translateY(-18px) rotate(9deg);
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    min-width: 100%;
  }

  .hero {
    padding: 1.4rem;
  }
}
