/* =============================================================
   Hero search form — premium polish
   ============================================================= */

.rg-search-form {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(28, 22, 42, 0.55), rgba(20, 16, 32, 0.30));
  border: 1px solid rgba(167, 139, 250, 0.16);
  border-radius: 12px;
  margin: 20px 0 14px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 12px 32px -12px rgba(139, 92, 246, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.rg-search-form__row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
}
.rg-sf__field {
  display: flex; flex-direction: column; gap: 5px;
  flex: 1 1 130px; min-width: 0;
}
.rg-sf__label {
  font-size: 9px;
  color: var(--text-lo);
  letter-spacing: 0.22em;
  font-family: var(--font-mono);
}
.rg-sf__field .rg-input {
  height: 36px;
  background: rgba(8, 6, 15, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-hi);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 0 10px;
  border-radius: 6px;
  transition: border-color 120ms, background 120ms;
}
.rg-sf__field .rg-input:hover {
  border-color: rgba(167, 139, 250, 0.30);
}
.rg-sf__field .rg-input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.60);
  background: rgba(8, 6, 15, 0.80);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.15);
}

.rg-sf__btn {
  flex: 1 1 180px;
  height: 38px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px -6px rgba(139, 92, 246, 0.50);
}

/* Hero layout — copy and tablet sit side-by-side */
.rg-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}
.rg-hero__copy { min-width: 0; }
.rg-hero__title {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 6px 0 14px;
  color: var(--text-hi);
}
.rg-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #c4b5fd 0%, #a78bfa 60%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rg-hero__lead {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 0 4px;
}
.rg-hero__device {
  flex-shrink: 0;
}

/* Stats strip below the form */
.rg-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}
.rg-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.rg-stat:first-child { padding-left: 0; }
.rg-stat:last-child { border-right: 0; }
.rg-stat__v {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.rg-stat__k {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-lo);
}

/* Chip strip — denser, less padding */
.rg-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
}

/* Eyebrow with index sequence */
.rg-hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-lo);
  margin-bottom: 8px;
}

/* Tablet bezel adjustments */
.phn[style*="720"] .phn-bezel,
.phn[style*="600"] .phn-bezel,
.phn[style*="480"] .phn-bezel {
  border-radius: 18px !important;
  border-width: 8px !important;
}
.phn[style*="720"] .phn-notch,
.phn[style*="600"] .phn-notch,
.phn[style*="480"] .phn-notch { display: none !important; }
.phn[style*="720"] .phn-home,
.phn[style*="600"] .phn-home,
.phn[style*="480"] .phn-home { display: none !important; }

/* Light theme */
:root[data-theme="light"] .rg-search-form {
  background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.65));
  border-color: rgba(20,18,30,0.10);
}
:root[data-theme="light"] .rg-sf__field .rg-input {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(20, 18, 30, 0.12);
  color: var(--text-hi);
}
:root[data-theme="light"] .rg-sf__field .rg-input:focus {
  background: #fff;
  border-color: rgba(139, 92, 246, 0.60);
}
:root[data-theme="light"] .rg-hero__title em {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Responsive — stack hero on narrow */
@media (max-width: 1100px) {
  .rg-hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rg-hero__device {
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .rg-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rg-stat { border-right: 0; padding: 0; }
}
