/* ==========================================================================
   SafarGet Homepage Hero Enhancements
   - Adds macOS Download CTA & GitHub CTA beside "Discover SafarGet"
   - Enlarges the 3 feature-rail chips below with crisp dedicated icons
   ========================================================================== */

@media (min-width: 1080px) {
  .hero-copy {
    max-width: 600px;
  }
}

/* Balanced CTA action row */
.cta-row {
  gap: 11px;
  align-items: center;
}

.cta-row .primary-cta {
  min-height: 52px;
  padding: 0 20px;
}

/* Beautiful macOS Download Button */
.sg-macos-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding-block: 0;
  padding-inline: 13px 18px;
  border: 1px solid #0e8d75;
  border-radius: 13px;
  background: linear-gradient(135deg, #13a98c, #0c7f6a);
  color: #f6fffc;
  font-family: "Manrope", var(--app-font-sans);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px #0f8e7630, inset 0 1px #ffffff2e;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sg-macos-cta:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #16b898, #0e8f77);
  box-shadow: 0 14px 28px #0f8e7642, inset 0 1px #ffffff38;
  color: #ffffff;
}

.sg-macos-cta:focus-visible,
.sg-github-cta:focus-visible {
  outline: 3px solid #3ab99c;
  outline-offset: 3px;
}

.sg-macos-badge {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: #ffffff26;
  color: #ffffff;
}

.sg-macos-apple {
  display: inline-flex;
  align-items: center;
  flex: none;
  opacity: 0.96;
}

/* Clear GitHub Button */
.sg-github-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border: 1.5px solid #bdd7cf;
  border-radius: 13px;
  background: #ffffffde;
  color: #162e34;
  font-family: "Manrope", var(--app-font-sans);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px #16373712, inset 0 1px #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.sg-github-cta:hover {
  transform: translateY(-3px);
  border-color: #13a98c;
  background: #ffffff;
  color: #0b7a65;
  box-shadow: 0 14px 26px #153c381c;
}

.sg-github-ext {
  color: #6b8780;
  transition: transform 0.2s ease, color 0.2s ease;
}

.sg-github-cta:hover .sg-github-ext {
  color: #0fa88a;
  transform: translate(1px, -1px);
}

html[dir="rtl"] .sg-github-cta:hover .sg-github-ext {
  transform: translate(-1px, -1px);
}

/* Keep speed caption cleanly underneath the 3-button CTA bar */
.cta-row .cta-caption {
  flex-basis: 100%;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  color: #647a74;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}

.cta-row .cta-caption br {
  display: none;
}

.sg-caption-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #24b79a;
  flex: none;
}

/* Enlarged, icon-enhanced feature chips below CTA row */
.feature-rail {
  gap: 10px;
  margin-top: 22px;
}

.feature-chip {
  padding-block: 9px;
  padding-inline: 10px 15px;
  gap: 9px;
  border: 1px solid #c3dbd3;
  background: #ffffffd9;
  color: #21423e;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.25;
  box-shadow: 0 6px 16px #1c4b400c;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.feature-chip:hover {
  transform: translateY(-2px);
  border-color: #88cfbc;
  background: #ffffff;
  box-shadow: 0 10px 22px #1c4b4014;
}

.feature-chip b {
  font-size: 13.5px;
  font-weight: 800;
  color: #0b8f76;
}

/* Hide React's tiny dot / 12px SVG without detaching React-managed DOM nodes */
.feature-chip.sg-chip-enhanced .chip-dot,
.feature-chip.sg-chip-enhanced > svg:not(.sg-chip-svg) {
  display: none;
}

.sg-chip-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  background: #dff5ec;
  color: #0f8c74;
}

.sg-chip-icon--youtube {
  background: #ffecef;
  color: #e11d48;
}

.sg-chip-icon--bonding {
  background: #e4f2fb;
  color: #1677b8;
}

.sg-chip-icon svg {
  display: block;
  color: currentColor;
}

/* Responsive adjustments */
@media (max-width: 700px) {
  .cta-row {
    gap: 8px;
  }

  .cta-row .primary-cta,
  .sg-macos-cta,
  .sg-github-cta {
    min-height: 48px;
    font-size: 13px;
  }

  .sg-macos-cta {
    padding-inline: 11px 15px;
    gap: 7px;
  }

  .sg-github-cta {
    padding-inline: 14px;
    gap: 7px;
  }

  .sg-macos-badge {
    width: 25px;
    height: 25px;
  }

  .cta-row .cta-caption {
    font-size: 11.5px;
  }

  .feature-rail {
    gap: 8px;
    margin-top: 16px;
  }

  .feature-chip {
    padding-block: 7px;
    padding-inline: 8px 12px;
    gap: 7px;
    font-size: 12px;
  }

  .feature-chip b {
    font-size: 12px;
  }

  .sg-chip-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 390px) {
  .feature-chip {
    font-size: 11.5px;
    padding-inline: 7px 11px;
  }

  .feature-chip b {
    font-size: 11.5px;
  }
}
