:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-2: #08101a;
  --surface: #0d1725;
  --surface-2: #111d2d;
  --surface-3: #162335;
  --line: #22324a;
  --line-soft: rgba(148, 163, 184, 0.16);
  --text: #eef4ff;
  --muted: #8b9ab2;
  --faint: #5d6a7d;
  --amber: #ffc857;
  --amber-2: #d99d22;
  --green: #26d7a2;
  --green-soft: rgba(38, 215, 162, 0.14);
  --red: #ff5570;
  --red-soft: rgba(255, 85, 112, 0.14);
  --blue: #6ea8ff;
  --violet: #b66dff;
  --radius: 8px;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.32);
  --container: 1390px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% -10%, rgba(255, 200, 87, 0.09), transparent 34rem),
    linear-gradient(180deg, #070b12 0%, #05080d 42rem, #03060a 100%);
  color: var(--text);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 13, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 200, 87, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.13), rgba(18, 27, 42, 0.72));
  color: var(--amber);
  box-shadow: 0 0 0 1px rgba(255, 200, 87, 0.06), 0 12px 36px rgba(255, 200, 87, 0.12);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav button {
  position: relative;
  flex: 0 0 auto;
  padding: 26px 13px 24px;
  background: transparent;
  color: #b9c4d5;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.main-nav button::after {
  position: absolute;
  right: 13px;
  bottom: -1px;
  left: 13px;
  height: 2px;
  background: var(--amber);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: 160ms ease;
}

.main-nav button.is-active,
.main-nav button:hover {
  color: var(--amber);
}

.main-nav button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.page {
  min-height: calc(100vh - 72px);
}

.wrap {
  width: min(var(--container), calc(100vw - 48px));
  margin: 0 auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary,
.ghost,
.terminal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.primary {
  border: 1px solid rgba(255, 200, 87, 0.72);
  background: linear-gradient(180deg, #ffd773, #f3b338);
  color: #11151b;
  box-shadow: 0 14px 34px rgba(255, 200, 87, 0.18);
}

.ghost,
.terminal-button {
  border: 1px solid var(--line);
  background: rgba(13, 23, 37, 0.64);
  color: #d7e0ee;
}

.small {
  min-height: 38px;
  padding-inline: 15px;
  font-size: 13px;
}

.icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: currentColor;
}

.icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding: 70px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(560px, 1.18fr);
  gap: 48px;
  align-items: center;
}

.hero h1,
.section-title h2,
.page-title h1 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 0.98;
}

.hero h1 span,
.section-title h2 span,
.page-title h1 span {
  color: var(--amber);
}

.hero h1 span {
  white-space: nowrap;
}

.hero p {
  max-width: 565px;
  margin: 24px 0 28px;
  color: #a9b7cc;
  font-size: 18px;
  line-height: 1.8;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  max-width: 680px;
}

.proof-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: #cad5e5;
  font-size: 13px;
  line-height: 1.45;
}

.proof-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 14px;
}

.product-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 200, 87, 0.44);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 29, 45, 0.96), rgba(10, 18, 29, 0.98));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 200, 87, 0.05);
}

.preview-terminal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: 500px;
}

.terminal-main {
  border-right: 1px solid var(--line-soft);
}

.terminal-head,
.panel-head,
.chart-toolbar,
.subnav,
.table-head,
.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.terminal-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.market-pair {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.coin {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #f6aa1c;
  color: #1a1204;
  font-size: 12px;
  font-weight: 900;
}

.coin.eth {
  background: #7188ff;
  color: white;
}

.coin.sol {
  background: #8a5cf6;
  color: white;
}

.coin.gray {
  background: #475569;
  color: white;
}

.change.up,
.up {
  color: var(--green);
}

.change.down,
.down {
  color: var(--red);
}

.timeframe {
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 8, 13, 0.36);
}

.timeframe button,
.filter-group button {
  min-width: 50px;
  min-height: 36px;
  padding: 0 12px;
  background: transparent;
  color: #9ba9bd;
  font-size: 12px;
  font-weight: 800;
}

.preview-terminal .market-pair {
  gap: 8px;
  font-size: 14px;
}

.preview-terminal .timeframe button {
  min-width: 40px;
  padding: 0 8px;
}

.timeframe button.is-active,
.filter-group button.is-active {
  background: linear-gradient(180deg, #ffd773, #e9aa32);
  color: #161716;
}

.chart-area {
  position: relative;
  min-height: 345px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 12.5% 100%,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 20%,
    radial-gradient(circle at 50% 15%, rgba(38, 215, 162, 0.08), transparent 23rem);
}

.chart-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.zone {
  position: absolute;
  right: 24px;
  left: 26px;
  height: 42px;
  border: 1px dashed currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: var(--red);
}

.zone.buy {
  top: 190px;
  color: var(--green);
}

.zone.sell {
  top: 74px;
}

.zone-label {
  position: absolute;
  left: 8px;
  top: -11px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(5, 8, 13, 0.78);
  color: currentColor;
  font-size: 10px;
  font-weight: 900;
}

.terminal-footer {
  display: grid;
  grid-template-columns: 150px repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.score-card,
.terminal-stat {
  padding: 18px;
  border-right: 1px solid var(--line-soft);
}

.score-card:last-child,
.terminal-stat:last-child {
  border-right: 0;
}

.score-ring {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  background: conic-gradient(var(--green) 0 82%, #203149 82% 100%);
}

.score-ring span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: inherit;
  background: #0e1826;
  color: var(--text);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.score-ring small {
  display: block;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.value {
  margin-top: 8px;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
}

.terminal-side {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  padding: 16px;
}

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

.market-row,
.data-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: #d9e2ef;
  font-size: 12px;
}

.market-row > *,
.data-row > * {
  min-width: 0;
}

.market-row strong,
.data-row span:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 54px;
  gap: 2px;
  overflow: hidden;
  border-radius: 7px;
  background: #0a111c;
}

.terminal-side .heatmap {
  grid-template-columns: repeat(4, 1fr);
}

.heat-tile {
  display: grid;
  align-content: center;
  padding: 8px;
  background: #b4334c;
  color: white;
  font-weight: 900;
}

.heat-tile.green {
  background: #158b6c;
}

.heat-tile.large {
  grid-column: span 2;
  grid-row: span 2;
  font-size: 28px;
  text-align: center;
}

.heat-tile small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 28px auto 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 23, 37, 0.72);
}

.feature-rail article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 0 20px;
  border-right: 1px solid var(--line-soft);
}

.feature-rail article:first-child {
  padding-left: 0;
}

.feature-rail article:last-child {
  padding-right: 0;
  border-right: 0;
}

.feature-rail h3,
.panel h3,
.pricing-card h3,
.auth-card h1 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.feature-rail p,
.panel p,
.pricing-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.section {
  padding: 70px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2 {
  max-width: 560px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
}

.section-title p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 0.72fr repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pricing-copy {
  align-self: center;
}

.pricing-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: #d7e2f1;
  font-weight: 800;
}

.switch {
  position: relative;
  width: 52px;
  height: 28px;
  border: 1px solid rgba(255, 200, 87, 0.5);
  border-radius: 999px;
  background: rgba(255, 200, 87, 0.2);
}

.switch::after {
  position: absolute;
  top: 4px;
  left: 24px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--amber);
  content: "";
}

.pricing-card,
.panel,
.metric-card,
.table-panel,
.auth-card,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 29, 45, 0.9), rgba(10, 17, 27, 0.94));
}

.pricing-card {
  position: relative;
  padding: 26px;
  min-height: 370px;
}

.pricing-card.is-featured {
  border-color: rgba(255, 200, 87, 0.72);
  box-shadow: 0 20px 70px rgba(255, 200, 87, 0.12);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.pricing-card .tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-color: rgba(255, 200, 87, 0.66);
  background: var(--amber);
  color: #141414;
}

.price {
  margin: 28px 0 18px;
  color: var(--text);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.price small {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 0;
  color: #cad6e7;
  font-size: 13px;
  line-height: 1.45;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
}

.check-list li::before {
  color: var(--amber);
  content: "✓";
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 23, 37, 0.7);
}

.trust-strip div {
  padding: 0 18px;
  border-right: 1px solid var(--line-soft);
  color: #cbd7e8;
  font-size: 13px;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.app-page {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}

.side-nav {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: calc(100vh - 72px);
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: rgba(8, 16, 26, 0.72);
}

.side-nav nav {
  display: grid;
  gap: 6px;
}

.side-nav button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #aab6c7;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.side-nav button.is-active,
.side-nav button:hover {
  background: rgba(255, 200, 87, 0.12);
  color: var(--amber);
}

.side-upgrade {
  margin: 32px 0;
  padding: 18px;
  border: 1px solid rgba(255, 200, 87, 0.35);
  border-radius: 8px;
  background: rgba(255, 200, 87, 0.08);
}

.side-upgrade h3 {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 15px;
}

.side-upgrade p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.side-status {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.content {
  padding: 28px 28px 56px;
}

.page-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
}

.page-title h1 {
  font-size: clamp(30px, 3.2vw, 44px);
}

.page-title p {
  max-width: 640px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.subnav {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-group {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 23, 37, 0.72);
}

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

.workbench-grid {
  grid-template-columns: repeat(15, minmax(0, 1fr));
}

.workbench-grid .span-7 {
  grid-column: span 9;
}

.workbench-grid .span-5 {
  grid-column: span 6;
}

.workbench-grid .span-12 {
  grid-column: 1 / -1;
}

.span-3 {
  grid-column: span 3;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: 1 / -1;
}

.metric-card {
  min-height: 118px;
  padding: 20px;
}

.metric-card .value {
  font-size: 28px;
}

.metric-card .mini-line {
  margin-top: 12px;
}

.panel,
.table-panel {
  overflow: hidden;
}

.panel-head {
  min-height: 54px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2,
.panel-head h3,
.mini-head h3 {
  margin: 0;
  font-size: 16px;
}

.panel-body {
  padding: 18px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  min-height: 46px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #dce5f1;
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.signal-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.signal-chip.long {
  background: var(--green);
  color: #03120d;
}

.signal-chip.short {
  background: var(--red);
  color: white;
}

.signal-chip.pending {
  background: rgba(255, 255, 255, 0.07);
  color: #aeb9ca;
}

.bar {
  display: inline-flex;
  width: 86px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #17243a;
  vertical-align: middle;
}

.bar span {
  display: block;
  background: var(--green);
}

.split-bar {
  display: grid;
  grid-template-columns: var(--a, 60%) 1fr;
  height: 16px;
  overflow: hidden;
  border-radius: 5px;
}

.split-bar span:first-child {
  background: var(--green);
}

.split-bar span:last-child {
  background: var(--red);
}

.mini-line {
  width: 100%;
  height: 30px;
}

.spark {
  width: 100%;
  height: 42px;
}

.spark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.ai-shell {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 356px;
  min-height: calc(100vh - 72px);
  background: #070c14;
}

.tool-rail {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px 8px;
  border-right: 1px solid var(--line);
  background: #08101a;
}

.tool-rail button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  color: #9aa9bf;
}

.tool-rail button.is-active,
.tool-rail button:hover {
  background: rgba(255, 200, 87, 0.12);
  color: var(--amber);
}

.chart-terminal {
  min-width: 0;
}

.chart-toolbar {
  min-height: 64px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 17, 27, 0.95);
}

.chart-stage {
  position: relative;
  min-height: 540px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 9.09% 100%,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 100% 14.28%,
    #08101a;
}

.price-axis {
  position: absolute;
  top: 20px;
  right: 16px;
  display: grid;
  gap: 31px;
  color: #8b9ab2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.price-line {
  position: absolute;
  right: 0;
  left: 0;
  top: 264px;
  border-top: 1px dashed var(--green);
}

.price-badge {
  position: absolute;
  right: 10px;
  top: -14px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--green);
  color: #06120d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
}

.trade-level {
  position: absolute;
  right: 58px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(5, 8, 13, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.trade-level.stop {
  top: 184px;
  color: var(--red);
}

.trade-level.entry {
  top: 323px;
  color: var(--green);
}

.trade-level.target {
  top: 404px;
  color: var(--green);
}

.ai-side {
  border-left: 1px solid var(--line);
  background: #0a111c;
}

.insight-card {
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.insight-card h2 {
  margin: 8px 0 4px;
  font-size: 28px;
}

.insight-card .signal {
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.score-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.signal-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgba(255, 200, 87, 0.22);
  border-radius: 8px;
}

.signal-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 13px 14px;
  background: rgba(255, 200, 87, 0.06);
  color: #dce5f2;
  font-size: 13px;
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 13px;
}

.timeline li {
  display: grid;
  grid-template-columns: 12px 48px 1fr;
  gap: 11px;
  align-items: center;
  color: #b9c6d8;
  font-size: 13px;
  list-style: none;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.dot.red {
  background: var(--red);
}

.bottom-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
}

.mini-panel {
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #0d1725, #09111c);
}

.mini-panel .value {
  font-size: 28px;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 23, 37, 0.86);
}

.thumb {
  display: grid;
  min-height: 96px;
  place-items: center;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(110, 168, 255, 0.8), rgba(31, 76, 180, 0.76)),
    #102043;
  color: white;
  font-weight: 900;
}

.news-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

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

.auth-page {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 200, 87, 0.1), transparent 26rem),
    #05080d;
}

.auth-card {
  width: min(460px, 100%);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-top: 28px;
  font-size: 30px;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.6;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented button {
  min-height: 46px;
  background: transparent;
  color: #9ba9bd;
  font-weight: 800;
}

.segmented button.is-active {
  background: rgba(255, 200, 87, 0.13);
  color: var(--amber);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #30435f;
  border-radius: 8px;
  background: #0a1423;
  color: var(--text);
  outline: none;
}

.field input:focus {
  border-color: var(--amber);
}

.reward-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin: 34px 0;
  border-top: 4px solid #243655;
}

.reward-step {
  position: relative;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.reward-step::before {
  position: absolute;
  top: -15px;
  left: 50%;
  width: 26px;
  height: 26px;
  border: 2px solid #365275;
  border-radius: 999px;
  background: #0c1624;
  content: "";
  transform: translateX(-50%);
}

.reward-step.is-active::before {
  border-color: var(--amber);
  background: var(--amber);
}

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

.reward-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #111d2d, #0b1320);
}

.reward-card .reward-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 200, 87, 0.3);
  border-radius: 8px;
  color: var(--amber);
}

.reward-card h3 {
  margin: 0 0 8px;
}

.reward-card p {
  min-height: 54px;
  color: var(--muted);
  line-height: 1.6;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 26px;
}

.explain-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 23, 37, 0.86);
  color: #b7c4d7;
  line-height: 1.8;
}

.explain-box strong {
  color: var(--amber);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.signal-hero {
  display: grid;
  max-width: 930px;
  margin: 0 auto 48px;
  place-items: center;
  text-align: center;
}

.signal-hero h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.08;
}

.signal-hero h1 span {
  color: var(--amber);
}

.signal-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.signal-card {
  max-width: 580px;
  margin: 20px auto 0;
  padding: 24px;
  border: 1px solid #345078;
  border-radius: 8px;
  background: rgba(17, 29, 45, 0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left;
}

.footer-note {
  margin: 52px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .top-actions {
    grid-column: 2;
  }

  .hero-grid,
  .preview-terminal,
  .pricing-layout,
  .news-layout,
  .two-col {
    grid-template-columns: 1fr;
  }

  .feature-rail,
  .trust-strip,
  .reward-grid,
  .scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-rail article,
  .trust-strip div {
    border-right: 0;
    padding: 14px 12px;
  }

  .app-page {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: relative;
    top: 0;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .side-status {
    position: static;
    margin-top: 18px;
  }

  .ai-shell {
    grid-template-columns: 1fr;
  }

  .tool-rail {
    display: none;
  }

  .ai-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    justify-content: flex-start;
    order: 3;
    margin-inline: -6px;
  }

  .main-nav button {
    padding: 14px 10px;
    font-size: 13px;
  }

  .top-actions {
    grid-column: auto;
    justify-content: flex-start;
  }

  .wrap {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1,
  .signal-hero h1 {
    font-size: 44px;
  }

  .hero p,
  .signal-hero p {
    font-size: 16px;
  }

  .proof-row,
  .feature-rail,
  .trust-strip,
  .reward-grid,
  .scoreboard,
  .bottom-metrics,
  .reward-track {
    grid-template-columns: 1fr;
  }

  .section-title,
  .page-title {
    display: block;
  }

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

  .content {
    padding: 22px 14px 42px;
  }

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

  .span-3,
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1;
  }

  .chart-toolbar,
  .terminal-head,
  .subnav {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  /* keep the preview terminal inside narrow viewports:
     the 150px+3col footer forces ~398px min-content otherwise */
  .terminal-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terminal-head {
    flex-wrap: wrap;
    gap: 10px;
  }

  .terminal-stat,
  .score-card {
    padding: 14px 12px;
  }

  .terminal-main,
  .terminal-side {
    min-width: 0;
  }
}
