/* Hero section */
.sf-hero {
  position: relative;
  background: var(--sf-primary);
  color: #fff;
  overflow: hidden;
  padding: 72px 0 72px;
}
.sf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(0, 229, 240, 0.18), transparent 60%),
              radial-gradient(900px 500px at 10% 90%, rgba(219, 0, 178, 0.22), transparent 65%);
  pointer-events: none;
}
.sf-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .sf-hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.sf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  border-radius: var(--sf-radius-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.sf-hero-badge-pill {
  background: var(--sf-aqua-300);
  color: var(--sf-primary);
  padding: 3px 10px;
  border-radius: var(--sf-radius-pill);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sf-hero h1 {
  font-family: var(--sf-font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.sf-hero h1 em {
  font-style: normal;
  color: var(--sf-aqua-300);
}
.sf-hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 48ch;
  margin: 0 0 40px;
}

.sf-hero-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
  padding: 8px;
  background: #fff;
  border: none;
  border-radius: var(--sf-radius-pill);
  box-shadow: 0 8px 32px rgba(0,0,40,0.35);
}
.sf-hero-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #1a1a2e;
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}
.sf-hero-form input::placeholder { color: rgba(0,0,0,0.38); }
.sf-hero-form .sf-btn { padding: 12px 20px; font-size: 14px; }

.sf-hero-trust {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sf-hero-trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sf-aqua-500); }

/* --- Right side: product preview --- */
.sf-hero-preview {
  position: relative;
  aspect-ratio: 4 / 3.2;
  width: 100%;
  min-height: 420px;
  border-radius: 20px;
  background: linear-gradient(160deg, #0a0a8e, #00004a 80%);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 40px 80px rgba(0,0,20,0.45), 0 10px 24px rgba(0,0,20,0.3);
  overflow: visible;
}
.sf-hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}

/* Browser-like chrome inside preview */
.sf-hero-browser {
  position: absolute;
  inset: 32px 32px 32px 32px;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,30,0.35);
  display: flex;
  flex-direction: column;
}
.sf-hero-browser-bar {
  flex: 0 0 36px;
  background: var(--sf-neutral-050);
  border-bottom: 1px solid var(--sf-neutral-200);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
}
.sf-hero-browser-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sf-neutral-300); }
.sf-hero-browser-url {
  margin-left: 8px;
  flex: 1;
  height: 22px;
  background: #fff;
  border: 1px solid var(--sf-neutral-200);
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: var(--sf-muted-foreground);
  font-family: var(--sf-font-mono);
}

.sf-hero-browser-body {
  flex: 1;
  background: #fff;
  padding: 20px 22px;
  color: var(--sf-fg-1);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}
.sf-hero-shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sf-hero-shop-header-logo {
  font-family: var(--sf-font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.sf-hero-shop-header-cart {
  font-size: 11px;
  color: var(--sf-fg-2);
  display: flex; align-items: center; gap: 6px;
}
.sf-hero-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.sf-hero-shop-card {
  border: 1px solid var(--sf-neutral-200);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sf-neutral-050);
}
.sf-hero-shop-card-img {
  aspect-ratio: 1 / 0.85;
  background: linear-gradient(135deg, var(--sf-muted) 0%, #fff 100%);
  position: relative;
}
.sf-hero-shop-card-img.is-sec {
  background: linear-gradient(135deg, #FFE6F8 0%, #fff 100%);
}
.sf-hero-shop-card-img.is-tri {
  background: linear-gradient(135deg, var(--sf-primary-050) 0%, #fff 100%);
}
.sf-hero-shop-card-img svg { position: absolute; inset: 0; margin: auto; }
.sf-hero-shop-card-meta {
  padding: 6px 8px 8px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--sf-muted-foreground);
}
.sf-hero-shop-card-meta b { color: var(--sf-fg-1); font-weight: 600; }

/* Floating KPI cards around preview */
.sf-hero-kpi {
  position: absolute;
  background: #fff;
  color: var(--sf-fg-1);
  padding: 12px 16px;
  border-radius: var(--sf-radius-md);
  box-shadow: var(--sf-shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  z-index: 2;
  white-space: nowrap;
}
.sf-hero-kpi-dot {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--sf-muted);
  display: grid;
  place-items: center;
  color: var(--sf-primary);
}
.sf-hero-kpi-label {
  font-size: 11px;
  color: var(--sf-fg-2);
  margin-bottom: 2px;
  white-space: nowrap;
}
.sf-hero-kpi-value {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.sf-hero-kpi-value .up { color: var(--sf-success); font-weight: 600; font-size: 12px; margin-left: 4px; }

/* Positioned so cards sit comfortably on the preview without hitting viewport edges.
   Offsets are modest — they extend only a bit past the preview box. */
.sf-hero-kpi-1 { top: 18px; left: -14px; animation: sfFloat 6s var(--sf-ease-out) infinite; }
.sf-hero-kpi-2 { bottom: 90px; right: 12px; animation: sfFloat 7s var(--sf-ease-out) infinite reverse; }
.sf-hero-kpi-3 { bottom: -18px; left: 50%; transform: translateX(-50%); animation: sfFloat 8s var(--sf-ease-out) infinite 2s; }

@keyframes sfFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
/* kpi-3 keeps its horizontal centering while floating */
@keyframes sfFloatCenter {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}
.sf-hero-kpi-3 { animation-name: sfFloatCenter; }

/* Narrow viewports: keep KPIs tucked inside the preview bounds so nothing clips */
@media (max-width: 980px) {
  .sf-hero-kpi { font-size: 12px; padding: 10px 12px; }
  .sf-hero-kpi-1 { top: 12px; left: 12px; }
  .sf-hero-kpi-2 { bottom: 72px; right: 12px; }
  .sf-hero-kpi-3 { bottom: 12px; left: 50%; }
}

/* Scroll hint */
@keyframes sf-scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%       { transform: translateY(8px); opacity: 0.2; }
}
@keyframes sf-scroll-fade {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.8; }
}
.sf-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  text-decoration: none;
  animation: sf-scroll-fade 2.4s ease-in-out infinite;
}
.sf-scroll-hint-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.sf-scroll-hint-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.sf-scroll-hint-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: sf-scroll-dot 1.8s ease-in-out infinite;
}

/* Logo stripe below hero */
.sf-hero-stripe {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.sf-hero-stripe-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.sf-hero-stripe-logos {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.sf-hero-stripe-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  font-family: var(--sf-font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.01em;
  transition: background 200ms, border-color 200ms;
}
.sf-hero-stripe-pill svg {
  color: var(--sf-aqua-300);
  flex-shrink: 0;
}
.sf-hero-stripe-pill:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
}

/* ============================================================
   Mobile hero fixes (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .sf-hero { padding: 48px 0 48px; }

  /* Fix: aspect-ratio + min-height causes width explosion on narrow screens */
  .sf-hero-preview {
    aspect-ratio: unset;
    min-height: 0;
    height: 300px;
  }

  /* Badge: allow text to wrap */
  .sf-hero-badge {
    flex-wrap: wrap;
    font-size: 12px;
  }

  /* H1 smaller on mobile */
  .sf-hero h1 { font-size: clamp(36px, 9vw, 48px); }

  /* Lede smaller */
  .sf-hero-lede { font-size: 16px; margin-bottom: 28px; }

  /* Form: stack vertically */
  .sf-hero-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
  }
  .sf-hero-form input {
    padding: 10px 14px;
    font-size: 15px;
  }
  .sf-hero-form .sf-btn {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--sf-radius-pill);
  }

  /* Trust line: allow wrapping */
  .sf-hero-trust { flex-wrap: wrap; font-size: 12px; }

  /* KPI cards: hide on very small screens to avoid clutter */
  .sf-hero-kpi { font-size: 11px; padding: 8px 10px; }
  .sf-hero-kpi-dot { width: 28px; height: 28px; }
  .sf-hero-kpi-1 { top: 8px; left: 8px; }
  .sf-hero-kpi-2 { bottom: 48px; right: 8px; }
  .sf-hero-kpi-3 { bottom: 8px; left: 50%; }

  /* Stripe: stack vertically */
  .sf-hero-stripe { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 40px; }
  .sf-hero-stripe-logos { gap: 20px; }
  .sf-hero-stripe-logos span { font-size: 15px; }
}
