:root {
  color-scheme: dark;
  --bg: #0b0712;
  --panel: #130d1d;
  --panel-2: #1a1227;
  --ink: #f5f2fa;
  --muted: #a9a0b8;
  --dim: #776d86;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .17);
  --accent: #a970ff;
  --accent-ink: #120720;
  --accent-soft: rgba(169, 112, 255, .13);
  --violet: #c79bff;
  --r: 16px;
  --display: "Unbounded", "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  background: radial-gradient(900px 500px at 78% -10%, rgba(169, 112, 255, .12), transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* NAV */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 7, 18, .94);
  backdrop-filter: blur(12px);
}
.nav {
  width: min(1200px, 100%);
  height: 60px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.06em;
  white-space: nowrap;
}
.identity img { width: 28px; height: 28px; }
.identity .dot { color: var(--accent); }

.links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-center { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.links a { padding: 6px 0; transition: color .18s; }
.links a:hover, .links-a--active { color: var(--ink); }

.login {
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background .18s, color .18s;
}
.login:hover { background: transparent; color: var(--accent); }

.lang { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  transition: border-color .18s, color .18s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn svg { transition: transform .2s; }
.lang.is-open .lang-btn svg { transform: rotate(180deg); }
.lang-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--panel);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .16s, transform .16s, visibility 0s .16s;
}
.lang.is-open .lang-drop { opacity: 1; visibility: visible; transform: none; transition: opacity .16s, transform .16s; }
.lang-drop button {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.lang-drop button:hover { background: var(--panel-2); color: var(--ink); }
.lang-drop button.is-active { background: var(--accent-soft); color: var(--accent); }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .2s;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* TYPE + BUTTONS */
.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.055em;
}
h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .88;
  text-transform: uppercase;
}
h1 em { font-style: normal; color: var(--accent); }
h2 { margin-top: 8px; font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: .95; text-transform: uppercase; }
.lede { max-width: 520px; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn b { font-size: 16px; line-height: 0; }
.btn:hover { background: var(--violet); border-color: var(--violet); }
.link {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
}
.link:hover { color: var(--ink); border-color: var(--ink); }

/* HERO */
.hero {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: clamp(64px, 9vw, 110px) 24px clamp(40px, 6vw, 72px);
}

/* SECTIONS */
.section {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 72px) 24px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}
.cat-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  color: var(--dim);
  transition: border-color .18s;
}
.search:focus-within { border-color: var(--accent); }
.search input {
  width: 190px;
  max-width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
}
.search input::placeholder { color: var(--dim); }
.rail-nav { display: flex; gap: 8px; }
.rail-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.rail-btn .flip { transform: scaleX(-1); }
.rail-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.rail-btn:disabled { opacity: .3; cursor: default; }

.rail { position: relative; }
.products {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.products::-webkit-scrollbar { display: none; }
.product-card {
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color .2s;
}
.product-card:hover { border-color: var(--accent); }
.banner { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.banner img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.85); transition: filter .25s; }
.product-card:hover .banner img { filter: saturate(1) brightness(1); }
.num, .badge { position: absolute; z-index: 2; top: 10px; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.num { left: 12px; color: rgba(255, 255, 255, .75); }
.badge { right: 12px; padding: 5px 9px; border-radius: 99px; }
.badge--sale { background: var(--accent); color: var(--accent-ink); }
.badge--dev { border: 1px solid var(--line-2); background: rgba(11, 7, 18, .8); color: var(--muted); text-transform: uppercase; }
.product-info { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.product-info h3 { margin: 12px 0 22px; font-size: clamp(1.3rem, 2.1vw, 1.9rem); line-height: .95; }
.product-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-meta b { color: var(--accent); }
.product-meta .arrow { color: var(--muted); transition: color .2s; }
.product-card:hover .arrow { color: var(--accent); }
.empty { margin: 22px 0 0; color: var(--muted); }

/* FAQ */
.accordion { display: grid; gap: 8px; }
.acc {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
}
.acc[open] { border-color: rgba(169, 112, 255, .4); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { position: relative; width: 14px; height: 14px; flex: none; }
.acc summary i::before,
.acc summary i::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transition: transform .2s;
}
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i::after { transform: rotate(0); }
.acc-body p { margin: 0 0 18px; max-width: 720px; color: var(--muted); line-height: 1.65; }

/* FOOTER */
.footer {
  width: min(1200px, 100%);
  margin: 64px auto 0;
  padding: 24px 24px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.identity--foot { font-size: 15px; color: var(--ink); }
.identity--foot img { width: 22px; height: 22px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer a:hover { color: var(--accent); }

@media (max-width: 1000px) {
  .products { grid-auto-columns: calc((100% - 16px) / 2); }
}

@media (max-width: 860px) {
  .nav-wrap { backdrop-filter: none; }
  .nav { height: 56px; padding-inline: 16px; }
  .identity, .burger { position: relative; z-index: 2; }
  .burger { display: block; }
  .links {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: 76px 20px 28px;
    overflow-y: auto;
    background: var(--bg);
    font-size: 14px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .25s, visibility 0s .25s;
  }
  .links.is-open { transform: none; visibility: visible; pointer-events: auto; transition: transform .25s; }
  .nav-center, .nav-actions { display: grid; gap: 4px; width: 100%; margin: 0; }
  .nav-center a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .lang { margin-top: 12px; }
  .lang-btn { display: none; }
  .lang-drop {
    position: static;
    min-width: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .lang-drop button { padding: 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); text-align: center; }
  .login { margin-top: 10px; padding: 13px; text-align: center; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .hero { padding-top: 52px; }
  .products { grid-auto-columns: 92%; }
  .search input { width: 140px; }
  .section-head { align-items: flex-start; }
  .cat-tools { width: 100%; justify-content: space-between; }
  .accordion .acc { padding: 0 14px; }
  .acc summary { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
