:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --ink: #18201f;
  --muted: #69706d;
  --panel: #ffffff;
  --line: #dbe2dd;
  --green: #1f8a70;
  --blue: #2563a6;
  --amber: #b56b16;
  --coral: #c94f45;
  --mint: #d9f0e7;
  --sky: #d9e9f8;
  --shadow: 0 16px 40px rgba(31, 43, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

body,
h1,
h2,
h3,
p,
a,
button,
span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(16px, 4vw, 44px);
  background: #10231f;
  color: #f8faf7;
}

.topbar > *,
.hero-panel > *,
.value-panel > *,
.pipeline-panel > *,
.signup-panel > *,
.content-grid > *,
.metric,
.value-card,
.article-draft-card,
.market-card,
.aside-panel,
.market-column,
.side-column {
  min-width: 0;
}

.topbar-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.topnav a {
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid rgba(248, 250, 247, 0.18);
  border-radius: 8px;
  color: #dce8e3;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.brand,
.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar .brand {
  color: #7ed8be;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
}

h2 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.35;
}

.guardrail {
  max-width: 480px;
  margin-bottom: 0;
  color: #c8d4cf;
  font-size: 13px;
}

.layout {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
  padding: clamp(20px, 4vw, 36px);
}

.hero-copy h2 {
  max-width: 720px;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.05;
}

.lead {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.metric {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
  line-height: 1;
}

.value-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
}

.value-intro p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.value-card {
  min-height: 172px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.value-card span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.value-card p,
.today-use p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.today-use {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #f8fbf8, #eef6f3);
}

.today-use h3 {
  margin-bottom: 8px;
}

.first-use-meta {
  margin-bottom: 8px;
  color: var(--green) !important;
  font-weight: 900;
}

.today-use .soft-cta {
  margin-top: 14px;
}

.pipeline-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  margin-top: 16px;
  padding: 20px;
}

.flow-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.flow-list li::marker {
  color: var(--green);
  font-weight: 900;
}

.article-draft-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.article-draft-card {
  min-height: 184px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.priority {
  display: inline-flex;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.article-draft-card h3 {
  font-size: 16px;
}

.draft-summary {
  color: var(--muted);
  font-size: 14px;
}

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.draft-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.signup-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 20px;
}

.signup-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.signup-form {
  display: grid;
  gap: 8px;
}

.signup-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.signup-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 15px;
}

.signup-row button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.signup-row button:disabled {
  background: #9aa6a0;
  cursor: not-allowed;
}

.signup-option {
  display: flex;
  gap: 8px;
  align-items: center;
}

.signup-status {
  min-height: 22px;
  color: var(--green) !important;
  font-size: 13px;
  font-weight: 800;
}

.controls-panel {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-top: 16px;
  padding: 16px;
}

.search-wrap {
  display: grid;
  gap: 6px;
  width: min(420px, 100%);
}

.search-wrap label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbfcfa;
  font-size: 15px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(84px, 1fr));
  gap: 6px;
  min-width: min(480px, 100%);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3ef;
}

.tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(20, 34, 28, 0.08);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-top: 20px;
}

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

.updated {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

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

.market-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card-topline,
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.topic,
.attention,
.stats-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef3ef;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topic {
  background: var(--mint);
  color: #11634f;
}

.attention[data-kind="moving"] {
  background: #fde7e3;
  color: var(--coral);
}

.attention[data-kind="high-volume"] {
  background: var(--sky);
  color: var(--blue);
}

.attention[data-kind="split"] {
  background: #f7ead5;
  color: var(--amber);
}

.original,
.angle,
.hint,
.aside-text {
  color: var(--muted);
}

.original {
  margin-bottom: 14px;
  font-size: 13px;
}

.probability-row {
  display: grid;
  grid-template-columns: 38px minmax(120px, 1fr) 58px;
  gap: 10px;
  align-items: center;
  margin: 16px 0 12px;
}

.probability-label,
.probability-value {
  font-size: 13px;
  font-weight: 900;
}

.probability-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ede9;
}

.probability-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.angle {
  margin: 12px 0 8px;
}

.hint {
  margin-bottom: 14px;
  font-size: 14px;
}

.source-link,
.soft-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfcfa;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.side-column {
  display: grid;
  align-content: start;
  gap: 14px;
}

.aside-panel {
  padding: 18px;
  box-shadow: none;
}

.spotlight-list {
  display: grid;
  gap: 10px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.category-item strong {
  font-size: 13px;
}

.category-item span {
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef3ef;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.spotlight-item {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  text-decoration: none;
}

.spotlight-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.35;
}

.spotlight-item span {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcfa;
}

.article-layout {
  max-width: 920px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.article-page {
  padding: clamp(18px, 4vw, 36px);
}

.article-page h2 {
  max-width: 760px;
  font-size: clamp(24px, 4vw, 40px);
}

.article-summary {
  color: var(--muted);
  font-size: 17px;
}

.data-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.data-card span {
  display: block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 13px;
}

.data-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.social-copy {
  white-space: pre-wrap;
  margin: 10px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.article-note {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .topbar,
  .controls-panel,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-panel,
  .value-panel,
  .pipeline-panel,
  .signup-panel,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .value-cards,
  .article-draft-list {
    grid-template-columns: 1fr;
  }

  .topbar-side {
    justify-items: start;
  }

  .topnav {
    justify-content: flex-start;
  }

  .tabs {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .layout {
    width: min(1180px, calc(100% - 20px));
    margin-top: 12px;
  }

  .topbar {
    padding: 16px 12px;
  }

  .guardrail {
    max-width: 100%;
  }

  .topbar-side,
  .topnav {
    width: 100%;
  }

  h1 {
    font-size: 24px;
  }

  .hero-copy h2 {
    font-size: 30px;
    line-height: 1.14;
  }

  .hero-panel,
  .value-panel,
  .pipeline-panel,
  .signup-panel,
  .controls-panel,
  .market-card,
  .aside-panel {
    padding: 14px;
  }

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

  .probability-row {
    grid-template-columns: 34px minmax(92px, 1fr) 52px;
  }

  .signup-row {
    grid-template-columns: 1fr;
  }

  .data-card {
    grid-template-columns: 1fr;
  }

  .updated {
    white-space: normal;
  }
}
