:root {
  --bg: #05050d;
  --panel: rgba(18, 18, 34, 0.9);
  --glass: rgba(255, 255, 255, 0.07);
  --text: #f7f2ff;
  --muted: #aaa3c4;
  --purple: #9d4dff;
  --pink: #ff4fd8;
  --blue: #37d5ff;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 0 35px rgba(157, 77, 255, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(157, 77, 255, 0.35), transparent 28%),
    radial-gradient(circle at top right, rgba(55, 213, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom, rgba(255, 79, 216, 0.16), transparent 28%),
    var(--bg);
}

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

.hero,
.section,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.nav {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 20px;
}

.logo span {
  display: block;
  font-size: 11px;
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

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

.hero-grid {
  min-height: 75vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 40px 0 80px;
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

h1 {
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.92;
  margin: 12px 0 18px;
}

h2 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 10px 0;
}

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

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.center {
  justify-content: center;
}

.btn,
.filter {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: var(--shadow);
}

.secondary,
.filter {
  background: var(--glass);
  color: var(--text);
}

.hero-product,
.featured-card,
.product-card,
.contact-card,
.modal-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-product {
  padding: 18px;
}

.hero-product h3 {
  font-size: 28px;
  margin: 18px 4px 4px;
}

.hero-product p {
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  margin: 0 4px 4px;
}

.photo-box {
  min-height: 220px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(157, 77, 255, 0.25), rgba(55, 213, 255, 0.12)),
    rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  overflow: hidden;
}

.photo-box.large {
  min-height: 430px;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 75px 0;
}

.section-title {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
}

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

.filter.active,
.filter:hover {
  background: linear-gradient(135deg, rgba(157, 77, 255, 0.6), rgba(55, 213, 255, 0.25));
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.featured-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.featured-card .photo-box {
  min-height: 180px;
}

.tag {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.featured-card strong,
.price {
  display: block;
  font-size: 24px;
  margin-top: 12px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  padding: 14px;
  cursor: pointer;
  transition: 0.22s;
}

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

.product-card h3 {
  margin: 16px 0 8px;
}

.product-card .photo-box {
  min-height: 230px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.category {
  color: var(--muted);
  font-size: 13px;
}

.contact {
  padding-bottom: 90px;
}

.contact-card {
  padding: 38px;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 50;
}

.hidden {
  display: none;
}

.modal-card {
  width: min(900px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  background: #101024;
}

#closeModal {
  position: absolute;
  right: 18px;
  top: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 26px;
  cursor: pointer;
}

.modal-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.modal-layout .photo-box {
  min-height: 420px;
}

.details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: var(--glass);
}

.detail span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail strong {
  display: block;
  margin-top: 4px;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 28px 0 44px;
}

@media (max-width: 850px) {
  .nav,
  .section-title.row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-grid,
  .featured-grid,
  .featured-card,
  .modal-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}
