:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(15, 23, 42, 0.92);
  --panel-2: #0f172a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 24%), var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
}

.topbar,
.hero,
.results-section,
.footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 800;
}

.brand-name {
  margin: 0;
  font-weight: 700;
}

.brand-tag {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.topnav {
  display: flex;
  gap: 1rem;
}

.topnav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 2.2rem 0 3rem;
}

.hero-copy,
.hero-card,
.product-card {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  border-radius: 28px;
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.hero-text {
  color: var(--muted);
  line-height: 1.7;
  margin: 0.9rem 0 1.2rem;
}

.search-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-box input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text);
  padding: 0.95rem 1rem;
}

.search-box button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.filter-chip.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
}

.hero-card {
  border-radius: 24px;
  padding: 1.5rem;
  align-self: start;
}

.hero-card h3 {
  margin-top: 0;
}

.hero-card ul {
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.results-section {
  padding: 0 0 3rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0.2rem 0 0;
}

.result-count {
  color: var(--muted);
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  border-radius: 20px;
  padding: 1.1rem;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.5rem;
}

.product-top h3 {
  margin: 0;
  font-size: 1.05rem;
}

.badge {
  background: rgba(129, 140, 248, 0.18);
  color: #c7d2fe;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.77rem;
  white-space: nowrap;
}

.product-meta,
.product-tags {
  color: var(--muted);
  font-size: 0.93rem;
}

.product-meta {
  margin: 0.7rem 0 0.35rem;
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.product-tags span {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
}

.cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.footer {
  padding: 0 0 2rem;
  color: var(--muted);
  text-align: center;
}

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

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .topbar,
  .section-head {
    flex-direction: column;
    align-items: start;
    gap: 0.8rem;
  }

  .search-box {
    flex-direction: column;
  }

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