:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.105);
  --line: rgba(255, 255, 255, 0.13);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --subtle: rgba(255, 255, 255, 0.42);
  --blue: #8fc7ff;
  --gold: #f4d38b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(92, 153, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 82% 12%, rgba(244, 211, 139, 0.11), transparent 26rem),
    linear-gradient(180deg, #05070d 0%, #080b13 54%, #030408 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.72;
}

a { color: inherit; }

.shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 28px 20px 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 58px;
}

.brand {
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a,
.cta-row a,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

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

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(34px, 6.4vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
}

.direct-answer {
  margin: 0 0 34px;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid rgba(143, 199, 255, 0.22);
  border-left: 3px solid rgba(143, 199, 255, 0.68);
  border-radius: 18px;
  background: rgba(143, 199, 255, 0.055);
}

.direct-answer p {
  max-width: 840px;
  margin: 0;
  color: var(--muted);
}

.direct-answer-kicker {
  margin-bottom: 8px !important;
  color: var(--blue) !important;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.cta-row a.primary {
  border-color: rgba(143, 199, 255, 0.42);
  color: #06101e;
  background: linear-gradient(135deg, #d9ecff, #83bcff);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 34px 0;
}

.card,
.content {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.card { padding: 20px; }

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.content {
  padding: clamp(22px, 4vw, 40px);
  margin-top: 18px;
}

.content h2 {
  margin: 0 0 14px;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: 0;
}

.content h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

.content p,
.content li,
.content dd { color: var(--muted); }

.content strong { color: rgba(255, 255, 255, 0.88); }

.content ul,
.content ol { padding-left: 1.35rem; }

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

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

.note {
  border-left: 3px solid rgba(244, 211, 139, 0.64);
  padding: 12px 16px;
  color: var(--muted);
  background: rgba(244, 211, 139, 0.055);
  border-radius: 16px;
}

.next-step-band {
  margin: 34px 0;
  padding: clamp(18px, 3vw, 28px);
  border-left: 3px solid rgba(143, 199, 255, 0.68);
  border-radius: 18px;
  background: rgba(143, 199, 255, 0.06);
}

.next-step-band h2 {
  margin-bottom: 10px;
}

.next-step-kicker,
.next-step-note {
  margin: 0;
  color: var(--subtle);
  font-size: 13px;
}

.next-step-kicker {
  color: var(--blue);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot {
  min-height: 96px;
  margin: 28px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.process-flow,
.city-compare,
.decision-matrix,
.boundary-scale,
.birth-time-triage {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}

.process-step {
  min-height: 158px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.process-step:last-child { border-right: 0; }

.process-step span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(143, 199, 255, 0.14);
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.process-step strong,
.city-compare strong,
.decision-matrix strong {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
}

.process-step p,
.city-compare p,
.boundary-scale p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.boundary-scale { padding: 22px; }

.boundary-scale figcaption {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.boundary-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}

.boundary-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
}

.boundary-track span {
  position: relative;
  z-index: 1;
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0b101a;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.boundary-track span.active {
  border-color: rgba(244, 211, 139, 0.62);
  color: #ffe2a3;
  background: rgba(244, 211, 139, 0.09);
}

.city-compare {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.city-compare article {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.city-compare article:last-child { border-right: 0; }

.city-compare span {
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.decision-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}

.decision-matrix div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.decision-matrix div:nth-child(2n) { border-right: 0; }
.decision-matrix div:nth-last-child(-n + 2) { border-bottom: 0; }

.decision-matrix span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.birth-time-triage {
  overflow: hidden;
}

.triage-heading,
.triage-controls,
.triage-result {
  padding: clamp(20px, 3vw, 30px);
}

.triage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.triage-heading h2,
.triage-result h3 {
  margin: 0;
  line-height: 1.2;
}

.triage-heading h2 {
  max-width: 680px;
  font-size: clamp(22px, 3vw, 32px);
}

.triage-kicker,
.triage-result-label {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.triage-status {
  flex: none;
  color: var(--gold);
  font-size: 13px;
}

.triage-controls {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.triage-controls fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.triage-controls legend,
.triage-time > span {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.triage-controls label {
  color: var(--muted);
  cursor: pointer;
}

.triage-controls input[type="radio"] {
  margin-right: 8px;
  accent-color: #8fc7ff;
}

.triage-time {
  display: flex;
  flex-direction: column;
}

.triage-time input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #0b101a;
  font: inherit;
}

.triage-time small {
  margin-top: 9px;
  color: var(--subtle);
  line-height: 1.5;
}

.triage-result {
  background: rgba(0, 0, 0, 0.18);
}

.triage-meter {
  width: 100%;
  height: 5px;
  margin-bottom: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.triage-meter span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #f4d38b, #8fc7ff);
  transition: width 220ms ease;
}

.triage-result h3 {
  font-size: clamp(20px, 2.5vw, 28px);
}

.triage-result > p:not(.triage-result-label) {
  max-width: 760px;
  color: var(--muted);
}

.triage-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.triage-facts span {
  min-height: 62px;
  padding: 14px;
  color: var(--muted);
  background: #0b101a;
  font-size: 13px;
}

.triage-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(143, 199, 255, 0.42);
  border-radius: 6px;
  padding: 9px 14px;
  color: #06101e;
  background: #a9d3ff;
  font-weight: 700;
  text-decoration: none;
}

.seo-lab {
  overflow: hidden;
}

.seo-lab-heading,
.solar-lab-controls,
.solar-lab-result,
.zi-lab-controls,
.zi-lab-result {
  padding: clamp(20px, 3vw, 30px);
}

.seo-lab-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.seo-lab-heading h2,
.seo-lab h3 {
  margin: 0;
  line-height: 1.2;
}

.seo-lab-heading h2 {
  max-width: 720px;
  font-size: clamp(22px, 3vw, 32px);
}

.seo-lab-heading > span {
  flex: none;
  color: var(--gold);
  font-size: 13px;
}

.seo-lab-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.solar-lab-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.solar-lab-controls {
  border-right: 1px solid var(--line);
}

.solar-lab-controls label,
.zi-lab-controls label {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.solar-lab-controls input[type="time"],
.zi-lab-controls input[type="time"] {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #0b101a;
  font: inherit;
}

.solar-lab-controls input[type="range"] {
  width: 100%;
  accent-color: #8fc7ff;
}

.solar-lab-controls output,
.solar-lab-controls > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.solar-clock-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.solar-clock-row div {
  border: 1px solid var(--line);
  padding: 18px;
  background: #0b101a;
}

.solar-clock-row span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  text-transform: uppercase;
}

.solar-clock-row strong {
  display: block;
  margin-top: 7px;
  font-size: 27px;
}

.solar-route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
  border: 1px solid var(--line);
}

.solar-route span {
  position: relative;
  padding: 12px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.solar-route span + span {
  border-left: 1px solid var(--line);
}

.seo-lab-result > p:not(.seo-lab-kicker),
.zi-lab-result > p:not(.seo-lab-kicker) {
  color: var(--muted);
}

.seo-lab-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.seo-lab-facts span {
  min-height: 58px;
  padding: 13px;
  color: var(--muted);
  background: #0b101a;
  font-size: 13px;
}

.seo-lab-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(143, 199, 255, 0.42);
  border-radius: 6px;
  padding: 9px 14px;
  color: #06101e;
  background: #a9d3ff;
  font-weight: 700;
  text-decoration: none;
}

.zi-lab-controls {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1.5fr);
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.zi-rule-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: center;
}

.zi-rule-choice button {
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 10px;
  color: var(--muted);
  background: #0b101a;
  font: inherit;
  cursor: pointer;
}

.zi-rule-choice button + button {
  border-left: 0;
}

.zi-rule-choice button[aria-pressed="true"] {
  border-color: rgba(244, 211, 139, 0.62);
  color: #ffe2a3;
  background: rgba(244, 211, 139, 0.09);
}

.zi-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 24px 30px 34px;
  border-bottom: 1px solid var(--line);
}

.zi-timeline::before {
  position: absolute;
  right: 30px;
  bottom: 20px;
  left: 30px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #8fc7ff, #f4d38b, #8fc7ff);
}

.zi-timeline span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.zi-timeline i {
  position: absolute;
  bottom: 14px;
  width: 14px;
  height: 14px;
  border: 3px solid #0b101a;
  border-radius: 50%;
  background: #f4d38b;
  transform: translateX(-50%);
  transition: left 180ms ease;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 18px 0 28px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child th,
.data-table tr:last-child td { border-bottom: 0; }

.data-table th {
  width: 32%;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 650;
  background: rgba(255, 255, 255, 0.035);
}

.data-table td { color: var(--muted); }

.chart-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.pillar-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.pillar-box span {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-box strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: 0.08em;
}

/* Public feedback / partnership inbox */
.contact-form-card > p {
  max-width: 700px;
  margin-bottom: 26px;
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 650;
}

.contact-field small {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 400;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  color: var(--text);
  outline: none;
  background: rgba(4, 7, 13, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font: inherit;
  line-height: 1.5;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.contact-field textarea {
  min-height: 142px;
  resize: vertical;
}

.contact-field select {
  cursor: pointer;
}

.contact-field select option {
  color: #f4f7fb;
  background: #10151f;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(143, 199, 255, 0.72);
  background: rgba(12, 19, 31, 0.86);
  box-shadow: 0 0 0 3px rgba(143, 199, 255, 0.11);
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-context-note {
  margin: 0;
  border: 1px solid rgba(143, 199, 255, 0.16);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--subtle);
  background: rgba(143, 199, 255, 0.045);
  font-size: 12px;
  line-height: 1.7;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}

.contact-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: #8fc7ff;
}

.contact-consent a {
  color: #b8dcff;
  text-underline-offset: 3px;
}

.contact-form-status {
  margin: 0;
  border: 1px solid rgba(143, 199, 255, 0.2);
  border-radius: 14px;
  padding: 11px 13px;
  color: rgba(218, 237, 255, 0.9);
  background: rgba(143, 199, 255, 0.07);
  font-size: 13px;
}

.contact-form-status.is-error {
  border-color: rgba(255, 139, 139, 0.28);
  color: rgba(255, 203, 203, 0.95);
  background: rgba(255, 110, 110, 0.08);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: fit-content;
  border: 1px solid rgba(143, 199, 255, 0.42);
  border-radius: 14px;
  padding: 10px 16px;
  color: #08111d;
  background: linear-gradient(135deg, #d7ecff, #83bcff);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

.contact-submit:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.contact-submit:focus-visible {
  outline: 3px solid rgba(143, 199, 255, 0.45);
  outline-offset: 3px;
}

.contact-submit:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.contact-success {
  border: 1px solid rgba(114, 227, 174, 0.2);
  border-radius: 18px;
  padding: 24px;
  color: var(--muted);
  background: rgba(84, 202, 147, 0.055);
}

.contact-success h3 {
  margin: 0 0 8px;
  color: rgba(223, 255, 238, 0.96);
}

.contact-success p {
  margin: 0 0 18px;
}

footer {
  margin-top: 44px;
  color: var(--subtle);
  font-size: 13px;
}

@media (max-width: 780px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 28px;
  }

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

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

  .chart-pillars { grid-template-columns: 1fr 1fr; }

  .process-flow,
  .city-compare,
  .decision-matrix,
  .boundary-track,
  .triage-controls,
  .triage-facts,
  .solar-lab-grid,
  .seo-lab-facts,
  .zi-lab-controls,
  .zi-rule-choice {
    grid-template-columns: 1fr;
  }

  .triage-heading,
  .seo-lab-heading { flex-direction: column; }

  .solar-lab-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .solar-route {
    grid-template-columns: 1fr 1fr;
  }

  .zi-rule-choice button + button {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .zi-timeline {
    padding-right: 16px;
    padding-left: 16px;
  }

  .zi-timeline::before {
    right: 16px;
    left: 16px;
  }

  .process-step,
  .city-compare article,
  .decision-matrix div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child,
  .city-compare article:last-child,
  .decision-matrix div:last-child {
    border-bottom: 0;
  }

  .boundary-track::before { display: none; }
}
