/* ================================================================
   MONOSOUNDS — Homepage Styles v2 (Compact / Dense)

   Same premium design as v1 but with tighter vertical rhythm.
   Reduced section padding, card padding, gaps, and margins
   for a more information-dense, modern feel.

   Target file in WordPress:
   /wp-content/themes/monosounds/css/monosounds-home-v2.css
   ================================================================ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-v12-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-v12-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-v29-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('../fonts/open-sans-v29-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- VARIABLES (shared with product page) ---- */
:root {
  --ms-yellow:       #FFE600;
  --ms-black:        #0A0A0A;
  --ms-white:        #FFFFFF;
  --ms-bg:           #F5F5F5;
  --ms-bg-card:      #FFFFFF;
  --ms-bg-dark:      #1A1A1A;
  --ms-text:         #0A0A0A;
  --ms-text-mid:     #444444;
  --ms-text-muted:   #888888;
  --ms-border:       #E2E2E2;
  --ms-purple:       #8B5CF6;
  --ms-radius:       14px;
  --ms-radius-sm:    10px;
  --ms-radius-pill:  100px;
}

/* ================================================================
   LAYOUT UTILITIES
   ================================================================ */

.ms-home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .ms-home-container {
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .ms-home-container {
    padding: 0 16px;
  }
}

/* ================================================================
   GLOBAL TYPOGRAPHY & RESET
   ================================================================ */

.ms-home-hero,
.ms-home-section,
.ms-home-quote,
.ms-home-dark-cta,
.ms-home-faqs,
.ms-home-articles {
  font-family: 'Open Sans', sans-serif;
  color: var(--ms-text);
}

/* ================================================================
   HERO / BANNER SECTION
   ================================================================ */

.ms-home-hero {
  position: relative;
  background: linear-gradient(135deg, #FFE600 0%, #FFF336 100%);
  overflow: hidden;
  padding: 0;
}

.ms-home-hero .wrapper {
  min-height: 600px;
}

.ms-home-hero .product-slider__title {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
  text-transform: none;
  font-weight: 700;
}

.ms-home-hero .product-slider__content {
  color: var(--ms-text);
}

/* ================================================================
   SECTION BASE STYLES
   ================================================================ */

.ms-home-section {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.ms-home-section--flush {
  padding: 0;
}

/* White/light background with subtle radial gradient */
.ms-home-section--white {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 230, 0, 0.05) 0, rgba(255, 230, 0, 0) 32%),
    var(--ms-white);
}

/* Light gray background with gradient overlay */
.ms-home-section--gray {
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 230, 0, 0.06) 0, rgba(255, 230, 0, 0) 28%),
    var(--ms-bg);
}

/* Dark background with strategic radial gradients */
.ms-home-section--dark {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 230, 0, 0.08) 0, rgba(255, 230, 0, 0) 32%),
    radial-gradient(circle at 84% 72%, rgba(255, 230, 0, 0.04) 0, rgba(255, 230, 0, 0) 40%),
    var(--ms-bg-dark);
  color: var(--ms-white);
}

/* Yellow section — high contrast */
.ms-home-section--yellow {
  background: #FFE600;
  color: var(--ms-text);
}

/* Gradient section */
.ms-home-section--gradient {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 230, 0, 0.13) 0, rgba(255, 230, 0, 0) 22%),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 18%),
    linear-gradient(180deg, #0b0b0c 0%, #101012 100%);
}

/* ================================================================
   SECTION HEADERS
   ================================================================ */

.ms-home-section-head {
  text-align: center;
  margin-bottom: 36px;
}

/* Pill kicker badge (like product page) */
.ms-home-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 5px 12px;
  border-radius: var(--ms-radius-pill);
  background: rgba(255, 230, 0, 0.45);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-black);
}

.ms-home-section--dark .ms-home-section-kicker {
  background: rgba(255, 230, 0, 0.18);
  color: rgba(255, 230, 0, 0.9);
}

.ms-home-section--yellow .ms-home-section-kicker {
  background: rgba(0, 0, 0, 0.1);
  color: var(--ms-black);
}

.ms-home-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.ms-home-section--dark .ms-home-section-title {
  color: var(--ms-white);
}

.ms-home-section--yellow .ms-home-section-title {
  color: var(--ms-black);
}

.ms-home-section-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ms-text-mid);
  max-width: 620px;
  margin: 0 auto;
}

.ms-home-section--dark .ms-home-section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.ms-home-section--yellow .ms-home-section-subtitle {
  color: rgba(0, 0, 0, 0.65);
}

/* ================================================================
   PRODUCT TABS (Sale / New / Hot)
   ================================================================ */

.ms-home-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ms-home-tabs li {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--ms-border);
  border-radius: var(--ms-radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 24px;
  cursor: pointer;
  transition: all 0.25s ease;
  color: var(--ms-text-mid);
  background: var(--ms-white);
}

.ms-home-tabs li:hover {
  border-color: var(--ms-text);
  color: var(--ms-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ms-home-tabs li.main_tabs_sale {
  color: #F9700D;
  border-color: #F9700D;
}

.ms-home-tabs li.active.main_tabs_sale {
  background: #F9700D;
  color: var(--ms-white);
  border-color: #F9700D;
}

.ms-home-tabs li.main_tabs_new {
  color: var(--ms-purple);
  border-color: var(--ms-purple);
}

.ms-home-tabs li.active.main_tabs_new {
  background: var(--ms-purple);
  color: var(--ms-white);
  border-color: var(--ms-purple);
}

.ms-home-tabs li.main_tabs_hot {
  color: var(--ms-text);
  border-color: var(--ms-text);
}

.ms-home-tabs li.active.main_tabs_hot {
  background: var(--ms-text);
  color: var(--ms-yellow);
  border-color: var(--ms-text);
}

.ms-home-tabs li img {
  width: 16px;
  height: 16px;
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */

.ms-home-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .ms-home-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ms-home-products {
    grid-template-columns: 1fr;
  }
}

/* Wrapper div for WooCommerce template output */
.ms-home-products > div {
  display: flex;
  flex-direction: column;
}

/* ── Product Cards — matching product-page style ──
   Layout: dark image (top) → yellow gradient body (bottom)
   with price → name → "Add to cart" pill button.

   HTML from content-product.php:
   article.product
     .product_icons        → badges (absolute over image)
     a > img.wp-post-image → artwork
     .product_desc
       h2 > a              → name
       .product_prices.product_buttons
         div > .price_actyal + .price_old
         .btncart.single_add_to_cart_button > img
   ──────────────────────────────────────────────── */

.ms-home-products .product {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 30%),
    linear-gradient(180deg, #ffe44b 0%, #ffd80e 56%, #f2c900 100%);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: var(--ms-radius);
  box-shadow: 0 18px 42px rgba(10, 10, 10, 0.12);
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  height: auto;
  min-height: auto;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.ms-home-products .product:hover {
  box-shadow: 0 24px 56px rgba(10, 10, 10, 0.18);
  transform: translateY(-4px);
}

/* ── Artwork (image link) ── */
.ms-home-products .product > a {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.ms-home-products .product .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  transition: transform 0.4s ease;
}

.ms-home-products .product:hover .wp-post-image {
  transform: scale(1.04);
}

/* ── Body (yellow area below image) ── */
.ms-home-products .product_desc {
  padding: 18px 20px 22px;
  margin: 0;
  background: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Product name — placed between price and CTA */
.ms-home-products .product_desc > h2 {
  order: 2;
  margin: 0;
}

/* no extra rule needed here — margin handled via order below */

.ms-home-products .product_desc > h2 > a,
.ms-home-products .product_desc > a {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  height: auto;
  min-height: auto;
  color: var(--ms-text);
  overflow-wrap: anywhere;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
}

.ms-home-products .product_desc > h2 > a:hover,
.ms-home-products .product_desc > a:hover {
  color: rgba(0, 0, 0, 0.65);
}

/* ── Price + Cart button area ──
   Explicit rows keep Safari/Chrome from collapsing the CTA into the title. */
.ms-home-products .product_desc > .product_prices {
  order: 1;
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ms-text);
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
}

/* Price values wrapper — top row inside yellow body */
.ms-home-products .product_desc > .product_prices > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.ms-home-products .product_prices .price_actyal,
.ms-home-products .product_prices .price_actual {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ms-text);
}

.ms-home-products .product_prices .price_old {
  font-size: 16px;
  color: var(--ms-text);
  opacity: 0.45;
  text-decoration: line-through;
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
}

/* ── Badges — pill-shaped, positioned over image ── */
.ms-home-products .product_icons {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-home-products .product_icons > div {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--ms-radius-pill);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  width: fit-content;
}

.ms-home-products .product_icons > div.icon_sale,
.ms-home-products .product_icons > div.sale {
  background: rgba(249, 112, 13, 0.88);
  color: #fff;
}

.ms-home-products .product_icons > div.icon_new,
.ms-home-products .product_icons > div.new {
  background: var(--ms-purple);
  color: #fff;
}

.ms-home-products .product_icons > div.icon_hot,
.ms-home-products .product_icons > div.hot {
  background: var(--ms-black);
  color: var(--ms-yellow);
}

/* Badge icon images (fire icon etc) */
.ms-home-products .product_icons > div img {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

/* ── Add to cart button ──
   Full-width pill, text "Add to cart" (or cart icon),
   sitting below name, matching product page exactly */
.ms-home-products .product_desc > .ms-home-product-cta,
.ms-home-products .product_desc > .single_add_to_cart_button,
.ms-home-products .product_desc > .btncart {
  order: 3;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  min-height: 56px;
  box-sizing: border-box;
  padding: 14px 24px;
  border-radius: var(--ms-radius-pill);
  border: 2px solid var(--ms-black);
  background: transparent;
  color: var(--ms-black);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  margin-left: 0 !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  float: none !important;
  clear: both;
  position: static !important;
  flex: 0 0 auto;
  align-self: stretch;
  gap: 10px;
}

.ms-home-products .product_desc > .ms-home-product-cta:hover,
.ms-home-products .product_desc > .single_add_to_cart_button:hover,
.ms-home-products .product_desc > .btncart:hover {
  background: var(--ms-black);
  color: var(--ms-yellow);
}

/* Cart icon inside button */
.ms-home-products .product_desc > .ms-home-product-cta img,
.ms-home-products .product_desc > .btncart img,
.ms-home-products .product_desc > .single_add_to_cart_button img {
  width: 20px;
  height: 20px;
  display: block;
  transition: filter 0.25s ease;
  flex-shrink: 0;
}

.ms-home-products .product_desc > .ms-home-product-cta span,
.ms-home-products .product_desc > .btncart span,
.ms-home-products .product_desc > .single_add_to_cart_button span {
  display: inline-block;
  line-height: 1;
}

.ms-home-products .product_desc > .ms-home-product-cta:hover img,
.ms-home-products .product_desc > .btncart:hover img,
.ms-home-products .product_desc > .single_add_to_cart_button:hover img {
  filter: brightness(0) invert(1);
}

/* ── Tags row inside product_desc (if present) ── */
.ms-home-products .tags_products {
  display: none;
}

/* ================================================================
   CTA BUTTONS
   ================================================================ */

.ms-home-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--ms-text);
  border-radius: var(--ms-radius-pill);
  padding: 13px 40px;
  color: var(--ms-text);
  background: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  gap: 8px;
}

.ms-home-cta-btn:hover {
  background: var(--ms-text);
  color: var(--ms-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.15);
}

.ms-home-cta-btn--light {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--ms-white);
}

.ms-home-cta-btn--light:hover {
  background: var(--ms-white);
  color: var(--ms-text);
  border-color: var(--ms-white);
}

.ms-home-cta-btn--yellow {
  border-color: var(--ms-yellow);
  color: var(--ms-black);
  background: transparent;
}

.ms-home-cta-btn--yellow:hover {
  background: var(--ms-yellow);
  border-color: var(--ms-yellow);
}

.ms-home-cta-center {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

/* ================================================================
   YELLOW QUOTE SECTION
   ================================================================ */

.ms-home-quote {
  background: #FFE600;
  padding: 56px 0;
  overflow: hidden;
  position: relative;
}

.ms-home-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 230, 0, 0.1) 0, rgba(255, 230, 0, 0) 32%);
  pointer-events: none;
}

.ms-home-quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.35;
  text-align: center;
  color: var(--ms-text);
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .ms-home-quote {
    padding: 44px 0;
  }
}

/* ================================================================
   CATEGORIES GRID
   ================================================================ */

.ms-home-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .ms-home-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ms-home-categories {
    grid-template-columns: 1fr;
  }
}

.ms-home-cat {
  width: 100%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 230, 0, 0.08) 0, rgba(255, 230, 0, 0) 32%),
    linear-gradient(180deg, #1A1A1A 0%, #0F0F0F 100%);
  border: 1px solid rgba(255, 230, 0, 0.16);
  border-radius: var(--ms-radius);
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.ms-home-cat:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 230, 0, 0.24);
}

.ms-home-cat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
  z-index: 0;
}

.ms-home-cat > * {
  position: relative;
  z-index: 1;
}

/* Wide variant (spans 2 columns) */
.ms-home-cat--wide {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .ms-home-cat--wide {
    grid-column: span 2;
  }
}

@media (max-width: 580px) {
  .ms-home-cat--wide {
    grid-column: span 1;
  }
}

.ms-home-cat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ms-home-cat-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 230, 0, 0.25);
  border-radius: var(--ms-radius-pill);
  color: rgba(255, 230, 0, 0.8);
  transition: all 0.2s ease;
  text-decoration: none;
  background: transparent;
  display: inline-block;
}

.ms-home-cat-tag:hover {
  border-color: rgba(255, 230, 0, 0.6);
  color: var(--ms-yellow);
  background: rgba(255, 230, 0, 0.08);
}

.ms-home-cat-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.2;
  color: var(--ms-white);
  margin: 16px 0 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.ms-home-cat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 12px;
  gap: 12px;
}

.ms-home-cat-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  margin: 0;
  padding: 0;
}

.ms-home-cat-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 230, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  color: rgba(255, 230, 0, 0.6);
  background: transparent;
}

.ms-home-cat:hover .ms-home-cat-arrow {
  background: var(--ms-yellow);
  border-color: var(--ms-yellow);
  color: var(--ms-text);
  transform: translateX(2px);
}

.ms-home-cat-arrow svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* ================================================================
   OUR BENEFITS SECTION (with metrics)
   ================================================================ */

/* Metrics row — glass cards (like product page) */
.ms-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .ms-home-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ms-home-metrics {
    grid-template-columns: 1fr;
  }
}

.ms-home-metric {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ms-home-metric:hover {
  border-color: rgba(255, 230, 0, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.ms-home-metric-value {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ms-white);
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.ms-home-metric-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* Benefits grid */
.ms-home-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .ms-home-benefits {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.ms-home-benefit {
  display: flex;
  flex-direction: column;
}

.ms-home-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ms-radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background 0.3s ease;
}

.ms-home-benefit:hover .ms-home-benefit-icon {
  background: rgba(255, 230, 0, 0.15);
}

.ms-home-benefit-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.ms-home-benefit-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ms-white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.ms-home-benefit-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  padding: 0;
}

/* ================================================================
   FAQ SECTION — Classic accordion with chevron
   ================================================================ */

.ms-home-faqs {
  max-width: 840px;
  margin: 0 auto;
  border-top: 1px solid rgba(10, 10, 10, 0.1);
}

.ms-home-faq {
  border-bottom: 1px solid rgba(10, 10, 10, 0.1);
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
  transition: background 0.25s ease;
}

.ms-home-faq:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Question row */
.ms-home-faq .faq_question {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ms-text);
  padding: 20px 4px 20px 0;
  margin: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: color 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
}

.ms-home-faq:hover .faq_question {
  color: rgba(0, 0, 0, 0.7);
}

/* Chevron arrow */
.ms-home-faq .faq_arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s ease;
  position: relative;
  background: rgba(10, 10, 10, 0.05);
}

.ms-home-faq:hover .faq_arrow {
  background: rgba(10, 10, 10, 0.08);
}

.ms-home-faq .faq_arrow svg {
  width: 16px;
  height: 16px;
  stroke: var(--ms-text-mid);
  stroke-width: 2;
  fill: none;
  transition: stroke 0.25s ease;
}

.ms-home-faq:hover .faq_arrow svg {
  stroke: var(--ms-text);
}

/* Open state — rotate chevron */
.ms-home-faq.activ .faq_arrow,
.ms-home-faq.open .faq_arrow {
  transform: rotate(180deg);
  background: var(--ms-yellow);
}

.ms-home-faq.activ .faq_arrow svg,
.ms-home-faq.open .faq_arrow svg {
  stroke: var(--ms-black);
}

/* Hide the old plus/cross lines */
.ms-home-faq .faq_line_1,
.ms-home-faq .faq_line_2 {
  display: none;
}

/* Answer — smooth slide */
.ms-home-faq .faq_answer {
  display: none;
  padding: 0 0 0 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ms-text-mid);
  margin-top: 0;
}

.ms-home-faq.activ .faq_answer,
.ms-home-faq.open .faq_answer {
  display: block;
  padding: 0 0 24px 0;
}

/* Help block */
.ms-home-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 840px;
  margin: 32px auto 0;
  padding: 24px 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 30%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: var(--ms-radius);
  box-shadow: 0 10px 24px rgba(10, 10, 10, 0.05);
}

.ms-home-help-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--ms-text);
}

.ms-home-help a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--ms-text);
  border-radius: var(--ms-radius-pill);
  padding: 12px 32px;
  color: var(--ms-text);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ms-home-help a:hover {
  background: var(--ms-text);
  color: var(--ms-white);
}

@media (max-width: 580px) {
  .ms-home-help {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .ms-home-help a {
    width: 100%;
  }
}

/* ================================================================
   SEO TEXT (collapsible)
   ================================================================ */

.ms-home-seo {
  padding: 48px 0;
  background: var(--ms-white);
}

.ms-home-seo .articles.content_block {
  display: flex;
  flex-direction: column;
  margin: 0;
  max-width: 840px;
  margin: 0 auto;
}

.ms-home-seo .articles.content_block h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ms-home-seo .articles.content_block h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 24px;
  padding-bottom: 12px;
  margin-top: 32px;
  letter-spacing: -0.01em;
}

.ms-home-seo .articles.content_block p {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ms-text-mid);
  padding-bottom: 16px;
}

.ms-home-seo .articles.content_block a {
  color: var(--ms-text);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(10, 10, 10, 0.18);
  text-underline-offset: 0.16em;
}

.ms-home-seo .articles.content_block a:hover {
  text-decoration-color: rgba(10, 10, 10, 0.42);
}

.ms-home-seo .content_toggle {
  display: flex;
  margin: 24px auto 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid var(--ms-text);
  border-radius: var(--ms-radius-pill);
  padding: 14px 40px;
  color: var(--ms-text);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ms-home-seo .content_toggle:hover {
  background: var(--ms-text);
  color: var(--ms-white);
}

/* ================================================================
   ARTICLES / BLOG GRID
   ================================================================ */

.ms-home-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .ms-home-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .ms-home-articles {
    grid-template-columns: 1fr;
  }
}

.ms-home-articles .article {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 30%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: var(--ms-radius);
  max-width: 100%;
  width: 100%;
  margin: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.ms-home-articles .article:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 18px 42px rgba(10, 10, 10, 0.12);
  transform: translateY(-4px);
}

.ms-home-articles .article .wp-post-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ms-home-articles .article:hover .wp-post-image {
  transform: scale(1.05);
}

.ms-home-articles .article_name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ms-text);
  padding: 16px 20px 6px;
  height: auto;
  min-height: 48px;
  letter-spacing: -0.02em;
}

.ms-home-articles .article_date {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  color: var(--ms-text-muted);
  padding: 0 20px 6px;
}

.ms-home-articles .article_desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ms-text-mid);
  padding: 0 20px 8px;
  height: auto;
}

.ms-home-articles .read_more {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ms-text);
  padding: 0 20px 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ms-home-articles .read_more:hover {
  color: rgba(0, 0, 0, 0.7);
}

/* ================================================================
   DARK CTA BANNER
   ================================================================ */

.ms-home-dark-cta {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 230, 0, 0.08) 0, rgba(255, 230, 0, 0) 32%),
    radial-gradient(circle at 84% 72%, rgba(255, 230, 0, 0.04) 0, rgba(255, 230, 0, 0) 40%),
    linear-gradient(180deg, #1A1A1A 0%, #0F0F0F 100%);
  border: 1px solid rgba(255, 230, 0, 0.12);
  border-radius: var(--ms-radius);
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto 64px;
  max-width: 1200px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.20);
}

@media (max-width: 900px) {
  .ms-home-dark-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 28px;
    margin: 0 16px 56px;
  }
}

@media (max-width: 600px) {
  .ms-home-dark-cta {
    padding: 24px 20px;
    margin: 0 16px 40px;
  }
}

.ms-home-dark-cta-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ms-yellow);
  margin-bottom: 8px;
}

.ms-home-dark-cta-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ms-white);
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.ms-home-dark-cta-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  max-width: 480px;
}

.ms-home-dark-cta-action {
  flex-shrink: 0;
}

.ms-home-dark-cta-action .single_add_to_cart_button,
.ms-home-dark-cta-action button.button {
  padding: 16px 48px !important;
  border-radius: var(--ms-radius-pill) !important;
  border: 2px solid var(--ms-white) !important;
  background: transparent !important;
  color: var(--ms-white) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.ms-home-dark-cta-action .single_add_to_cart_button:hover,
.ms-home-dark-cta-action button.button:hover {
  background: var(--ms-white) !important;
  color: var(--ms-text) !important;
  border-color: var(--ms-white) !important;
}

/* ================================================================
   NEWSLETTER DIALOG
   ================================================================ */

dialog#dialog {
  border: none;
  border-radius: var(--ms-radius);
  padding: 40px;
  max-width: 460px;
  background: var(--ms-white);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  position: relative;
}

dialog#dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

dialog#dialog .footer_name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: var(--ms-text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

dialog#dialog .footer_desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ms-text-mid);
  margin-bottom: 24px;
}

dialog#dialog .x {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ms-text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

dialog#dialog .x:hover {
  color: var(--ms-text);
}

dialog#dialog input[type="email"] {
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  padding: 14px 18px;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius-sm);
  background: var(--ms-white);
  color: var(--ms-text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 16px;
}

dialog#dialog input[type="email"]:focus {
  border-color: var(--ms-text);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.05);
}

dialog#dialog input[type="submit"] {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 16px;
  border: none;
  border-radius: var(--ms-radius-sm);
  background: var(--ms-text);
  color: var(--ms-white);
  cursor: pointer;
  transition: background 0.3s ease;
}

dialog#dialog input[type="submit"]:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* ================================================================
   ANIMATIONS & TRANSITIONS
   ================================================================ */

@keyframes ms-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ms-home-animate {
  animation: ms-fade-up 0.6s ease-out both;
}

/* Stagger delays */
.ms-home-animate-d1 { animation-delay: 0.05s; }
.ms-home-animate-d2 { animation-delay: 0.1s; }
.ms-home-animate-d3 { animation-delay: 0.15s; }
.ms-home-animate-d4 { animation-delay: 0.2s; }
.ms-home-animate-d5 { animation-delay: 0.25s; }
.ms-home-animate-d6 { animation-delay: 0.3s; }
.ms-home-animate-d7 { animation-delay: 0.35s; }
.ms-home-animate-d8 { animation-delay: 0.4s; }
.ms-home-animate-d9 { animation-delay: 0.45s; }
.ms-home-animate-d10 { animation-delay: 0.5s; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ================================================================
   RESPONSIVE REFINEMENTS
   ================================================================ */

@media (max-width: 900px) {
  .ms-home-section {
    padding: 52px 0;
  }

  .ms-home-section-head {
    margin-bottom: 32px;
  }

  .ms-home-quote {
    padding: 48px 0;
  }

  .ms-home-metrics {
    margin-bottom: 36px;
    padding-bottom: 36px;
  }
}

@media (max-width: 768px) {
  .ms-home-section {
    padding: 44px 0;
  }

  .ms-home-section-head {
    margin-bottom: 28px;
  }

  .ms-home-tabs {
    margin-bottom: 24px;
  }

  .ms-home-dark-cta {
    margin: 0 auto 44px;
  }
}

@media (max-width: 580px) {
  .ms-home-section {
    padding: 36px 0;
  }

  .ms-home-section-head {
    margin-bottom: 24px;
  }

  .ms-home-section-kicker {
    font-size: 10px;
    padding: 4px 10px;
  }

  .ms-home-section-title {
    margin-bottom: 8px;
  }

  .ms-home-section-subtitle {
    font-size: 14px;
  }

  .ms-home-quote {
    padding: 36px 0;
  }

  .ms-home-quote-text {
    font-size: clamp(20px, 3.5vw, 32px);
  }

  .ms-home-tabs {
    gap: 6px;
    margin-bottom: 20px;
  }

  .ms-home-tabs li {
    height: 36px;
    padding: 0 18px;
    font-size: 11px;
  }

  .ms-home-products {
    gap: 12px;
    margin-bottom: 28px;
  }

  .ms-home-products .product {
    padding: 0;
    min-height: auto;
  }

  .ms-home-products .product_desc {
    padding: 14px 16px 18px;
  }

  .ms-home-products .product_prices .price_actyal,
  .ms-home-products .product_prices .price_actual {
    font-size: 24px;
  }

  .ms-home-products .product_desc > .ms-home-product-cta,
  .ms-home-products .product_desc > .btncart,
  .ms-home-products .product_desc > .single_add_to_cart_button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .ms-home-cta-center {
    padding-top: 12px;
  }

  .ms-home-cta-btn {
    padding: 11px 28px;
    font-size: 12px;
  }

  .ms-home-cat {
    padding: 20px;
    min-height: 220px;
  }

  .ms-home-cat-name {
    font-size: clamp(18px, 2.5vw, 24px);
    margin-top: 12px;
  }

  .ms-home-metrics {
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .ms-home-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .ms-home-metric {
    padding: 12px 10px;
  }

  .ms-home-metric-value {
    font-size: clamp(16px, 2.5vw, 24px);
  }

  .ms-home-metric-label {
    font-size: 11px;
  }

  .ms-home-benefits {
    gap: 24px;
  }

  .ms-home-faq .faq_question {
    padding: 16px 0;
    font-size: 15px;
    gap: 16px;
  }

  .ms-home-faq .faq_arrow {
    width: 28px;
    height: 28px;
  }

  .ms-home-faq .faq_arrow svg {
    width: 14px;
    height: 14px;
  }

  .ms-home-faq.activ .faq_answer,
  .ms-home-faq.open .faq_answer {
    padding: 0 0 18px 0;
    font-size: 14px;
  }

  .ms-home-help {
    padding: 16px 14px;
    margin-top: 24px;
  }

  .ms-home-seo {
    padding: 36px 0;
  }

  .ms-home-seo .articles.content_block h1 {
    font-size: 24px;
  }

  .ms-home-seo .articles.content_block h2 {
    font-size: 18px;
  }

  .ms-home-seo .articles.content_block p {
    font-size: 14px;
  }

  .ms-home-articles {
    gap: 12px;
  }

  .ms-home-articles .article .wp-post-image {
    height: 140px;
  }

  .ms-home-articles .article_name {
    padding: 12px 16px 4px;
    font-size: 15px;
  }

  .ms-home-articles .article_date {
    padding: 0 16px 4px;
    font-size: 11px;
  }

  .ms-home-articles .article_desc {
    padding: 0 16px 6px;
    font-size: 12px;
  }

  .ms-home-articles .read_more {
    padding: 0 16px 14px;
    font-size: 12px;
  }

  dialog#dialog {
    padding: 28px 20px;
    max-width: calc(100% - 24px);
  }

  dialog#dialog .footer_name {
    font-size: 17px;
  }

  dialog#dialog input[type="email"],
  dialog#dialog input[type="submit"] {
    font-size: 14px;
  }
}

/* ================================================================
   HIGH DPI / RETINA DISPLAYS
   ================================================================ */

@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;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --ms-bg: #0F0F0F;
    --ms-bg-card: #1A1A1A;
    --ms-text: #F5F5F5;
    --ms-text-mid: #B8B8B8;
    --ms-text-muted: #777777;
    --ms-border: #2A2A2A;
  }
}
