:root {
  --bg: #f7f7fb;
  --text: #15152b;
  --muted: #5c5c74;
  --line: #e8e8f0;
  --white: #ffffff;
  --orange: #ff7a12;
  --deep-orange: #ff8b1e;
  --purple: #4425ff;
  --navy: #020e57;
  --navy-dark: #000a3e;
  --violet-soft: #f3efff;
  --card-shadow: 0 10px 30px rgba(25, 25, 45, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(180deg, #fefefe 0%, #f6f6fa 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.topbar {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-brand {
  flex: 0 0 286px;
  display: block;
  background: var(--navy-dark);
}
.header-brand img {
  width: 286px;
  height: 72px;
  object-fit: contain;
}
.main-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 12px;
}
.main-nav a {
  position: relative;
  padding: 24px 10px 21px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #1e233e;
  white-space: nowrap;
}
.main-nav a.active {
  color: var(--orange);
}
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}
.caret { font-size: 0.82em; }
.mobile-nav-toggle {
  display: none;
  margin-left: auto;
  margin-right: 16px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #1d2242;
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #441bf8 0%, #23008e 32%, #041163 72%, #010a3f 100%);
  min-height: 575px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 25%, rgba(255,120,18,.35), transparent 18%),
              radial-gradient(circle at 86% 24%, rgba(255,120,18,.18), transparent 14%),
              radial-gradient(circle at 60% 10%, rgba(255,255,255,.06), transparent 12%);
}
.hero-art {
  position: absolute;
  z-index: 1;
}
.hero-art-left {
  left: 0;
  bottom: 68px;
  width: min(29vw, 305px);
}
.hero-art-right {
  right: 0;
  bottom: 58px;
  width: min(28vw, 285px);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 42px 32px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-brand {
  width: 260px;
  margin-top: 10px;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(3.2rem, 5.8vw, 5.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}
.hero h1 span { color: #ffb018; }
.hero p {
  margin: 18px 0 30px;
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
}
.search-box {
  margin-top: 30px;
  width: min(490px, 100%);
  height: 58px;
  background: #fff;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 42px 1fr 120px;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 12px;
  box-shadow: 0 15px 40px rgba(14, 18, 67, .25);
}
.search-icon {
  font-size: 1.9rem;
  color: #54557d;
  line-height: 1;
  transform: translateY(-1px);
}
.search-box input {
  border: none;
  outline: none;
  font-size: 0.98rem;
  color: #23253d;
  background: transparent;
}
.search-box button {
  border: none;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff8c1e 0%, var(--orange) 100%);
  color: white;
  font-weight: 800;
}
.benefits-wrap {
  max-width: 1240px;
  margin: -40px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 3;
}
.card-shell {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 22px;
}
.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 8px 10px;
}
.benefit-item h3 {
  margin: 6px 0 6px;
  font-size: 1rem;
}
.benefit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.benefit-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: #f4f0ff;
}
.benefit-icon.violet { color: #6446ff; }
.benefit-icon.purple { color: #5a3fff; }
.benefit-icon.indigo { color: #5333ff; }
.benefit-icon.rose { color: #ff4c5b; }

.section {
  max-width: 1240px;
  margin: 30px auto 0;
  padding: 0 32px;
}
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.section-title-row h2,
.how-it-works > h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}
.section-title-row a {
  color: #4d34ff;
  font-weight: 700;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.product-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(20, 25, 60, 0.06);
}
.product-top {
  position: relative;
  padding: 14px 14px 0;
}
.platform-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  z-index: 2;
}
.product-card .favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  color: #8487a8;
}
.product-image-wrap {
  height: 148px;
  display: grid;
  place-items: center;
}
.product-image-wrap img {
  width: 100%;
  height: 128px;
  object-fit: contain;
}
.product-body {
  padding: 10px 14px 16px;
}
.product-body h3 {
  margin: 0 0 10px;
  min-height: 65px;
  font-size: 0.99rem;
  line-height: 1.4;
}
.price-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.price-now {
  font-size: 1.05rem;
  font-weight: 900;
}
.price-old {
  font-size: 0.92rem;
  color: #8a8da7;
  text-decoration: line-through;
}
.discount {
  font-size: 0.88rem;
  color: #ff5b31;
}
.product-button {
  width: 100%;
  height: 40px;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
}
.btn-shopee { background: linear-gradient(180deg, #ff7f1d 0%, #ff6217 100%); }
.btn-tiktok { background: #111; }
.btn-lazada { background: linear-gradient(90deg, #6a35ff 0%, #4733ff 100%); }
.btn-zalora { background: #111; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.category-pill {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #1f2340;
}
.category-pill span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f3f4fb;
  font-size: 2rem;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
}
.category-pill small {
  font-size: 0.93rem;
  font-weight: 600;
  text-align: center;
}
.category-pill.active span,
.category-pill:hover span {
  box-shadow: 0 8px 22px rgba(66, 51, 255, 0.12);
}

.how-it-works {
  margin-top: 46px;
}
.how-it-works > h2 {
  text-align: center;
  margin-bottom: 18px;
}
.how-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 10px;
  padding: 26px 32px;
}
.how-step {
  display: flex;
  align-items: center;
  gap: 18px;
}
.how-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f2f0ff;
  font-size: 1.9rem;
  color: #5750a5;
}
.how-icon.gold {
  background: #fff4dc;
  color: #f2a300;
}
.how-step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.how-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.how-arrow {
  display: grid;
  place-items: center;
  color: #1d2241;
  font-size: 2rem;
}

.newsletter {
  margin-top: 28px;
}
.newsletter-box {
  background: linear-gradient(90deg, #0a1466 0%, #040c56 40%, #15108b 100%);
  color: white;
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.newsletter-copy {
  display: flex;
  align-items: center;
  gap: 18px;
}
.newsletter-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  font-size: 1.6rem;
}
.newsletter-box h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.newsletter-box p {
  margin: 0;
  color: rgba(255,255,255,0.82);
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0;
  width: min(420px, 100%);
  background: white;
  border-radius: 14px;
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  height: 54px;
  border: none;
  outline: none;
  padding: 0 18px;
}
.newsletter-form button {
  width: 130px;
  height: 54px;
  border: none;
  background: var(--orange);
  color: white;
  font-weight: 800;
}

.site-footer {
  margin-top: 24px;
  padding: 28px 32px 16px;
  background: linear-gradient(180deg, #031163 0%, #010a43 100%);
  color: white;
}
.site-footer {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}
.footer-brand-block img {
  width: 228px;
  margin-bottom: 14px;
}
.footer-brand-block p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}
.socials {
  display: flex;
  gap: 12px;
}
.socials span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.10);
  font-weight: 700;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-links h3 {
  margin: 4px 0 12px;
  font-size: 1.2rem;
}
.footer-links a,
.footer-links p {
  display: block;
  margin: 0 0 8px;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}
.footer-bottom {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  padding-top: 8px;
}


.no-results {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
}

.hidden { display: none !important; }

@media (max-width: 1180px) {
  .main-nav { gap: 10px; }
  .main-nav a { font-size: 0.89rem; padding-inline: 6px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .how-card { grid-template-columns: 1fr; }
  .how-arrow { display: none; }
  .newsletter-box { flex-direction: column; align-items: stretch; }
  .newsletter-form { width: 100%; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-header { position: static; }
  .topbar {
    flex-wrap: wrap;
    padding: 0 0 12px;
  }
  .header-brand { flex: 1 1 auto; }
  .mobile-nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6px 16px 0;
  }
  .main-nav.show { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #ececf4;
  }
  .main-nav a.active::after { display: none; }

  .hero { min-height: auto; }
  .hero-art-left { width: 160px; bottom: 170px; left: -18px; opacity: .95; }
  .hero-art-right { width: 165px; bottom: 168px; right: -10px; opacity: .95; }
  .hero-content { padding: 20px 16px 28px; }
  .hero-brand { width: 170px; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .hero p { font-size: 1rem; margin-bottom: 18px; }
  .search-box {
    margin-top: 26px;
    width: 100%;
    grid-template-columns: 38px 1fr 110px;
    height: 64px;
    border-radius: 16px;
  }
  .benefits-wrap,
  .section { padding-inline: 16px; }
  .benefits-wrap { margin-top: -8px; }
  .benefits { grid-template-columns: repeat(2, 1fr); padding: 14px; }
  .product-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }
  .product-card {
    min-width: 210px;
    max-width: 210px;
    scroll-snap-align: start;
  }
  .section-title-row h2, .how-it-works > h2 { font-size: 1.7rem; }
  .category-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 6px;
  }
  .category-pill { min-width: 96px; }
  .category-pill span { width: 78px; height: 78px; }
  .newsletter-box { padding: 18px 16px; }
  .newsletter-copy { align-items: flex-start; }
  .newsletter-box h2 { font-size: 1.35rem; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-brand img { width: 220px; height: 56px; }
  .header-brand { flex-basis: 220px; }
  .mobile-nav-toggle { margin-right: 10px; }
  .hero-content { padding-top: 12px; }
  .hero-art-left { width: 120px; bottom: 250px; }
  .hero-art-right { width: 125px; bottom: 250px; }
  .search-box {
    margin-top: 26px;
    height: auto;
    grid-template-columns: 34px 1fr 98px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .benefits { grid-template-columns: 1fr 1fr; gap: 8px; }
  .benefit-item { flex-direction: column; gap: 10px; }
  .benefit-item h3 { margin-top: 0; }
  .newsletter-form { flex-direction: column; background: transparent; gap: 12px; overflow: visible; }
  .newsletter-form input { width: 100%; border-radius: 12px; }
  .newsletter-form button { width: 100%; border-radius: 12px; }
}
