*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #0f1117;
  --bg-elevated: #161a23;
  --bg-soft: #1b2130;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(59, 130, 246, 0.2);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --muted-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-strong: #3b82f6;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --gold: #fbbf24;
  --shadow: 0 24px 60px rgba(15, 17, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1220px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 18%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: none;
}

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

.site-shell {
  position: relative;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.site-glow {
  position: fixed;
  inset: auto;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.site-glow-one {
  top: -6rem;
  left: -8rem;
  background: rgba(37, 99, 235, 0.5);
}

.site-glow-two {
  top: 18rem;
  right: -10rem;
  background: rgba(59, 130, 246, 0.22);
}

.site-header,
.page-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 18px 22px;
  background: rgba(22, 26, 35, 0.82);
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand-lockup {
  max-width: 38rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--accent-strong));
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.5);
}

.brand-tagline {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.top-nav a {
  padding: 10px 14px;
  color: var(--muted-strong);
  font-size: 0.95rem;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-1px);
}

.page-shell {
  display: grid;
  gap: 28px;
}

.hero,
.content-section,
.review-page {
  background: linear-gradient(180deg, rgba(22, 26, 35, 0.96), rgba(22, 26, 35, 0.84));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
  gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2,
.review-copy h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  margin-top: 10px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 12ch;
}

.hero-copy p,
.section-heading p,
.review-summary {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-copy p {
  margin-top: 16px;
  max-width: 48rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #dbeafe;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: rgba(219, 234, 254, 0.6);
}

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

.hero-actions {
  margin-top: 24px;
}

.btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.34);
}

.btn-large,
.ghost-btn {
  padding-inline: 22px;
}

.ghost-btn {
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.32);
  background: rgba(37, 99, 235, 0.1);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-stat {
  padding: 20px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.hero-stat span {
  color: var(--muted);
}

.content-section,
.review-page {
  padding: clamp(24px, 3vw, 36px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h1,
.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.section-heading p {
  max-width: 34rem;
}

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

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 185px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  filter: blur(8px);
}

.category-card:hover,
.category-card:focus-visible,
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 22px 48px rgba(15, 17, 23, 0.48);
}

.category-label {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.category-copy {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--muted);
}

.category-arrow {
  position: relative;
  z-index: 1;
  margin-top: auto;
  font-size: 1.25rem;
  color: #dbeafe;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(27, 33, 48, 0.95), rgba(22, 26, 35, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.product-image-wrap {
  display: block;
}

.product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: 20px;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0.45), rgba(255, 255, 255, 0.01));
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-fallback img {
  display: none;
}

.image-placeholder,
.image-fallback::before {
  content: "No image available";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.product-card h3 a:hover,
.text-link:hover,
.back-link:hover {
  color: #dbeafe;
}

.price {
  color: #fff;
  font-weight: 700;
}

.price-large {
  font-size: 1.1rem;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}

.stars-icons {
  display: inline-flex;
  gap: 2px;
  letter-spacing: 0.06em;
}

.star-dim {
  color: rgba(251, 191, 36, 0.28);
}

.stars-value {
  color: var(--muted-strong);
  font-size: 0.95rem;
  font-weight: 600;
}

.product-actions {
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
}

.text-link,
.back-link {
  color: var(--muted-strong);
  font-weight: 600;
}

.status-card {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.review-page {
  display: grid;
  gap: 26px;
}

.review-hero {
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}

.review-copy {
  display: grid;
  gap: 14px;
}

.review-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.review-content {
  display: grid;
  gap: 18px;
}

.review-author {
  margin: 0;
  color: var(--muted-strong);
}

.review-text {
  color: var(--text);
}

.review-text p {
  margin: 0 0 16px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 18px;
  margin-top: 28px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .site-header,
  .section-heading,
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header,
  .section-heading {
    display: grid;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 14px;
  }

  .site-header {
    padding: 16px;
    border-radius: 20px;
  }

  .hero,
  .content-section,
  .review-page {
    padding: 20px;
    border-radius: 22px;
  }

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

  .product-actions,
  .hero-actions,
  .review-stats,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn,
  .ghost-btn,
  .product-actions .btn {
    width: 100%;
  }
}
