:root {
  --background: #ffffff;
  --text: #1a1a1a;
  --accent: #111111;
  --accent-alt: #5a5a5a;
  --border: #e6e6e6;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  --transition: 0.3s ease;
}

[data-theme="dark"] {
  --background: #111111;
  --text: #e5e5e5;
  --accent: #f5f5f5;
  --accent-alt: #9e9e9e;
  --border: #2a2a2a;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fb;
  color: var(--text);
}

[data-theme="dark"] body { background: #0b1220; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03));
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.main-content {
  width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

main {
  width: 100%;
}

.hero {
  background: var(--background);
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 40px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -60px -160px auto auto;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.22), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -120px -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

.hero-description {
  margin: 0;
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(34, 34, 34, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.btn.secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--accent);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

.btn.secondary:hover,
.btn.secondary:focus-visible {
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.12));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text);
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -180px -200px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6), transparent 65%);
  opacity: 0.6;
}

.hero-highlight {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.hero-highlight h3 {
  margin: 12px 0 8px;
  font-size: 1.3rem;
  color: var(--text);
}

.hero-highlight p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(34, 34, 34, 0.7);
  line-height: 1.6;
}

.hero-stats {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-stats li {
  background: rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(34, 34, 34, 0.72);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  color: var(--text);
}

.section-heading p {
  margin: 0;
  font-size: 1rem;
  color: rgba(34, 34, 34, 0.68);
  max-width: 520px;
}

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

.category-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.category-card.product-mini {
  justify-content: flex-start;
  gap: 14px;
}

.category-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  line-height: 1;
  transform: translateZ(0);
  box-shadow:
    0 10px 16px rgba(0, 0, 0, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  margin-bottom: 4px;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.08);
  color: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.14);
}

.category-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.category-meta {
  font-size: 0.9rem;
  color: rgba(34, 34, 34, 0.6);
}

.product-mini-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(26, 26, 26, 0.88);
  letter-spacing: 0.01em;
}

[data-theme="dark"] .product-mini-label { color: rgba(229, 229, 229, 0.90); }

[data-theme="dark"] .category-card { background: #111111; }
[data-theme="dark"] .category-icon {
  background: #151515;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 32px 20px 40px;
  margin-top: 60px;
}

.footer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(34, 34, 34, 0.78);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.footer-links a {
  color: inherit;
  opacity: 0.75;
  transition: opacity var(--transition), color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 1;
  color: var(--accent);
}

@media (max-width: 920px) {
  .page-wrapper {
    gap: 40px;
    padding: 32px 16px 48px;
  }

  .main-content {
    gap: 48px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .hero-visual {
    min-height: 260px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions {
    width: 100%;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .category-card {
    padding: 20px;
  }

  .footer-links {
    justify-content: center;
  }
}

