:root {
  --bg: #0b0b0f;
  --bg-soft: #111119;
  --panel: #171721;
  --panel-2: #1a1a22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f7ff;
  --text-soft: #b8bdd3;
  --muted: #8a90ab;
  --accent: #8f7cff;
  --accent-soft: rgba(143, 124, 255, 0.18);
  --highlight: #ffbade;
  --success: #6df0c2;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --transition: 220ms ease;
  --container: min(1320px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(143, 124, 255, 0.16), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(255, 186, 222, 0.12), transparent 22%),
    linear-gradient(180deg, #0d0d13 0%, #0a0a0f 100%);
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.92), rgba(11, 11, 15, 0.55));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, #fff 0%, #fff 14%, var(--highlight) 22%, transparent 23%),
    linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%);
  box-shadow:
    0 0 0 5px rgba(143, 124, 255, 0.12),
    0 0 24px rgba(143, 124, 255, 0.55);
}

.brand-text {
  font-size: 1.05rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.nav-link {
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(143, 124, 255, 0.26);
  background: linear-gradient(135deg, rgba(143, 124, 255, 0.22), rgba(255, 186, 222, 0.12));
  box-shadow: 0 14px 36px rgba(143, 124, 255, 0.14);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 124, 255, 0.48);
  box-shadow: 0 18px 44px rgba(143, 124, 255, 0.24);
}

.header-cta.subtle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

main {
  padding-bottom: 56px;
}

.content-section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--highlight);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.1;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(380px, 100%);
  padding: 0 16px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-shell svg {
  width: 20px;
  height: 20px;
  fill: var(--muted);
}

.search-shell input {
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 0;
  outline: 0;
}

.search-shell input::placeholder {
  color: #7c809a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #b69cff 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(143, 124, 255, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 22px 52px rgba(143, 124, 255, 0.42);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--line);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.panel {
  background: linear-gradient(180deg, rgba(26, 26, 34, 0.92), rgba(18, 18, 26, 0.95));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--text-soft);
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  box-shadow: 0 0 16px rgba(143, 124, 255, 0.5);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-thumb {
  background: rgba(143, 124, 255, 0.28);
  border-radius: 999px;
  border: 3px solid rgba(10, 10, 15, 0.95);
}

::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 900px) {
  .header-inner {
    height: auto;
    min-height: 76px;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .section-head,
  .section-head.section-head-search {
    align-items: stretch;
    flex-direction: column;
  }

  .search-shell {
    min-width: 100%;
  }
}

.header-search {
  flex: 1;
  max-width: 420px;
  margin-left: auto;
}

@media (max-width: 900px) {
  .header-search {
    order: 2;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }
}