/* ==========================================================================
   Home hero: single-line headline + category pills + Theme menu
   ========================================================================== */

.display-line {
  white-space: nowrap;
  font-size: clamp(18px, 2.9vw, 40px);
  letter-spacing: -.03em;
  line-height: 1.08;
}

.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.pill b {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(56, 242, 207, .12);
  border-radius: 999px;
  padding: 1px 7px;
}
.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(56, 242, 207, .55);
  background: rgba(56, 242, 207, .08);
}

/* theme menu */
.theme-menu { position: relative; flex: 0 0 auto; }
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s var(--ease), background .16s var(--ease);
}
.theme-btn:hover { border-color: rgba(56, 242, 207, .5); background: rgba(56, 242, 207, .07); }
.theme-btn svg { color: var(--cyan); }

.theme-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  border-radius: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-3);
  z-index: 60;
}
.theme-pop[hidden] { display: none; }
.theme-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.theme-pop button:hover { background: rgba(255, 255, 255, .08); }
.theme-pop button[aria-checked="true"] { background: rgba(56, 242, 207, .14); font-weight: 600; }

.dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, .28);
  flex: 0 0 auto;
}
.dot-dark { background: linear-gradient(140deg, #101828, #38f2cf); }
.dot-light { background: linear-gradient(140deg, #ffffff, #ffd166); }
.dot-neon { background: linear-gradient(140deg, #00f5ff, #ff2fb3); }

html[data-theme="light"] .pill { background: rgba(16, 24, 40, .05); border-color: rgba(16, 24, 40, .12); }
html[data-theme="light"] .pill b { background: rgba(8, 169, 140, .12); color: #0b7a67; }
html[data-theme="light"] .theme-btn { background: rgba(16, 24, 40, .05); border-color: rgba(16, 24, 40, .12); }
html[data-theme="light"] .theme-pop { background: #ffffff; }
html[data-theme="light"] .theme-pop button:hover { background: rgba(16, 24, 40, .06); }

@media (max-width: 760px) {
  .cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .cat-pills::-webkit-scrollbar { display: none; }
  .theme-btn span { display: inline; }
  .theme-btn { height: 40px; padding: 0 12px; justify-content: center; }
}
