@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

html {
  scroll-behavior: smooth;
}

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

:root {
  --bg: #faf6ed;
  --bg-card: #fffdf8;
  --bg-elevated: #f0ebe0;
  --border: rgba(0, 0, 0, 0.08);
  --text: #1f2937;
  --text-muted: #6b7280;
  --accent: #ff4d00;
  --accent-hover: #ff6b2b;
  --accent-dim: rgba(255, 77, 0, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1180px;
  --header-h: 64px;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 237, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-name { color: var(--text); }
.logo-name em { color: var(--accent); font-style: normal; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.lang-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 56px 0 48px;
  text-align: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 24px 0 18px;
}

.hero-stat {
  text-align: center;
  min-width: 110px;
}

.hero-stat--featured .hero-stat-num {
  font-size: 1.75rem;
}

.hero-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.hero-stat-num--count {
  min-width: 9ch;
  display: inline-block;
}

.hero-stat-num--count.is-counting {
  animation: statJump 0.45s ease-out;
}

@keyframes statJump {
  0% {
    transform: translateY(12px);
    opacity: 0.35;
  }
  55% {
    transform: translateY(-6px);
    opacity: 1;
  }
  78% {
    transform: translateY(2px);
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stat-num--count.is-counting {
    animation: none;
  }
}

.hero-stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 32px;
  max-width: 720px;
  padding: 0 4px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 1 auto;
}

.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Search */
.search-box {
  max-width: 640px;
  margin: 0 auto 16px;
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder { color: var(--text-muted); }

.search-box button {
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover { background: var(--accent-hover); }

.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.keyword-chip {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.keyword-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section--tight-bottom {
  padding-bottom: 24px;
}

.section--tight-top {
  padding-top: 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: -16px;
  margin-bottom: 24px;
}

/* Category grid — 10 items in 2 rows (5 per row) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s, transform 0.2s;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.category-icon { font-size: 1.3rem; }

.category-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Link grids */
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-pill {
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.link-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Resource cards */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.resource-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
}

.resource-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.resource-card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.resource-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.resource-card span {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
  border-color: rgba(255, 77, 0, 0.4);
  transform: translateY(-3px);
}

.product-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0ebe0, #e8e0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-badge--hot { background: #ef4444; color: #fff; }
.product-badge--trending { background: #f59e0b; color: #fff; }

.product-body { padding: 20px; }

.product-category {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Community picks */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.community-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.community-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.community-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* FAQ */
.faq-list { max-width: 760px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.faq-question::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-question::after {
  transform: rotate(-135deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-answer p:first-child {
  padding-top: 0;
}

.faq-answer p:last-child {
  padding-bottom: 18px;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-answer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

.faq-answer ul,
.faq-answer ol {
  margin: 10px 0;
  padding: 0 20px 0 36px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-answer li {
  margin-bottom: 6px;
}

.faq-steps {
  list-style: decimal;
}

.faq-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 20px 18px;
}

.faq-tag {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 8px;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Finds page */
.page-hero {
  padding: 40px 0 24px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p { color: var(--text-muted); }

.finds-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.finds-toolbar input,
.finds-toolbar select {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
}

.finds-toolbar input { flex: 1; min-width: 200px; }

.finds-toolbar select { min-width: 160px; }

.finds-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Content pages */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.content-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.content-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
}

.content-page p,
.content-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.content-page ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open { display: flex; }

  .lang-select { display: none; }

  .search-box { flex-direction: column; }

  .search-box button { width: 100%; }

  .products-grid { grid-template-columns: 1fr; }
}
