:root {
  color-scheme: dark;
  --page: #070707;
  --ink: #101317;
  --muted: #68707b;
  --soft: #f6f6f3;
  --panel: #ffffff;
  --line: #e7e7e2;
  --line-strong: #d8d8d0;
  --accent: #ff4f85;
  --accent-2: #1d7dff;
  --teal: #0b8178;
  --gold: #e5b24a;
  --danger: #dd473d;
  --radius: 28px;
  --card-radius: 18px;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 5% 16%, rgba(62, 93, 156, 0.52), transparent 24rem),
    radial-gradient(circle at 40% 10%, rgba(161, 84, 41, 0.46), transparent 28rem),
    radial-gradient(circle at 90% 84%, rgba(22, 66, 191, 0.72), transparent 30rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 12%, transparent 88%, rgba(255, 255, 255, 0.04)),
    #060606;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 100%);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent 52%);
}

button {
  font: inherit;
}

.home-link {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100% - 48px, 1320px);
  margin: 0 auto;
  padding: 74px 0 86px;
}

.hero {
  max-width: 1120px;
  margin-bottom: 56px;
}

.hero-kicker {
  margin: 0 0 56px;
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(24px, 4vw, 54px);
  font-weight: 200;
  letter-spacing: 0;
  line-height: 1;
}

.hero h1 {
  margin: 0;
  max-width: 980px;
  color: #fff;
  font-size: clamp(72px, 10vw, 142px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero-home-link {
  display: inline-block;
}

.hero-copy {
  margin: 34px 0 0;
  max-width: 1040px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 1.6vw, 24px);
  font-weight: 420;
  letter-spacing: 0;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-meta span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(18px);
}

.product-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.window-bar {
  display: grid;
  grid-template-columns: 220px 1fr 140px;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.96);
}

.brand-mark,
.window-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: fit-content;
}

.brand-mark strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand-dot,
.status-light {
  display: inline-block;
  border-radius: 50%;
}

.brand-dot {
  width: 34px;
  height: 34px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 19%),
    conic-gradient(from 30deg, var(--accent), var(--accent-2), #74ffbf, var(--accent));
}

.status-light {
  width: 9px;
  height: 9px;
  background: #24d577;
  box-shadow: 0 0 0 5px rgba(36, 213, 119, 0.12);
}

.window-actions {
  justify-content: end;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.window-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.view-button {
  min-width: 126px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
}

.view-button.active {
  background: var(--ink);
  color: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 720px;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 30px;
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  background: #fbfbf8;
}

.sidebar-block {
  display: grid;
  gap: 13px;
}

.search-box {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: 0 15px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.search-box input::placeholder {
  color: #a0a5ab;
}

.control-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.sidebar-label,
.eyebrow {
  margin: 0;
  color: #9a9da3;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip-row.vertical {
  display: grid;
}

.chip,
.segment {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}

.chip {
  min-height: 42px;
  padding: 9px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
}

.chip:hover,
.segment:hover,
.view-button:hover {
  transform: translateY(-1px);
}

.chip.active,
.segment.active {
  border-color: transparent;
  background: var(--ink);
  color: #fff;
}

.platform-row .chip.active {
  background: var(--teal);
}

.check-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-mark {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
}

.check-chip.active .check-mark {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.95);
}

.check-chip.active .check-mark::after {
  content: "";
  width: 8px;
  height: 5px;
  border: solid var(--teal);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.save-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.save-button:hover {
  transform: translateY(-1px);
  background: #20252b;
}

.action-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
  box-shadow: 0 10px 24px rgba(11, 129, 120, 0.18);
}

.action-button:hover {
  transform: translateY(-1px);
  background: #0a726a;
}

.segmented {
  display: grid;
  gap: 8px;
}

.segment {
  min-height: 40px;
  padding: 9px 12px;
  text-align: left;
  font-size: 13px;
  font-weight: 850;
}

.content-stage {
  padding: 38px 42px 46px;
  background: #fff;
}

.stage-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.stage-heading h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.data-status,
.result-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafaf7;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.data-status {
  max-width: 460px;
  padding: 10px 14px;
  line-height: 1.35;
}

.result-count {
  padding: 10px 15px;
}

.radar-card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 96% 12%, rgba(29, 125, 255, 0.15), transparent 20rem),
    linear-gradient(135deg, #f8faf7, #fff);
}

.radar-visual {
  position: relative;
  width: 150px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #091f1d;
}

.ring,
.radar-sweep,
.radar-point {
  position: absolute;
  display: block;
}

.ring {
  inset: 50%;
  border: 1px solid rgba(137, 231, 214, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 82%;
  height: 82%;
}

.ring-2 {
  width: 56%;
  height: 56%;
}

.ring-3 {
  width: 30%;
  height: 30%;
}

.radar-sweep {
  inset: 0;
  background: conic-gradient(from 12deg, rgba(86, 216, 184, 0.58), transparent 28%);
  animation: sweep 5s linear infinite;
}

.radar-point {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffe9a3;
  box-shadow: 0 0 14px rgba(255, 233, 163, 0.9);
}

.point-1 {
  left: 32%;
  top: 24%;
}

.point-2 {
  left: 62%;
  top: 34%;
}

.point-3 {
  left: 46%;
  top: 66%;
}

.point-4 {
  left: 72%;
  top: 58%;
}

@keyframes sweep {
  to {
    transform: rotate(360deg);
  }
}

.radar-summary {
  display: grid;
  gap: 8px;
}

.radar-summary strong {
  color: var(--danger);
  font-size: 72px;
  font-weight: 900;
  line-height: 0.9;
}

.radar-summary span {
  font-size: 24px;
  font-weight: 900;
}

.radar-summary small {
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.ranking-section {
  margin-top: 44px;
}

.trend-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trend-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 18px;
  background: #f8f8f4;
}

.media-config-card {
  grid-column: 1 / -1;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 28px;
  background:
    radial-gradient(circle at 82% 16%, rgba(29, 125, 255, 0.14), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f8f8f3);
}

.media-config-card.active {
  border-color: rgba(11, 129, 120, 0.35);
  background:
    radial-gradient(circle at 88% 14%, rgba(11, 129, 120, 0.16), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f7fbf8);
}

.media-config-label {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.media-config-card h3 {
  margin: 18px 0 14px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.media-config-card p {
  max-width: 720px;
  margin: 0 0 10px;
  color: #535c66;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.75;
}

.trend-card:first-child {
  grid-column: span 2;
}

.trend-main {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: start;
}

.rank {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.trend-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.24;
}

.trend-card:first-child .trend-title {
  font-size: 27px;
  line-height: 1.16;
}

.trend-title a {
  color: var(--ink);
  text-decoration: none;
}

.trend-title a::after {
  content: "↗";
  margin-left: 7px;
  color: var(--accent);
  font-size: 13px;
}

.score {
  display: grid;
  justify-items: end;
  gap: 1px;
  color: var(--danger);
  font-weight: 900;
}

.score span {
  font-size: 28px;
  line-height: 1;
}

.score small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.reason {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.meta-row,
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.source-link {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.tag {
  padding: 6px 9px;
  background: #fff;
  color: #343b44;
}

.tag.industry {
  background: rgba(229, 178, 74, 0.2);
  color: #8d5b00;
}

.source-link {
  border: 1px solid rgba(11, 129, 120, 0.2);
  padding: 8px 11px;
  background: rgba(11, 129, 120, 0.08);
  color: var(--teal);
  text-decoration: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: auto;
}

.metric {
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--card-radius);
  padding: 34px 18px;
  background: #fafaf7;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .page-shell {
    width: min(100% - 28px, 980px);
    padding-top: 42px;
  }

  .hero-kicker {
    margin-bottom: 32px;
  }

  .hero-copy {
    margin-top: 28px;
  }

  .window-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .window-tabs {
    justify-content: start;
  }

  .window-actions {
    display: none;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px;
  }

  .chip-row.vertical,
  .segmented {
    display: flex;
    flex-wrap: wrap;
  }

  .chip,
  .segment {
    text-align: center;
  }

  .trend-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 520px);
    padding: 28px 0 34px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero-kicker {
    margin-bottom: 22px;
    font-size: 24px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.45;
  }

  .product-window {
    border-radius: 20px;
  }

  .window-bar {
    padding: 14px;
  }

  .view-button {
    min-width: 0;
    flex: 1;
  }

  .content-stage {
    padding: 22px 14px 24px;
  }

  .stage-heading {
    display: grid;
    align-items: start;
  }

  .stage-heading h2 {
    font-size: 32px;
  }

  .data-status {
    max-width: 100%;
  }

  .radar-card {
    grid-template-columns: 106px 1fr;
    gap: 14px;
    border-radius: 18px;
    padding: 14px;
  }

  .radar-visual {
    width: 100px;
  }

  .radar-summary strong {
    font-size: 46px;
  }

  .radar-summary span {
    font-size: 17px;
  }

  .trend-list,
  .trend-card:first-child {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trend-card {
    min-height: auto;
  }

  .trend-card:first-child {
    grid-column: auto;
  }

  .trend-card:first-child .trend-title,
  .trend-title {
    font-size: 18px;
  }

  .trend-main {
    grid-template-columns: 34px 1fr;
  }

  .score {
    grid-column: 2;
    justify-self: start;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 6px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}

.product-window.media-mode .radar-card {
  background:
    radial-gradient(circle at 96% 12%, rgba(11, 129, 120, 0.16), transparent 20rem),
    linear-gradient(135deg, #f9fbfa, #ffffff);
  border-color: rgba(11, 129, 120, 0.18);
}

.product-window.media-mode .radar-summary strong {
  color: var(--teal);
}

.product-window.media-mode .result-count {
  background: rgba(11, 129, 120, 0.08);
  color: var(--teal);
  border-color: rgba(11, 129, 120, 0.18);
}
