:root {
  --bg: #060814;
  --bg-2: #11101d;
  --panel: rgba(10, 12, 28, 0.68);
  --panel-strong: rgba(13, 15, 32, 0.94);
  --line: rgba(233, 200, 134, 0.22);
  --gold: #e9c886;
  --gold-2: #b99655;
  --rose: #d09ab2;
  --blue: #8ea9d8;
  --mint: #9dd6c8;
  --text: #f6eedf;
  --muted: #b8aec3;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-ui: "Manrope", system-ui, sans-serif;
  --font-display: "Marcellus", "Times New Roman", serif;
  --font-prose: "Lora", Georgia, serif;
  --hero-fade: 0;
  --hero-base-visible: 1;
  --hero-visible: 1;
  --hero-shift: 0px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(4, 6, 16, 0.08), rgba(4, 6, 16, 0.28)),
    url("/assets/astro-lab-section-bg.png") center top / cover fixed no-repeat,
    var(--bg);
  font-family: var(--font-ui);
}

.topbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 40px));
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 30px 0;
  background: transparent;
  border-bottom: 0;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 20px;
  background: rgba(233, 200, 134, 0.06);
  box-shadow: 0 0 32px rgba(233, 200, 134, 0.18);
}

.brand strong,
h1,
h2 {
  font-family: var(--font-display);
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.brand span,
.muted {
  color: var(--muted);
}

main {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
}

main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 20, 0.72), rgba(6, 8, 20, 0.14) 36%, rgba(6, 8, 20, 0.34) 100%);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 110px max(20px, calc((100vw - 1180px) / 2)) 120px;
  background: transparent;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -6vh 0 0;
  z-index: -3;
  opacity: var(--hero-base-visible);
  transform: translateY(var(--hero-shift));
  transform-origin: center top;
  background:
    linear-gradient(90deg, rgba(4, 6, 16, 0.98) 0%, rgba(4, 6, 16, 0.82) 31%, rgba(4, 6, 16, 0.22) 58%, rgba(4, 6, 16, 0) 100%),
    linear-gradient(180deg, rgba(4, 6, 16, 0.06) 0%, rgba(4, 6, 16, 0.5) 100%),
    url("/assets/astro-lab-hero-clear.png") center right / cover no-repeat;
  will-change: opacity, transform;
}

.hero-auth-bg {
  position: absolute;
  inset: -6vh 0 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(var(--hero-shift));
  transform-origin: center top;
  background:
    linear-gradient(90deg, rgba(4, 6, 16, 0.98) 0%, rgba(4, 6, 16, 0.82) 31%, rgba(4, 6, 16, 0.22) 58%, rgba(4, 6, 16, 0) 100%),
    linear-gradient(180deg, rgba(4, 6, 16, 0.06) 0%, rgba(4, 6, 16, 0.5) 100%),
    url("/assets/astro-lab-hero-logged.png") center right / cover no-repeat;
  transition: opacity 1s ease;
  will-change: opacity, transform;
}

body.user-logged-in .hero-auth-bg {
  opacity: var(--hero-visible);
}

html.user-has-token .hero-auth-bg {
  opacity: var(--hero-visible);
}

body.user-logged-in .hero::before {
  opacity: 0;
  transition: opacity 1s ease;
}

html.user-has-token .hero::before {
  opacity: 0;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: calc(1 - (var(--hero-fade) * 0.45));
  background:
    radial-gradient(circle at 28% 54%, rgba(193, 141, 70, 0.18), transparent 30%),
    radial-gradient(circle at 83% 18%, rgba(129, 77, 181, 0.22), transparent 24%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34vh;
  z-index: 0;
  pointer-events: none;
  opacity: calc(0.1 + (var(--hero-fade) * 0.9));
  background:
    linear-gradient(180deg, rgba(6, 8, 20, 0), rgba(6, 8, 20, 0.2) 30%, rgba(6, 8, 20, 0.78) 100%),
    url("/assets/astro-lab-section-bg.png") center top / cover fixed no-repeat;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  transform: translateY(-4vh);
}

.natus-hero {
  position: relative;
  z-index: 1;
  display: none;
  width: min(860px, 100%);
  transform: translateY(-3vh);
}

html.user-has-token .hero-copy,
body.user-logged-in .hero-copy {
  display: none;
}

html.user-has-token .natus-hero,
body.user-logged-in .natus-hero {
  display: block;
}

.natus-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: clamp(18px, 3vw, 34px) 0;
}

.natus-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.natus-main h1 {
  max-width: 760px;
  color: var(--gold);
  font-size: clamp(50px, 5.4vw, 84px);
  font-weight: 400;
  line-height: 0.94;
  text-shadow: 0 0 42px rgba(233, 200, 134, 0.24);
}

.natus-birth {
  margin: 20px 0 0;
  color: #eadcca;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
}

.natus-sign-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.zodiac-orb {
  width: clamp(96px, 9vw, 124px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(233, 200, 134, 0.58);
  border-radius: 50%;
  color: #ffe5aa;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 244, 202, 0.42), transparent 19%),
    radial-gradient(circle at 50% 50%, rgba(233, 200, 134, 0.2), transparent 52%),
    conic-gradient(from 18deg, rgba(233, 200, 134, 0.16), rgba(142, 169, 216, 0.22), rgba(208, 154, 178, 0.2), rgba(233, 200, 134, 0.16));
  box-shadow: 0 0 48px rgba(233, 200, 134, 0.22), inset 0 0 38px rgba(0, 0, 0, 0.32);
  font-family: var(--font-display);
  font-size: clamp(58px, 6vw, 82px);
  font-weight: 300;
  line-height: 1;
}

.natus-sign-row span,
.natus-details span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.natus-sign-row strong {
  display: block;
  margin-top: 7px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.02;
}

.natus-details {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
}

.natus-details div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.natus-details .natus-id-card {
  width: fit-content;
  max-width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(233, 200, 134, 0.34);
  border-radius: 8px;
  background: rgba(9, 9, 22, 0.38);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.natus-details strong {
  display: block;
  margin-top: 8px;
  color: #f5ead7;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.natus-scroll-cta {
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 7vh, 78px);
  z-index: 2;
  display: none;
  min-width: 0;
  min-height: 46px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  color: #11101b;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe4aa, #c49444);
  box-shadow: 0 18px 46px rgba(196, 148, 68, 0.28);
  animation: ctaButtonGlow 2.4s ease-in-out infinite;
}

body.user-logged-in .natus-scroll-cta,
html.user-has-token .natus-scroll-cta {
  display: inline-flex;
}

.natus-scroll-cta span {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.natus-scroll-cta:hover {
  animation-play-state: paused;
  box-shadow: 0 18px 56px rgba(233, 200, 134, 0.38);
}

@keyframes ctaButtonGlow {
  0%,
  100% {
    box-shadow: 0 18px 46px rgba(196, 148, 68, 0.24);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 18px 64px rgba(233, 200, 134, 0.44);
    filter: brightness(1.08);
  }
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 4.8vw, 74px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  color: var(--gold);
}

.lead {
  max-width: 660px;
  color: #ded2c9;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.75;
}

.tab,
button,
select,
input {
  font: inherit;
}

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

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.hero-btn-primary {
  color: #11101b;
  background: linear-gradient(135deg, #ffe4aa, #c49444);
  box-shadow: 0 18px 46px rgba(196, 148, 68, 0.28);
}

.hero-btn-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-grid {
  width: min(1680px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 22px;
  padding: 54px 0 42vh;
  scroll-margin-top: 76px;
}

.auth-heading {
  grid-column: 1 / -1;
  max-width: none;
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  white-space: nowrap;
  text-shadow: 0 0 42px rgba(233, 200, 134, 0.2);
}

.form-panel,
.profile-panel,
.controls {
  padding: 24px;
}

.panel-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}

.panel-title span {
  color: var(--gold);
  font-weight: 700;
}

.panel-title h2,
.action-row h2 {
  margin: 0;
  font-size: 34px;
}

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

label {
  display: grid;
  gap: 8px;
  color: #d9cfdf;
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(232, 200, 121, 0.24);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(5, 6, 14, 0.62);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 200, 121, 0.12);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  color: #171119;
  background: linear-gradient(135deg, var(--gold), #d6a966);
}

.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.full {
  width: 100%;
}

.form-panel button {
  margin-top: 20px;
}

.compact {
  align-self: start;
}

.compact label + label {
  margin-top: 14px;
}

.hidden {
  display: none !important;
}

.workspace {
  width: min(1680px, calc(100% - 40px));
  min-height: calc(100vh + 180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 24px;
  overflow-anchor: none;
  padding: 10px 0 70px;
}

.profile-panel {
  position: sticky;
  top: 26px;
  align-self: start;
}

.id-box {
  padding: 16px;
  border: 1px solid rgba(232, 200, 121, 0.24);
  border-radius: 8px;
  background: rgba(232, 200, 121, 0.08);
}

.id-box small {
  display: block;
  color: var(--muted);
}

.id-box strong {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 22px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

dt {
  color: var(--muted);
  font-size: 12px;
}

dd {
  margin: 2px 0 0;
}

.lab {
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.tab {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.tab.active {
  color: #171119;
  background: var(--gold);
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

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

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

.chart-frame {
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  box-shadow: var(--shadow);
  position: relative;
}

.chart-frame.chart-ready {
  animation: chartReveal 760ms ease both;
}

@keyframes chartReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.chart-frame::before {
  display: none;
}

.chart-frame svg {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.52)) saturate(1.08);
  mix-blend-mode: screen;
}

.natal-chart-frame {
  min-height: 760px;
  padding: 0;
}

.natal-chart-frame svg {
  width: 100%;
}

.compat-results .chart-frame svg {
  width: 100%;
}

.chart-frame span,
.text-output span {
  color: var(--muted);
}

.text-output {
  min-height: 620px;
  overflow: visible;
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: #eee6dc;
  font-family: var(--font-prose);
  font-size: 19px;
  line-height: 1.78;
  white-space: pre-wrap;
}

.generated-section-heading {
  margin: 24px 0 12px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 400;
  line-height: 1.12;
  text-shadow: 0 0 28px rgba(233, 200, 134, 0.16);
  white-space: normal;
}

.generated-section-heading:first-child {
  margin-top: 0;
}

.text-output.wide {
  min-height: 620px;
}

.controls {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.forecast-date-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 5;
  width: min(520px, 100%);
  padding: 18px;
  border: 1px solid rgba(233, 200, 134, 0.34);
  border-radius: 8px;
  background: rgba(18, 16, 28, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 0 34px rgba(233, 200, 134, 0.12);
  backdrop-filter: blur(18px);
}

.date-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--gold);
}

.date-popover-head strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.date-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.forecast-picker {
  display: none;
}

.forecast-date-popover[data-mode="daily"] .forecast-picker-day,
.forecast-date-popover[data-mode="weekly"] .forecast-picker-week,
.forecast-date-popover[data-mode="monthly"] .forecast-picker-month,
.forecast-date-popover[data-mode="yearly"] .forecast-picker-year {
  display: block;
}

.date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.forecast-date-popover:not([data-mode="custom"]) .date-range-grid,
.forecast-date-popover:not([data-mode="custom"]) .date-presets {
  display: none;
}

.date-preset {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--gold);
  border-color: rgba(233, 200, 134, 0.28);
  background: rgba(233, 200, 134, 0.07);
}

.forecast-title {
  margin: 8px 0 16px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.5vw, 40px);
  font-weight: 400;
  line-height: 1.12;
}

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

.compat-layout .form-panel {
  display: grid;
  gap: 18px;
}

.compat-entry {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) 28px minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
}

.compat-id-column,
.compat-manual-column {
  min-width: 0;
}

.compat-id-column {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, auto));
  align-content: start;
  gap: 14px;
}

.compat-divider {
  width: 1px;
  min-height: 106px;
  justify-self: center;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(233, 200, 134, 0.25) 14%,
    rgba(233, 200, 134, 0.9) 50%,
    rgba(233, 200, 134, 0.25) 86%,
    transparent
  );
  box-shadow: 0 0 18px rgba(233, 200, 134, 0.32);
}

.compat-manual-column .form-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(190px, 0.92fr) minmax(170px, 0.82fr) auto;
  align-items: end;
  gap: 14px;
}

.compat-layout .form-panel button {
  align-self: end;
  min-height: 48px;
  white-space: nowrap;
  margin-top: 0;
}

.compat-results {
  display: grid;
  gap: 18px;
}

.splitter {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: 520px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161424;
  box-shadow: var(--shadow);
}

.loading {
  opacity: 0.66;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .auth-grid,
  .workspace,
  .result-grid,
  .compat-layout,
  .natus-shell {
    grid-template-columns: 1fr;
  }

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

  .compat-divider {
    width: 100%;
    min-height: 1px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(233, 200, 134, 0.9), transparent);
  }

  .compat-manual-column .form-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    position: static;
  }

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

  .forecast-date-popover {
    left: 0;
    right: 0;
    width: auto;
  }
}

@media (max-height: 950px) and (min-width: 900px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .natus-main h1 {
    font-size: clamp(46px, 5vw, 76px);
  }

  .natus-birth {
    margin-top: 14px;
    font-size: clamp(19px, 1.7vw, 24px);
  }

  .natus-sign-row {
    gap: 18px;
    margin-top: 24px;
  }

  .zodiac-orb {
    width: clamp(88px, 8vw, 112px);
    font-size: clamp(52px, 5vw, 72px);
  }

  .natus-details {
    gap: 14px;
  }

  .natus-scroll-cta {
    bottom: clamp(24px, 4.5vh, 46px);
    min-height: 44px;
    padding: 0 20px;
  }

  .natus-scroll-cta span {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(42px, 4.4vw, 68px);
  }
}

@media (max-width: 1920px) and (max-height: 1100px) and (min-width: 900px) {
  .topbar {
    width: min(1180px, calc(100% - 56px));
    padding-top: 24px;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 90px;
  }

  .hero-copy,
  .natus-hero {
    transform: translateY(-5vh);
  }

  h1 {
    font-size: clamp(40px, 4vw, 62px);
  }

  .lead {
    font-size: 16px;
    line-height: 1.62;
  }

  .natus-shell {
    gap: 18px;
    padding: 14px 0;
  }

  .natus-main h1 {
    font-size: clamp(44px, 4.4vw, 68px);
  }

  .natus-birth {
    margin-top: 12px;
    font-size: clamp(18px, 1.5vw, 22px);
  }

  .natus-sign-row {
    gap: 16px;
    margin-top: 20px;
  }

  .zodiac-orb {
    width: clamp(82px, 7vw, 100px);
    font-size: clamp(48px, 4.4vw, 64px);
  }

  .natus-sign-row strong {
    font-size: clamp(30px, 3vw, 42px);
  }

  .natus-details {
    gap: 12px;
  }

  .natus-details .natus-id-card {
    padding: 13px 17px;
  }

  .natus-details strong {
    font-size: 19px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    left: auto;
    transform: none;
    width: min(100% - 24px, 1680px);
    padding: 18px 0;
  }

  .hero {
    min-height: auto;
    padding: 44px 12px 86px;
    background: transparent;
  }

  .hero-copy {
    transform: translateY(-16px);
  }

  .natus-hero {
    transform: translateY(-8px);
  }

  .natus-shell {
    padding: 22px;
  }

  .natus-sign-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-heading {
    font-size: clamp(24px, 8vw, 34px);
    white-space: normal;
  }

  .natus-scroll-cta {
    bottom: 24px;
    min-height: 48px;
    padding: 0 24px;
  }

  .natus-scroll-cta span {
    font-size: 16px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(4, 6, 16, 0.97) 0%, rgba(4, 6, 16, 0.9) 42%, rgba(4, 6, 16, 0.24) 74%, rgba(4, 6, 16, 0.08) 100%),
      linear-gradient(180deg, rgba(4, 6, 16, 0.26) 0%, rgba(4, 6, 16, 0.12) 52%, rgba(4, 6, 16, 0.82) 100%),
      url("/assets/astro-lab-hero-clear.png") 70% center / cover no-repeat;
  }

  .hero-auth-bg {
    background:
      linear-gradient(90deg, rgba(4, 6, 16, 0.97) 0%, rgba(4, 6, 16, 0.9) 42%, rgba(4, 6, 16, 0.24) 74%, rgba(4, 6, 16, 0.08) 100%),
      linear-gradient(180deg, rgba(4, 6, 16, 0.26) 0%, rgba(4, 6, 16, 0.12) 52%, rgba(4, 6, 16, 0.82) 100%),
      url("/assets/astro-lab-hero-logged.png") 70% center / cover no-repeat;
  }

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

  .chart-frame,
  .text-output {
    min-height: 460px;
  }
}
