:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  --surface: rgba(255, 255, 255, 0.82);
  --line: rgba(0, 0, 0, 0.09);
  --muted: #6e6e73;
  --accent: #0071e3;
  --accent-soft: #e8f2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 24rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42%, #ffffff 100%);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
}

a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-size: 0.95rem;
  font-weight: 680;
}

nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

nav a {
  min-width: 48px;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 620;
  text-align: center;
}

nav a.active {
  background: #1d1d1f;
  color: #ffffff;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: end;
  padding: 72px 0 28px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 720;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.96;
  font-weight: 760;
}

.lede {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.45;
}

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

.summary div,
.empty {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px);
}

.summary div {
  padding: 18px;
}

.summary span {
  display: block;
  margin-bottom: 6px;
  font-size: 1.6rem;
  font-weight: 760;
}

.summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

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

.search {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.92rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters span {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  background: #ffffff;
  color: #3b3b3d;
  font-size: 0.84rem;
  font-weight: 600;
}

.empty {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  min-height: 330px;
  padding: 32px;
}

.empty h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.empty p {
  max-width: 580px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.product-frame {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.device,
.box,
.tag {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
}

.device {
  left: 42px;
  top: 18px;
  width: 132px;
  height: 176px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fdfdfd, #dfe3e8);
}

.device::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

.box {
  right: 20px;
  bottom: 28px;
  width: 128px;
  height: 94px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #ececec);
}

.tag {
  left: 24px;
  bottom: 50px;
  width: 78px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent-soft);
}

@media (max-width: 760px) {
  main {
    width: min(100% - 24px, 1120px);
    padding-top: 12px;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 44px 0 20px;
  }

  .summary {
    max-width: 100%;
  }

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

  .filters {
    justify-content: flex-start;
  }

  .empty {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 12px;
  }

  nav a {
    min-width: 42px;
    padding-inline: 8px;
  }

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