.sc-home-hero {
  --hero-surface: #121d33;
  --hero-text: #f4f7ff;
  --hero-muted: #b9c8dd;
  --hero-accent: #9be9d0;
  color: var(--hero-text);
  background: radial-gradient(ellipse at 10% 0%, #22365a 0%, transparent 62%), #101a2d;
  border-radius: 26px;
  margin: 0 0 32px;
}

.sc-home-layout {
  box-sizing: border-box;
  max-width: 1252px;
  margin-inline: auto;
  padding: clamp(30px, 5.2vw, 76px) clamp(20px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 5.5vw, 82px);
  align-items: center;
}

.sc-home-main h1 {
  margin: 0;
  color: var(--hero-text);
  font-size: clamp(2.25rem, 5vw, 4.65rem);
  font-weight: 800;
  letter-spacing: -.058em;
  line-height: 1.01;
}

.sc-home-main h1 span {
  display: block;
  color: var(--hero-accent);
}

.sc-home-intro {
  max-width: 40ch;
  margin: 20px 0 26px;
  color: var(--hero-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.sc-home-search {
  position: relative;
  z-index: 2;
}

.sc-home-field {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 6px 6px 6px 14px;
  gap: 10px;
  border: 1px solid #cdd7e7;
  border-radius: 14px;
  color: #263a55;
  background: #f8faff;
  box-shadow: 0 12px 32px #080e1c40;
}

.sc-home-field:focus-within {
  outline: 2px solid var(--hero-accent);
  outline-offset: 3px;
}

.sc-home-field > svg { flex: 0 0 20px; width: 20px; height: 20px; }

.sc-home-field input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: none;
  color: #13233a;
  font: inherit;
  font-size: 1rem;
}
.sc-home-field input::placeholder { color: #53647c; }

.sc-home-shortcut {
  flex: 0 0 24px;
  border: 1px solid #d5dce7;
  border-radius: 5px;
  color: #53647c;
  font-size: .875rem;
  text-align: center;
}

.sc-home-field button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--hero-accent);
  color: #102a2a;
  font-size: .875rem;
  font-weight: 750;
}

.sc-home-field button:hover { background: #b3f5df; }
.sc-home-field button:focus-visible { outline: 2px solid #14563e; outline-offset: -3px; }

.sc-home-results,
.sc-home-empty {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  margin: 0;
  padding: 6px;
  border: 1px solid #cdd7e7;
  border-radius: 12px;
  background: #f8faff;
  color: #13233a;
  box-shadow: 0 16px 32px #080e1c66;
}

.sc-home-empty { padding: 12px; font-size: .875rem; }
.sc-home-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .875rem;
}
.sc-home-results a[aria-selected="true"], .sc-home-results a:hover { background: #dceee9; }
.sc-home-results small { text-align: end; color: #405675; }

.sc-home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 15px;
}

.sc-home-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding-inline: 11px;
  border: 1px solid #475976;
  border-radius: 8px;
  color: var(--hero-text);
  font-size: .8125rem;
}

.sc-home-chips a:hover { background: #283b57; }
.sc-home-browse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin-top: 11px;
  color: var(--hero-accent);
  font-size: .9375rem;
  font-weight: 700;
}
.sc-home-browse:hover { text-decoration: underline; }

.sc-home-featured {
  min-width: 0;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #3a4e6b;
  border-radius: 18px;
  background: #1a2840;
}

.sc-home-featured h2 {
  margin: 0 0 14px;
  color: var(--hero-text);
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.sc-home-featured ul { display: grid; gap: 8px; margin: 0; padding: 0; }
.sc-home-featured li a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid #394d6a;
  border-radius: 11px;
  background: var(--hero-surface);
  color: var(--hero-text);
}
.sc-home-featured li a:hover { background: #203553; border-color: #7085a4; }

.sc-home-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e6ddff;
  color: #4b3283;
}
.sc-home-icon.mint { background: #c4f3e4; color: #124f42; }
.sc-home-icon.sand { background: #f9e6c6; color: #674510; }
.sc-home-icon svg { width: 21px; height: 21px; }

.sc-home-tool-copy { display: grid; gap: 2px; line-height: 1.35; }
.sc-home-tool-copy strong { font-size: .9375rem; }
.sc-home-tool-copy > span { color: var(--hero-muted); font-size: .8125rem; }
.sc-home-tool-arrow, .sc-home-browse svg, .sc-home-premium svg { width: 16px; height: 16px; flex: 0 0 16px; }
.sc-home-tool-arrow { color: var(--hero-accent); }

.sc-home-premium {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 10px;
  color: var(--hero-muted);
  font-size: .8125rem;
}
.sc-home-premium span { flex: 1 1 auto; }
.sc-home-premium:hover { color: var(--hero-text); }

.sc-home-hero a:focus-visible { outline: 2px solid var(--hero-accent); outline-offset: 3px; }

@media (max-width: 840px) {
  .sc-home-layout { grid-template-columns: minmax(0, 1fr); }
  .sc-home-main h1 span { display: inline; }
}

@media (max-width: 520px) {
  .sc-home-hero { border-radius: 16px; }
  .sc-home-field { gap: 7px; padding-left: 9px; }
  .sc-home-field > svg, .sc-home-shortcut { display: none; }
  .sc-home-field button { padding-inline: 10px; }
  .sc-home-field input::placeholder { font-size: .875rem; }
  .sc-home-intro { margin: 13px 0 19px; }
}
