:root {
  --ink: #13213a;
  --text: #f8fbff;
  --muted: #b9c7df;
  --soft: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.18);
  --sky: #55d7ff;
  --blue: #427bff;
  --violet: #8b5cff;
  --pink: #ff5fb7;
  --lime: #9dff84;
  --amber: #ffd36a;
  --panel: rgba(14, 25, 50, 0.74);
  --shadow: 0 26px 80px rgba(11, 24, 54, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(85, 215, 255, 0.32), transparent 24rem),
    radial-gradient(circle at 78% 18%, rgba(255, 95, 183, 0.28), transparent 24rem),
    radial-gradient(circle at 55% 80%, rgba(157, 255, 132, 0.18), transparent 28rem),
    linear-gradient(135deg, #091932 0%, #101a3c 42%, #25194b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.store-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(8, 17, 38, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 32px rgba(85, 215, 255, 0.36);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-weight: 760;
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  min-height: calc(100vh - 73px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 64px) 48px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 14px;
  z-index: -1;
  content: "";
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 72% 32%, rgba(85, 215, 255, 0.18), transparent 24rem);
  box-shadow: var(--shadow);
}

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

.wordmark {
  width: clamp(170px, 25vw, 310px);
  height: auto;
  margin-bottom: 22px;
  border-radius: 24px;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 22px 70px rgba(66, 123, 255, 0.34);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 7.2vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(85, 215, 255, 0.22);
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 60ch;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
button,
input,
select {
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--sky) 46%, var(--violet));
  color: #081326;
  box-shadow: 0 18px 42px rgba(85, 215, 255, 0.28);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0d1c3b;
  box-shadow: var(--shadow), 0 0 70px rgba(139, 92, 255, 0.25);
  aspect-ratio: 16 / 10;
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 4vw, 64px) clamp(54px, 8vw, 106px);
}

.quick-stats article,
.product-card,
.category-grid article {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(9, 19, 44, 0.26);
  backdrop-filter: blur(18px);
}

.quick-stats article {
  display: grid;
  gap: 6px;
  min-height: 126px;
  align-content: center;
  padding: 24px;
}

.quick-stats strong {
  font-size: 1.45rem;
}

.quick-stats span,
.product-body p,
.category-grid p,
.support p {
  color: var(--muted);
}

.section {
  padding: clamp(54px, 8vw, 106px) clamp(18px, 4vw, 64px);
}

.catalog-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 30px;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

input,
select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(157, 255, 132, 0.62);
  box-shadow: 0 0 0 4px rgba(157, 255, 132, 0.1);
}

input {
  width: min(320px, 52vw);
  padding: 0 18px;
}

select {
  padding: 0 16px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 64px) clamp(54px, 8vw, 106px);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(9, 19, 44, 0.26);
  color: var(--muted);
}

.product-card {
  overflow: hidden;
  scroll-margin-top: 96px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:target {
  border-color: rgba(157, 255, 132, 0.72);
  box-shadow:
    0 18px 48px rgba(9, 19, 44, 0.26),
    0 0 0 4px rgba(157, 255, 132, 0.12),
    0 0 60px rgba(85, 215, 255, 0.28);
  transform: translateY(-2px);
}

.product-art {
  aspect-ratio: 16 / 9;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.42), transparent 5rem),
    linear-gradient(135deg, rgba(85, 215, 255, 0.34), rgba(64, 108, 255, 0.45) 48%, rgba(139, 92, 255, 0.48)),
    url("assets/hero.png") center / cover;
}

.product-card:nth-child(2) .product-art,
.product-card:nth-child(5) .product-art {
  background:
    linear-gradient(135deg, rgba(157, 255, 132, 0.95), rgba(85, 215, 255, 0.9)),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.28) 18px 20px);
}

.product-card:nth-child(3) .product-art,
.product-card:nth-child(6) .product-art {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 211, 106, 0.95), transparent 7rem),
    linear-gradient(135deg, #ff5fb7, #8b5cff 58%, #55d7ff);
}

.product-body {
  padding: 22px;
}

.product-body span,
.category-grid span {
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.price strong {
  color: var(--amber);
  font-size: 1.25rem;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #081326;
  background: linear-gradient(135deg, var(--lime), var(--sky));
  font-weight: 950;
}

.categories {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 211, 106, 0.2), transparent 24rem),
    rgba(255, 255, 255, 0.03);
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-bottom: 30px;
}

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

.category-grid article {
  min-height: 220px;
  padding: 24px;
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(54px, 8vw, 106px) clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 8% 24%, rgba(157, 255, 132, 0.24), transparent 18rem),
    radial-gradient(circle at 85% 30%, rgba(255, 95, 183, 0.2), transparent 20rem),
    rgba(255, 255, 255, 0.06);
}

.support > div {
  max-width: 820px;
}

.support p {
  margin-bottom: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(2, 8, 20, 0.58);
}

.footer a {
  color: var(--lime);
  font-weight: 900;
}

@media (max-width: 860px) {
  .store-header,
  .catalog-tools,
  .support {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-image {
    order: -1;
    aspect-ratio: 16 / 9;
  }

  .quick-stats,
  .product-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .button,
  input,
  select {
    width: 100%;
  }
}
