:root {
  color-scheme: light;
  --ink: #121722;
  --muted: #667085;
  --faint: #98a2b3;
  --line: #e5eaf0;
  --paper: #ffffff;
  --wash: #f5f8fb;
  --blue: #40a3d9;
  --blue-dark: #177db6;
  --blue-soft: #edf8ff;
  --glow: rgba(64, 163, 217, 0.18);
  --shadow: 0 16px 38px rgba(20, 35, 55, 0.08);
  --section: rgba(255, 255, 255, 0.58);
  --container: 1120px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 76% 6%, rgba(64, 163, 217, 0.20), transparent 23rem),
    radial-gradient(circle at 10% 22%, rgba(64, 163, 217, 0.08), transparent 20rem),
    radial-gradient(circle at 86% 58%, rgba(64, 163, 217, 0.10), transparent 28rem),
    radial-gradient(circle at 8% 78%, rgba(23, 125, 182, 0.08), transparent 24rem),
    linear-gradient(180deg, #f5faff 0%, #ffffff 34%, #f7fbfe 64%, #f4f8fb 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  45% {
    transform: translate3d(-10px, 12px, 0) scale(1.04);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px max(22px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(229, 234, 240, 0.88);
  backdrop-filter: blur(16px);
  transition: box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

.brand img {
  display: block;
  width: 70px;
  height: auto;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--blue);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main,
.site-footer {
  width: min(var(--container), calc(100vw - 44px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: center;
  padding: 50px 0 28px;
  animation: soft-rise 620ms var(--ease-out) both;
}

.hero-copy {
  max-width: 780px;
}

.hero-glow {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 44% 44%, rgba(64, 163, 217, 0.28), transparent 0 34%),
    radial-gradient(circle, rgba(64, 163, 217, 0.14), transparent 62%);
  filter: blur(1px);
  animation: glow-drift 9s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.45rem, 4.5vw, 4.6rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.15;
}

h3 {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.proofs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.proofs span {
  padding: 7px 10px;
  border: 1px solid rgba(64, 163, 217, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #236f9f;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.proofs span:hover {
  border-color: rgba(64, 163, 217, 0.34);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
  animation: soft-rise 620ms 80ms var(--ease-out) both;
}

.spotlight-card {
  display: grid;
  gap: 13px;
  min-height: 238px;
  padding: 18px;
  border: 1px solid rgba(229, 234, 240, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(20, 35, 55, 0.06);
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

.spotlight-card:hover {
  border-color: rgba(64, 163, 217, 0.32);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(20, 35, 55, 0.08);
  transform: translateY(-3px);
}

.spotlight-card.is-primary {
  background: linear-gradient(145deg, #ffffff 0%, #eef8ff 100%);
  border-color: rgba(64, 163, 217, 0.28);
}

.spotlight-label,
.trend-badge {
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spotlight-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.spotlight-head img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.spotlight-card:hover .spotlight-head img {
  box-shadow: 0 10px 20px rgba(20, 35, 55, 0.08);
  transform: scale(1.04);
}

.spotlight-head h3 {
  margin: 0 0 3px;
  font-size: 1.05rem;
}

.spotlight-head span,
.spotlight-card p,
.spotlight-foot span {
  color: var(--muted);
}

.spotlight-card p {
  margin: 0;
}

.spotlight-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.spotlight-card a {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.spotlight-card a:hover {
  color: var(--blue);
  transform: translateX(2px);
}

.toolbar {
  position: relative;
  z-index: 50;
  display: grid;
  gap: 14px;
  margin: 8px 0 28px;
  padding: 14px;
  border: 1px solid rgba(229, 234, 240, 0.78);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 28px rgba(20, 35, 55, 0.04);
  backdrop-filter: blur(10px);
  animation: soft-rise 600ms 140ms var(--ease-out) both;
}

.feed-actions {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(190px, 240px);
  gap: 9px;
  align-items: end;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.field {
  position: relative;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(218, 226, 235, 0.95);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(20, 35, 55, 0.04);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
}

select {
  appearance: none;
  background-image:
    linear-gradient(135deg, transparent 45%, #667085 45%, #667085 55%, transparent 55%),
    linear-gradient(225deg, transparent 45%, #667085 45%, #667085 55%, transparent 55%),
    linear-gradient(180deg, rgba(64, 163, 217, 0.08), rgba(64, 163, 217, 0.02));
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px,
    0 0;
  background-size: 7px 7px, 7px 7px, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 38px;
  cursor: pointer;
}

.custom-select {
  position: relative;
  z-index: 2;
}

.custom-select.is-open {
  z-index: 80;
}

.custom-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 0 38px 0 13px;
  border: 1px solid rgba(218, 226, 235, 0.95);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(64, 163, 217, 0.08), rgba(64, 163, 217, 0.02)),
    rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(20, 35, 55, 0.04);
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), transform 180ms var(--ease-out), background 180ms var(--ease-out);
}

.custom-select-button:hover {
  border-color: rgba(64, 163, 217, 0.42);
  background:
    linear-gradient(180deg, rgba(64, 163, 217, 0.1), rgba(64, 163, 217, 0.03)),
    rgba(255, 255, 255, 0.98);
}

.custom-select-button::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: translateY(-65%) rotate(45deg);
  transition: 160ms ease;
}

.custom-select.is-open .custom-select-button {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(64, 163, 217, 0.12);
  transform: translateY(-1px);
}

.custom-select.is-open .custom-select-button::after {
  transform: translateY(-30%) rotate(225deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 310px;
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(218, 226, 235, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(20, 35, 55, 0.14);
  backdrop-filter: blur(16px);
}

.custom-select.is-open .custom-select-menu {
  display: grid;
  gap: 2px;
  animation: menu-in 180ms var(--ease-out) both;
}

.custom-select-menu button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  transition: background 160ms var(--ease-out), color 160ms var(--ease-out), transform 160ms var(--ease-out);
}

.custom-select-menu button:hover,
.custom-select-menu button.is-active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.custom-select-menu button:hover {
  transform: translateX(2px);
}

.custom-select-menu::-webkit-scrollbar {
  width: 8px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: transparent;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(64, 163, 217, 0.28);
}

.custom-select-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(64, 163, 217, 0.44);
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(64, 163, 217, 0.12);
}

.feed-section {
  position: relative;
  z-index: 1;
  margin-bottom: 38px;
  padding: 24px;
  border: 1px solid rgba(229, 234, 240, 0.72);
  border-radius: 22px;
  background: var(--section);
  box-shadow: 0 12px 34px rgba(20, 35, 55, 0.045);
  backdrop-filter: blur(8px);
  animation: soft-rise 620ms 180ms var(--ease-out) both;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
}

.section-title span,
#ranking-status {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.product-feed {
  display: grid;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 14px;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid rgba(229, 234, 240, 0.62);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  animation: soft-rise 420ms var(--ease-out) both;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

.product-card:hover {
  border-color: rgba(64, 163, 217, 0.28);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(20, 35, 55, 0.075);
  transform: translateY(-3px);
}

.product-card:nth-child(2) {
  animation-delay: 35ms;
}

.product-card:nth-child(3) {
  animation-delay: 70ms;
}

.product-card:nth-child(4) {
  animation-delay: 105ms;
}

.product-card:nth-child(5) {
  animation-delay: 140ms;
}

.product-card:hover h3,
.trend-item:hover strong,
.category-card:hover strong,
.mini-product:hover strong {
  color: var(--blue);
}

.product-main {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}

.product-thumb {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--wash);
  object-fit: cover;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.product-card:hover .product-thumb {
  box-shadow: 0 10px 20px rgba(20, 35, 55, 0.08);
  transform: scale(1.035);
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.product-title-row h3 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-title-row span {
  flex: none;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 8px;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.product-tags .tag {
  color: var(--blue-dark);
}

.score-box {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 3px;
  color: var(--muted);
}

.score-box strong {
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

.score-box span {
  font-size: 0.72rem;
  font-weight: 760;
}

.score-box a {
  margin-top: 5px;
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.score-box a:hover {
  color: var(--blue);
  transform: translateX(2px);
}

.trend-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
}

.trend-item,
.category-card,
.mini-product {
  text-decoration: none;
}

.trend-item,
.category-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(229, 234, 240, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  animation: soft-rise 480ms var(--ease-out) both;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background 220ms var(--ease-out);
}

.trend-item:hover,
.category-card:hover {
  border-color: rgba(64, 163, 217, 0.28);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(20, 35, 55, 0.07);
  transform: translateY(-3px);
}

.trend-item:nth-child(2),
.category-card:nth-child(2) {
  animation-delay: 45ms;
}

.trend-item:nth-child(3),
.category-card:nth-child(3) {
  animation-delay: 90ms;
}

.trend-item:nth-child(4),
.category-card:nth-child(4) {
  animation-delay: 135ms;
}

.trend-item:nth-child(5),
.category-card:nth-child(5) {
  animation-delay: 180ms;
}

.category-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.category-card:hover img,
.trend-item:hover img {
  box-shadow: 0 10px 20px rgba(20, 35, 55, 0.08);
  transform: scale(1.05);
}

.trend-item {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
}

.trend-item img {
  grid-row: span 3;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.trend-item strong,
.trend-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend-item small,
.category-card span,
.category-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.category-card strong {
  font-size: 1rem;
}

.category-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-card em {
  font-weight: 700;
}

.bottom-banner {
  display: block;
  margin: 12px 0 42px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(20, 35, 55, 0.08);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.bottom-banner:hover {
  box-shadow: 0 22px 52px rgba(20, 35, 55, 0.12);
  transform: translateY(-3px);
}

.bottom-banner img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 420ms var(--ease-out);
}

.bottom-banner:hover img {
  transform: scale(1.012);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  padding: 34px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand {
  max-width: 420px;
}

.footer-brand img {
  width: 82px;
  height: auto;
}

.footer-brand p {
  margin: 12px 0 0;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 36px;
}

.footer-links div {
  display: grid;
  gap: 8px;
}

.footer-links strong {
  color: var(--ink);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.footer-links a:hover {
  color: var(--blue);
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  .hero,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-glow {
    display: none;
  }

  .spotlight,
  .trend-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  main,
  .site-footer {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    padding-top: 32px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .feed-actions,
  .spotlight,
  .trend-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .score-box {
    align-content: start;
    justify-items: start;
  }

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