:root {
  --bg: #f3efe5;
  --bg-strong: #efe7d8;
  --panel: rgba(255, 250, 241, 0.86);
  --panel-strong: rgba(255, 247, 234, 0.96);
  --ink: #1f2a2c;
  --muted: #5d6a6f;
  --line: rgba(31, 42, 44, 0.1);
  --accent: #0a7b83;
  --accent-2: #ef8d32;
  --accent-3: #b33f62;
  --accent-4: #425cbb;
  --success: #2f8f6c;
  --shadow: 0 18px 60px rgba(60, 66, 63, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(239, 141, 50, 0.17), transparent 30%),
    radial-gradient(circle at top right, rgba(10, 123, 131, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f5eb 0%, #f3efe5 42%, #ede6d6 100%);
  font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  filter: blur(30px);
  z-index: 0;
  opacity: 0.5;
}

body::before {
  left: -80px;
  bottom: 12%;
  background: rgba(179, 63, 98, 0.13);
}

body::after {
  right: -100px;
  top: 18%;
  background: rgba(66, 92, 187, 0.14);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 32px));
  margin: 20px auto 36px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255, 248, 237, 0.92), rgba(248, 241, 228, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-copy h1,
.panel-header h2 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.95;
  max-width: 9ch;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
}

.hero-text,
.panel-note,
.stack-card p,
.table-tools input,
td,
th {
  color: var(--muted);
}

.hero-text {
  max-width: 60ch;
  line-height: 1.65;
  font-size: 1rem;
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  border: 1px solid rgba(10, 123, 131, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.pill:hover,
.pill.active {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent), #11929b);
  color: white;
}

.hero-panel,
.panel {
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(10, 123, 131, 0.92), rgba(9, 82, 102, 0.92)),
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent);
  color: white;
  min-height: 320px;
}

.hero-panel .mini-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  opacity: 0.8;
}

.hero-panel h3 {
  margin: 8px 0 6px;
  font-size: 1.7rem;
  line-height: 1.1;
}

.hero-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.hero-panel .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-panel .stat-box {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel .stat-box strong {
  display: block;
  font-size: 1.25rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.panel {
  grid-column: span 6;
  padding: 22px;
}

.panel-span-full {
  grid-column: 1 / -1;
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.95), rgba(248, 242, 230, 0.9));
  border: 1px solid rgba(31, 42, 44, 0.07);
  min-height: 136px;
}

.metric-card .metric-label {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
  line-height: 1;
}

.metric-card p {
  margin: 12px 0 0;
  line-height: 1.5;
  color: var(--muted);
}

.chart-stage {
  min-height: 340px;
}

.bubble-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-height: 320px;
  align-items: center;
}

.bubble-cluster {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(10, 123, 131, 0.1), transparent 45%),
    rgba(255, 252, 246, 0.78);
  border: 1px solid rgba(31, 42, 44, 0.08);
  overflow: hidden;
}

.bubble {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 999px;
  color: white;
  padding: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.26), 0 12px 30px rgba(20, 32, 30, 0.2);
}

.bubble span {
  display: block;
  max-width: 12ch;
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 700;
}

.bubble small {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  opacity: 0.92;
}

.bubble-legend {
  display: grid;
  gap: 12px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 42, 44, 0.08);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.legend-row strong,
.channel-card strong,
.thumbnail-card strong {
  display: block;
}

.legend-row p,
.channel-card p,
.thumbnail-card p,
.insight-badges,
.meta-row {
  margin: 2px 0 0;
  font-size: 0.92rem;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(31, 42, 44, 0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.stack-list {
  display: grid;
  gap: 14px;
}

.stack-card,
.channel-card {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(248, 242, 232, 0.94));
  border: 1px solid rgba(31, 42, 44, 0.08);
}

.stack-card h3,
.channel-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.stack-card p,
.channel-card p,
.thumbnail-card p {
  line-height: 1.55;
}

.stack-card .chips,
.thumbnail-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 123, 131, 0.08);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
}

.coverage-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  min-height: 280px;
}

.coverage-ring {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--coverage) * 1%), rgba(31, 42, 44, 0.08) 0);
}

.coverage-ring::before {
  content: "";
  width: 138px;
  height: 138px;
  border-radius: 999px;
  background: #fff8ef;
}

.coverage-center {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}

.coverage-center strong {
  font-size: 2rem;
}

.coverage-list {
  display: grid;
  gap: 12px;
}

.coverage-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(31, 42, 44, 0.08);
}

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

.thumbnail-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid rgba(31, 42, 44, 0.09);
  box-shadow: 0 12px 24px rgba(56, 66, 61, 0.08);
}

.thumbnail-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(10, 123, 131, 0.14), rgba(179, 63, 98, 0.14));
}

.thumbnail-card .thumbnail-copy {
  padding: 16px;
}

.thumbnail-card .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.table-tools input {
  width: 300px;
  max-width: 100%;
  border: 1px solid rgba(31, 42, 44, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 44, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.68);
}

th,
td {
  text-align: left;
  padding: 16px;
  vertical-align: top;
  border-bottom: 1px solid rgba(31, 42, 44, 0.07);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(255, 248, 237, 0.96);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

td strong a,
td a {
  color: var(--ink);
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

.keyword-tag {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
}

.fade-in {
  animation: rise 420ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .hero,
  .bubble-chart,
  .coverage-wrap {
    grid-template-columns: 1fr;
  }

  .panel,
  .metrics-panel,
  .chart-panel,
  .insights-panel {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 16px, 100%);
    margin: 8px auto 22px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .metric-grid,
  .thumbnail-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel .hero-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    gap: 16px;
  }

  th,
  td {
    padding: 12px;
  }
}
