:root {
  color-scheme: light;
  --purple-deep: #1a1438;
  --purple: #4b2d6f;
  --teal: #0d3b3b;
  --gold: #d4af37;
  --gold-soft: #e8d5a1;
  --paper: #f7f6f3;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --ink: #17132b;
  --muted: #746f82;
  --line: rgba(75, 45, 111, 0.14);
  --line-gold: rgba(212, 175, 55, 0.38);
  --shadow: 0 24px 80px rgba(26, 20, 56, 0.12);
  --radius: 18px;
  --green: #208c76;
  --red: #d96a55;
  --earth: #c4933a;
  --metal: #9f9a8f;
  --water: #3b77b8;
  --font-ui: "Inter", "SF Pro Display", "PingFang SC", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "PingFang SC", "Source Han Sans SC", serif;
  font-family: var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(212, 175, 55, 0.22), transparent 24%),
    radial-gradient(circle at 8% 12%, rgba(75, 45, 111, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, var(--paper) 42%, #f2f0e9 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a {
  color: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(75, 45, 111, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 45, 111, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 12%, black 0%, transparent 72%);
}

.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.page-bg::before {
  width: 320px;
  height: 320px;
  top: 80px;
  right: -90px;
}

.page-bg::after {
  width: 240px;
  height: 240px;
  left: -100px;
  top: 420px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  color: var(--purple-deep);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #4f4960;
  font-size: 15px;
}

.topnav a {
  text-decoration: none;
  white-space: nowrap;
}

.topnav a:hover {
  color: var(--purple-deep);
}

.header-cta,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.header-cta,
.primary-button {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  box-shadow: 0 14px 34px rgba(75, 45, 111, 0.24);
}

.header-cta {
  min-width: 108px;
  padding: 0 20px;
}

.primary-button {
  padding: 0 28px;
}

.secondary-button,
.ghost-button {
  color: var(--purple-deep);
  border: 1px solid rgba(75, 45, 111, 0.18);
  background: rgba(255, 255, 255, 0.72);
}

.secondary-button {
  padding: 0 24px;
  font-weight: 700;
}

.ghost-button {
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple-deep);
  background: #fff;
}

.hero,
.workspace,
.pricing-section,
.sample-section,
.trust-section,
.site-footer {
  position: relative;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 0 62px;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  color: #9a7629;
  font-weight: 700;
}

.brand-line span {
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.brand-line em {
  font-style: normal;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 22px 0 18px;
  color: var(--purple-deep);
  font-size: 60px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: #5e586b;
  font-size: 19px;
  line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-gold);
  border-radius: 999px;
  color: var(--purple-deep);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 700;
}

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

.hero-mock {
  position: relative;
  min-height: 560px;
}

.mock-orbit {
  position: absolute;
  top: 10px;
  right: 38px;
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(232, 213, 161, 0.38), transparent 58%),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.mock-orbit::before,
.mock-orbit::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px dashed rgba(75, 45, 111, 0.18);
  border-radius: 50%;
}

.mock-orbit::after {
  inset: 64px;
}

.mock-orbit img {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
}

.mock-card {
  position: absolute;
  border: 1px solid rgba(75, 45, 111, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.chart-card {
  left: 0;
  top: 140px;
  width: 350px;
  padding: 22px;
}

.ai-card {
  right: 0;
  bottom: 34px;
  width: 390px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(26, 20, 56, 0.98), rgba(75, 45, 111, 0.94)),
    var(--purple-deep);
  color: #fff;
}

.mock-title {
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 14px;
}

.mock-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 2px 0 8px;
  border-bottom: 1px solid rgba(232, 213, 161, 0.14);
  cursor: grab;
  touch-action: none;
}

.mock-title-row .mock-title {
  margin-bottom: 0;
}

.drag-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.drag-hint {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(232, 213, 161, 0.18);
  border-radius: 999px;
  color: rgba(255, 248, 223, 0.72);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.drag-handle,
.drag-reset {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(232, 213, 161, 0.26);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.075);
  cursor: grab;
}

.drag-handle {
  grid-template-columns: repeat(2, 4px);
  gap: 4px 5px;
  touch-action: none;
  pointer-events: none;
}

.drag-handle span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.78;
}

.drag-reset {
  cursor: pointer;
  opacity: 0.52;
}

.drag-reset svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.drag-reset:hover,
.ai-card.has-dragged .drag-reset {
  opacity: 1;
}

.report-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.report-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(232, 213, 161, 0.24);
  border-radius: 999px;
  color: rgba(255, 248, 223, 0.78);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(75, 45, 111, 0.12);
  border-radius: 14px;
}

.mini-grid span,
.mini-grid strong {
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid rgba(75, 45, 111, 0.08);
}

.mini-grid span {
  color: var(--muted);
  background: #faf9f5;
  font-size: 13px;
}

.mini-grid strong {
  color: var(--purple-deep);
  font-size: 15px;
}

.mini-elements {
  display: flex;
  align-items: end;
  gap: 13px;
  height: 120px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #f8f6ee;
}

.mini-elements i {
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--gold), var(--purple));
}

.ai-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
}

.mock-highlight {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(232, 213, 161, 0.35);
  border-radius: 14px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.06);
}

.workspace {
  padding: 28px 0 52px;
}

.workspace-head,
.section-heading,
.result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-kicker {
  display: inline-block;
  color: #9a7629;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.workspace h2,
.pricing-section h2,
.sample-section h2 {
  margin: 8px 0 0;
  color: var(--purple-deep);
  font-size: 38px;
  line-height: 1.18;
}

.api-state {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  white-space: nowrap;
}

.api-state.ready {
  color: #157a65;
  border-color: rgba(32, 140, 118, 0.3);
}

.api-state.warn {
  color: #a26a14;
}

.desk-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.flow-steps article {
  position: relative;
  min-height: 118px;
  padding: 18px 18px 18px 64px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 246, 243, 0.72)),
    var(--surface-strong);
  box-shadow: 0 16px 44px rgba(26, 20, 56, 0.08);
}

.flow-steps span {
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--teal));
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.flow-steps strong {
  display: block;
  color: var(--purple-deep);
  font-size: 17px;
  font-weight: 900;
}

.flow-steps p {
  margin: 8px 0 0;
  color: #625d70;
  font-size: 14px;
  line-height: 1.65;
}

.form-card,
.result-card,
.rule-card,
.sample-report,
.trust-section > *,
.modal-card {
  border: 1px solid rgba(75, 45, 111, 0.12);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.form-card,
.result-card {
  padding: 22px;
}

.quota-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.quota-card div {
  min-height: 112px;
  padding: 15px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232, 213, 161, 0.54), rgba(255, 255, 255, 0.72));
}

.quota-card div:last-child {
  border-color: rgba(13, 59, 59, 0.2);
  background: linear-gradient(135deg, rgba(13, 59, 59, 0.1), rgba(255, 255, 255, 0.84));
}

.quota-card span,
.quota-card small,
.section-heading small,
.fortune-form span,
.fine-print {
  color: var(--muted);
  font-size: 13px;
}

.quota-card small {
  display: block;
  margin-top: 3px;
  line-height: 1.5;
}

.quota-card strong {
  display: block;
  margin-top: 4px;
  color: var(--purple-deep);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
}

.account-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.mini-action {
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  white-space: normal;
  text-align: center;
}

.section-heading p {
  margin: 0;
  color: var(--purple-deep);
  font-size: 18px;
  font-weight: 800;
}

.section-heading small {
  display: block;
  margin-top: 4px;
}

.form-card h3 {
  margin: 18px 0 16px;
  color: var(--purple-deep);
  font-size: 22px;
}

.fortune-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.fortune-form .full,
.submit-button,
.fine-print {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(75, 45, 111, 0.14);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  outline: none;
}

textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.submit-button {
  min-height: 52px;
  margin-top: 4px;
  font-size: 16px;
}

.button-orbit {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 18%, transparent 19%),
    radial-gradient(circle, var(--gold-soft) 0 46%, transparent 47%);
  box-shadow: 0 0 12px rgba(232, 213, 161, 0.7);
}

.primary-button.loading .button-orbit {
  border: 2px solid currentColor;
  border-top-color: transparent;
  background: transparent;
  box-shadow: none;
  animation: spin 900ms linear infinite;
}

.fine-print {
  margin: 0;
  line-height: 1.7;
}

.result-card {
  min-height: 620px;
}

.result-top {
  margin-bottom: 18px;
}

.result-top h2 {
  margin: 6px 0 8px;
  color: var(--purple-deep);
  font-size: 34px;
}

.result-top p {
  margin: 0;
  color: #5f596d;
  line-height: 1.75;
}

.result-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex: 0 0 auto;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}

.result-meta:empty {
  display: none;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(32, 140, 118, 0.24);
  border-radius: 999px;
  color: #116e5d;
  background: rgba(32, 140, 118, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.model-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20a77f;
  box-shadow: 0 0 0 4px rgba(32, 167, 127, 0.12);
}

.model-pill.fallback {
  color: #966713;
  border-color: rgba(212, 175, 55, 0.38);
  background: rgba(232, 213, 161, 0.22);
}

.model-pill.fallback i {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.14);
}

.result-meta small {
  color: var(--muted);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
}

.state-panel {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 32px;
  text-align: center;
  border: 1px dashed rgba(75, 45, 111, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 26%, rgba(232, 213, 161, 0.32), transparent 34%),
    rgba(255, 255, 255, 0.5);
}

.state-panel img {
  width: 118px;
  height: 118px;
}

.state-panel h3 {
  margin: 18px 0 8px;
  color: var(--purple-deep);
  font-size: 26px;
}

.state-panel p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.loading-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.loading-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.loading-steps span {
  min-height: 42px;
  padding: 11px 12px;
  border-radius: 999px;
  color: var(--purple-deep);
  background: #fff;
  text-align: center;
  font-weight: 700;
}

.skeleton {
  height: 116px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f3efe5, #fff, #f3efe5);
  background-size: 220% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
}

.skeleton.short {
  height: 72px;
}

.skeleton.grid {
  height: 220px;
}

.report-content {
  display: grid;
  gap: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.brief-item {
  position: relative;
  min-height: 124px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(75, 45, 111, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 246, 243, 0.62)),
    rgba(255, 255, 255, 0.78);
}

.brief-item::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -54px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 50%;
}

.brief-item span {
  color: #9a7629;
  font-size: 12px;
  font-weight: 900;
}

.brief-item strong {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin-top: 8px;
  color: var(--purple-deep);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 17px;
  line-height: 1.35;
}

.brief-item small {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin-top: 7px;
  color: var(--muted);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.55;
}

.report-nav {
  position: sticky;
  top: 82px;
  z-index: 6;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid rgba(75, 45, 111, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(26, 20, 56, 0.08);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

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

.report-nav:empty {
  display: none;
}

.report-nav a {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #574b70;
  background: rgba(247, 246, 243, 0.74);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.report-nav a:hover {
  color: var(--purple-deep);
  background: rgba(232, 213, 161, 0.34);
}

.report-summary-grid,
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.report-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.panel {
  padding: 18px;
  border: 1px solid rgba(75, 45, 111, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 246, 243, 0.58)),
    rgba(255, 255, 255, 0.78);
}

.pillar-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
}

.pillar-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(75, 45, 111, 0.08);
}

.pillar-list dt {
  color: var(--muted);
}

.pillar-list dd {
  margin: 0;
  color: var(--purple-deep);
  font-weight: 800;
  text-align: right;
}

.pillar-list small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

.element-bars,
.domain-list,
.section-list,
.annual-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.element-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.element-name,
.element-value {
  color: var(--purple-deep);
  font-weight: 800;
}

.element-value {
  text-align: right;
  font-size: 13px;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(75, 45, 111, 0.08);
}

.bar-fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.element-radar-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.element-radar {
  width: min(100%, 220px);
  aspect-ratio: 1;
  filter: drop-shadow(0 0 18px rgba(73, 255, 178, 0.12));
}

.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: rgba(73, 255, 178, 0.2);
  stroke-width: 1;
}

.radar-shape {
  fill: rgba(73, 255, 178, 0.2);
  stroke: var(--matrix-green);
  stroke-width: 2;
}

.radar-dots circle {
  fill: var(--dot-color, var(--matrix-green));
  stroke: rgba(11, 16, 22, 0.96);
  stroke-width: 2;
}

.radar-labels text {
  fill: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 800;
}

.element-radar-note {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.element-radar-note strong {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 14px;
  letter-spacing: 0;
}

.element-radar-note span {
  color: var(--matrix-muted);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 720px) {
  .element-radar-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .element-radar-note {
    max-width: 280px;
  }
}

.domain-card,
.annual-item,
.report-section {
  border: 1px solid rgba(75, 45, 111, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
}

.domain-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.domain-card strong,
.score {
  color: var(--purple-deep);
  font-weight: 800;
}

.domain-card p,
.annual-item p,
.report-section p,
.report-section li {
  margin: 0;
  color: #5d586a;
  line-height: 1.72;
}

.score {
  text-align: right;
}

.report-section {
  padding: 16px;
}

.report-section h3 {
  margin: 0 0 8px;
  color: var(--purple);
  font-size: 18px;
}

.report-section {
  padding: 0;
  overflow: hidden;
}

.report-section.featured {
  border-color: rgba(212, 175, 55, 0.32);
  background:
    linear-gradient(135deg, rgba(232, 213, 161, 0.2), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.78);
}

.report-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 16px 0;
}

.report-section-head span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--purple-deep);
  background: rgba(232, 213, 161, 0.42);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.report-section h3 {
  margin: 0;
  color: var(--purple-deep);
}

.report-section p,
.report-section .advice-list {
  padding: 12px 16px 16px 36px;
}

.report-section p {
  padding-left: 16px;
}

.advice-list {
  margin: 0;
  padding-left: 20px;
}

.annual-item {
  padding: 14px;
}

.annual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--purple-deep);
  font-weight: 800;
}

.lucky-box {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line-gold);
  border-radius: 15px;
  color: #835e13;
  background: rgba(232, 213, 161, 0.28);
  line-height: 1.75;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chat-panel {
  display: grid;
  gap: 14px;
}

.chat-messages {
  display: grid;
  gap: 12px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(75, 45, 111, 0.1);
  border-radius: 16px;
  background: rgba(247, 246, 243, 0.72);
}

.chat-message {
  display: grid;
  gap: 5px;
  max-width: 86%;
}

.chat-message.assistant {
  max-width: 94%;
}

.chat-message.user {
  justify-self: end;
}

.chat-message span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chat-message p {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: #5d586a;
  background: #fff;
  line-height: 1.7;
  white-space: pre-line;
}

.chat-message.user p {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.chat-form textarea {
  min-height: 76px;
}

.chat-form .primary-button {
  min-width: 120px;
  min-height: 46px;
}

.pricing-section,
.sample-section,
.trust-section {
  padding: 58px 0;
}

.marketing-section.revealed {
  animation: revealSection 220ms ease both;
}

.pricing-section {
  text-align: center;
}

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

.rule-card {
  padding: 24px;
  text-align: left;
}

.rule-card.highlight {
  border-color: rgba(212, 175, 55, 0.58);
  background: linear-gradient(135deg, rgba(232, 213, 161, 0.48), #fff);
  transform: translateY(-8px);
}

.rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 58px;
  margin-bottom: 16px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #b97911);
  font-weight: 900;
}

.rule-card h3,
.sample-report h3,
.trust-section h3 {
  margin: 0 0 9px;
  color: var(--purple-deep);
}

.rule-card p,
.sample-copy p,
.sample-report p,
.sample-report li,
.trust-section p,
.site-footer p {
  color: #625d70;
  line-height: 1.7;
}

.sample-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: center;
}

.sample-copy p {
  max-width: 420px;
}

.sample-report {
  padding: 28px;
}

.sample-report mark {
  padding: 2px 6px;
  border-radius: 8px;
  color: var(--purple-deep);
  background: rgba(232, 213, 161, 0.5);
}

.trust-section {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr repeat(3, 1fr);
  gap: 14px;
}

.trust-section > * {
  padding: 20px;
}

.metric {
  display: block;
  color: var(--purple-deep);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 34px;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 30px 0 42px;
  border-top: 1px solid rgba(75, 45, 111, 0.12);
}

.footer-brand .brand-logo {
  width: 42px;
  height: 42px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer nav a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 700;
}

.site-footer p {
  justify-self: end;
  margin: 0;
  text-align: right;
  font-size: 13px;
}

.simple-header {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.legal-page {
  position: relative;
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 96px;
}

.legal-page h1 {
  margin: 10px 0 18px;
  color: var(--purple-deep);
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
}

.legal-lead {
  max-width: 760px;
  margin: 0 0 26px;
  color: #5f596d;
  font-size: 18px;
  line-height: 1.85;
}

.legal-page section {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid rgba(75, 45, 111, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 246, 243, 0.66)),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(26, 20, 56, 0.08);
}

.legal-page h2 {
  margin: 0 0 10px;
  color: var(--purple-deep);
  font-size: 22px;
}

.legal-page p,
.legal-page li {
  color: #5d586a;
  line-height: 1.82;
}

.legal-page p {
  margin: 0;
}

.legal-page ul {
  margin: 0;
  padding-left: 20px;
}

.legal-page a {
  color: var(--purple);
  font-weight: 800;
}

.modal,
.access-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26, 20, 56, 0.42);
  backdrop-filter: blur(10px);
}

.modal[hidden],
.access-modal[hidden] {
  display: none;
}

.modal-card,
.access-box {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple-deep);
  background: #fff;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), #b97911);
  font-size: 32px;
  font-weight: 900;
}

.modal-card h2,
.access-box h2 {
  margin: 0 0 10px;
  color: var(--purple-deep);
  font-size: 28px;
}

.modal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.modal-card .primary-button,
.modal-card .secondary-button,
.access-box .primary-button {
  width: 100%;
  margin-top: 10px;
}

.access-box {
  border: 1px solid rgba(75, 45, 111, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.access-box label {
  display: grid;
  gap: 8px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(75, 45, 111, 0.15);
  border-radius: 14px;
  color: var(--purple-deep);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

[hidden] {
  display: none !important;
}

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

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes revealSection {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .topnav {
    display: none;
  }

  .site-header.nav-open .topnav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: grid;
    gap: 8px;
    width: min(260px, calc(100vw - 36px));
    padding: 14px;
    border: 1px solid rgba(75, 45, 111, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
  }

  .site-header.nav-open .topnav a {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(247, 246, 243, 0.82);
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero,
  .desk-grid,
  .sample-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

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

  .hero-mock {
    min-height: 520px;
  }

  .desk-grid {
    gap: 18px;
  }

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

  .trust-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 64px;
    padding: 0 16px;
  }

  .site-header.nav-open .topnav {
    top: 64px;
    right: 14px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 21px;
  }

  .brand small {
    font-size: 11px;
  }

  .header-cta {
    display: none;
  }

  .hero,
  .workspace,
  .pricing-section,
  .sample-section,
  .trust-section,
  .site-footer {
    width: min(100% - 28px, 1200px);
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    min-height: 48px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-mock {
    min-height: 610px;
  }

  .mock-orbit {
    position: relative;
    top: auto;
    right: auto;
    width: 210px;
    height: 210px;
    margin: 0 auto;
  }

  .chart-card,
  .ai-card {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .workspace-head,
  .result-top,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .result-tools {
    justify-items: start;
  }

  .workspace h2,
  .pricing-section h2,
  .sample-section h2 {
    font-size: 24px;
  }

  .form-card,
  .result-card,
  .panel,
  .rule-card,
  .sample-report {
    padding: 16px;
    border-radius: 16px;
  }

  .fortune-form,
  .quota-card,
  .account-actions,
  .flow-steps,
  .report-brief,
  .report-summary-grid,
  .report-grid,
  .rule-grid,
  .trust-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .flow-steps article {
    min-height: auto;
    padding: 16px 16px 16px 58px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
  }

  .submit-button {
    min-height: 48px;
  }

  .loading-steps {
    grid-template-columns: 1fr;
  }

  .report-nav {
    top: 72px;
    margin-inline: -2px;
  }

  .brief-item {
    min-height: 112px;
  }

  .state-panel {
    min-height: 320px;
  }

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

  .chat-message {
    max-width: 100%;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .chat-form .primary-button {
    width: 100%;
    min-height: 48px;
  }

  .score {
    text-align: left;
  }

  .rule-card.highlight {
    transform: none;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

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

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

/* 2026-05 visual refresh */
body {
  background:
    linear-gradient(180deg, #0b0820 0 760px, #f7f6f3 760px 100%),
    var(--paper);
}

.page-bg {
  background:
    linear-gradient(rgba(232, 213, 161, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 213, 161, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, black 0, transparent 820px);
}

.site-header {
  background: rgba(11, 8, 32, 0.86);
  border-bottom-color: rgba(232, 213, 161, 0.18);
  box-shadow: 0 14px 44px rgba(7, 5, 18, 0.2);
}

.brand strong,
.topnav a,
.brand small {
  color: #fff7dc;
}

.topnav a {
  opacity: 0.78;
}

.topnav a:hover {
  color: var(--gold-soft);
  opacity: 1;
}

.header-cta,
.primary-button {
  color: #fff8df;
  background:
    linear-gradient(135deg, #26134e, #4b2d6f 55%, #0d3b3b);
  box-shadow: 0 18px 42px rgba(10, 6, 30, 0.28);
}

.hero {
  width: 100%;
  min-height: calc(100svh - 72px);
  max-width: none;
  margin: 0;
  padding: clamp(48px, 7vw, 86px) clamp(24px, 8vw, 120px) clamp(54px, 7vw, 94px);
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11, 8, 32, 0.98) 0%, rgba(22, 14, 52, 0.96) 46%, rgba(13, 59, 59, 0.82) 100%),
    #0b0820;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  width: 760px;
  height: 760px;
  right: -190px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(232, 213, 161, 0.18);
  background:
    repeating-conic-gradient(from 0deg, rgba(232, 213, 161, 0.18) 0deg 1deg, transparent 1deg 18deg);
  mask-image: radial-gradient(circle, transparent 0 43%, black 44% 44.5%, transparent 45% 60%, black 61% 61.5%, transparent 62%);
  opacity: 0.9;
}

.hero::after {
  inset: auto 0 0;
  height: 160px;
  border-radius: 0;
  background: linear-gradient(180deg, transparent, rgba(247, 246, 243, 0.96));
}

.hero-copy,
.hero-mock {
  position: relative;
  z-index: 1;
}

.brand-line {
  color: var(--gold-soft);
}

.brand-line span {
  background: var(--gold-soft);
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  color: #fff8df;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.1vw, 76px);
  font-weight: 900;
  line-height: 1.06;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero p {
  max-width: 690px;
  color: rgba(255, 248, 223, 0.78);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.95;
}

.hero-tags span {
  color: #fff8df;
  border-color: rgba(232, 213, 161, 0.42);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.hero-actions .secondary-button {
  color: #fff8df;
  border-color: rgba(232, 213, 161, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stage-label {
  position: absolute;
  top: 38px;
  right: 28px;
  z-index: 3;
  color: rgba(255, 248, 223, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.mock-orbit {
  top: 40px;
  right: 92px;
  background:
    radial-gradient(circle, rgba(232, 213, 161, 0.26), rgba(255, 255, 255, 0.06) 58%),
    rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 213, 161, 0.4);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.mock-orbit::before,
.mock-orbit::after {
  border-color: rgba(232, 213, 161, 0.24);
}

.mock-card {
  border-color: rgba(232, 213, 161, 0.22);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.ai-card {
  right: 32px;
  bottom: 24px;
  background:
    linear-gradient(145deg, rgba(13, 59, 59, 0.94), rgba(26, 20, 56, 0.98) 48%, rgba(75, 45, 111, 0.9)),
    var(--purple-deep);
}

.chart-card {
  left: 18px;
  top: 190px;
}

.workspace {
  margin-top: -18px;
  padding-top: 62px;
}

.workspace-head {
  padding: 20px 0 4px;
}

.workspace h2,
.pricing-section h2,
.sample-section h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.flow-steps article,
.form-card,
.result-card,
.panel,
.domain-card,
.annual-item,
.report-section {
  border-color: rgba(26, 20, 56, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 70px rgba(26, 20, 56, 0.1);
}

.form-card {
  position: sticky;
  top: 92px;
}

.quota-card div {
  background:
    linear-gradient(135deg, rgba(232, 213, 161, 0.52), rgba(255, 255, 255, 0.9));
}

.result-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 246, 243, 0.86)),
    #fff;
}

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

.brief-item {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 246, 243, 0.72));
}

.report-nav {
  top: 90px;
}

.report-section.featured {
  background:
    linear-gradient(135deg, rgba(232, 213, 161, 0.22), rgba(255, 255, 255, 0.96)),
    #fff;
}

@media (max-width: 1080px) {
  .site-header.nav-open .topnav {
    background: rgba(11, 8, 32, 0.96);
  }

  .site-header.nav-open .topnav a {
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .form-card {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    background:
      linear-gradient(180deg, #0b0820 0 720px, #f7f6f3 720px 100%),
      var(--paper);
  }

  .site-header {
    background: rgba(11, 8, 32, 0.92);
  }

  .menu-button {
    color: #fff8df;
    border-color: rgba(232, 213, 161, 0.28);
    background: rgba(255, 255, 255, 0.08);
  }

  .hero {
    padding: 38px 16px 58px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.12;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-stage-label {
    display: none;
  }

  .hero-mock {
    min-height: 560px;
  }

  .mock-orbit {
    background: rgba(255, 255, 255, 0.08);
  }

  .workspace {
    margin-top: 0;
    padding-top: 34px;
  }
}

/* Hero preview cleanup */
.hero::before {
  width: 680px;
  height: 680px;
  right: -185px;
  border-color: rgba(232, 213, 161, 0.14);
  background: none;
  box-shadow:
    inset 0 0 0 86px rgba(255, 255, 255, 0.026),
    inset 0 0 0 164px rgba(232, 213, 161, 0.032);
  mask-image: none;
  opacity: 0.72;
}

.hero-mock {
  min-height: 540px;
}

.hero-stage-label {
  top: 54px;
  right: 50px;
  color: rgba(255, 248, 223, 0.66);
  letter-spacing: 0;
}

.orbit-runes {
  position: absolute;
  top: 46px;
  left: 50%;
  z-index: 2;
  width: 336px;
  height: 336px;
  transform: translateX(-50%);
  pointer-events: none;
}

.orbit-runes span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(232, 213, 161, 0.18);
  border-radius: 50%;
  color: rgba(232, 213, 161, 0.62);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.orbit-runes span:nth-child(1) { left: 152px; top: 0; }
.orbit-runes span:nth-child(2) { right: 30px; top: 46px; }
.orbit-runes span:nth-child(3) { right: 0; top: 152px; }
.orbit-runes span:nth-child(4) { right: 30px; bottom: 46px; }
.orbit-runes span:nth-child(5) { left: 152px; bottom: 0; }
.orbit-runes span:nth-child(6) { left: 30px; bottom: 46px; }
.orbit-runes span:nth-child(7) { left: 0; top: 152px; }
.orbit-runes span:nth-child(8) { left: 30px; top: 46px; }

.mock-orbit {
  top: 78px;
  left: 50%;
  right: auto;
  width: 268px;
  height: 268px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 48% 42%, rgba(232, 213, 161, 0.22), rgba(255, 255, 255, 0.06) 56%, rgba(255, 255, 255, 0.025) 100%),
    rgba(255, 255, 255, 0.065);
  box-shadow:
    0 30px 86px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mock-orbit::before {
  inset: 38px;
  border-color: rgba(232, 213, 161, 0.22);
}

.mock-orbit::after {
  inset: 82px;
  border-style: solid;
  border-color: rgba(232, 213, 161, 0.12);
}

.mock-orbit img {
  width: 116px;
  height: 116px;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.ai-card {
  left: 50%;
  right: auto;
  bottom: 38px;
  --drag-x: 0px;
  --drag-y: 0px;
  width: min(438px, calc(100% - 44px));
  padding: 24px 26px 26px;
  transform: translate(calc(-50% + var(--drag-x)), var(--drag-y));
  border-color: rgba(232, 213, 161, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(13, 59, 59, 0.96), rgba(26, 20, 56, 0.98) 54%, rgba(75, 45, 111, 0.92)),
    var(--purple-deep);
  cursor: grab;
  touch-action: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  user-select: none;
  z-index: 4;
}

.ai-card.is-dragging {
  border-color: rgba(232, 213, 161, 0.52);
  cursor: grabbing;
  box-shadow: 0 34px 105px rgba(0, 0, 0, 0.38);
  transition: none;
  z-index: 8;
}

.ai-card.is-dragging .mock-title-row,
.ai-card.is-dragging .drag-handle {
  cursor: grabbing;
}

.ai-card p {
  max-width: none;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.78;
}

.hero-report-lines {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-report-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232, 213, 161, 0.68), rgba(255, 255, 255, 0.12));
}

.hero-report-lines span:nth-child(2) {
  width: 78%;
}

.hero-report-lines span:nth-child(3) {
  width: 56%;
}

.mock-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 22px;
  border-color: rgba(232, 213, 161, 0.32);
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .hero-stage-label {
    right: 50%;
    transform: translateX(50%);
  }

  .hero-mock {
    min-height: 510px;
  }

  .orbit-runes {
    top: 10px;
  }

  .mock-orbit {
    top: 42px;
  }

  .ai-card {
    bottom: 28px;
  }
}

@media (max-width: 720px) {
  .hero::before {
    width: 420px;
    height: 420px;
    right: -210px;
    top: 480px;
  }

  .hero-mock {
    min-height: auto;
    padding-top: 18px;
  }

  .mock-orbit {
    position: relative;
    top: auto;
    left: auto;
    width: 194px;
    height: 194px;
    margin: 6px auto 0;
    transform: none;
  }

  .orbit-runes {
    top: 8px;
    width: 236px;
    height: 236px;
  }

  .orbit-runes span {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .orbit-runes span:nth-child(1) { left: 105px; top: 0; }
  .orbit-runes span:nth-child(2) { right: 22px; top: 32px; }
  .orbit-runes span:nth-child(3) { right: 0; top: 105px; }
  .orbit-runes span:nth-child(4) { right: 22px; bottom: 32px; }
  .orbit-runes span:nth-child(5) { left: 105px; bottom: 0; }
  .orbit-runes span:nth-child(6) { left: 22px; bottom: 32px; }
  .orbit-runes span:nth-child(7) { left: 0; top: 105px; }
  .orbit-runes span:nth-child(8) { left: 22px; top: 32px; }

  .mock-orbit img {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .ai-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
    padding: 20px;
    transform: translate(var(--drag-x), var(--drag-y));
  }

  .ai-card p {
    font-size: 15px;
  }

  .drag-hint {
    display: none;
  }

  .mock-highlight {
    width: 100%;
  }
}

/* Hero preview after removing the floating report card */
.hero-mock {
  display: grid;
  place-items: center;
  min-height: 430px;
}

.hero-stage-label {
  display: none;
}

.orbit-runes {
  top: 50%;
  width: 382px;
  height: 382px;
  transform: translate(-50%, -50%);
}

.orbit-runes span:nth-child(1) { left: 175px; top: 0; }
.orbit-runes span:nth-child(2) { right: 34px; top: 54px; }
.orbit-runes span:nth-child(3) { right: 0; top: 175px; }
.orbit-runes span:nth-child(4) { right: 34px; bottom: 54px; }
.orbit-runes span:nth-child(5) { left: 175px; bottom: 0; }
.orbit-runes span:nth-child(6) { left: 34px; bottom: 54px; }
.orbit-runes span:nth-child(7) { left: 0; top: 175px; }
.orbit-runes span:nth-child(8) { left: 34px; top: 54px; }

.mock-orbit {
  top: 50%;
  width: 306px;
  height: 306px;
  transform: translate(-50%, -50%);
}

.mock-orbit img {
  width: 132px;
  height: 132px;
  border-radius: 32px;
}

@media (max-width: 1080px) {
  .hero-mock {
    min-height: 390px;
  }
}

@media (max-width: 720px) {
  .hero-mock {
    min-height: 300px;
    padding-top: 8px;
  }

  .orbit-runes {
    top: 50%;
    width: 250px;
    height: 250px;
  }

  .orbit-runes span:nth-child(1) { left: 112px; top: 0; }
  .orbit-runes span:nth-child(2) { right: 24px; top: 35px; }
  .orbit-runes span:nth-child(3) { right: 0; top: 112px; }
  .orbit-runes span:nth-child(4) { right: 24px; bottom: 35px; }
  .orbit-runes span:nth-child(5) { left: 112px; bottom: 0; }
  .orbit-runes span:nth-child(6) { left: 24px; bottom: 35px; }
  .orbit-runes span:nth-child(7) { left: 0; top: 112px; }
  .orbit-runes span:nth-child(8) { left: 24px; top: 35px; }

  .mock-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 206px;
    height: 206px;
    margin: 0;
    transform: translate(-50%, -50%);
  }
}

/* 2026-05-23 Kimi quiet ritual UI */
:root {
  --paper: #f7f6f3;
  --paper-warm: #fbf8ef;
  --paper-deep: #eee7d8;
  --ink: #1a162a;
  --muted: #706878;
  --line: rgba(26, 20, 56, 0.12);
  --line-gold: rgba(176, 132, 38, 0.32);
  --shadow: 0 20px 54px rgba(26, 20, 56, 0.1);
  --radius: 14px;
}

body {
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(26, 20, 56, 0.018) 0 1px, transparent 1px 96px),
    linear-gradient(180deg, #fbfaf6 0%, var(--paper) 45%, #f2eee5 100%);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.page-bg {
  right: auto;
  width: 100%;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(176, 132, 38, 0.035) 0 1px, transparent 1px 34px),
    linear-gradient(90deg, transparent, rgba(13, 59, 59, 0.035), transparent);
  background-size: auto;
  mask-image: linear-gradient(180deg, black 0%, transparent 72%);
}

.page-bg::before,
.page-bg::after {
  display: none;
}

.site-header {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  background: rgba(251, 250, 246, 0.84);
  border-bottom-color: rgba(176, 132, 38, 0.18);
  box-shadow: 0 12px 34px rgba(26, 20, 56, 0.06);
}

.brand strong,
.brand small,
.topnav a {
  color: var(--purple-deep);
}

.brand small {
  color: #7d6831;
}

.topnav a {
  opacity: 0.8;
}

.topnav a:hover {
  color: #8a6422;
}

.header-cta,
.primary-button {
  color: #fff8df;
  background: linear-gradient(135deg, #1a1438, #38225c 56%, #0d3b3b);
  box-shadow: 0 12px 28px rgba(26, 20, 56, 0.18);
}

.header-cta,
.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 12px;
}

.secondary-button,
.ghost-button {
  color: var(--purple-deep);
  background: rgba(255, 252, 244, 0.78);
  border-color: rgba(26, 20, 56, 0.14);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100svh - 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 86px) 0 clamp(44px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.92fr) minmax(410px, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  color: var(--ink);
  background: transparent;
  overflow: visible;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 34px -32px auto auto;
  width: 42%;
  height: 86%;
  border: 1px solid rgba(176, 132, 38, 0.16);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(26, 20, 56, 0.06), rgba(13, 59, 59, 0.04)),
    repeating-linear-gradient(135deg, rgba(176, 132, 38, 0.055) 0 1px, transparent 1px 18px);
  box-shadow: none;
  opacity: 1;
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero-copy,
.hero-mock {
  position: relative;
  z-index: 1;
}

.brand-line {
  color: #8a6422;
  font-size: 14px;
}

.brand-line span {
  background: #b08426;
}

.hero h1 {
  max-width: 650px;
  margin: 24px 0 18px;
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: clamp(46px, 5.3vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  word-break: keep-all;
}

.hero p {
  max-width: 610px;
  color: #5f5968;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags {
  gap: 8px;
  margin-top: 26px;
}

.hero-tags span,
.tag-row span {
  min-height: 32px;
  border-radius: 8px;
  color: #4a3d24;
  background: rgba(255, 252, 244, 0.74);
  border-color: rgba(176, 132, 38, 0.28);
  font-weight: 800;
}

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

.hero-actions .primary-button,
.hero-actions .secondary-button {
  min-height: 48px;
}

.hero-actions .secondary-button {
  color: var(--purple-deep);
  border-color: rgba(176, 132, 38, 0.26);
  background: rgba(255, 252, 244, 0.72);
}

.quiet-hero {
  display: block;
  min-height: 540px;
}

.birth-paper {
  position: relative;
  width: min(520px, 100%);
  margin-left: auto;
  padding: 26px;
  border: 1px solid rgba(26, 20, 56, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(245, 239, 226, 0.92)),
    var(--paper-warm);
  box-shadow: 0 28px 70px rgba(26, 20, 56, 0.14);
}

.birth-paper::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(176, 132, 38, 0.22);
  border-radius: 12px;
  pointer-events: none;
}

.birth-paper::after {
  content: "乾 兑 离 震 巽 坎 艮 坤";
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: rgba(26, 20, 56, 0.16);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  writing-mode: vertical-rl;
  letter-spacing: 0;
}

.paper-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(176, 132, 38, 0.24);
}

.paper-head img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(26, 20, 56, 0.14);
}

.paper-head span {
  display: block;
  color: #8a6422;
  font-size: 13px;
  font-weight: 900;
}

.paper-head strong {
  display: block;
  margin-top: 4px;
  color: var(--purple-deep);
  font-size: 18px;
  line-height: 1.35;
}

.paper-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin: 22px 0 20px;
  border: 1px solid rgba(26, 20, 56, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.paper-grid div {
  display: grid;
  min-height: 92px;
  border-right: 1px solid rgba(26, 20, 56, 0.1);
  text-align: center;
}

.paper-grid div:last-child {
  border-right: 0;
}

.paper-grid dt {
  display: grid;
  place-items: center;
  margin: 0;
  color: #766b7c;
  background: rgba(238, 231, 216, 0.56);
  font-size: 14px;
  font-weight: 800;
}

.paper-grid dd {
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
}

.paper-elements {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: end;
  height: 150px;
  padding: 16px 18px;
  border: 1px solid rgba(176, 132, 38, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(238, 231, 216, 0.45)),
    rgba(255, 255, 255, 0.56);
}

.paper-elements span {
  display: grid;
  place-items: end center;
  height: var(--h);
  min-height: 38px;
  padding-bottom: 10px;
  border-radius: 9px 9px 4px 4px;
  color: #fff8df;
  background: linear-gradient(180deg, #cba23a, #4b2d6f);
  font-weight: 900;
}

.birth-paper p {
  position: relative;
  z-index: 1;
  margin: 18px 28px 0 0;
  color: #5f5968;
  font-size: 15px;
  line-height: 1.8;
}

.question-slip {
  position: relative;
  right: auto;
  bottom: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  width: min(520px, 100%);
  margin: 14px 0 0 auto;
  padding: 18px;
  border: 1px solid rgba(232, 213, 161, 0.3);
  border-radius: 14px;
  color: #fff8df;
  background:
    linear-gradient(155deg, rgba(26, 20, 56, 0.96), rgba(13, 59, 59, 0.92)),
    var(--purple-deep);
  box-shadow: 0 22px 54px rgba(26, 20, 56, 0.2);
}

.question-slip span {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 900;
}

.question-slip strong {
  display: block;
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 24px;
}

.question-slip p {
  grid-column: 2;
  margin: 2px 0 0;
  color: rgba(255, 248, 223, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.ink-seal {
  position: absolute;
  right: 44px;
  bottom: 116px;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid rgba(151, 37, 37, 0.58);
  border-radius: 14px;
  color: rgba(151, 37, 37, 0.74);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.workspace {
  width: min(1180px, calc(100% - 40px));
  margin-top: 0;
  padding: 46px 0 54px;
}

.workspace-head {
  padding: 0;
  border-bottom: 1px solid rgba(26, 20, 56, 0.08);
  padding-bottom: 18px;
}

.section-kicker {
  color: #8a6422;
}

.workspace h2,
.pricing-section h2,
.sample-section h2 {
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
}

.api-state {
  border-radius: 10px;
  color: #216c5d;
  background: rgba(238, 247, 242, 0.9);
}

.flow-steps {
  gap: 10px;
}

.flow-steps article {
  min-height: 104px;
  padding: 16px 16px 16px 58px;
  border-color: rgba(176, 132, 38, 0.2);
  border-radius: 14px;
  background: rgba(255, 252, 244, 0.78);
  box-shadow: none;
}

.flow-steps span {
  width: 30px;
  height: 30px;
  color: var(--purple-deep);
  background: rgba(232, 213, 161, 0.72);
}

.flow-steps strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.form-card,
.result-card {
  border-color: rgba(26, 20, 56, 0.11);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(247, 246, 243, 0.84)),
    var(--paper-warm);
  box-shadow: 0 18px 44px rgba(26, 20, 56, 0.09);
}

.form-card {
  position: sticky;
  top: 92px;
}

.quota-card div {
  min-height: 104px;
  border-color: rgba(176, 132, 38, 0.22);
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.7);
}

.quota-card div:last-child {
  border-color: rgba(13, 59, 59, 0.18);
  background: rgba(239, 247, 242, 0.72);
}

.quota-card strong {
  font-family: var(--font-display);
}

.section-heading p,
.form-card h3,
.result-top h2,
.rule-card h3,
.sample-report h3,
.trust-section h3 {
  font-family: var(--font-display);
  font-weight: 900;
}

input,
select,
textarea {
  border-radius: 10px;
  background: rgba(255, 252, 244, 0.86);
}

.submit-button {
  border-radius: 12px;
}

.result-top h2 {
  font-size: 32px;
}

.state-panel {
  border-radius: 14px;
  background:
    repeating-linear-gradient(135deg, rgba(176, 132, 38, 0.04) 0 1px, transparent 1px 20px),
    rgba(255, 252, 244, 0.64);
}

.state-panel h3 {
  font-family: var(--font-display);
}

.panel,
.brief-item,
.domain-card,
.annual-item,
.report-section {
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.72);
  box-shadow: none;
}

.report-nav {
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.92);
}

.report-nav a {
  border-radius: 8px;
}

.model-pill {
  border-radius: 8px;
  color: #216c5d;
  background: rgba(239, 247, 242, 0.84);
}

.chat-messages {
  background:
    repeating-linear-gradient(0deg, rgba(26, 20, 56, 0.025) 0 1px, transparent 1px 30px),
    rgba(247, 246, 243, 0.72);
}

.chat-message p {
  border-radius: 12px;
}

.modal-card,
.access-box {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(247, 246, 243, 0.94)),
    var(--paper-warm);
}

.site-footer {
  border-top-color: rgba(176, 132, 38, 0.18);
}

@media (max-width: 1080px) {
  .site-header.nav-open .topnav {
    background: rgba(251, 250, 246, 0.98);
  }

  .site-header.nav-open .topnav a {
    color: var(--purple-deep);
    background: rgba(247, 246, 243, 0.86);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero::before {
    inset: auto 0 38px auto;
    width: 54%;
    height: 380px;
  }

  .quiet-hero {
    min-height: 500px;
  }

  .birth-paper {
    margin-inline: auto;
  }

  .ink-seal {
    right: max(42px, calc(50% - 230px));
  }

  .form-card {
    position: static;
  }
}

@media (max-width: 720px) {
  body {
    background:
      repeating-linear-gradient(90deg, rgba(26, 20, 56, 0.018) 0 1px, transparent 1px 64px),
      linear-gradient(180deg, #fbfaf6 0%, var(--paper) 48%, #f2eee5 100%);
  }

  .page-bg {
    display: none;
  }

  .site-header {
    background: rgba(251, 250, 246, 0.94);
  }

  .menu-button {
    color: var(--purple-deep);
    border-color: rgba(26, 20, 56, 0.14);
    background: rgba(255, 252, 244, 0.86);
  }

  .hero,
  .workspace,
  .pricing-section,
  .sample-section,
  .trust-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding: 38px 0 46px;
  }

  .hero::before {
    inset: auto -18px 40px auto;
    width: 76%;
    height: 320px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.16;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.82;
  }

  .brand-line {
    width: 100%;
    font-size: 13px;
  }

  .brand-line span {
    width: 28px;
  }

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

  .quiet-hero {
    min-height: auto;
    padding-top: 8px;
  }

  .birth-paper {
    padding: 18px;
    border-radius: 16px;
  }

  .birth-paper::before {
    inset: 10px;
  }

  .birth-paper::after {
    display: none;
  }

  .paper-head {
    gap: 12px;
  }

  .paper-head img {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .paper-head strong {
    font-size: 15px;
  }

  .paper-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .paper-grid div:nth-child(2) {
    border-right: 0;
  }

  .paper-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(26, 20, 56, 0.1);
  }

  .paper-grid dd {
    font-size: 23px;
  }

  .paper-elements {
    height: 128px;
    gap: 7px;
    padding: 14px;
  }

  .birth-paper p {
    margin-right: 0;
    font-size: 14px;
  }

  .question-slip {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 14px;
  }

  .question-slip p {
    grid-column: auto;
    margin-top: 6px;
  }

  .ink-seal {
    right: 18px;
    bottom: 122px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 26px;
  }

  .workspace {
    padding-top: 28px;
  }

  .workspace-head,
  .result-top,
  .section-heading {
    align-items: stretch;
  }

  .flow-steps article {
    padding-left: 56px;
  }

  .api-state {
    width: max-content;
  }

  .result-top h2 {
    font-size: 26px;
  }
}

/* 2026-05-24 clean web layout pass */
body {
  background: linear-gradient(180deg, #fbfaf7 0%, #f7f6f3 58%, #f0ece3 100%);
}

.page-bg {
  background:
    linear-gradient(90deg, rgba(176, 132, 38, 0.04), transparent 38%, transparent 62%, rgba(13, 59, 59, 0.035)),
    repeating-linear-gradient(0deg, rgba(26, 20, 56, 0.018) 0 1px, transparent 1px 42px);
  opacity: 0.5;
  mask-image: linear-gradient(180deg, black 0%, transparent 62%);
}

.site-header {
  height: 68px;
  background: rgba(251, 250, 247, 0.9);
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand strong {
  font-size: 22px;
}

.topnav {
  gap: 20px;
  font-size: 14px;
}

.header-cta {
  min-height: 40px;
  min-width: 100px;
}

.hero {
  min-height: auto;
  padding: 64px 0 48px;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero::before,
.hero::after {
  display: none;
}

.brand-line {
  gap: 10px;
  width: auto;
  color: #8b6423;
}

.brand-line span {
  width: 36px;
  flex: 0 0 auto;
}

.hero h1 {
  max-width: 620px;
  margin: 18px 0 14px;
  font-size: clamp(42px, 4.5vw, 58px);
  line-height: 1.12;
}

.hero p {
  max-width: 610px;
  font-size: 17px;
  line-height: 1.78;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span {
  min-height: 30px;
  padding: 0 11px;
  font-size: 13px;
  background: rgba(255, 252, 244, 0.68);
}

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

.quiet-hero {
  display: block;
  min-height: auto;
  padding: 0;
}

.hero-guide {
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(26, 20, 56, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.96), rgba(247, 246, 243, 0.88)),
    #fffaf1;
  box-shadow: 0 18px 46px rgba(26, 20, 56, 0.1);
}

.guide-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(176, 132, 38, 0.18);
}

.guide-head img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.guide-head span,
.guide-foot span {
  display: block;
  color: #8a6422;
  font-size: 13px;
  font-weight: 900;
}

.guide-head strong {
  display: block;
  margin-top: 4px;
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.guide-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(26, 20, 56, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.guide-list li > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff8df;
  background: linear-gradient(135deg, #1a1438, #0d3b3b);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.guide-list strong {
  color: var(--purple-deep);
  font-size: 16px;
}

.guide-list small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.guide-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.guide-foot div {
  padding: 14px;
  border: 1px solid rgba(176, 132, 38, 0.18);
  border-radius: 12px;
  background: rgba(255, 252, 244, 0.78);
}

.guide-foot strong {
  display: block;
  margin-top: 3px;
  color: var(--purple-deep);
  font-size: 16px;
}

.workspace {
  padding-top: 34px;
}

.workspace-head {
  padding-bottom: 14px;
}

.flow-steps {
  margin-top: 16px;
}

.flow-steps article {
  min-height: 92px;
  padding: 14px 14px 14px 54px;
}

.desk-grid {
  gap: 18px;
  margin-top: 20px;
}

.form-card,
.result-card {
  padding: 20px;
  box-shadow: 0 14px 34px rgba(26, 20, 56, 0.08);
}

.state-panel {
  min-height: 360px;
}

.state-panel img {
  width: 92px;
  height: 92px;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 46px;
  }

  .quiet-hero {
    width: min(560px, 100%);
  }
}

@media (max-width: 720px) {
  .site-header {
    height: 64px;
  }

  .hero {
    padding: 34px 0 32px;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.18;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.78;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-tags span {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
    text-align: center;
  }

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

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .hero-guide {
    padding: 18px;
  }

  .guide-head strong {
    font-size: 20px;
  }

  .guide-list li {
    padding: 12px;
  }

  .guide-foot {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding-top: 24px;
  }

  .flow-steps {
    gap: 8px;
  }

  .state-panel {
    min-height: 280px;
  }
}

/* 2026-05-24 cyber oracle layout */
:root {
  --cyber-bg: #070912;
  --cyber-panel: rgba(13, 16, 31, 0.78);
  --cyber-panel-strong: rgba(18, 22, 42, 0.92);
  --cyber-line: rgba(102, 245, 230, 0.18);
  --cyber-cyan: #66f5e6;
  --cyber-blue: #6d7cff;
  --cyber-gold: #f2c95f;
  --cyber-text: #f5f2ff;
  --cyber-muted: #a7a2bd;
}

body {
  color: var(--cyber-text);
  background:
    radial-gradient(circle at 18% 10%, rgba(109, 124, 255, 0.2), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(102, 245, 230, 0.16), transparent 30%),
    linear-gradient(180deg, #070912 0%, #0b0d18 58%, #0a0c15 100%);
}

.page-bg {
  opacity: 1;
  background:
    linear-gradient(rgba(102, 245, 230, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 245, 230, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(242, 201, 95, 0.08), transparent 34%);
  background-size: 64px 64px, 64px 64px, auto;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
}

.site-header {
  background: rgba(7, 9, 18, 0.78);
  border-bottom: 1px solid rgba(102, 245, 230, 0.14);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.brand strong,
.topnav a {
  color: var(--cyber-text);
}

.brand small {
  color: var(--cyber-cyan);
}

.topnav a {
  opacity: 0.72;
}

.topnav a:hover {
  color: var(--cyber-cyan);
  opacity: 1;
}

.header-cta,
.primary-button {
  color: #071017;
  background: linear-gradient(135deg, var(--cyber-cyan), #8cf7c9 55%, var(--cyber-gold));
  box-shadow: 0 14px 34px rgba(102, 245, 230, 0.18);
}

.secondary-button,
.ghost-button {
  color: var(--cyber-text);
  border-color: rgba(102, 245, 230, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  padding: 74px 0 56px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.8fr);
}

.hero-copy,
.quiet-hero {
  min-width: 0;
}

.brand-line {
  color: var(--cyber-cyan);
}

.brand-line span {
  background: linear-gradient(90deg, transparent, var(--cyber-cyan));
}

.brand-line span:last-child {
  background: linear-gradient(90deg, var(--cyber-cyan), transparent);
}

.hero h1 {
  color: var(--cyber-text);
  font-family: var(--font-ui);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  word-break: normal;
  overflow-wrap: normal;
  text-shadow: 0 0 34px rgba(109, 124, 255, 0.2);
}

.hero p {
  color: var(--cyber-muted);
  font-size: 17px;
}

.hero-tags span,
.tag-row span {
  color: var(--cyber-cyan);
  border-color: rgba(102, 245, 230, 0.24);
  background: rgba(102, 245, 230, 0.07);
  border-radius: 999px;
}

.hero-actions .secondary-button {
  color: var(--cyber-text);
  border-color: rgba(242, 201, 95, 0.28);
  background: rgba(242, 201, 95, 0.06);
}

.cyber-console,
.hero-guide {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 245, 230, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 22, 42, 0.9), rgba(10, 13, 25, 0.92)),
    var(--cyber-panel-strong);
  box-shadow:
    0 26px 80px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.cyber-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(102, 245, 230, 0.12), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  opacity: 0.35;
  pointer-events: none;
}

.guide-head,
.guide-list,
.guide-foot {
  position: relative;
  z-index: 1;
}

.guide-head {
  border-bottom-color: rgba(102, 245, 230, 0.18);
}

.guide-head img {
  box-shadow: 0 0 26px rgba(102, 245, 230, 0.18);
}

.guide-head span,
.guide-foot span {
  color: var(--cyber-cyan);
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

.guide-head strong {
  color: var(--cyber-text);
  font-family: var(--font-ui);
}

.guide-list li {
  border-color: rgba(102, 245, 230, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.guide-list li > span {
  color: #071017;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-gold));
  box-shadow: 0 0 22px rgba(102, 245, 230, 0.18);
}

.guide-list strong,
.guide-foot strong {
  color: var(--cyber-text);
}

.guide-list small {
  color: var(--cyber-muted);
}

.guide-foot div {
  border-color: rgba(242, 201, 95, 0.2);
  background: rgba(242, 201, 95, 0.06);
}

.workspace {
  color: var(--cyber-text);
}

.workspace-head {
  border-bottom-color: rgba(102, 245, 230, 0.12);
}

.section-kicker {
  color: var(--cyber-cyan);
}

.workspace h2,
.pricing-section h2,
.sample-section h2 {
  color: var(--cyber-text);
  font-family: var(--font-ui);
}

.api-state {
  color: var(--cyber-cyan);
  border-color: rgba(102, 245, 230, 0.24);
  background: rgba(102, 245, 230, 0.08);
}

.flow-steps article,
.form-card,
.result-card,
.rule-card,
.sample-report,
.trust-section > *,
.modal-card,
.access-box {
  color: var(--cyber-text);
  border-color: rgba(102, 245, 230, 0.16);
  background: rgba(13, 16, 31, 0.76);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.flow-steps span {
  color: #071017;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-gold));
}

.flow-steps strong,
.section-heading p,
.form-card h3,
.result-top h2,
.rule-card h3,
.sample-report h3,
.trust-section h3,
.state-panel h3 {
  color: var(--cyber-text);
  font-family: var(--font-ui);
}

.flow-steps p,
.result-top p,
.state-panel p,
.domain-card p,
.annual-item p,
.report-section p,
.report-section li,
.rule-card p,
.sample-copy p,
.sample-report p,
.sample-report li,
.trust-section p,
.site-footer p,
.fine-print,
.section-heading small,
.fortune-form span {
  color: var(--cyber-muted);
}

.quota-card div,
.quota-card div:last-child,
.panel,
.brief-item,
.domain-card,
.annual-item,
.report-section,
.state-panel,
.chat-messages {
  border-color: rgba(102, 245, 230, 0.13);
  background: rgba(255, 255, 255, 0.045);
}

.quota-card span,
.quota-card small,
.result-meta small,
.pillar-list dt {
  color: var(--cyber-muted);
}

.quota-card strong,
.pillar-list dd,
.domain-card strong,
.score,
.element-name,
.element-value,
.report-section h3,
.annual-top,
.brief-item strong,
.metric {
  color: var(--cyber-text);
}

input,
select,
textarea {
  color: var(--cyber-text);
  border-color: rgba(102, 245, 230, 0.16);
  background: rgba(7, 9, 18, 0.58);
}

input::placeholder,
textarea::placeholder {
  color: rgba(167, 162, 189, 0.68);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 0 4px rgba(102, 245, 230, 0.12);
}

.state-panel {
  background:
    radial-gradient(circle at 50% 18%, rgba(102, 245, 230, 0.1), transparent 32%),
    rgba(255, 255, 255, 0.045);
}

.model-pill {
  color: var(--cyber-cyan);
  border-color: rgba(102, 245, 230, 0.24);
  background: rgba(102, 245, 230, 0.08);
}

.chat-message p {
  color: var(--cyber-text);
  background: rgba(255, 255, 255, 0.07);
}

.chat-message.user p {
  color: #071017;
  background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-gold));
}

.site-footer {
  border-top-color: rgba(102, 245, 230, 0.14);
}

.site-footer nav a {
  color: var(--cyber-cyan);
}

.modal,
.access-modal {
  background: rgba(3, 5, 12, 0.72);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .quiet-hero {
    width: min(560px, 100%);
  }

  .site-header.nav-open .topnav {
    border-color: rgba(102, 245, 230, 0.16);
    background: rgba(7, 9, 18, 0.96);
  }

  .site-header.nav-open .topnav a {
    color: var(--cyber-text);
    background: rgba(102, 245, 230, 0.07);
  }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 12% 8%, rgba(109, 124, 255, 0.18), transparent 34%),
      linear-gradient(180deg, #070912 0%, #0b0d18 64%, #0a0c15 100%);
  }

  .page-bg {
    display: block;
    opacity: 0.42;
  }

  .site-header {
    background: rgba(7, 9, 18, 0.9);
  }

  .menu-button {
    color: var(--cyber-cyan);
    border-color: rgba(102, 245, 230, 0.2);
    background: rgba(102, 245, 230, 0.06);
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 33px;
    overflow-wrap: anywhere;
  }

  .hero-tags span {
    flex: 1 1 100%;
  }
}

/* 2026-05-24 code terminal polish */
.page-bg::before {
  content: "{ mps.ai }  // bazi.scan()  // wuxing.balance()  // hexagram.cast()";
  display: block;
  position: fixed;
  left: clamp(18px, 6vw, 84px);
  top: 130px;
  width: min(760px, calc(100vw - 36px));
  color: rgba(102, 245, 230, 0.08);
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: clamp(18px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.page-bg::after {
  content: "0101 乾 坤 1010 兑 离 0011 震 巽 1100 坎 艮";
  display: block;
  position: fixed;
  right: clamp(18px, 5vw, 78px);
  bottom: 120px;
  width: min(520px, calc(100vw - 36px));
  color: rgba(242, 201, 95, 0.07);
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: clamp(15px, 2vw, 28px);
  font-weight: 800;
  text-align: right;
}

.cyber-console {
  padding-top: 0;
}

.terminal-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin: -24px -24px 20px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(102, 245, 230, 0.16);
  background: rgba(0, 0, 0, 0.28);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6678;
  box-shadow: 0 0 12px rgba(255, 102, 120, 0.42);
}

.terminal-bar span:nth-child(2) {
  background: #f2c95f;
  box-shadow: 0 0 12px rgba(242, 201, 95, 0.38);
}

.terminal-bar span:nth-child(3) {
  background: #66f5e6;
  box-shadow: 0 0 12px rgba(102, 245, 230, 0.42);
}

.terminal-bar strong {
  margin-left: 8px;
  color: rgba(245, 242, 255, 0.62);
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.oracle-code {
  position: relative;
  z-index: 1;
  margin: 18px 0 20px;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(102, 245, 230, 0.16);
  border-radius: 14px;
  color: #e8e5ff;
  background:
    linear-gradient(180deg, rgba(7, 9, 18, 0.72), rgba(7, 9, 18, 0.46)),
    rgba(0, 0, 0, 0.22);
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.74;
  white-space: pre;
  box-shadow: inset 0 0 26px rgba(102, 245, 230, 0.04);
}

.oracle-code code {
  font: inherit;
}

.code-key {
  color: var(--cyber-cyan);
}

.code-string {
  color: var(--cyber-gold);
}

.code-dim {
  color: rgba(167, 162, 189, 0.78);
}

.code-ok {
  color: #8cf7c9;
  text-shadow: 0 0 14px rgba(102, 245, 230, 0.26);
}

.guide-list {
  display: none;
}

.guide-head {
  padding-bottom: 16px;
}

.guide-foot {
  margin-top: 0;
}

.hero h1,
.workspace h2,
.result-top h2 {
  letter-spacing: 0;
}

.hero-tags span {
  font-family: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

@media (max-width: 720px) {
  .page-bg::before,
  .page-bg::after {
    display: none;
  }

  .terminal-bar {
    margin: -18px -18px 18px;
  }

  .oracle-code {
    padding: 14px;
    font-size: 11px;
    line-height: 1.72;
  }
}

/* 2026-05-25 full matrix terminal system */
:root {
  color-scheme: dark;
  --matrix-bg: #000602;
  --matrix-bg-deep: #000000;
  --matrix-panel: rgba(0, 14, 7, 0.78);
  --matrix-panel-strong: rgba(0, 22, 10, 0.92);
  --matrix-panel-soft: rgba(0, 255, 112, 0.055);
  --matrix-line: rgba(0, 255, 112, 0.28);
  --matrix-line-soft: rgba(0, 255, 112, 0.14);
  --matrix-green: #00ff70;
  --matrix-green-2: #8cffb7;
  --matrix-dim: rgba(141, 255, 183, 0.66);
  --matrix-text: #eafff1;
  --matrix-muted: rgba(218, 255, 230, 0.68);
  --matrix-warn: #ccff66;
  --matrix-danger: #ff5f7a;
  --matrix-shadow: 0 0 44px rgba(0, 255, 112, 0.1), 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --green: #00ff70;
  --red: #ff5f7a;
  --earth: #c7ff62;
  --metal: #dcffe7;
  --water: #4cf3ff;
  --font-code: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  --font-ui: "Inter", "SF Pro Display", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  background: #000;
}

body {
  color: var(--matrix-text);
  background:
    radial-gradient(circle at 68% 5%, rgba(0, 255, 112, 0.12), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(0, 255, 112, 0.08), transparent 24%),
    linear-gradient(180deg, #000 0%, var(--matrix-bg) 42%, #000 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(0, 255, 112, 0.04), transparent 28%, transparent 72%, rgba(0, 255, 112, 0.035));
  mix-blend-mode: screen;
  opacity: 0.46;
}

::selection {
  color: #001207;
  background: var(--matrix-green);
}

.matrix-rain,
.matrix-vignette,
.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.matrix-rain {
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.66;
}

.matrix-vignette {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 12%, transparent 0%, rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.76));
}

.page-bg {
  z-index: 1;
  opacity: 0.72;
  background:
    linear-gradient(rgba(0, 255, 112, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 112, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, black 0%, transparent 78%);
}

.page-bg::before {
  content: "0101 乾 坤 1010 震 巽 1100 坎 离 0011 艮 兑 1110 甲 乙 丙 丁 戊 己";
  display: block;
  position: fixed;
  left: clamp(18px, 5vw, 80px);
  top: 124px;
  width: min(900px, calc(100vw - 36px));
  color: rgba(0, 255, 112, 0.09);
  font-family: var(--font-code);
  font-size: clamp(18px, 3.2vw, 48px);
  font-weight: 800;
  white-space: nowrap;
  transform: rotate(-3deg);
  text-shadow: 0 0 28px rgba(0, 255, 112, 0.16);
}

.page-bg::after {
  content: "mps://oracle.core  --bazi --wuxing --hexagram --psyche-map";
  display: block;
  position: fixed;
  right: clamp(18px, 5vw, 80px);
  bottom: 116px;
  width: min(620px, calc(100vw - 36px));
  color: rgba(140, 255, 183, 0.09);
  font-family: var(--font-code);
  font-size: clamp(14px, 2.1vw, 28px);
  font-weight: 800;
  text-align: right;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  height: 72px;
  background: rgba(0, 10, 5, 0.78);
  border-bottom: 1px solid var(--matrix-line-soft);
  box-shadow: 0 1px 0 rgba(0, 255, 112, 0.16), 0 14px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.brand {
  gap: 13px;
}

.brand-logo {
  filter: hue-rotate(96deg) saturate(2.1) brightness(1.08) drop-shadow(0 0 14px rgba(0, 255, 112, 0.28));
}

.brand strong,
.footer-brand strong {
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 22px;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(0, 255, 112, 0.28);
}

.brand small,
.footer-brand small {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 11px;
  text-transform: uppercase;
}

.topnav {
  gap: 18px;
  color: var(--matrix-dim);
  font-family: var(--font-code);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topnav a {
  position: relative;
  padding: 8px 0;
}

.topnav a::before {
  content: "/";
  margin-right: 5px;
  color: rgba(0, 255, 112, 0.42);
}

.topnav a:hover {
  color: var(--matrix-green);
  text-shadow: 0 0 12px rgba(0, 255, 112, 0.42);
}

.header-cta,
.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 4px;
  font-family: var(--font-code);
  letter-spacing: 0;
}

.header-cta,
.primary-button {
  color: #001407;
  border: 1px solid rgba(140, 255, 183, 0.82);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 52%),
    linear-gradient(135deg, var(--matrix-green), var(--matrix-green-2));
  box-shadow: 0 0 0 1px rgba(0, 255, 112, 0.26), 0 0 26px rgba(0, 255, 112, 0.22);
}

.secondary-button,
.ghost-button,
.menu-button {
  color: var(--matrix-green);
  border: 1px solid var(--matrix-line);
  background: rgba(0, 20, 9, 0.62);
  box-shadow: inset 0 0 18px rgba(0, 255, 112, 0.035);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(0, 255, 112, 0.42), 0 0 32px rgba(0, 255, 112, 0.28);
}

.hero,
.workspace,
.pricing-section,
.sample-section,
.trust-section,
.site-footer {
  width: min(1220px, calc(100% - 44px));
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.92fr);
  gap: clamp(32px, 5vw, 70px);
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 7vw, 92px) 0 74px;
}

.brand-line {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 13px;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 255, 112, 0.28);
}

.brand-line span {
  width: 72px;
  background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
}

.hero h1 {
  max-width: 760px;
  margin: 20px 0 20px;
  color: var(--matrix-text);
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 84px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(0, 255, 112, 0.22), 0 0 74px rgba(0, 255, 112, 0.16);
}

.hero h1::after {
  content: "_";
  color: var(--matrix-green);
  animation: matrixBlink 1s steps(2, start) infinite;
}

.hero p {
  max-width: 660px;
  color: var(--matrix-muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-tags {
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span,
.tag-row span {
  min-height: 32px;
  color: var(--matrix-green);
  border-color: var(--matrix-line);
  border-radius: 4px;
  background: rgba(0, 255, 112, 0.075);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(0, 255, 112, 0.04);
}

.hero-tags span::before {
  content: ">";
  margin-right: 6px;
  color: var(--matrix-green-2);
}

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

.quiet-hero {
  width: min(540px, 100%);
  justify-self: end;
  perspective: 1200px;
}

.hero-guide,
.cyber-console {
  overflow: hidden;
  border: 1px solid var(--matrix-line);
  border-radius: 12px;
  color: var(--matrix-text);
  background:
    linear-gradient(180deg, rgba(0, 255, 112, 0.08), transparent 42%),
    repeating-linear-gradient(90deg, rgba(0, 255, 112, 0.045) 0 1px, transparent 1px 18px),
    var(--matrix-panel-strong);
  box-shadow: var(--matrix-shadow);
  transform: rotateX(2deg) rotateY(-3deg);
}

.hero-guide::before,
.form-card::before,
.result-card::before,
.panel::before,
.modal-card::before,
.access-box::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(0, 255, 112, 0.08);
  border-radius: inherit;
}

.terminal-bar {
  height: 44px;
  margin: -24px -24px 20px;
  border-bottom: 1px solid var(--matrix-line-soft);
  background: rgba(0, 0, 0, 0.62);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  background: var(--matrix-danger);
}

.terminal-bar span:nth-child(2) {
  background: var(--matrix-warn);
}

.terminal-bar span:nth-child(3) {
  background: var(--matrix-green);
}

.terminal-bar strong {
  color: var(--matrix-dim);
  font-family: var(--font-code);
}

.guide-head,
.guide-foot {
  border-color: var(--matrix-line-soft);
}

.guide-head span,
.guide-foot span,
.section-kicker {
  color: var(--matrix-green);
  font-family: var(--font-code);
  letter-spacing: 0;
  text-transform: uppercase;
}

.guide-head strong,
.guide-foot strong {
  color: var(--matrix-text);
  font-family: var(--font-code);
}

.guide-head img {
  filter: hue-rotate(96deg) saturate(2.1) brightness(1.1) drop-shadow(0 0 14px rgba(0, 255, 112, 0.24));
}

.guide-foot div {
  background: rgba(0, 255, 112, 0.055);
  border-color: var(--matrix-line-soft);
}

.oracle-code {
  border-color: var(--matrix-line);
  border-radius: 6px;
  color: var(--matrix-text);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    rgba(0, 0, 0, 0.48);
  font-family: var(--font-code);
  box-shadow: inset 0 0 34px rgba(0, 255, 112, 0.08);
}

.code-key,
.code-ok {
  color: var(--matrix-green);
  text-shadow: 0 0 12px rgba(0, 255, 112, 0.4);
}

.code-string {
  color: var(--matrix-green-2);
}

.code-dim {
  color: rgba(218, 255, 230, 0.52);
}

.workspace {
  padding-top: 42px;
}

.workspace-head {
  margin-bottom: 22px;
}

.workspace h2,
.pricing-section h2,
.sample-section h2,
.result-top h2 {
  color: var(--matrix-text);
  font-family: var(--font-display);
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(0, 255, 112, 0.18);
}

.api-state {
  color: var(--matrix-green);
  border-color: var(--matrix-line);
  border-radius: 4px;
  background: rgba(0, 255, 112, 0.075);
  font-family: var(--font-code);
}

.api-state.ready::before,
.api-state.warn::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.flow-steps {
  gap: 12px;
  margin-bottom: 18px;
}

.flow-steps article,
.form-card,
.result-card,
.rule-card,
.sample-report,
.trust-section > *,
.modal-card,
.access-box {
  position: relative;
  color: var(--matrix-text);
  border: 1px solid var(--matrix-line-soft);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(0, 255, 112, 0.065), transparent 52%),
    rgba(0, 12, 6, 0.82);
  box-shadow: var(--matrix-shadow);
  backdrop-filter: blur(12px);
}

.flow-steps article {
  min-height: 118px;
  padding: 18px 18px 18px 66px;
}

.flow-steps span {
  color: #001407;
  background: linear-gradient(135deg, var(--matrix-green), var(--matrix-green-2));
  font-family: var(--font-code);
  box-shadow: 0 0 20px rgba(0, 255, 112, 0.22);
}

.flow-steps strong,
.section-heading p,
.form-card h3,
.rule-card h3,
.sample-report h3,
.trust-section h3,
.state-panel h3 {
  color: var(--matrix-text);
  font-family: var(--font-code);
  letter-spacing: 0;
}

.flow-steps p,
.result-top p,
.state-panel p,
.domain-card p,
.annual-item p,
.report-section p,
.report-section li,
.rule-card p,
.sample-copy p,
.sample-report p,
.sample-report li,
.trust-section p,
.site-footer p,
.fine-print,
.section-heading small,
.fortune-form span,
.chat-panel small {
  color: var(--matrix-muted);
}

.desk-grid {
  grid-template-columns: minmax(340px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: start;
}

.form-card,
.result-card {
  padding: clamp(18px, 2.2vw, 28px);
}

.quota-card {
  gap: 10px;
}

.quota-card div,
.quota-card div:last-child,
.panel,
.brief-item,
.domain-card,
.annual-item,
.report-section,
.state-panel,
.chat-messages,
.report-brief {
  position: relative;
  border-color: var(--matrix-line-soft);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 255, 112, 0.055), transparent),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 20px rgba(0, 255, 112, 0.035);
}

.quota-card span,
.quota-card small,
.result-meta small,
.pillar-list dt {
  color: var(--matrix-dim);
  font-family: var(--font-code);
}

.quota-card strong,
.pillar-list dd,
.domain-card strong,
.score,
.element-name,
.element-value,
.report-section h3,
.annual-top,
.brief-item strong,
.metric {
  color: var(--matrix-green-2);
  text-shadow: 0 0 12px rgba(0, 255, 112, 0.22);
}

.account-actions {
  gap: 10px;
}

.mini-action {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 12px;
}

.fortune-form {
  gap: 14px;
}

input,
select,
textarea {
  color: var(--matrix-text);
  border-color: var(--matrix-line-soft);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: inset 0 0 18px rgba(0, 255, 112, 0.025);
}

input::placeholder,
textarea::placeholder {
  color: rgba(218, 255, 230, 0.38);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--matrix-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 112, 0.13), inset 0 0 22px rgba(0, 255, 112, 0.04);
}

.submit-button,
.chat-form .primary-button {
  min-height: 50px;
}

.button-orbit {
  display: none;
}

.result-top {
  gap: 18px;
  border-bottom: 1px solid var(--matrix-line-soft);
  padding-bottom: 18px;
}

.result-tools {
  align-items: flex-end;
}

.state-panel {
  min-height: 340px;
  background:
    radial-gradient(circle at 50% 30%, rgba(0, 255, 112, 0.12), transparent 30%),
    repeating-linear-gradient(90deg, rgba(0, 255, 112, 0.04) 0 1px, transparent 1px 20px),
    rgba(0, 0, 0, 0.28);
}

.state-panel img {
  filter: hue-rotate(96deg) saturate(2.1) brightness(1.16) drop-shadow(0 0 20px rgba(0, 255, 112, 0.28));
}

.model-pill {
  color: var(--matrix-green);
  border-color: var(--matrix-line);
  border-radius: 4px;
  background: rgba(0, 255, 112, 0.075);
  font-family: var(--font-code);
}

.model-pill i {
  background: var(--matrix-green);
  box-shadow: 0 0 12px var(--matrix-green);
}

.report-nav a,
.report-nav button {
  color: var(--matrix-green);
  border-color: var(--matrix-line-soft);
  border-radius: 4px;
  background: rgba(0, 255, 112, 0.055);
  font-family: var(--font-code);
}

.element-track {
  background: rgba(0, 255, 112, 0.07);
}

.element-fill {
  box-shadow: 0 0 18px currentColor;
}

.domain-card,
.annual-item,
.report-section {
  overflow: hidden;
}

.domain-card::after,
.annual-item::after,
.report-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 112, 0.08), transparent);
  transform: translateX(-110%);
  animation: matrixSweep 8s ease-in-out infinite;
}

.lucky-box {
  color: #001407;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(0, 255, 112, 0.94), rgba(140, 255, 183, 0.86));
  font-family: var(--font-code);
}

.chat-panel {
  border-color: var(--matrix-line);
}

.chat-messages {
  min-height: 150px;
}

.chat-message p {
  color: var(--matrix-text);
  border: 1px solid var(--matrix-line-soft);
  border-radius: 8px;
  background: rgba(0, 255, 112, 0.055);
}

.chat-message.user p {
  color: #001407;
  border-color: rgba(140, 255, 183, 0.72);
  background: linear-gradient(135deg, var(--matrix-green), var(--matrix-green-2));
}

.chat-form textarea {
  min-height: 70px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(0, 255, 112, 0.04), rgba(0, 255, 112, 0.18), rgba(0, 255, 112, 0.04));
  background-size: 220% 100%;
}

.pricing-section,
.sample-section,
.trust-section {
  border-top: 1px solid var(--matrix-line-soft);
}

.rule-icon,
.modal-icon {
  color: #001407;
  background: linear-gradient(135deg, var(--matrix-green), var(--matrix-green-2));
  font-family: var(--font-code);
  box-shadow: 0 0 28px rgba(0, 255, 112, 0.22);
}

.rule-card.highlight {
  border-color: rgba(0, 255, 112, 0.44);
  background:
    linear-gradient(180deg, rgba(0, 255, 112, 0.12), transparent 58%),
    rgba(0, 14, 7, 0.9);
}

.sample-report mark {
  color: #001407;
  background: var(--matrix-green);
}

.site-footer {
  margin-top: 74px;
  border-top: 1px solid var(--matrix-line-soft);
}

.site-footer nav a {
  color: var(--matrix-green);
  font-family: var(--font-code);
}

.modal,
.access-modal {
  z-index: 80;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.modal-card,
.access-box {
  border-color: var(--matrix-line);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    rgba(0, 13, 7, 0.96);
}

.modal-card h2,
.access-box h2 {
  color: var(--matrix-text);
  font-family: var(--font-code);
}

.modal-card p {
  color: var(--matrix-muted);
}

.modal-close {
  color: var(--matrix-green);
  background: rgba(0, 255, 112, 0.06);
  border: 1px solid var(--matrix-line-soft);
}

.toast {
  z-index: 100;
  color: var(--matrix-green);
  border: 1px solid var(--matrix-line);
  border-radius: 6px;
  background: rgba(0, 10, 5, 0.95);
  box-shadow: 0 0 28px rgba(0, 255, 112, 0.18);
  font-family: var(--font-code);
}

@keyframes matrixBlink {
  50% {
    opacity: 0;
  }
}

@keyframes matrixSweep {
  0%,
  64% {
    transform: translateX(-110%);
  }

  82%,
  100% {
    transform: translateX(110%);
  }
}

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quiet-hero {
    justify-self: stretch;
    width: min(640px, 100%);
  }

  .hero-guide,
  .cyber-console {
    transform: none;
  }

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

  .site-header.nav-open .topnav {
    border-color: var(--matrix-line);
    background: rgba(0, 10, 5, 0.98);
  }

  .site-header.nav-open .topnav a {
    color: var(--matrix-text);
    background: rgba(0, 255, 112, 0.06);
  }
}

@media (max-width: 720px) {
  body {
    background: #000;
  }

  body::before {
    opacity: 0.36;
  }

  .matrix-rain {
    opacity: 0.46;
  }

  .page-bg::before,
  .page-bg::after {
    display: none;
  }

  .site-header {
    height: 66px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 14px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 19px;
  }

  .header-cta {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }

  .hero,
  .workspace,
  .pricing-section,
  .sample-section,
  .trust-section,
  .site-footer {
    width: min(100% - 24px, 1220px);
  }

  .hero {
    padding: 38px 0 46px;
    gap: 24px;
  }

  .brand-line {
    width: 100%;
    font-size: 11px;
  }

  .brand-line span {
    width: 28px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-tags span {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    justify-content: center;
    padding-inline: 8px;
    font-size: 10px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-guide,
  .cyber-console,
  .form-card,
  .result-card,
  .flow-steps article,
  .panel {
    border-radius: 8px;
  }

  .terminal-bar {
    margin: -18px -18px 16px;
  }

  .oracle-code {
    font-size: 11px;
  }

  .workspace-head,
  .result-top,
  .section-heading,
  .account-actions,
  .result-actions,
  .chat-form {
    align-items: stretch;
  }

  .workspace-head,
  .result-top {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-steps article {
    min-height: 0;
  }

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

  .form-card,
  .result-card {
    padding: 16px;
  }

  .fortune-form {
    grid-template-columns: 1fr;
  }

  .submit-button {
    position: sticky;
    bottom: 12px;
    z-index: 5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .domain-card::after,
  .annual-item::after,
  .report-section::after,
  .hero h1::after {
    animation: none;
  }
}

/* 2026-05-25 module architecture: command console, not recolored cards */
.workspace {
  width: min(1360px, calc(100% - 36px));
}

.workspace-shell {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(0, 255, 112, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(0, 255, 112, 0.075), transparent 24%),
    radial-gradient(circle at 68% 18%, rgba(0, 255, 112, 0.12), transparent 30%),
    rgba(0, 5, 2, 0.82);
  box-shadow: 0 0 0 1px rgba(0, 255, 112, 0.08), 0 30px 120px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px);
}

.command-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  border-right: 1px solid var(--matrix-line-soft);
  background:
    repeating-linear-gradient(0deg, rgba(0, 255, 112, 0.035) 0 1px, transparent 1px 16px),
    rgba(0, 10, 5, 0.78);
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 62px;
  padding: 8px 4px;
  color: var(--matrix-dim);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rail-item span {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 17px;
  line-height: 1;
}

.rail-item strong {
  color: inherit;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.rail-item:hover,
.rail-item.active {
  color: var(--matrix-text);
  border-color: var(--matrix-line);
  background: rgba(0, 255, 112, 0.085);
  box-shadow: inset 0 0 22px rgba(0, 255, 112, 0.05), 0 0 18px rgba(0, 255, 112, 0.1);
}

.rail-pack {
  margin-top: auto;
}

.shell-main {
  min-width: 0;
  padding: 18px;
}

.shell-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 8px;
  color: var(--matrix-dim);
  background: rgba(0, 0, 0, 0.32);
  font-family: var(--font-code);
  font-size: 12px;
  overflow-x: auto;
}

.shell-status span {
  white-space: nowrap;
}

.shell-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--matrix-green);
  box-shadow: 0 0 14px var(--matrix-green);
}

.signal-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.signal-meter b {
  display: inline-block;
  width: 72px;
  height: 6px;
  overflow: hidden;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 999px;
  background: rgba(0, 255, 112, 0.08);
}

.signal-meter b::before {
  content: "";
  display: block;
  width: 98%;
  height: 100%;
  background: linear-gradient(90deg, var(--matrix-green), var(--matrix-green-2));
  box-shadow: 0 0 16px rgba(0, 255, 112, 0.32);
}

.workspace-shell .workspace-head {
  margin: 18px 0 14px;
  padding: 0;
}

.workspace-shell .flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(0, 255, 112, 0.08), transparent 26%, transparent 74%, rgba(0, 255, 112, 0.06)),
    rgba(0, 0, 0, 0.32);
}

.workspace-shell .flow-steps article {
  min-height: 78px;
  padding: 13px 14px;
  border: 0;
  border-right: 1px solid var(--matrix-line-soft);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-shell .flow-steps article:last-child {
  border-right: 0;
}

.workspace-shell .flow-steps span {
  position: static;
  display: inline-flex;
  width: auto;
  height: auto;
  margin-bottom: 8px;
  padding: 2px 7px;
  border: 1px solid rgba(0, 255, 112, 0.32);
  border-radius: 3px;
  color: var(--matrix-green);
  background: rgba(0, 255, 112, 0.06);
  font-size: 11px;
}

.workspace-shell .flow-steps strong {
  font-size: 12px;
  white-space: nowrap;
}

.workspace-shell .flow-steps p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
}

.workspace-shell .desk-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.34fr) minmax(260px, 0.25fr) minmax(430px, 0.41fr);
  gap: 14px;
  min-width: 0;
  margin-top: 0;
}

.workspace-shell .form-card,
.workspace-shell .matrix-panel,
.workspace-shell .result-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(0, 255, 112, 0.22);
  border-radius: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 255, 112, 0.028) 0 1px, transparent 1px 20px),
    rgba(0, 9, 4, 0.82);
  box-shadow: inset 0 0 36px rgba(0, 255, 112, 0.045), 0 16px 48px rgba(0, 0, 0, 0.32);
}

.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 14px;
  border-bottom: 1px solid var(--matrix-line-soft);
  color: var(--matrix-green);
  background: rgba(0, 0, 0, 0.42);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 900;
}

.module-title div {
  display: inline-flex;
  gap: 6px;
}

.module-title i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--matrix-green);
  box-shadow: 0 0 10px rgba(0, 255, 112, 0.36);
}

.module-title i:nth-child(2) {
  opacity: 0.62;
}

.module-title i:nth-child(3) {
  opacity: 0.34;
}

.terminal-prompt {
  margin: 14px 16px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 255, 112, 0.16);
  border-radius: 6px;
  color: var(--matrix-dim);
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-code);
  font-size: 12px;
}

.workspace-shell .form-card > .quota-card,
.workspace-shell .form-card > .account-actions,
.workspace-shell .form-card > .section-heading,
.workspace-shell .form-card > h3,
.workspace-shell .form-card > .fortune-form {
  margin-left: 16px;
  margin-right: 16px;
}

.workspace-shell .form-card > .fortune-form {
  padding-bottom: 16px;
}

.workspace-shell .quota-card {
  grid-template-columns: 1fr 1fr;
}

.workspace-shell .quota-card div {
  min-height: 92px;
  padding: 12px;
  border-radius: 7px;
}

.workspace-shell .quota-card strong {
  font-size: 26px;
}

.workspace-shell .section-heading {
  margin-top: 16px;
}

.workspace-shell .form-card h3 {
  font-size: 20px;
}

.workspace-shell .result-card > .result-top,
.workspace-shell .result-card > .state-panel,
.workspace-shell .result-card > .loading-panel,
.workspace-shell .result-card > .report-content {
  margin-left: 16px;
  margin-right: 16px;
}

.workspace-shell .result-card > .result-top {
  margin-top: 16px;
}

#summary {
  max-height: 8.4em;
  overflow: auto;
  padding: 10px 12px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 4px;
  background: #000;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.68;
  white-space: pre-line;
}

.workspace-shell .result-card > .state-panel,
.workspace-shell .result-card > .loading-panel,
.workspace-shell .result-card > .report-content {
  margin-top: 16px;
  margin-bottom: 16px;
}

.matrix-panel {
  display: flex;
  flex-direction: column;
}

.matrix-oracle {
  display: grid;
  place-items: center;
  padding: 24px 12px 16px;
}

.matrix-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: min(220px, 82%);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 255, 112, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 255, 112, 0.18) 0 8%, transparent 9% 28%, rgba(0, 255, 112, 0.08) 29% 30%, transparent 31%),
    conic-gradient(from 0deg, rgba(0, 255, 112, 0.18), transparent 12%, rgba(0, 255, 112, 0.15) 24%, transparent 37%, rgba(0, 255, 112, 0.18), transparent 62%, rgba(0, 255, 112, 0.12), transparent 100%);
  box-shadow: inset 0 0 34px rgba(0, 255, 112, 0.08), 0 0 32px rgba(0, 255, 112, 0.16);
}

.matrix-ring::before,
.matrix-ring::after {
  content: "";
  position: absolute;
  inset: 13%;
  border: 1px dashed rgba(0, 255, 112, 0.28);
  border-radius: 50%;
}

.matrix-ring::after {
  inset: 31%;
  border-style: solid;
  transform: rotate(45deg);
}

.matrix-ring b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(0, 255, 112, 0.5);
  border-radius: 50%;
  color: var(--matrix-text);
  background: rgba(0, 0, 0, 0.54);
  font-family: var(--font-display);
  font-size: 28px;
  box-shadow: 0 0 24px rgba(0, 255, 112, 0.16);
}

.matrix-ring span {
  position: absolute;
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 16px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(0, 255, 112, 0.4);
}

.matrix-ring span:nth-child(1) { top: 9%; left: 50%; transform: translateX(-50%); }
.matrix-ring span:nth-child(2) { right: 12%; top: 24%; }
.matrix-ring span:nth-child(3) { right: 10%; bottom: 24%; }
.matrix-ring span:nth-child(4) { bottom: 9%; left: 50%; transform: translateX(-50%); }
.matrix-ring span:nth-child(5) { left: 12%; bottom: 24%; }
.matrix-ring span:nth-child(6) { left: 10%; top: 24%; }
.matrix-ring span:nth-child(7) { left: 50%; top: 24%; transform: translateX(-50%); opacity: 0.62; }
.matrix-ring span:nth-child(8) { left: 50%; bottom: 24%; transform: translateX(-50%); opacity: 0.62; }

.matrix-cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 14px;
}

.matrix-cells div,
.matrix-console,
.matrix-progress {
  border: 1px solid var(--matrix-line-soft);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.28);
}

.matrix-cells div {
  padding: 10px;
}

.matrix-cells span {
  display: block;
  color: var(--matrix-dim);
  font-family: var(--font-code);
  font-size: 11px;
}

.matrix-cells strong {
  display: block;
  margin-top: 5px;
  color: var(--matrix-text);
  font-size: 17px;
}

.matrix-console {
  margin: 12px 14px 0;
  padding: 12px;
  font-family: var(--font-code);
  font-size: 12px;
}

.matrix-console p {
  margin: 0 0 8px;
  color: var(--matrix-muted);
}

.matrix-console p:last-child {
  margin-bottom: 0;
}

.matrix-console span {
  color: var(--matrix-green);
}

.matrix-progress {
  margin: auto 14px 14px;
  padding: 10px;
}

.matrix-progress span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, var(--matrix-green) 0 10px, rgba(0, 255, 112, 0.3) 10px 14px);
  box-shadow: 0 0 16px rgba(0, 255, 112, 0.24);
}

.matrix-progress small {
  display: block;
  margin-top: 8px;
  color: var(--matrix-dim);
  font-family: var(--font-code);
  font-size: 11px;
}

@media (max-width: 1220px) {
  .workspace-shell .desk-grid {
    grid-template-columns: minmax(280px, 0.56fr) minmax(260px, 0.44fr);
  }

  .workspace-shell .result-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .command-rail {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--matrix-line-soft);
  }

  .rail-item {
    flex: 0 0 72px;
    min-height: 54px;
  }

  .rail-pack {
    margin-top: 0;
    margin-left: auto;
  }

  .shell-status {
    grid-template-columns: repeat(4, max-content);
  }

  .workspace-shell .flow-steps {
    display: flex;
    overflow-x: auto;
  }

  .workspace-shell .flow-steps article {
    flex: 0 0 150px;
    border-right: 1px solid var(--matrix-line-soft);
  }

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

@media (max-width: 720px) {
  .workspace {
    width: min(100% - 18px, 1360px);
  }

  .shell-main {
    padding: 12px;
  }

  .workspace-shell {
    border-radius: 10px;
  }

  .command-rail {
    padding: 10px;
  }

  .rail-item {
    flex-basis: 64px;
  }

  .shell-status {
    gap: 10px;
    padding: 9px;
    font-size: 11px;
  }

  .workspace-shell .workspace-head {
    display: grid;
    gap: 10px;
  }

  .workspace-shell .quota-card {
    grid-template-columns: 1fr;
  }

  .workspace-shell .result-card > .result-top,
  .workspace-shell .result-card > .state-panel,
  .workspace-shell .result-card > .loading-panel,
  .workspace-shell .result-card > .report-content,
  .workspace-shell .form-card > .quota-card,
  .workspace-shell .form-card > .account-actions,
  .workspace-shell .form-card > .section-heading,
  .workspace-shell .form-card > h3,
  .workspace-shell .form-card > .fortune-form {
    margin-left: 12px;
    margin-right: 12px;
  }

  .matrix-oracle {
    padding-top: 18px;
  }
}

/* 2026-05-26 pure code demo: no decorative graphics */
body {
  background: #000;
}

body::before,
.page-bg,
.matrix-vignette,
.matrix-rain,
.brand-logo,
.guide-head img,
.state-panel img,
.module-title div,
.hero-guide::before,
.form-card::before,
.result-card::before,
.panel::before,
.modal-card::before,
.access-box::before {
  display: none !important;
}

.site-header,
.workspace-shell,
.hero-guide,
.form-card,
.matrix-panel,
.result-card,
.panel,
.state-panel,
.modal-card,
.access-box,
.flow-steps,
.flow-steps article,
.quota-card div,
.domain-card,
.annual-item,
.report-section,
.chat-messages,
input,
select,
textarea,
.primary-button,
.secondary-button,
.ghost-button,
.rail-item {
  background: #020603 !important;
  box-shadow: none !important;
}

.code-logo {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 38px;
  padding: 0 8px;
  color: var(--matrix-green);
  border: 1px solid var(--matrix-line);
  border-radius: 4px;
  background: #000;
  font-family: var(--font-code);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.code-logo.small {
  min-width: 48px;
  height: 32px;
}

.brand strong,
.hero h1,
.workspace h2,
.result-top h2 {
  text-shadow: none;
}

.hero h1 {
  font-family: var(--font-code);
  font-size: clamp(42px, 5.4vw, 72px);
}

.hero h1::after {
  content: "_";
}

.brand-line span {
  background: var(--matrix-green);
}

.oracle-code,
.code-output,
.empty-code {
  margin: 14px;
  padding: 14px;
  overflow: auto;
  color: var(--matrix-text);
  border: 1px solid var(--matrix-line-soft);
  border-radius: 4px;
  background: #000;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
}

.code-output.dim {
  color: var(--matrix-dim);
}

.empty-code {
  width: min(560px, 100%);
  margin: 0;
  text-align: left;
}

.workspace-shell .desk-grid {
  grid-template-columns: minmax(320px, 0.34fr) minmax(280px, 0.25fr) minmax(460px, 0.41fr);
}

.matrix-panel,
.result-card {
  max-height: 760px;
}

.workspace-shell .result-card {
  display: flex;
  flex-direction: column;
}

.workspace-shell .result-card > .report-content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

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

.plain-summary-card {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid rgba(0, 255, 112, 0.34);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(0, 255, 112, 0.14), rgba(77, 248, 255, 0.05)),
    rgba(0, 0, 0, 0.72);
  box-shadow: inset 0 0 26px rgba(0, 255, 112, 0.06), 0 0 22px rgba(0, 255, 112, 0.08);
}

.plain-summary-card span {
  display: block;
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plain-summary-card strong {
  display: block;
  margin-top: 4px;
  color: var(--matrix-text);
  font-size: 18px;
}

.plain-summary-card p {
  margin: 8px 0 0;
  color: var(--matrix-text);
  font-size: 14px;
  line-height: 1.78;
  white-space: pre-line;
}

.brief-item {
  min-height: 88px;
  padding: 10px;
  border-radius: 4px;
}

.report-summary-grid,
.report-grid,
.domain-list {
  gap: 8px;
}

.report-summary-grid {
  grid-template-columns: 1fr 1fr;
}

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

.pillar-list div {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 4px;
}

.pillar-list dd {
  font-family: var(--font-code);
  font-size: 18px;
}

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

.domain-card {
  min-height: 0;
  padding: 10px;
}

.domain-card::after,
.annual-item::after,
.report-section::after {
  display: none;
}

.report-section {
  padding: 0;
  border-radius: 4px;
}

.report-section summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.report-section summary::-webkit-details-marker {
  display: none;
}

.report-section summary span,
.report-section summary em {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 11px;
  font-style: normal;
}

.report-section summary h3 {
  margin: 0;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 13px;
}

.report-section-body {
  padding: 0 10px 12px 52px;
}

.report-section-body p,
.report-section-body li {
  font-size: 13px;
  line-height: 1.72;
}

.annual-list {
  max-height: 220px;
  overflow: auto;
}

.annual-item {
  padding: 10px;
}

.lucky-box {
  color: var(--matrix-green);
  background: #000 !important;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 4px;
}

.switch-field {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.32);
}

.switch-field input {
  width: 20px;
  height: 20px;
  accent-color: var(--matrix-green);
}

.switch-field span {
  display: grid;
  gap: 3px;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 800;
}

.switch-field small {
  color: var(--matrix-dim);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

@media (max-width: 1220px) {
  .workspace-shell .desk-grid {
    grid-template-columns: minmax(280px, 0.5fr) minmax(280px, 0.5fr);
  }

  .workspace-shell .result-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .workspace-shell .desk-grid,
  .report-brief,
  .report-summary-grid,
  .pillar-list,
  .domain-list {
    grid-template-columns: 1fr;
  }

  .matrix-panel,
  .result-card,
  .workspace-shell .result-card > .report-content {
    max-height: none;
  }
}

/* 2026-06-02 contrast fix: keep the code-black theme readable. */
body,
.site-header,
.workspace-shell,
.form-card,
.matrix-panel,
.result-card,
.panel,
.modal-card {
  color: var(--matrix-text);
}

.primary-button,
.header-cta,
.chat-form .primary-button,
.modal-card .primary-button,
.access-box .primary-button {
  color: #001407 !important;
  border-color: rgba(0, 255, 112, 0.78) !important;
  background:
    linear-gradient(135deg, rgba(0, 255, 112, 0.96), rgba(140, 255, 183, 0.9)) !important;
  text-shadow: none !important;
  box-shadow: 0 0 20px rgba(0, 255, 112, 0.16) !important;
}

.primary-button:disabled,
.primary-button.loading {
  color: rgba(218, 255, 230, 0.48) !important;
  border-color: rgba(0, 255, 112, 0.2) !important;
  background: #020603 !important;
  box-shadow: none !important;
}

.secondary-button,
.ghost-button,
.modal-card .secondary-button,
.hero-tags span,
.tag-row span,
.api-state,
.api-state.ready,
.api-state.warn {
  color: var(--matrix-text) !important;
  border-color: var(--matrix-line-soft) !important;
  background: #020603 !important;
}

.secondary-button:hover,
.ghost-button:hover,
.hero-tags span:hover,
.tag-row span:hover {
  color: var(--matrix-green) !important;
  border-color: var(--matrix-line) !important;
  background: rgba(0, 255, 112, 0.06) !important;
}

.hero-tags,
.hero-actions,
.result-actions,
.account-actions {
  color: var(--matrix-text) !important;
}

/* Full report reader */
.full-report-section,
.report-page-main {
  width: min(100% - 40px, 1180px);
  margin: 44px auto 72px;
}

.full-report-section[hidden] {
  display: none !important;
}

.full-report-head,
.report-page-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 10px;
  color: var(--matrix-text);
  background: rgba(0, 10, 5, 0.78);
}

.full-report-head h2 {
  margin: 6px 0;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: clamp(24px, 3vw, 38px);
}

.full-report-head p {
  max-width: 720px;
  margin: 0;
  color: var(--matrix-dim);
  line-height: 1.7;
}

.report-page-main {
  padding-top: 20px;
}

.report-page-actions {
  position: sticky;
  top: 88px;
  z-index: 4;
  align-items: center;
}

.report-page-actions span,
.reader-kicker {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.readable-report {
  color: var(--matrix-text);
  border: 1px solid var(--matrix-line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(0, 255, 112, 0.035), transparent 260px),
    rgba(0, 8, 3, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 255, 112, 0.04), 0 24px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.reader-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: 22px;
  padding: clamp(22px, 4vw, 42px);
  border-bottom: 1px solid var(--matrix-line-soft);
}

.reader-hero h2 {
  margin: 10px 0 14px;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
}

.reader-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(218, 255, 230, 0.78);
  font-size: 16px;
  line-height: 1.9;
}

.reader-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 9px;
}

.reader-tags span {
  padding: 7px 10px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 999px;
  color: var(--matrix-green);
  background: rgba(0, 255, 112, 0.055);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 800;
}

.reader-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--matrix-line-soft);
  background: var(--matrix-line-soft);
}

.reader-metric {
  min-width: 0;
  padding: 16px;
  background: #020603;
}

.reader-metric span,
.reader-metric small {
  display: block;
  color: var(--matrix-dim);
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.45;
}

.reader-metric strong {
  display: block;
  margin: 7px 0;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 18px;
  line-height: 1.35;
}

.reader-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
}

.reader-toc {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  padding: 18px;
  border-right: 1px solid var(--matrix-line-soft);
}

.reader-toc strong {
  margin-bottom: 8px;
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 12px;
}

.reader-toc a {
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(218, 255, 230, 0.72);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

.reader-toc a:hover {
  color: var(--matrix-text);
  border-color: var(--matrix-line-soft);
  background: rgba(0, 255, 112, 0.055);
}

.reader-main {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
}

.reader-section {
  border: 1px solid var(--matrix-line-soft);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(0, 255, 112, 0.03), transparent),
    rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.reader-section.featured {
  border-color: rgba(0, 255, 112, 0.34);
  background:
    linear-gradient(135deg, rgba(0, 255, 112, 0.07), rgba(0, 0, 0, 0.28)),
    #020603;
}

.reader-section-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--matrix-line-soft);
}

.reader-section-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--matrix-line);
  border-radius: 6px;
  color: var(--matrix-green);
  background: #000;
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 900;
}

.reader-section-title h3 {
  margin: 0;
  color: var(--matrix-text);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
}

.reader-section-body {
  padding: 18px clamp(18px, 3vw, 34px) 24px;
}

.reader-section-body p,
.reader-list li,
.reader-domain p,
.reader-annual p {
  color: rgba(218, 255, 230, 0.84);
  font-size: 16px;
  line-height: 2;
}

.reader-section-body p {
  margin: 0;
}

.reader-section-body p + p {
  margin-top: 14px;
}

.reader-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 24px;
}

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

.reader-domain,
.reader-annual {
  padding: 14px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.reader-domain div,
.reader-annual-list {
  display: grid;
  gap: 12px;
}

.reader-domain div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 8px;
}

.reader-domain strong,
.reader-domain span,
.reader-annual strong,
.reader-annual span {
  color: var(--matrix-green);
  font-family: var(--font-code);
}

.reader-domain p,
.reader-annual p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.reader-annual-list {
  padding: 18px;
}

.mystic-skill-panel {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px solid rgba(0, 255, 112, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(0, 255, 112, 0.08), rgba(0, 0, 0, 0.34)),
    rgba(0, 8, 3, 0.9);
  color: var(--matrix-text);
}

.skill-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.skill-panel-head span,
.skill-chip span,
.reader-skill span,
.reader-cross-checks strong {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.skill-panel-head strong {
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 14px;
}

.skill-chip-grid,
.reader-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.skill-chip,
.reader-skill {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(0, 255, 112, 0.13);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.34);
}

.skill-chip strong,
.reader-skill strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--matrix-text);
  overflow-wrap: anywhere;
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.35;
}

.skill-chip small,
.reader-skill p {
  display: block;
  margin: 0;
  color: rgba(218, 255, 230, 0.72);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}

.reader-skill-grid {
  padding: 18px;
}

.reader-skill {
  padding: 14px;
}

.reader-skill p {
  font-size: 13px;
  line-height: 1.75;
}

.reader-cross-checks {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.reader-cross-checks .reader-list {
  margin: 0;
}

.readable-report-empty {
  min-height: 52vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  text-align: center;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 12px;
  background: rgba(0, 10, 5, 0.86);
}

.readable-report-empty h1 {
  margin: 0;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: clamp(26px, 4vw, 44px);
}

.readable-report-empty p {
  margin: 0;
  color: var(--matrix-dim);
}

@media (max-width: 980px) {
  .reader-hero,
  .reader-layout,
  .reader-metrics,
  .reader-domain-grid,
  .skill-chip-grid,
  .reader-skill-grid {
    grid-template-columns: 1fr;
  }

  .reader-toc {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--matrix-line-soft);
  }

  .full-report-head,
  .report-page-actions {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .full-report-section,
  .report-page-main {
    width: min(100% - 18px, 1180px);
    margin-top: 24px;
  }

  .reader-section-body p,
  .reader-list li {
    font-size: 15px;
    line-height: 1.9;
  }

  .skill-panel-head {
    display: grid;
  }
}

.infra-page {
  color-scheme: dark;
  color: var(--matrix-text);
  background:
    radial-gradient(circle at 75% 5%, rgba(0, 255, 112, 0.16), transparent 28%),
    linear-gradient(180deg, #030806 0%, #000 100%);
}

.infra-main {
  width: min(100% - 32px, 1180px);
  margin: 0 auto;
  padding: 46px 0 80px;
}

.infra-hero,
.infra-band,
.infra-grid-section {
  border: 1px solid rgba(0, 255, 112, 0.22);
  border-radius: 10px;
  background: rgba(0, 12, 6, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.infra-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: stretch;
  padding: clamp(26px, 5vw, 54px);
}

.infra-terminal-line,
.infra-section-head span,
.infra-card-top span,
.infra-specs span {
  margin: 0 0 14px;
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.infra-hero h1,
.infra-band h2,
.infra-section-head h2 {
  margin: 0;
  color: var(--matrix-text);
  font-family: var(--font-code);
  letter-spacing: 0;
}

.infra-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 7vw, 74px);
  line-height: 0.96;
}

.infra-hero p,
.infra-section-head p,
.infra-card p,
.infra-status p,
.infra-note {
  color: rgba(218, 255, 230, 0.76);
  font-size: 15px;
  line-height: 1.9;
}

.infra-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: 17px;
}

.infra-actions,
.infra-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.infra-status {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(0, 255, 112, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.infra-status span,
.infra-status a {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 900;
}

.infra-status strong {
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 24px;
}

.infra-band,
.infra-grid-section {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
}

.infra-band h2,
.infra-section-head h2 {
  font-size: clamp(24px, 4vw, 38px);
}

.infra-steps,
.infra-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.infra-steps article,
.infra-card {
  min-width: 0;
  border: 1px solid rgba(0, 255, 112, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.infra-steps article {
  padding: 16px;
}

.infra-steps span {
  display: block;
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 900;
}

.infra-steps strong {
  display: block;
  margin-top: 10px;
  color: var(--matrix-text);
  font-family: var(--font-code);
}

.infra-steps p {
  margin: 8px 0 0;
  color: rgba(218, 255, 230, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

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

.infra-card {
  display: grid;
  align-content: start;
  padding: 22px;
}

.infra-card.featured {
  background:
    linear-gradient(135deg, rgba(0, 255, 112, 0.12), rgba(0, 0, 0, 0.28)),
    rgba(0, 0, 0, 0.34);
}

.infra-card-top {
  display: grid;
  gap: 7px;
}

.infra-card-top strong {
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 24px;
}

.infra-specs {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(0, 255, 112, 0.13);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.infra-specs strong {
  display: block;
  margin-top: 4px;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 13px;
  line-height: 1.6;
}

.infra-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.infra-checks label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid rgba(0, 255, 112, 0.14);
  border-radius: 8px;
  color: rgba(218, 255, 230, 0.82);
  background: rgba(0, 0, 0, 0.3);
  line-height: 1.55;
}

.infra-checks input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #00ff70;
}

.infra-command {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed rgba(0, 255, 112, 0.3);
  border-radius: 8px;
  color: var(--matrix-green);
  background: rgba(0, 0, 0, 0.36);
  overflow-x: auto;
}

.infra-command code {
  font-family: var(--font-code);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .infra-hero,
  .infra-steps,
  .infra-card-grid,
  .infra-checks {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .infra-main {
    width: min(100% - 18px, 1180px);
    padding-top: 24px;
  }

  .infra-hero,
  .infra-band,
  .infra-grid-section,
  .infra-card {
    padding: 18px;
  }
}

.product-feature-section {
  width: min(1180px, calc(100% - 40px));
  margin: -20px auto 44px;
  padding: 22px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 255, 112, 0.08), transparent 48%),
    rgba(0, 12, 6, 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.26);
}

.feature-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.feature-head h2 {
  margin: 0;
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: 0;
}

.feature-head p {
  margin: 0;
  color: var(--matrix-muted);
  line-height: 1.75;
}

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

.feature-card {
  min-height: 156px;
  padding: 16px;
  border: 1px solid var(--matrix-line-soft);
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 5px),
    rgba(0, 8, 3, 0.72);
}

.feature-card span,
.poster-top span,
.poster-matrix span,
.poster-footer span {
  color: var(--matrix-green);
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 900;
}

.feature-card h3 {
  margin: 14px 0 8px;
  color: var(--matrix-text);
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--matrix-muted);
  font-size: 13px;
  line-height: 1.7;
}

.growth-panel {
  margin-top: 8px;
}

.growth-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
  align-items: stretch;
}

.poster-preview {
  min-height: 330px;
  padding: 18px;
  border: 1px solid rgba(0, 255, 112, 0.34);
  border-radius: 7px;
  background:
    linear-gradient(160deg, rgba(0, 255, 112, 0.18), transparent 38%),
    radial-gradient(circle at 84% 18%, rgba(255, 232, 128, 0.18), transparent 28%),
    rgba(0, 8, 3, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 0 32px rgba(0, 255, 112, 0.1);
}

.poster-top,
.poster-footer,
.poster-matrix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.poster-top strong {
  color: var(--matrix-muted);
  font-family: var(--font-code);
  font-size: 11px;
}

.poster-preview h3 {
  margin: 26px 0 10px;
  color: var(--matrix-text);
  font-size: 28px;
  letter-spacing: 0;
}

.poster-preview p {
  min-height: 72px;
  margin: 0;
  color: var(--matrix-muted);
  line-height: 1.7;
}

.poster-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.poster-keywords span {
  padding: 5px 8px;
  border: 1px solid rgba(0, 255, 112, 0.22);
  border-radius: 999px;
  color: var(--matrix-green);
  background: rgba(0, 255, 112, 0.07);
  font-family: var(--font-code);
  font-size: 11px;
}

.poster-matrix {
  padding: 10px 0;
  border-top: 1px solid var(--matrix-line-soft);
}

.poster-matrix strong {
  color: var(--matrix-text);
  font-family: var(--font-code);
  font-size: 13px;
  text-align: right;
}

.poster-footer {
  margin-top: 14px;
}

.poster-footer i {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 255, 112, 0.5);
  background:
    linear-gradient(90deg, var(--matrix-green) 10px, transparent 10px 18px, var(--matrix-green) 18px 26px, transparent 26px),
    linear-gradient(0deg, transparent 8px, var(--matrix-green) 8px 15px, transparent 15px 24px, var(--matrix-green) 24px 32px, transparent 32px);
  opacity: 0.85;
}

.unlock-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 8px;
}

.unlock-copy h3 {
  margin: 0;
  color: var(--matrix-text);
  font-size: clamp(22px, 2.4vw, 34px);
}

.unlock-copy p {
  margin: 0;
  color: var(--matrix-muted);
  line-height: 1.75;
}

.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.report-nav {
  position: static;
  top: auto;
  max-width: 100%;
  min-height: 0;
  margin: 12px 0;
  padding: 6px;
  border: 1px solid rgba(0, 255, 112, 0.18);
  border-radius: 7px;
  background: rgba(0, 9, 4, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(0, 255, 112, 0.03);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.report-nav a {
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(0, 255, 112, 0.18);
  border-radius: 999px;
  color: var(--matrix-muted);
  background: rgba(0, 255, 112, 0.055);
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 800;
}

.report-nav a:hover {
  color: var(--matrix-green);
  border-color: rgba(0, 255, 112, 0.34);
  background: rgba(0, 255, 112, 0.1);
}

@media (max-width: 920px) {
  .feature-grid,
  .growth-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .product-feature-section {
    width: min(100% - 24px, 1180px);
    margin-top: 8px;
    padding: 16px;
  }

  .feature-grid,
  .growth-grid {
    grid-template-columns: 1fr;
  }

  .poster-preview {
    min-height: 300px;
  }
}

.report-image-shell {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(0, 255, 112, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 10%, rgba(0, 255, 112, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.32);
}

.report-image-shell img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  border-radius: 22px;
  background: #001207;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 34px rgba(0, 255, 112, 0.12);
}

.report-image-shell figcaption {
  color: var(--matrix-muted);
  font-family: var(--font-code);
  font-size: 12px;
  text-align: center;
}

.result-card,
.workspace-shell .result-card {
  max-height: none;
}

.workspace-shell .result-card > .report-content {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.report-content > .tag-row,
.report-content > .report-brief,
.report-content > .report-nav,
.report-content > .report-summary-grid,
.report-content > .report-grid,
.report-content > .panel:not(.chat-panel) {
  display: none !important;
}

.report-content > .result-actions {
  justify-content: center;
  margin-top: 2px;
}

.report-content > .chat-panel {
  margin-top: 2px;
}

@media (max-width: 720px) {
  .report-image-shell {
    padding: 8px;
  }

  .report-image-shell img {
    border-radius: 16px;
  }

  .report-image-shell figcaption {
    font-size: 11px;
    line-height: 1.5;
  }
}
