:root {
  --bg: #05080d;
  --ink: #f4f8fb;
  --muted: #96a9b5;
  --line: rgba(153, 190, 206, 0.22);
  --panel: rgba(9, 21, 31, 0.78);
  --panel-strong: rgba(12, 27, 39, 0.94);
  --cyan: #34d3ff;
  --teal: #2de6bd;
  --lime: #c9f66b;
  --amber: #f0b85a;
  --red: #ff6a66;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(52, 211, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 13, 0.9), rgba(7, 16, 24, 0.98) 42%, rgba(5, 8, 13, 1)),
    var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.field-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(52, 211, 255, 0.052) 1px, transparent 1px),
    linear-gradient(180deg, rgba(45, 230, 189, 0.04) 1px, transparent 1px),
    #05080d;
  background-size: 48px 48px;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(201, 246, 107, 0.06) 36%, transparent 37%),
    linear-gradient(245deg, transparent 0%, rgba(240, 184, 90, 0.07) 64%, transparent 65%);
  mask-image: linear-gradient(180deg, black, transparent 74%);
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(52, 211, 255, 0.14), transparent 38%),
    #04070d;
  transition: opacity 460ms ease, visibility 460ms ease;
}

.splash.done {
  opacity: 0;
  visibility: hidden;
}

.splash-canvas,
.splash-grid {
  position: absolute;
  inset: 0;
}

.splash-grid {
  background:
    linear-gradient(90deg, rgba(52, 211, 255, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(45, 230, 189, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.22;
  transform: perspective(760px) rotateX(62deg) translateY(23%);
  transform-origin: center bottom;
  animation: grid-drift 1.6s linear infinite;
}

.splash-core {
  position: relative;
  display: grid;
  gap: 10px;
  width: 340px;
  min-height: 220px;
  place-items: center;
  padding: 34px 30px;
  border: 1px solid rgba(52, 211, 255, 0.42);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 230, 189, 0.12), rgba(52, 211, 255, 0.08), rgba(240, 184, 90, 0.06)),
    rgba(8, 20, 30, 0.92);
  box-shadow:
    0 0 48px rgba(52, 211, 255, 0.18),
    inset 0 0 60px rgba(45, 230, 189, 0.08);
}

.splash-core::before,
.splash-core::after {
  position: absolute;
  color: rgba(52, 211, 255, 0.14);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  content: "0101 1100 1011\A GPA RANK COURSE\A SIGNAL MATCH RISK";
  white-space: pre;
}

.splash-core::before {
  left: -118px;
  top: 14px;
}

.splash-core::after {
  right: -126px;
  bottom: 18px;
  color: rgba(201, 246, 107, 0.13);
}

.splash-core strong {
  position: relative;
  z-index: 1;
  font-size: 40px;
}

.splash-core small {
  position: relative;
  z-index: 1;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.splash-ring {
  position: absolute;
  inset: 23px;
  border: 1px solid rgba(52, 211, 255, 0.28);
  border-radius: 50%;
  animation: ring-spin 1.8s linear infinite;
}

.splash-ring::before,
.splash-ring::after {
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(45, 230, 189, 0.32);
  border-radius: 50%;
  content: "";
}

.splash-ring::after {
  inset: 42px;
  border-color: rgba(240, 184, 90, 0.34);
  animation: ring-spin 1.2s linear infinite reverse;
}

.splash-meter {
  position: relative;
  z-index: 1;
  width: 210px;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.splash-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--lime));
  transform-origin: left center;
  animation: meter-load 900ms ease-out both;
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 44px;
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes meter-load {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px 40px;
  border-bottom: 1px solid rgba(153, 190, 206, 0.16);
  background: rgba(5, 8, 13, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(52, 211, 255, 0.55);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 230, 189, 0.24), rgba(52, 211, 255, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 18px rgba(52, 211, 255, 0.18);
}

.brand-mark i {
  width: 18px;
  height: 18px;
  border: 3px solid var(--cyan);
  border-left-color: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(52, 211, 255, 0.52);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.topbar nav a:hover,
.link-button:hover {
  color: var(--ink);
}

.link-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.hero-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 480px;
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 76px);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: 66px;
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: #c3d1da;
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions,
.box-heading,
.login-tabs,
.redeem-form,
.case-actions,
.hero-proof,
.console-top,
.console-row,
.console-metrics {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-proof {
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-proof span {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(153, 190, 206, 0.22);
  border-radius: 999px;
  color: #c8d8df;
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 780;
}

.primary-button {
  color: #041017;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 12px 32px rgba(45, 230, 189, 0.22);
}

.ghost-button {
  color: var(--ink);
  border-color: rgba(153, 190, 206, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button.small,
.ghost-button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.primary-button.full {
  width: 100%;
}

.intelligence-console,
.insight-primary,
.login-box,
.account-bar,
.redeem-box,
.cases-box,
.report-viewer,
.method-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.intelligence-console {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(12, 27, 39, 0.92), rgba(6, 12, 20, 0.88)),
    var(--panel);
}

.intelligence-console::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(52, 211, 255, 0.12) 49% 51%, transparent 52%),
    linear-gradient(180deg, rgba(52, 211, 255, 0.08), transparent 44%);
  background-size: 100% 100%, 100% 9px;
  content: "";
  opacity: 0.4;
  pointer-events: none;
}

.console-top {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.console-top div {
  display: flex;
  gap: 7px;
}

.console-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.console-top span:nth-child(2) {
  background: var(--teal);
}

.console-top span:nth-child(3) {
  background: var(--amber);
}

.console-top small,
.console-row span,
.console-row em,
.console-metrics small,
.insight-kicker {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.console-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 265px;
  margin: 20px 0;
}

.orbit-core {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 1px solid rgba(52, 211, 255, 0.58);
  border-radius: 50%;
  color: #061018;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  box-shadow: 0 0 42px rgba(52, 211, 255, 0.38);
  font-size: 28px;
  font-weight: 900;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(153, 190, 206, 0.24);
  border-radius: 50%;
}

.orbit-a {
  width: 180px;
  height: 180px;
  animation: ring-spin 16s linear infinite;
}

.orbit-b {
  width: 238px;
  height: 122px;
  transform: rotate(-28deg);
  animation: orbital-tilt 13s linear infinite;
}

.orbit-c {
  width: 122px;
  height: 238px;
  transform: rotate(32deg);
  animation: orbital-tilt 18s linear infinite reverse;
}

.pulse-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
}

.dot-a {
  transform: translate(88px, -44px);
}

.dot-b {
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
  transform: translate(-102px, 48px);
}

.dot-c {
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
  transform: translate(38px, 106px);
}

@keyframes orbital-tilt {
  to {
    transform: rotate(332deg);
  }
}

.console-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.console-row {
  justify-content: space-between;
  padding: 12px;
  border: 1px solid rgba(153, 190, 206, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.console-row.active {
  border-color: rgba(45, 230, 189, 0.42);
  background: rgba(45, 230, 189, 0.08);
}

.console-row span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(52, 211, 255, 0.3);
  border-radius: 50%;
  color: var(--cyan);
}

.console-row div {
  flex: 1;
  min-width: 0;
}

.console-row strong {
  display: block;
  font-size: 14px;
}

.console-row p,
.console-metrics p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.console-row em {
  color: var(--lime);
}

.console-metrics {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}

.console-metrics div {
  flex: 1;
  padding: 14px;
  border: 1px solid rgba(153, 190, 206, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.console-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.intelligence-section,
.method-section,
.dashboard-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.insight-primary {
  padding: 28px;
}

.insight-primary h3 {
  font-size: 30px;
}

.insight-primary p {
  max-width: 720px;
  color: #c2d1d9;
  line-height: 1.75;
}

.score-bars {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.score-bars div {
  display: grid;
  grid-template-columns: 96px 1fr 42px;
  align-items: center;
  gap: 12px;
}

.score-bars span,
.score-bars em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.score-bars b {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.score-bars b::before {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--cyan), var(--lime));
  content: "";
}

.insight-list,
.method-grid {
  display: grid;
  gap: 16px;
}

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

.insight-list article,
.method-grid article {
  padding: 24px;
}

.insight-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.method-grid span,
.insight-list span {
  color: var(--lime);
  font-weight: 900;
}

.method-grid p,
.insight-list p,
.redeem-box p,
.login-box p,
.section-heading p,
.case-item p {
  color: var(--muted);
  line-height: 1.65;
}

.portal-shell {
  display: grid;
  gap: 16px;
}

.login-box,
.redeem-box,
.cases-box,
.report-viewer {
  padding: 24px;
}

.login-box {
  width: min(480px, 100%);
}

.login-tabs {
  margin: 18px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.login-tabs button {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.login-tabs button.active {
  color: #041017;
  background: var(--cyan);
}

.login-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #d8e5eb;
  font-size: 14px;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(153, 190, 206, 0.26);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(52, 211, 255, 0.16);
}

.wechat-code {
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 10px;
  justify-content: center;
  width: 150px;
  height: 150px;
  margin: 0 auto 6px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 211, 255, 0.34);
  background: #eff8f7;
}

.wechat-code span,
.wechat-code b {
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: #061018;
}

.wechat-code b {
  color: var(--teal);
}

.account-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.account-bar div {
  padding: 18px 22px;
  background: var(--panel-strong);
}

.account-bar small {
  color: var(--muted);
  font-size: 12px;
}

.account-bar strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.redeem-form {
  margin-top: 16px;
}

.redeem-form input {
  flex: 1;
}

.redeem-result {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(45, 230, 189, 0.3);
  border-radius: var(--radius);
  background: rgba(45, 230, 189, 0.08);
}

.box-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

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

.case-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(153, 190, 206, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.case-item h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.case-item p {
  margin: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 9px;
  border-radius: 999px;
  color: #061018;
  background: var(--amber);
  font-size: 12px;
  font-weight: 850;
}

.status-chip.report_ready,
.status-chip.reported,
.status-chip.delivered {
  background: var(--teal);
}

.status-chip.running {
  background: var(--cyan);
}

.status-chip.analysis_failed {
  color: #fff;
  background: var(--red);
}

.report-body {
  max-height: 760px;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(153, 190, 206, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: #14202a;
  line-height: 1.74;
}

.report-body h1,
.report-body h2,
.report-body h3 {
  color: #102232;
}

.report-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13px;
}

.report-body th,
.report-body td {
  padding: 9px;
  border: 1px solid #d6e0e7;
  text-align: left;
  vertical-align: top;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 15px;
  border: 1px solid rgba(52, 211, 255, 0.28);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(10, 22, 31, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1020px) {
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .topbar {
    padding: 12px 18px;
  }

  .topbar nav a {
    display: none;
  }

  .hero-screen {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 720px);
    padding-top: 38px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 30px;
  }

  .intelligence-section,
  .method-section,
  .dashboard-section {
    width: min(100% - 28px, 720px);
    padding: 54px 0;
  }

  .method-grid,
  .insight-layout {
    grid-template-columns: 1fr;
  }

  .intelligence-console {
    min-height: auto;
  }

  .redeem-form,
  .case-item,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .case-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .account-bar {
    grid-template-columns: 1fr;
  }

  .box-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-metrics,
  .console-row {
    align-items: stretch;
    flex-direction: column;
  }

  .score-bars div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .splash-core {
    width: min(340px, calc(100% - 36px));
  }
}
