:root {
  color-scheme: dark;
  --bg: #06070a;
  --bg-elevated: #0d1016;
  --ink: #f7f8ff;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.06);
  --acid: #b8ff2c;
  --cyan: #2ee8ff;
  --orange: #ff7a1a;
  --font-display: "Syne", "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Space Grotesk", "Noto Sans SC", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.scan-grid {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.12;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(#000, transparent 70%);
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  max-height: 72px;
  padding: 0.7rem clamp(1rem, 3vw, 2.4rem);
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.scrolled {
  background: rgba(6, 7, 10, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  color: #040508;
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.8vw, 2rem);
  color: rgba(247, 248, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--acid);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.language-toggle,
.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.language-toggle {
  border-radius: 999px;
  padding: 0.35rem;
}

.language-toggle span {
  min-width: 1.7rem;
  padding: 0.28rem 0.45rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.55;
}

.language-toggle span.active {
  background: var(--acid);
  color: #061006;
  opacity: 1;
}

.cart-toggle,
.auth-link {
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.cart-toggle:hover,
.language-toggle:hover {
  border-color: rgba(184, 255, 44, 0.45);
  background: rgba(184, 255, 44, 0.08);
}

.cart-toggle:active,
.button:active {
  transform: translateY(1px) scale(0.98);
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--acid);
  color: #061006;
  font-size: 0.72rem;
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 120ms ease, filter 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.86rem;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: none;
}

.button-primary:hover {
  filter: brightness(1.06);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  border-color: rgba(46, 232, 255, 0.55);
  background: rgba(46, 232, 255, 0.08);
}

.hero-stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(46, 232, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(184, 255, 44, 0.1), transparent 55%),
    linear-gradient(180deg, #080a10 0%, #06070a 100%);
}

#printScene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 6vh, 3.5rem);
}

.brand-lockup {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
  background: linear-gradient(120deg, var(--ink) 20%, var(--acid) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-overlay h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-overlay p:not(.brand-lockup) {
  margin: 0.9rem 0 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.hero-product {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 4vw, 3rem);
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.85rem;
  width: min(22rem, calc(100% - 2rem));
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.78);
  backdrop-filter: blur(14px);
}

.hero-product img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hero-product strong {
  display: block;
  color: var(--acid);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-product span {
  display: block;
  margin-top: 0.25rem;
  font-weight: 700;
}

.hero-product em {
  display: block;
  margin: 0.35rem 0 0.65rem;
  font-style: normal;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.6rem;
}

.section-head h2,
.shop-toolbar h2,
.spotlight-copy h2,
.custom-shell h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p,
.shop-toolbar p,
.spotlight-copy p,
.custom-shell p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 48ch;
}

.collections,
.shop,
.materials,
.custom {
  padding: clamp(3.5rem, 8vh, 5.5rem) clamp(1rem, 4vw, 3rem);
}

.collection-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1rem;
  min-height: 22rem;
}

.collection-tile {
  position: relative;
  display: block;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
}

.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-tile:hover img {
  transform: scale(1.05);
}

.collection-tile > div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1.15rem 1.15rem;
  background: linear-gradient(transparent, rgba(4, 5, 8, 0.92) 55%);
}

.collection-tile h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.collection-tile span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.collection-tile-metal {
  grid-row: span 1;
}

.shop {
  background:
    linear-gradient(180deg, transparent, rgba(46, 232, 255, 0.03) 40%, transparent),
    var(--bg);
}

.shop-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

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

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.filter-chip.active {
  background: var(--acid);
  border-color: var(--acid);
  color: #061006;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(184, 255, 44, 0.35);
  transform: translateY(-2px);
}

.product-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #10131a;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.95rem 1rem 1.05rem;
  flex: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.product-collection,
.product-material {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.product-material {
  border-color: rgba(46, 232, 255, 0.28);
  color: var(--cyan);
}

.product-name {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  flex: 1;
}

.product-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.55rem;
}

.product-price {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--acid);
}

.product-card.is-hidden {
  display: none;
}

.spotlight {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(2rem, 5vh, 3.5rem) clamp(1rem, 4vw, 3rem);
  border-block: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(46, 232, 255, 0.05), transparent 45%), var(--bg-elevated);
}

.spotlight-media {
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  min-height: 22rem;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
}

.spotlight-copy ul {
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.spotlight-copy li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--cyan);
  color: var(--muted);
}

.spotlight-buy {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.spotlight-buy strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--acid);
}

.materials {
  padding-top: clamp(3rem, 7vh, 4.5rem);
}

.material-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.material-rail article {
  padding: 1.1rem 1rem 1.2rem;
  border-top: 1px solid var(--line);
}

.material-rail h3 {
  margin: 0.7rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.material-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.swatch {
  display: block;
  width: 2.4rem;
  height: 0.55rem;
  border-radius: 999px;
}

.swatch-metal {
  background: linear-gradient(90deg, #9aa4b2, #e8edf3);
}

.swatch-green {
  background: var(--acid);
}

.swatch-orange {
  background: var(--orange);
}

.swatch-white {
  background: #f2f4f8;
}

.custom {
  padding-bottom: clamp(4rem, 9vh, 6rem);
}

.custom-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(circle at 90% 10%, rgba(184, 255, 44, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.03);
}

.custom-form {
  display: grid;
  gap: 0.85rem;
}

.custom-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.custom-form input,
.custom-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.custom-form input:focus,
.custom-form select:focus {
  outline: 2px solid rgba(184, 255, 44, 0.45);
  outline-offset: 1px;
}

.file-drop {
  position: relative;
  border: 1px dashed rgba(46, 232, 255, 0.4) !important;
  border-radius: var(--radius-sm);
  padding: 1.2rem !important;
  text-align: center;
  color: var(--cyan) !important;
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.shop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  align-items: end;
}

.shop-search {
  flex: 1 1 16rem;
}

.shop-search input,
.shop-sort select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.shop-sort {
  display: grid;
  gap: 0.3rem;
  min-width: 12rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.shop-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 4vw, 3rem) 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--acid, #b6ff3b);
}

.product-media {
  display: block;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
}

.cart-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(24rem, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #0b0d12;
  border-left: 1px solid var(--line);
  transform: translateX(104%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-head,
.cart-foot {
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid var(--line);
}

.cart-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.cart-close {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.cart-list {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1.15rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.cart-empty {
  color: var(--muted);
  padding: 1rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item img {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item strong {
  display: block;
  font-size: 0.92rem;
}

.cart-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-item button:hover {
  color: var(--acid);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.cart-total strong {
  color: var(--acid);
  font-size: 1.2rem;
}

.cart-foot .button {
  width: 100%;
}

.cart-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 1100px) {
  .collection-strip {
    grid-template-columns: 1fr 1fr;
  }

  .collection-tile-metal {
    grid-column: 1 / -1;
    min-height: 16rem;
  }

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

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

  .material-rail {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .hero-overlay {
    padding-bottom: 13rem;
  }

  .hero-product {
    left: 1rem;
    right: 1rem;
    width: auto;
    grid-template-columns: 5.8rem 1fr;
  }

  .hero-product img {
    width: 5.8rem;
    height: 5.8rem;
  }

  .collection-strip,
  .product-grid,
  .custom-shell,
  .material-rail {
    grid-template-columns: 1fr;
  }

  .collection-tile,
  .collection-tile-metal {
    min-height: 14rem;
  }

  .spotlight-media,
  .spotlight-media img {
    min-height: 16rem;
  }
}

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

  .brand span:last-child {
    display: none;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
