:root {
  color-scheme: light;
  --page: #e9eded;
  --page-strong: #f5f7f6;
  --page-deep: #d8dfe0;
  --ink: #10171a;
  --ink-soft: #4f5b61;
  --line: rgba(16, 23, 26, 0.16);
  --accent: #58c7d9;
  --accent-soft: #a6e3ec;
  --terminal: #061118;
  --terminal-2: #0a1820;
  --terminal-3: #0f252e;
  --terminal-4: #14353e;
  --terminal-line: rgba(141, 176, 187, 0.2);
  --terminal-text: #eaf1f2;
  --terminal-muted: #8498a0;
  --rise: #ef735f;
  --fall: #42bd8c;
  --warning: #eaa84d;
  --error: #b84a3d;
  --radius: 10px;
  --header-height: 68px;
  --type-hero: clamp(64px, 6.2vw, 96px);
  --type-manifesto: clamp(52px, 6.4vw, 96px);
  --type-section: clamp(48px, 5vw, 72px);
  --type-panel: clamp(28px, 2.2vw, 36px);
  --type-card: 20px;
  --type-body: 17px;
  --type-label: 11px;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: var(--header-height);
  align-items: center;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid rgba(16, 23, 26, 0.1);
  background: rgba(233, 237, 237, 0.84);
  backdrop-filter: blur(18px) saturate(140%);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: rgba(16, 23, 26, 0.64);
  font-size: 13px;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--ink);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-login {
  justify-self: end;
  min-width: 88px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--page-strong);
  font-size: 13px;
  font-weight: 800;
}

.header-login:hover {
  background: #293337;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(620px, 1.18fr);
  min-height: 100dvh;
  align-items: center;
  gap: clamp(44px, 5vw, 92px);
  padding: calc(var(--header-height) + 64px) clamp(22px, 5.2vw, 92px) 76px;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 20%, rgba(88, 199, 217, 0.2), transparent 28%),
    linear-gradient(125deg, var(--page-strong), var(--page) 58%, var(--page-deep));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-copy h1 {
  margin: 0;
  font-size: var(--type-hero);
  font-weight: 880;
  letter-spacing: -0.068em;
  line-height: 0.96;
}

.hero-copy p {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 38px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-width: 148px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.primary-action {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #07171b;
}

.primary-action:hover {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.secondary-action {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--page-strong);
}

.secondary-action:hover {
  background: #293337;
}

.primary-action:active,
.secondary-action:active,
.header-login:active,
.auth-primary:active {
  transform: translateY(1px);
}

.hero-product,
.terminal-shell {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--terminal);
  color: var(--terminal-text);
  box-shadow:
    0 44px 110px rgba(39, 53, 58, 0.28),
    0 9px 28px rgba(39, 53, 58, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-product {
  width: min(820px, 108%);
  min-height: 640px;
  transform: translateX(3vw);
}

.product-topbar,
.terminal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 52px;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--terminal-line);
  background: #09161d;
}

.product-topbar > span:first-child {
  color: var(--terminal-text);
  font-size: 12px;
  font-weight: 750;
}

.product-topbar > span:last-child,
.terminal-meta {
  justify-self: end;
  color: var(--terminal-muted);
  font-size: 10px;
}

.market-switch,
.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--terminal-line);
  border-radius: 7px;
  background: #071118;
}

.market-switch button,
.segmented-control button {
  min-height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--terminal-muted);
  font-size: 11px;
  font-weight: 700;
}

.market-switch button:hover,
.market-switch button.is-active,
.segmented-control button:hover,
.segmented-control button.is-active {
  background: var(--terminal-3);
  color: var(--terminal-text);
}

.pulse-grid {
  display: grid;
  grid-template-columns: minmax(220px, 31%) minmax(0, 69%);
  min-height: 588px;
}

.pulse-summary {
  padding: 50px 32px;
  border-right: 1px solid rgba(113, 207, 219, 0.22);
  background:
    linear-gradient(155deg, rgba(88, 199, 217, 0.24), transparent 50%),
    #0c343d;
}

.terminal-label,
.section-label {
  color: var(--accent);
  font-size: var(--type-label);
  font-weight: 800;
  letter-spacing: 0.025em;
}

.pulse-summary h2 {
  margin: 22px 0 0;
  font-size: var(--type-panel);
  letter-spacing: -0.04em;
  line-height: 1.17;
}

.pulse-summary > strong {
  display: block;
  margin-top: 66px;
  color: var(--accent);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: clamp(58px, 6vw, 84px);
  letter-spacing: -0.07em;
  line-height: 1;
}

.pulse-summary > span:last-child {
  display: block;
  margin-top: 15px;
  color: #bdd0d4;
  font-size: 13px;
}

.pulse-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  padding: 26px 26px 24px;
}

.pulse-indices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pulse-index {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius);
  background: var(--terminal-2);
}

.pulse-index small {
  display: block;
  overflow: hidden;
  color: var(--terminal-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-index strong {
  display: block;
  margin-top: 9px;
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 16px;
}

.pulse-index span {
  display: block;
  margin-top: 5px;
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 11px;
}

.rise {
  color: var(--rise) !important;
}

.fall {
  color: var(--fall) !important;
}

.chart-wrap {
  position: relative;
  min-width: 0;
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-chart-wrap {
  min-height: 320px;
  margin-top: 18px;
}

.chart-tooltip {
  position: absolute;
  z-index: 4;
  min-width: 92px;
  padding: 8px 10px;
  border: 1px solid var(--terminal-line);
  border-radius: 6px;
  background: rgba(6, 17, 24, 0.94);
  color: var(--terminal-text);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 10px;
  line-height: 1.5;
  pointer-events: none;
}

.pulse-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--terminal-line);
  color: var(--terminal-muted);
  font-size: 10px;
}

.pulse-footer strong {
  display: block;
  margin-top: 7px;
  color: var(--terminal-text);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 13px;
}

.principle-section {
  display: grid;
  min-height: 72dvh;
  place-items: center;
  padding: 100px 24px;
  background:
    linear-gradient(180deg, var(--page), var(--page-strong));
}

.principle-section p {
  margin: 0;
  text-align: center;
  font-size: var(--type-manifesto);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.feature-section {
  position: relative;
  padding: 150px clamp(22px, 4.8vw, 82px);
}

.rotation-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(680px, 1fr);
  align-items: center;
  gap: clamp(44px, 5vw, 90px);
  min-height: 100dvh;
  background: var(--page-strong);
}

.feature-intro {
  max-width: 440px;
}

.feature-intro h2,
.weather-heading h2,
.influencer-heading h2,
.momentum-copy h2,
.closing-copy h2 {
  margin: 18px 0 0;
  font-size: var(--type-section);
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.feature-intro p,
.weather-heading p,
.influencer-heading p,
.momentum-copy p,
.closing-copy p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: var(--type-body);
  line-height: 1.65;
}

.terminal-header {
  grid-template-columns: 1fr auto 1fr;
  min-height: 58px;
  padding: 0 18px;
}

.terminal-header > div:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.terminal-header > div:first-child strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rotation-terminal {
  min-height: 720px;
}

.rotation-public-access {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--terminal-line);
  background: rgba(88, 199, 217, 0.06);
}

.rotation-public-access > div { min-width: 0; }
.rotation-public-access span { color: var(--accent); font-family: "SFMono-Regular", "Roboto Mono", monospace; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.rotation-public-access p { margin: 3px 0 0; color: var(--terminal-muted); font-size: 10px; line-height: 1.45; }
.rotation-public-access button {
  min-width: 112px;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(88, 199, 217, .48);
  border-radius: var(--radius);
  color: var(--accent);
  background: rgba(88, 199, 217, .08);
  font-size: 10px;
  font-weight: 800;
}
.rotation-public-access button:hover,
.rotation-public-access button:focus-visible { border-color: var(--accent); color: var(--terminal-text); outline: 0; }
.rotation-public-access button:active { transform: translateY(1px); }

#rotationPeriods [data-public-locked="true"] { opacity: .58; }
#rotationPeriods [data-public-locked="true"]::after { content: "登录"; margin-left: 4px; color: var(--accent); font-size: 8px; }
#rotationPeriods [data-public-locked="true"]:hover,
#rotationPeriods [data-public-locked="true"]:focus-visible { opacity: 1; }

.rotation-layout {
  display: grid;
  grid-template-columns: minmax(225px, 28%) minmax(0, 72%);
  min-height: 602px;
}

.theme-ranking {
  padding: 24px 18px;
  border-right: 1px solid var(--terminal-line);
  background: #08151c;
}

.data-heading {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  color: var(--terminal-muted);
  font-size: 10px;
}

.theme-rank-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 62px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--terminal-line);
  background: transparent;
  color: #aebdc2;
  text-align: left;
}

.theme-rank-button:hover,
.theme-rank-button.is-active {
  background: var(--terminal-3);
  color: var(--terminal-text);
}

.theme-rank-button > span:first-child {
  color: var(--terminal-muted);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 10px;
}

.theme-rank-button > span:nth-child(2) {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-rank-button strong {
  color: var(--accent);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 14px;
}

.rotation-detail {
  min-width: 0;
  padding: 28px 30px;
}

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

.metric-line > span,
.stock-evidence > span {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius);
  background: var(--terminal-2);
}

.metric-line small,
.stock-evidence small {
  display: block;
  color: var(--terminal-muted);
  font-size: 10px;
}

.metric-line strong,
.stock-evidence strong {
  display: block;
  margin-top: 9px;
  overflow: hidden;
  color: var(--terminal-text);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rotation-chart-wrap {
  height: 380px;
  margin-top: 22px;
}

.leader-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.leader-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius);
  background: var(--terminal-2);
}

.leader-item span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-item strong {
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 11px;
}

.weather-section {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 16% 18%, rgba(88, 199, 217, 0.16), transparent 24%),
    var(--page);
}

.weather-heading,
.influencer-heading {
  max-width: 760px;
  margin: 0 auto 70px;
  text-align: center;
}

.weather-heading p,
.influencer-heading p {
  margin-inline: auto;
}

.weather-terminal {
  width: min(1500px, 100%);
  min-height: 760px;
  margin: 0 auto;
}

.weather-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.25fr) minmax(480px, 0.48fr) minmax(280px, 0.27fr);
  min-height: 702px;
}

.weather-reading {
  padding: 40px 28px;
  border-right: 1px solid var(--terminal-line);
  background:
    linear-gradient(155deg, rgba(88, 199, 217, 0.26), transparent 48%),
    #103640;
}

.weather-reading > strong {
  display: block;
  margin-top: 44px;
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: clamp(68px, 7.2vw, 108px);
  font-weight: 650;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.weather-reading > strong small {
  font-size: 0.3em;
  vertical-align: top;
}

.weather-reading h3 {
  margin: 28px 0 0;
  font-size: var(--type-panel);
  letter-spacing: -0.035em;
}

.weather-metrics {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}

.weather-metrics button {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #bad0d4;
  text-align: left;
}

.weather-metrics button:hover,
.weather-metrics button.is-active {
  border-color: rgba(151, 220, 229, 0.3);
  background: rgba(6, 17, 24, 0.32);
  color: var(--terminal-text);
}

.weather-metrics button span {
  font-size: 11px;
}

.weather-metrics button strong {
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 13px;
}

.weather-chart-column {
  min-width: 0;
  padding: 30px 26px;
}

.forecast-selector {
  display: grid;
  grid-auto-columns: minmax(88px, 1fr);
  grid-auto-flow: column;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.forecast-selector::-webkit-scrollbar {
  display: none;
}

.forecast-button {
  min-height: 62px;
  padding: 8px;
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius);
  background: var(--terminal-2);
  color: var(--terminal-muted);
}

.forecast-button:hover,
.forecast-button.is-active {
  border-color: rgba(88, 199, 217, 0.52);
  background: var(--terminal-3);
  color: var(--terminal-text);
}

.forecast-button span,
.forecast-button strong {
  display: block;
}

.forecast-button span {
  font-size: 10px;
}

.forecast-button strong {
  margin-top: 8px;
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 14px;
}

.weather-chart-wrap {
  height: 340px;
  margin-top: 22px;
}

.weather-explanation {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: var(--terminal-2);
}

.weather-explanation span {
  color: var(--accent);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 12px;
}

.weather-explanation p {
  margin: 8px 0 0;
  color: #a8b9be;
  font-size: 12px;
  line-height: 1.7;
}

.calendar-rail {
  padding: 28px 22px;
  border-left: 1px solid var(--terminal-line);
  background: #08151c;
}

.calendar-event {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--terminal-line);
  background: transparent;
  color: #aebdc2;
  text-align: left;
}

.calendar-event:hover,
.calendar-event.is-active {
  background: var(--terminal-3);
  color: var(--terminal-text);
}

.calendar-event span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event time {
  color: var(--terminal-muted);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 10px;
}

.event-detail {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius);
  background: var(--terminal-2);
}

.event-detail > strong {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
}

.event-detail p {
  margin: 12px 0 0;
  color: #a0b1b7;
  font-size: 11px;
  line-height: 1.65;
}

.event-detail > div {
  margin-top: 14px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1.6;
}

.momentum-section {
  display: grid;
  grid-template-columns: minmax(680px, 1fr) minmax(300px, 0.38fr);
  align-items: center;
  gap: clamp(44px, 5vw, 90px);
  min-height: 100dvh;
  background: var(--page-strong);
}

.momentum-terminal {
  min-height: 700px;
}

.momentum-layout {
  display: grid;
  grid-template-columns: minmax(500px, 0.58fr) minmax(320px, 0.42fr);
  min-height: 642px;
}

.stock-table-wrap {
  min-width: 0;
  padding: 24px 22px;
  border-right: 1px solid var(--terminal-line);
}

.stock-table-head,
.stock-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.35fr) minmax(64px, 0.65fr) minmax(76px, 0.72fr) minmax(76px, 0.72fr) minmax(78px, 0.8fr) minmax(48px, 0.45fr);
  align-items: center;
  gap: 9px;
}

.stock-table-head {
  min-height: 34px;
  padding: 0 12px;
  color: var(--terminal-muted);
  font-size: 9px;
}

.stock-row {
  width: 100%;
  min-height: 66px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--terminal-line);
  background: transparent;
  color: #afbec3;
  text-align: left;
}

.stock-row:hover,
.stock-row.is-active {
  background: var(--terminal-3);
  color: var(--terminal-text);
}

.stock-row > span:first-child {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 8px;
  overflow: hidden;
}

.stock-row > span:first-child b {
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 10px;
  font-weight: 500;
}

.stock-row > span:first-child em {
  overflow: hidden;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stock-row > span:not(:first-child),
.stock-row > strong {
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 10px;
}

.momentum-detail-panel {
  min-width: 0;
  padding: 30px 24px;
}

.stock-quote {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.stock-quote small {
  display: block;
  color: var(--terminal-muted);
  font-size: 10px;
}

.stock-quote div > strong {
  display: block;
  margin-top: 8px;
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 36px;
}

.stock-quote > span {
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 18px;
  font-weight: 700;
}

.momentum-chart-wrap {
  height: 330px;
  margin-top: 30px;
}

.stock-evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.momentum-copy {
  justify-self: center;
}

.influencer-section {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 84% 14%, rgba(88, 199, 217, 0.16), transparent 24%),
    var(--page);
}

.influencer-terminal {
  width: min(1500px, 100%);
  min-height: 720px;
  margin: 0 auto;
}

.influencer-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.24fr) minmax(440px, 0.43fr) minmax(320px, 0.33fr);
  min-height: 662px;
}

.signal-overview {
  padding: 40px 28px;
  border-right: 1px solid var(--terminal-line);
  background:
    linear-gradient(155deg, rgba(88, 199, 217, 0.24), transparent 50%),
    #0c333c;
}

.signal-overview h3 {
  margin: 24px 0 0;
  font-size: 26px;
  line-height: 1.25;
}

.signal-overview > strong {
  display: block;
  margin-top: 44px;
  color: var(--accent);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 72px;
  letter-spacing: -0.08em;
  line-height: 1;
}

.signal-overview > span:nth-of-type(2) {
  display: block;
  margin-top: 8px;
  color: #bbccd1;
  font-size: 12px;
}

.influencer-chart-wrap {
  height: 210px;
  margin-top: 40px;
}

.evidence-feed {
  min-width: 0;
  padding: 28px 22px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 0;
  border-top: 1px solid var(--terminal-line);
  background: transparent;
  color: #afbec3;
  text-align: left;
}

.evidence-item:hover,
.evidence-item.is-active {
  background: var(--terminal-3);
  color: var(--terminal-text);
}

.evidence-item > span:first-child {
  color: var(--terminal-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.evidence-item > span:nth-child(2) {
  overflow: hidden;
}

.evidence-item strong,
.evidence-item small {
  display: block;
}

.evidence-item strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-item small {
  margin-top: 6px;
  overflow: hidden;
  color: var(--terminal-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-item time {
  color: var(--terminal-muted);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 9px;
}

.evidence-detail {
  padding: 34px 28px;
  border-left: 1px solid var(--terminal-line);
  background: #08151c;
}

.evidence-source-line {
  display: flex;
  justify-content: space-between;
  color: var(--terminal-muted);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 10px;
}

.evidence-detail > strong {
  display: block;
  margin-top: 26px;
  color: var(--accent);
  font-size: 12px;
}

.evidence-detail h3 {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.4;
}

.evidence-detail p {
  margin: 24px 0 0;
  color: #acbdc2;
  font-size: 13px;
  line-height: 1.8;
}

.evidence-detail > div:nth-of-type(2) {
  margin-top: 24px;
  padding: 13px;
  border: 1px solid var(--terminal-line);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: "SFMono-Regular", "Roboto Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
}

.evidence-detail > small {
  display: block;
  margin-top: 28px;
  color: var(--terminal-muted);
  font-size: 10px;
  line-height: 1.7;
}

.closing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(360px, 0.38fr);
  min-height: 82dvh;
  align-items: center;
  gap: 60px;
  padding: 130px clamp(22px, 7vw, 120px);
  overflow: hidden;
  background: var(--page-strong);
}

.closing-copy .primary-action {
  margin-top: 36px;
}

.closing-signal {
  position: relative;
  display: flex;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  isolation: isolate;
  border: 1px solid rgba(88, 199, 217, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(88, 199, 217, 0.46), rgba(88, 199, 217, 0.08) 48%, transparent 69%);
  box-shadow: 0 0 100px rgba(88, 199, 217, 0.24);
}

.closing-signal span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.signal-qr-frame {
  width: min(62%, 280px);
  padding: 12px;
  border: 1px solid rgba(88, 199, 217, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 24px 70px rgba(42, 117, 129, 0.2);
}

.signal-qr {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: calc(var(--radius) - 3px);
}

.site-footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(22px, 5vw, 82px);
  border-top: 1px solid var(--line);
  background: var(--page);
}

.site-footer > span {
  font-size: 12px;
  font-weight: 850;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
}

.reveal-on-view {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms ease, transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-view.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-modal,
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 23, 26, 0.42);
  backdrop-filter: blur(12px);
}

.auth-window,
.confirm-window {
  position: relative;
  width: min(100%, 420px);
  padding: 26px;
  border: 1px solid rgba(16, 23, 26, 0.16);
  border-radius: var(--radius);
  background: rgba(245, 247, 246, 0.98);
  box-shadow: 0 32px 90px rgba(42, 53, 58, 0.34);
}

.auth-window-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.auth-window-header span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.auth-window-header h2,
.confirm-window h2 {
  margin: 5px 0 0;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.auth-window-header > button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
}

.auth-copy,
.confirm-window p {
  margin: 10px 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.field > input,
.field textarea,
.password-control {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16, 23, 26, 0.22);
  border-radius: 6px;
  background: var(--page-strong);
  color: var(--ink);
}

.field > input,
.field textarea {
  padding: 11px 12px;
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #647178;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
}

.password-control input {
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.password-control button {
  min-width: 54px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
}

.auth-error {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--error);
  font-size: 12px;
}

.auth-primary {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: var(--page-strong);
  font-weight: 850;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.auth-links button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
}

.confirm-modal {
  background: rgba(16, 23, 26, 0.42);
  backdrop-filter: blur(12px);
}

.prototype-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  padding: 11px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--page-strong);
  box-shadow: 0 12px 36px rgba(42, 53, 58, 0.28);
  font-size: 12px;
}

@media (max-width: 1240px) {
  .hero-section {
    grid-template-columns: minmax(340px, 0.72fr) minmax(560px, 1.28fr);
    gap: 42px;
  }

  .hero-product {
    transform: translateX(2vw);
  }

  .rotation-section,
  .momentum-section {
    grid-template-columns: 1fr;
  }

  .feature-intro,
  .momentum-copy {
    max-width: 680px;
    justify-self: start;
  }

  .weather-layout,
  .influencer-layout {
    grid-template-columns: 240px minmax(420px, 1fr) 290px;
  }
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-height) + 74px);
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-product {
    width: 104%;
    transform: none;
  }

  .weather-terminal,
  .influencer-terminal,
  .momentum-terminal,
  .rotation-terminal {
    overflow-x: auto;
  }

  .weather-layout {
    width: 1080px;
  }

  .influencer-layout {
    width: 1060px;
  }

  .momentum-layout {
    width: 980px;
  }

  .rotation-layout {
    width: 920px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 62px;
    --type-hero: clamp(50px, 14vw, 62px);
    --type-manifesto: clamp(42px, 12vw, 56px);
    --type-section: clamp(40px, 11.5vw, 52px);
    --type-panel: 22px;
    --type-body: 15px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand-lockup {
    font-size: 12px;
  }

  .header-login {
    min-width: 74px;
    min-height: 44px;
  }

  .hero-section {
    gap: 54px;
    padding: 112px 18px 54px;
  }

  .hero-copy h1 {
    line-height: 0.98;
  }

  .hero-copy p {
    margin-top: 22px;
  }

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

  .primary-action,
  .secondary-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding-inline: 14px;
  }

  .hero-product {
    width: calc(100% + 118px);
    min-height: 510px;
  }

  .product-topbar {
    grid-template-columns: 1fr auto;
    min-height: 48px;
  }

  .product-topbar > span:last-child {
    display: none;
  }

  .market-switch button {
    min-height: 34px;
  }

  .pulse-grid {
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 460px;
  }

  .pulse-summary {
    padding: 28px 17px;
  }

  .pulse-summary h2 {
    margin-top: 16px;
  }

  .pulse-summary > strong {
    margin-top: 48px;
    font-size: 48px;
  }

  .pulse-main {
    width: 430px;
    padding: 18px;
  }

  .pulse-indices {
    grid-template-columns: repeat(3, 120px);
  }

  .hero-chart-wrap {
    min-height: 250px;
  }

  .principle-section {
    min-height: 60dvh;
  }

  .feature-section {
    padding: 100px 18px;
  }

  .feature-intro h2,
  .weather-heading h2,
  .influencer-heading h2,
  .momentum-copy h2,
  .closing-copy h2 {
    letter-spacing: -0.055em;
  }

  .feature-intro p,
  .weather-heading p,
  .influencer-heading p,
  .momentum-copy p,
  .closing-copy p {
    line-height: 1.6;
  }

  .weather-heading,
  .influencer-heading {
    margin-bottom: 42px;
    text-align: left;
  }

  .terminal-shell {
    margin-right: -18px;
    border-radius: var(--radius) 0 0 var(--radius);
    box-shadow: 0 24px 62px rgba(39, 53, 58, 0.24);
  }

  .terminal-header {
    position: sticky;
    left: 0;
    z-index: 2;
    grid-template-columns: 1fr auto;
    width: calc(100vw - 18px);
    min-height: 56px;
  }

  .terminal-header .terminal-meta {
    display: none;
  }

  .terminal-header > div:first-child {
    display: grid;
    gap: 3px;
  }

  .rotation-public-access {
    position: sticky;
    left: 0;
    z-index: 2;
    width: calc(100vw - 18px);
    min-height: 74px;
    padding: 10px 12px;
  }

  .rotation-public-access p { max-width: 34ch; }
  .rotation-public-access button { min-width: 104px; min-height: 44px; }

  .segmented-control button {
    min-height: 34px;
    padding-inline: 10px;
  }

  .rotation-terminal,
  .weather-terminal,
  .momentum-terminal,
  .influencer-terminal {
    min-height: 600px;
  }

  .rotation-layout,
  .weather-layout,
  .momentum-layout,
  .influencer-layout {
    min-height: 544px;
  }

  .momentum-section {
    gap: 70px;
  }

  .momentum-terminal {
    order: 2;
  }

  .momentum-copy {
    order: 1;
  }

  .closing-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 110px 18px;
  }

  .closing-signal {
    width: min(340px, 86vw);
    justify-self: center;
  }

  .site-footer {
    display: grid;
  }

  .site-footer p {
    text-align: left;
  }

  .prototype-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-on-view {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    backdrop-filter: none;
  }

  .modal-backdrop,
  .confirm-modal {
    backdrop-filter: none;
  }
}
