:root {
  --ink: #070712;
  --midnight: #101326;
  --violet: #5d5fef;
  --moon: #f6f0dc;
  --pearl: #fffaf0;
  --mist: #b9bdd3;
  --rose: #d8a0b8;
  --line: rgba(255, 250, 240, 0.16);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(93, 95, 239, 0.28), transparent 32rem),
    radial-gradient(circle at 85% 16%, rgba(216, 160, 184, 0.18), transparent 26rem),
    linear-gradient(135deg, #060712, #111329 58%, #070712);
  color: var(--pearl);
  font-family: var(--font);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.5) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.35) 0 1px, transparent 1px);
  background-size: 90px 90px, 140px 140px;
  background-position: 10px 20px, 60px 30px;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--pearl), var(--moon) 55%, #a9a8bf 56%, #5b5f89 100%);
  box-shadow: 0 0 30px rgba(246, 240, 220, 0.38);
}

.nav {
  display: none;
  gap: 1.6rem;
  color: var(--mist);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav.is-open {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 18, 0.97);
}

.menu-toggle,
.cart-button,
.button,
.cart-summary button {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.08);
  color: var(--pearl);
  cursor: pointer;
}

.menu-toggle {
  width: 44px;
  height: 40px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pearl);
}

.cart-button {
  min-height: 40px;
  padding: 0 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-left: 0.3rem;
  border-radius: 50%;
  background: var(--moon);
  color: var(--ink);
}

.hero {
  min-height: 720px;
  display: grid;
  align-items: center;
  gap: 2rem;
  padding: clamp(4rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem) 3rem;
}

.hero-copy {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(4rem, 14vw, 9.5rem);
}

h2 {
  font-size: clamp(2.5rem, 7vw, 5.8rem);
}

.hero-copy p:not(.eyebrow),
.split > p {
  max-width: 620px;
  color: var(--mist);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-width: 150px;
  padding: 1rem 1.25rem;
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button.primary,
.cart-summary button {
  background: var(--moon);
  color: var(--ink);
}

.hero-art {
  position: absolute;
  inset: 84px 0 auto auto;
  width: min(54vw, 720px);
  height: min(54vw, 720px);
  overflow: hidden;
  opacity: 0.9;
}

.moon {
  position: absolute;
  right: 10%;
  top: 10%;
  width: 56%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), transparent 0 8%, transparent 9%),
    radial-gradient(circle at 68% 55%, rgba(16, 19, 38, 0.18), transparent 0 10%, transparent 11%),
    radial-gradient(circle at 42% 72%, rgba(16, 19, 38, 0.16), transparent 0 7%, transparent 8%),
    linear-gradient(135deg, #fffdf2, #d9d4c1);
  box-shadow: 0 0 90px rgba(246, 240, 220, 0.42);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.orbit-one { inset: 5% 3% 20% 0; }
.orbit-two { inset: 19% 0 3% 16%; }

.star {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--pearl);
  box-shadow: 0 0 20px var(--moon);
  transform: rotate(45deg);
}

.star-one { left: 24%; top: 22%; }
.star-two { right: 22%; bottom: 24%; }

.category-strip,
.trust-bar,
.footer {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.04);
}

.category-strip {
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  overflow-x: auto;
}

.category-strip a {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.2rem;
  border-right: 1px solid var(--line);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-strip span {
  color: var(--rose);
  font-size: 0.78rem;
}

.section {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.split {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filters {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
}

.filters button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filters .is-active {
  background: var(--moon);
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.product-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, 0.06);
}

.product-art {
  min-height: 270px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 32%, rgba(246, 240, 220, 0.26), transparent 0 34%, transparent 35%),
    linear-gradient(145deg, rgba(93, 95, 239, 0.25), rgba(216, 160, 184, 0.08));
}

.hat {
  width: 58%;
  aspect-ratio: 1.5;
  border-radius: 46% 46% 15% 15%;
  background: var(--hat-color, #f6f0dc);
  position: relative;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hat::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: 76%;
  height: 38%;
  border-radius: 50%;
  background: inherit;
  transform: translateX(-50%);
}

.hat::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(7, 7, 18, 0.55);
  transform: translate(-50%, -50%);
}

.product-copy {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.product-copy h3 {
  margin: 0;
  font-size: 1.15rem;
}

.product-copy p {
  margin: 0;
  color: var(--mist);
  line-height: 1.5;
}

.product-copy strong {
  font-size: 1.1rem;
}

.product-copy button {
  min-height: 44px;
  border: 1px solid var(--moon);
  background: transparent;
  color: var(--pearl);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-band {
  display: grid;
  gap: 1.5rem;
  background: linear-gradient(90deg, rgba(255, 250, 240, 0.08), rgba(93, 95, 239, 0.12));
}

.drop-cards,
.trust-bar {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.drop-cards {
  display: grid;
  gap: 1rem;
}

.drop-cards article,
.trust-bar div {
  padding: 1.2rem;
  border: 1px solid var(--line);
}

.drop-cards strong,
.trust-bar strong {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 900;
}

.drop-cards span,
.trust-bar span,
.footer p {
  color: var(--mist);
}

.trust-bar div {
  border-width: 0 1px 0 0;
}

.footer {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 4rem);
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--mist);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: rgba(7, 7, 18, 0);
  transition: background 180ms ease;
}

.cart-drawer.is-open {
  pointer-events: auto;
  background: rgba(7, 7, 18, 0.72);
}

.drawer-panel {
  width: min(420px, 100vw);
  height: 100%;
  margin-left: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ink);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-header,
.cart-summary {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.drawer-header h2 {
  font-size: 2.2rem;
}

.drawer-header button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--pearl);
  cursor: pointer;
}

.cart-lines {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1rem;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.cart-line h3,
.cart-line p {
  margin: 0;
}

.cart-line p {
  color: var(--mist);
  font-size: 0.9rem;
}

.cart-line button {
  border: 0;
  background: transparent;
  color: var(--rose);
  cursor: pointer;
}

.cart-summary {
  display: grid;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-summary button {
  min-height: 46px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr 0.85fr;
  }

  .split,
  .section-heading,
  .feature-band,
  .footer {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}
