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

:root {
  --bg: #09111d;
  --bg-soft: #0d1828;
  --surface: rgba(14, 23, 38, 0.92);
  --surface-strong: #101b2d;
  --surface-alt: #13233a;
  --text: #f5f8ff;
  --muted: #98abc5;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #79a8ff;
  --brand-strong: #a7c4ff;
  --accent: #7df0c8;
  --warm: #ffba7a;
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --shadow-sm: 0 20px 50px rgba(3, 8, 20, 0.25);
  --shadow-md: 0 28px 80px rgba(3, 8, 20, 0.32);
  --shadow-lg: 0 36px 120px rgba(2, 6, 18, 0.42);
  --hero-gradient: linear-gradient(135deg, #08111d 0%, #10203a 48%, #173a6b 100%);
  --panel-gradient: linear-gradient(180deg, rgba(19, 32, 53, 0.95), rgba(12, 22, 37, 0.98));
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(121, 168, 255, 0.14), transparent 26%),
    radial-gradient(circle at 80% 20%, rgba(125, 240, 200, 0.08), transparent 20%),
    linear-gradient(180deg, #07101b 0%, #09111d 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 14, 24, 0.6);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.navbar.scrolled {
  background: rgba(8, 14, 24, 0.88);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
}

.logo-img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.logo-word {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff, #9ec0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero,
.product-hero,
.about-hero,
.blog-hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-gradient);
}

.hero::before,
.hero::after,
.product-hero::before,
.about-hero::before,
.blog-hero::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before,
.product-hero::before,
.about-hero::before,
.blog-hero::before {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -80px;
  background: radial-gradient(circle, rgba(121, 168, 255, 0.2), transparent 66%);
}

.hero::after {
  width: 340px;
  height: 340px;
  left: -80px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(125, 240, 200, 0.16), transparent 70%);
}

.hero {
  padding: 7rem 0 6rem;
}

.product-hero,
.about-hero,
.blog-hero {
  padding: 4.8rem 0 3.8rem;
  color: var(--text);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  max-width: 640px;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.eyebrow,
.feature-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-portfolio-grid,
.smart-tools-grid,
.premium-intro-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-portfolio-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: end;
}

.hero-copy {
  max-width: 760px;
}

.hero-search-shell {
  margin-top: 1.8rem;
}

.hero-search-wrapper,
.product-search-wrapper {
  position: relative;
  max-width: 660px;
}

.search-input {
  width: 100%;
  min-height: 62px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: #102038;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.search-input:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(121, 168, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(121, 168, 255, 0.12), var(--shadow-md);
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  color: #08111d;
  background: linear-gradient(135deg, #ffffff 0%, #b9d0ff 100%);
  box-shadow: 0 18px 40px rgba(80, 123, 210, 0.24);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-panel,
.finder-shell,
.category-card,
.trust-item,
.mission-item,
.blog-card,
.legal-card,
.product-card,
.newsletter-container {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-gradient);
  box-shadow: var(--shadow-sm);
}

.feature-panel {
  padding: 1.5rem;
}

.hero-panel-large {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-panel-large h2,
.premium-intro-grid h2,
.smart-copy h2 {
  margin-top: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-panel-large p,
.feature-panel p,
.smart-copy p,
.section-heading p,
.category-card p,
.trust-item p,
.mission-item p,
.blog-card-snippet,
.footer-desc,
.footer-contact p,
.about-section p,
.legal-copy,
.finder-result-copy p,
.pick-note,
.newsletter-section p {
  color: var(--muted);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-stat {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.premium-intro,
.alt-surface {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

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

.section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-title {
  margin-top: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

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

.products-grid.horizontal-scroll {
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 340px);
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.products-grid.horizontal-scroll .product-card {
  scroll-snap-align: start;
}

.products-grid.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.products-grid.horizontal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.curated-grid {
  margin-top: 1.2rem;
}

.decision-grid {
  margin-top: 1.2rem;
}

.product-card {
  min-height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(121, 168, 255, 0.08), transparent 46%, rgba(125, 240, 200, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover,
.product-card:focus-visible,
.category-card:hover,
.trust-item:hover,
.mission-item:hover,
.blog-card:hover,
.legal-card:hover,
.feature-panel:hover,
.finder-shell:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.14);
}

.product-card:hover::before,
.product-card:focus-visible::before {
  opacity: 1;
}

.product-card:focus-visible,
.btn:focus-visible,
.filter-chip:focus-visible,
.sort-select:focus-visible,
.suggestion-item:focus-visible,
.match-group label:has(input:focus-visible) {
  outline: 3px solid rgba(121, 168, 255, 0.25);
  outline-offset: 2px;
}

.product-image-wrap {
  position: relative;
  padding: 1.3rem;
  aspect-ratio: 1 / 0.9;
  background:
    radial-gradient(circle at top, rgba(121, 168, 255, 0.16), transparent 54%),
    linear-gradient(180deg, rgba(18, 32, 52, 0.86), rgba(10, 18, 31, 0.96));
}

.product-image-wrap::after {
  content: '';
  position: absolute;
  inset: auto 16px 10px 16px;
  height: 24px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.32), transparent 70%);
  filter: blur(12px);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition: transform 0.45s ease;
}

.product-card:hover img,
.product-card:focus-visible img {
  transform: scale(1.06);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.35rem;
}

.decision-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(125, 240, 200, 0.1);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.badge,
.product-category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge {
  color: #08111d;
}

.badge-top-pick {
  background: linear-gradient(135deg, #7df0c8, #a7f7de);
}

.badge-hot {
  background: linear-gradient(135deg, #ffba7a, #ffd2a8);
}

.badge-best-deal,
.badge-budget {
  background: linear-gradient(135deg, #b7cfff, #d5e2ff);
}

.product-category {
  color: var(--brand-strong);
  background: rgba(121, 168, 255, 0.1);
}

.product-info h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.pick-note {
  padding-top: 0.15rem;
  font-size: 0.88rem;
}

.decision-grid-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.decision-grid-meta div {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.decision-grid-meta dt {
  margin-bottom: 0.22rem;
  color: var(--brand-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-grid-meta dd {
  color: var(--text);
  font-size: 0.86rem;
}

.decision-grid-meta .decision-verdict {
  grid-column: 1 / -1;
}

.product-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--warm);
}

.rating-value {
  margin-left: 0.5rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.86rem;
}

.star-half {
  opacity: 0.72;
}

.price {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.product-actions {
  margin-top: 0.15rem;
}

.btn-deal {
  width: 100%;
  color: #07101b;
  background: linear-gradient(135deg, #f6fbff 0%, #b7cfff 100%);
  box-shadow: 0 16px 28px rgba(10, 18, 31, 0.24);
}

.highlight {
  color: #0b1730;
  background: linear-gradient(135deg, #dce8ff, #bdeedc);
  border-radius: 0.4rem;
  padding: 0 0.18rem;
}

.empty-message {
  padding: 1.25rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
}

.smart-tools-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

.finder-shell {
  padding: 1.4rem;
}

.smart-match-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.match-group {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.match-group h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.match-group label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.match-group label:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.finder-result {
  margin-top: 1rem;
}

.finder-result-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
}

.finder-result-image {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 32, 52, 0.8), rgba(10, 18, 31, 0.95));
}

.finder-result-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.finder-result-copy h3 {
  margin-top: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  line-height: 1.04;
}

.finder-result-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.finder-result-decision,
.modal-decision-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.finder-result-decision span,
.modal-decision-summary span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.82rem;
}

.categories-grid,
.trust-grid,
.mission-container,
.blog-grid,
.footer-container {
  display: grid;
  gap: 1.5rem;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 2rem;
}

.category-card,
.trust-item,
.mission-item,
.blog-card,
.legal-card {
  padding: 1.5rem;
}

.category-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
}

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

.newsletter-section {
  padding: 4rem 0;
}

.newsletter-container {
  max-width: 760px;
  padding: 2rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.newsletter-form input[type='email'] {
  flex: 1 1 260px;
  min-height: 54px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f1b2f;
}

.newsletter-form input[type='email']:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(121, 168, 255, 0.14);
}

.filter-bar {
  position: sticky;
  top: 84px;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(8, 14, 24, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
  transform: translateY(-2px);
  background: rgba(121, 168, 255, 0.18);
  color: var(--text);
}

.filter-chip img {
  width: 18px;
  height: 18px;
}

.sort-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
}

.sort-select {
  min-height: 46px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 90;
  display: grid;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(12, 20, 32, 0.96);
  box-shadow: var(--shadow-md);
  max-height: 320px;
  overflow-y: auto;
}

.suggestions.hidden {
  display: none;
}

.suggestion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(2px);
}

.suggestion-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quick-view-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 26, 42, 0.98), rgba(10, 18, 31, 0.98));
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.modal-body img {
  width: min(240px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
}

.modal-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  line-height: 1.06;
}

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

.blog-card-image {
  min-height: 210px;
  border-radius: 20px;
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-top: 1.2rem;
}

.blog-card-title {
  font-size: 1.22rem;
  line-height: 1.28;
}

.blog-read-more {
  margin-top: auto;
  color: var(--brand-strong);
  font-weight: 700;
}

.about-section p,
.legal-copy {
  max-width: 860px;
  margin-top: 1rem;
  font-size: 1rem;
}

.legal-page .section {
  padding-top: 4rem;
}

.legal-card + .legal-card {
  margin-top: 1rem;
}

.footer {
  margin-top: 2rem;
  padding: 4rem 0 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(121, 168, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #07101b 0%, #050b14 100%);
  color: rgba(255, 255, 255, 0.84);
}

.footer-container {
  grid-template-columns: 1.3fr repeat(3, minmax(160px, 1fr));
}

.footer-brand .footer-logo {
  margin-bottom: 0.9rem;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
  margin-bottom: 0.8rem;
}

.footer-links ul,
.footer-legal ul {
  list-style: none;
}

.footer-links li,
.footer-legal li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: rgba(255, 255, 255, 0.54);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.active {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-portfolio-grid,
  .smart-tools-grid,
  .premium-intro-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

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

  .nav-menu {
    position: fixed;
    top: 84px;
    right: 16px;
    left: 16px;
    display: block;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(8, 14, 24, 0.96);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list a {
    justify-content: center;
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .filter-bar {
    top: 74px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 3.8rem 0;
  }

  .hero {
    padding: 5rem 0 4.4rem;
  }

  .product-hero,
  .about-hero,
  .blog-hero {
    padding: 4rem 0 3rem;
  }

  .finder-result-card,
  .smart-match-form {
    grid-template-columns: 1fr;
  }

  .decision-grid-meta {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 100%);
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .products-grid.horizontal-scroll {
    grid-auto-columns: minmax(86vw, 86vw);
  }

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

  .categories-grid,
  .trust-grid,
  .mission-container,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .newsletter-form {
    flex-direction: column;
  }

  .hero-actions .btn,
  .newsletter-form .btn {
    width: 100%;
  }

  .filter-container {
    align-items: stretch;
  }

  .sort-container {
    width: 100%;
    justify-content: space-between;
  }
}



/* ===== Engine upgrade ===== */
.result-count {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(121, 168, 255, 0.12);
  color: var(--brand-strong);
  margin-right: 0.75rem;
  font-size: 0.86rem;
}

.compare-toggle {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(8, 14, 24, 0.76);
  color: var(--text);
  font-size: 0.78rem;
  backdrop-filter: blur(14px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.compare-toggle:hover,
.compare-toggle.active {
  transform: translateY(-2px);
  background: rgba(121, 168, 255, 0.18);
  border-color: rgba(121, 168, 255, 0.45);
}

.compare-engine {
  background: var(--panel-gradient);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.compare-engine-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.compare-engine-head .section-title {
  text-align: left;
  margin-bottom: 0;
}
.compare-engine-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.compare-count {
  color: var(--muted);
  font-size: 0.9rem;
}
.compare-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.compare-chip {
  border: 1px solid rgba(121, 168, 255, 0.3);
  background: rgba(121, 168, 255, 0.1);
  color: var(--text);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.compare-chip:hover {
  transform: translateY(-2px);
  background: rgba(121, 168, 255, 0.16);
}
.compare-chip:focus-visible,
.compare-toggle:focus-visible,
.modal-close:focus-visible {
  outline: 3px solid rgba(121, 168, 255, 0.25);
  outline-offset: 2px;
}
.compare-table-wrap {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 1rem;
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  color: var(--brand-strong);
  font-weight: 600;
  background: rgba(255,255,255,0.02);
}
.compare-empty {
  color: var(--muted);
  padding: 0.4rem 0;
}

.finder-result-decision,
.modal-decision-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}
.finder-result-decision span,
.modal-decision-summary span {
  padding: 0.7rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.decision-grid-meta dt {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.decision-grid-meta dd {
  color: var(--text);
  font-size: 0.94rem;
}
.decision-grid-meta {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0 1.15rem;
}
.decision-grid-meta .decision-verdict {
  grid-column: 1 / -1;
}
.pick-note {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(125, 240, 200, 0.08);
  border: 1px solid rgba(125, 240, 200, 0.1);
  color: var(--text);
  margin-top: 0.95rem;
}
.product-image-wrap {
  position: relative;
}

@media (max-width: 900px) {
  .compare-engine-head {
    flex-direction: column;
    align-items: stretch;
  }
  .compare-engine-actions {
    justify-content: space-between;
  }
}
@media (max-width: 640px) {
  .decision-grid-meta {
    grid-template-columns: 1fr;
  }
  .compare-engine {
    padding: 1rem;
  }
  .result-count {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
}


.compare-help {
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.compare-toggle {
  min-width: 112px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
}

.compare-toggle.active {
  background: linear-gradient(135deg, rgba(121,168,255,0.22), rgba(125,240,200,0.2));
  color: #fff;
}

.compare-empty strong {
  color: var(--brand-strong);
}

.product-image-wrap img {
  object-fit: contain;
  background: linear-gradient(135deg, rgba(18, 34, 58, 0.88), rgba(16, 49, 89, 0.9));
}

.compare-toggle {
  cursor: pointer;
}

.compare-toggle.active {
  background: linear-gradient(135deg, rgba(125, 240, 200, 0.24), rgba(121, 168, 255, 0.28));
  border-color: rgba(125, 240, 200, 0.38);
  color: #ecfffb;
}

.compare-empty {
  color: var(--muted);
  line-height: 1.7;
}
