:root {
  color-scheme: light;
  --ink: #122017;
  --muted: #5f6f63;
  --line: #dce9dd;
  --paper: #fbfdf8;
  --panel: #ffffff;
  --soft: #f0f8ed;
  --green: #12a150;
  --green-dark: #0a7336;
  --green-soft: #dff5e5;
  --shadow: 0 16px 45px rgba(18, 32, 23, 0.08);
  --header-bg: rgba(251, 253, 248, 0.9);
  --panel-bg: rgba(255, 255, 255, 0.9);
  --input-bg: #ffffff;
  --grid-line: rgba(18, 161, 80, 0.08);
  --page-wash: rgba(251, 253, 248, 0.9);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eff8f1;
  --muted: #b5c5b9;
  --line: #294134;
  --paper: #0d1510;
  --panel: #142019;
  --soft: #17291f;
  --green: #39d47b;
  --green-dark: #8af0b0;
  --green-soft: #183c28;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --header-bg: rgba(13, 21, 16, 0.9);
  --panel-bg: rgba(20, 32, 25, 0.92);
  --input-bg: #101a14;
  --grid-line: rgba(57, 212, 123, 0.08);
  --page-wash: rgba(13, 21, 16, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--page-wash), var(--page-wash)),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 12px 12px, 12px 12px, auto;
  background-attachment: fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
}

.nav,
.section-inner,
.hero-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.nav-links,
.hero-actions,
.filters,
.segments,
.product-meta,
.product-actions,
.footer-inner {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark,
.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
}

.brand-icon {
  object-fit: cover;
  background: #fff;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.site-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.language-control select,
.theme-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--ink);
  font-weight: 750;
}

.language-control select {
  min-width: 136px;
  padding: 0 12px;
  cursor: pointer;
}

.theme-toggle {
  min-width: 82px;
  padding: 0 14px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.theme-toggle[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-links a,
.footer a,
.button,
.mini-link,
.category-card {
  text-decoration: none;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--green);
}

.nav-links a[aria-current="page"] {
  color: var(--green);
}

.hero {
  padding: 86px 0 48px;
}

.hero-shell {
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 10px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--green);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.1;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.home-hero {
  padding-bottom: 34px;
}

.hero-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.segment:hover,
.category-card:hover,
.product-card:hover,
.guide-card:hover,
.steps-grid article:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 161, 80, 0.24);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
}

.stats-section {
  padding: 0 0 18px;
}

.page-hero {
  padding: 76px 0 6px;
}

.page-hero-inner {
  max-width: 860px;
  text-align: center;
}

.page-hero h1 {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(40px, 6vw, 68px);
}

.page-hero p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
}

.stats-grid article,
.product-card,
.category-card,
.steps-grid article,
.guide-card,
details,
.filters,
.cta-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.stats-grid article {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 24px 18px;
  text-align: center;
}

.stats-grid strong {
  color: var(--green);
  font-size: 34px;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
  font-weight: 700;
}

.section-inner {
  padding: 58px 0;
}

.section-heading {
  margin: 0 auto 30px;
}

.section-heading.centered {
  max-width: 760px;
  text-align: center;
}

.home-feature {
  padding-top: 38px;
}

.home-paths {
  padding-top: 44px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.25;
}

.section-heading p:last-child,
.product-card p,
.steps-grid p,
.guide-card p,
details p,
.cta-box p {
  color: var(--muted);
}

.filters {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 18px;
}

.search-field {
  flex: 1 1 300px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--input-bg);
  outline: none;
}

.search-field input:focus,
.language-control select:focus-visible,
.theme-toggle:focus-visible,
.segment:focus-visible,
.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(18, 161, 80, 0.22);
  outline-offset: 2px;
}

.segments {
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segments legend {
  width: 100%;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segment {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input-bg);
  color: var(--muted);
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.segment.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: transform 180ms ease;
}

.product-link-card {
  color: inherit;
  text-decoration: none;
}

.product-link-card .product-actions {
  justify-content: flex-end;
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.product-card p {
  margin-bottom: 0;
}

.product-actions {
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-weight: 950;
}

.mini-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  font-weight: 850;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--panel-bg);
  color: var(--muted);
  text-align: center;
}

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

.guide-grid,
.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-card {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 22px;
  transition: transform 180ms ease;
}

.category-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 900;
}

.category-card strong {
  font-size: 20px;
  line-height: 1.25;
}

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

.steps-grid article,
.guide-card {
  padding: 24px;
  transition: transform 180ms ease;
}

.steps-grid span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 950;
}

.guide-card p {
  margin-bottom: 0;
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 12px;
  margin: 0 auto;
}

details {
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.cta-section {
  padding: 10px 0 70px;
}

.cta-box {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 46px 24px;
}

.cta-box h2 {
  max-width: 720px;
}

.cta-box p {
  max-width: 620px;
  margin-bottom: 24px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--header-bg);
}

.footer-inner {
  min-height: 86px;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  color: var(--muted);
}

.footer p {
  margin: 0;
  font-weight: 800;
}

@media (max-width: 940px) {
  .nav {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .site-controls {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .hero {
    padding-top: 76px;
  }

  .stats-grid,
  .product-grid,
  .category-grid,
  .guide-grid,
  .why-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 58px 0 44px;
  }

  .section-inner {
    padding: 52px 0;
  }

  .stats-grid,
  .product-grid,
  .category-grid,
  .guide-grid,
  .why-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .filters,
  .footer-inner,
  .product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .language-control select,
  .theme-toggle {
    width: 100%;
  }

  .button,
  .mini-link {
    width: 100%;
  }

  .hero-copy {
    font-size: 17px;
  }
}

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