:root {
  color-scheme: dark light;
  --bg: #0b0f17;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #22c55e;
  --primary-contrast: #06270f;
  --card: #0f172a;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 40px rgba(8, 15, 33, 0.4);
  --max-width: 1200px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theme--light {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --stroke: rgba(15, 23, 42, 0.12);
  --shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.is-image-hidden {
  display: none !important;
}

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

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: top 0.2s ease;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.topbar {
  font-size: 0.875rem;
  background: rgba(34, 197, 94, 0.12);
  color: var(--primary);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.topbar__links {
  display: flex;
  gap: 1rem;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--stroke);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  width: 40px;
  height: 40px;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search {
  position: relative;
  flex: 1;
}

.search input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: var(--text);
}

.search input[type="search"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.search__suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
  display: none;
}

.search__suggestions[aria-hidden="false"] {
  display: block;
}

.search__suggestions li {
  list-style: none;
}

.search__suggestions button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

.search__suggestions button:hover,
.search__suggestions button:focus-visible,
.search__suggestions [aria-selected="true"] {
  background: rgba(34, 197, 94, 0.2);
}

.btn {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: transparent;
}

.btn--ghost {
  border-color: var(--stroke);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--stroke);
}

.dropdown {
  position: relative;
}

.dropdown__button {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
}

.dropdown__button:focus-visible,
.dropdown__button:hover,
.dropdown[aria-expanded="true"] .dropdown__button {
  background: rgba(34, 197, 94, 0.16);
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 0.75rem;
  padding: 0.5rem 0;
  width: min(280px, 90vw);
  box-shadow: var(--shadow);
  display: none;
}

.dropdown[aria-expanded="true"] .dropdown__menu {
  display: block;
}

.dropdown__menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: inherit;
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__search {
  max-width: 640px;
  margin: 0 auto;
}

.hero__chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 3rem 0;
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.section__header span {
  color: var(--primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section__header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.14);
  display: grid;
  place-items: center;
}

.slider {
  position: relative;
}

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding: 1.5rem;
  cursor: grab;
}

.slider__track::-webkit-scrollbar {
  height: 6px;
}

.slider__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.slider__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.slider__button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: var(--card);
  color: inherit;
  display: grid;
  place-items: center;
}

.slider__track.is-grabbing {
  cursor: grabbing;
}

.product-card__image {
  border-radius: 0.75rem;
  background: var(--product-accent, rgba(148, 163, 184, 0.12));
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem;
}

[data-image-wrapper].is-image-hidden {
  display: none !important;
}

.product-card__image.is-image-hidden {
  padding: 0;
}

.product-card__image img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.product-card__glyph {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 1.5rem;
  border: 1px solid var(--stroke);
  background: rgba(11, 15, 23, 0.35);
  backdrop-filter: blur(12px);
}

.theme--light .product-card__glyph {
  background: rgba(255, 255, 255, 0.65);
}

.product-card__glyph svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
  color: var(--text);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
}

.product-card__pros {
  padding-left: 1.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
}

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

.guide-card time {
  color: var(--muted);
  font-size: 0.85rem;
}

.review {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0));
}

.review__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.newsletter {
  text-align: center;
  border: 1px solid var(--stroke);
  background: var(--card);
  border-radius: 1.25rem;
  padding: 2.5rem 1.5rem;
}

.newsletter form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter input[type="email"] {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.newsletter small {
  color: var(--muted);
}

.page {
  padding: 3rem 0 4rem;
  display: grid;
  gap: 2.5rem;
}

.page__header {
  max-width: 720px;
  display: grid;
  gap: 1rem;
}

.page__header span {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page__header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.page__lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

.page__content {
  display: grid;
  gap: 2rem;
}

.page__section {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.page__section h2 {
  margin: 0;
  font-size: 1.6rem;
}

.page__section p {
  margin: 0;
  color: var(--muted);
}

.page__section ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.page__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.page__card {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.page__card h3 {
  margin: 0;
}

.page__meta {
  font-size: 0.95rem;
  color: var(--muted);
}

.page__list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.page__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.page__cta:hover,
.page__cta:focus-visible {
  background: rgba(34, 197, 94, 0.15);
}

.page__hero {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), transparent);
  border: 1px solid color-mix(in srgb, var(--stroke) 80%, transparent);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: grid;
  gap: 1rem;
}

.page__hero h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.page__hero p {
  margin: 0;
  color: var(--muted);
}

.page__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.not-found {
  text-align: center;
  padding: 4rem 0 5rem;
  display: grid;
  gap: 1.5rem;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4rem);
}

.not-found p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.not-found__actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--card);
  box-shadow: var(--shadow);
}

.not-found__actions a:hover,
.not-found__actions a:focus-visible {
  background: rgba(34, 197, 94, 0.18);
}

.breadcrumbs {
  font-size: 0.95rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: inherit;
}

.breadcrumbs span[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--stroke);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  padding: 3rem 0 2rem;
}

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

.footer__links {
  display: grid;
  gap: 0.5rem;
}

.footer__fineprint {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 320px;
  z-index: 1000;
}

.toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .navbar__actions {
    gap: 1rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .section__header {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .section__header p {
    max-width: 520px;
  }

  .newsletter form {
    flex-direction: row;
  }

  .newsletter input[type="email"] {
    flex: 1;
  }
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

::-moz-selection {
  background: var(--primary);
  color: var(--primary-contrast);
}

::selection {
  background: var(--primary);
  color: var(--primary-contrast);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
