:root {
  --paper: #f5efe2;
  --panel: rgba(255, 252, 245, 0.9);
  --ink: #241d16;
  --muted: #6d6357;
  --line: rgba(68, 55, 35, 0.18);
  --forest: #405c3a;
  --teal: #2e6f73;
  --gold: #ba8435;
  --plum: #5a4a62;
  --blue: #314f73;
  --shadow: rgba(44, 34, 22, 0.16);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(245, 239, 226, 0.72), rgba(245, 239, 226, 0.98)),
    radial-gradient(circle at 15% 18%, rgba(46, 111, 115, 0.2), transparent 25rem),
    radial-gradient(circle at 82% 8%, rgba(186, 132, 53, 0.2), transparent 22rem),
    linear-gradient(135deg, #d8dac8 0%, #f7f2e8 48%, #d5e1dd 100%);
}

button,
input {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

.landing-shell {
  min-height: 100vh;
}

.landing-hero {
  min-height: 62vh;
  padding: 22px clamp(18px, 4vw, 64px) 44px;
}

.portal-nav {
  width: min(1180px, 100%);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 auto 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.78);
  padding: 8px;
  box-shadow: 0 18px 42px var(--shadow);
  backdrop-filter: blur(16px);
}

.portal-brand,
.portal-nav div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.portal-brand,
.portal-nav a {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  text-decoration: none;
  font-weight: 850;
}

.portal-brand {
  flex-wrap: wrap;
}

.portal-brand span {
  color: var(--forest);
}

.portal-brand strong {
  color: var(--ink);
}

.portal-nav div a {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.7);
}

.hero-grid {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  margin: 0 auto;
}

.eyebrow,
.card-kicker,
.science-section span,
.signal-card span {
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.65rem, 6.2vw, 5.8rem);
  line-height: 0.94;
}

.hero-copy p {
  max-width: 740px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.55;
}

.science-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.science-strip span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.72);
  padding: 9px 12px;
  color: var(--teal);
  font-weight: 850;
}

.science-visual {
  display: grid;
  gap: 12px;
}

.orbital-field {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(46, 111, 115, 0.18), rgba(186, 132, 53, 0.16)),
    repeating-linear-gradient(90deg, rgba(64, 92, 58, 0.1) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(49, 79, 115, 0.08) 0 1px, transparent 1px 40px),
    #fbf8ef;
  box-shadow: 0 28px 70px var(--shadow);
}

.orbital-field img {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: min(62%, 310px);
  max-height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(36, 29, 22, 0.28));
}

.orbital-field::before,
.orbital-field::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(46, 111, 115, 0.28);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.orbital-field::before {
  inset: 58px 36px 88px 34px;
}

.orbital-field::after {
  inset: 92px 82px 132px 28px;
  border-color: rgba(186, 132, 53, 0.38);
}

.helix {
  position: absolute;
  left: 32px;
  top: 64px;
  width: 160px;
  height: 280px;
}

.helix span {
  position: absolute;
  left: 0;
  width: 150px;
  height: 28px;
  border-top: 3px solid rgba(46, 111, 115, 0.7);
  border-bottom: 3px solid rgba(186, 132, 53, 0.62);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.helix span:nth-child(1) { top: 0; }
.helix span:nth-child(2) { top: 46px; }
.helix span:nth-child(3) { top: 92px; }
.helix span:nth-child(4) { top: 138px; }
.helix span:nth-child(5) { top: 184px; }
.helix span:nth-child(6) { top: 230px; }

.signal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.88);
  padding: 18px;
  box-shadow: 0 18px 42px var(--shadow);
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  color: var(--teal);
  font-size: 1.25rem;
}

.access-section,
.science-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 24px;
}

.access-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.9);
  box-shadow: 0 26px 70px var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.access-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.access-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.95;
}

.access-heading p,
.access-card p,
.science-section p,
.form-message {
  color: var(--muted);
  line-height: 1.5;
}

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

.access-card {
  min-height: 360px;
  display: grid;
  align-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  padding: clamp(20px, 3vw, 32px);
}

.private-card {
  border-color: rgba(46, 111, 115, 0.28);
  background:
    linear-gradient(135deg, rgba(46, 111, 115, 0.11), rgba(255, 250, 240, 0.8)),
    #fffaf0;
}

.demo-card {
  border-color: rgba(186, 132, 53, 0.32);
  background:
    linear-gradient(135deg, rgba(186, 132, 53, 0.12), rgba(255, 250, 240, 0.82)),
    #fffaf0;
}

.access-card h3 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
}

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

.portal-login-form label {
  color: var(--ink);
  font-weight: 850;
}

.password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.password-row input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(46, 111, 115, 0.3);
  border-radius: 8px;
  background: white;
  padding: 0 13px;
}

.portal-login-form > input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(46, 111, 115, 0.3);
  border-radius: 8px;
  background: white;
  padding: 0 13px;
  color: var(--ink);
  font: inherit;
}

.password-row button,
.demo-link,
.access-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.demo-link {
  width: fit-content;
  background: var(--teal);
}

.access-link {
  width: fit-content;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-size: 0.92rem;
}

.form-message.is-error {
  color: #9a3f28;
}

.form-message.is-success {
  color: var(--forest);
  font-weight: 800;
}

.science-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 34px;
}

.section-heading {
  grid-column: 1 / -1;
  max-width: 860px;
  margin: 0 auto 10px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: 0.98;
}

.section-heading p:last-child {
  max-width: 740px;
  margin: 16px auto 0;
}

.science-section article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.82);
  padding: clamp(22px, 3vw, 32px);
}

.science-section h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1;
}

.subject-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.measurement-card {
  background:
    linear-gradient(135deg, rgba(46, 111, 115, 0.12), rgba(255, 250, 240, 0.82)),
    #fffaf0;
}

.management-card {
  background:
    linear-gradient(135deg, rgba(186, 132, 53, 0.13), rgba(255, 250, 240, 0.84)),
    #fffaf0;
}

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

.subject-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.74);
  padding: 14px;
}

.subject-list strong,
.subject-list small {
  display: block;
}

.subject-list strong {
  color: var(--forest);
  font-size: 1rem;
}

.subject-list small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

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

.secure-access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(245, 239, 226, 0.74), rgba(245, 239, 226, 0.96)),
    radial-gradient(circle at 20% 16%, rgba(46, 111, 115, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 20%, rgba(186, 132, 53, 0.16), transparent 24rem),
    #f5efe2;
}

.access-panel {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.94);
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 26px 70px var(--shadow);
}

.access-brand {
  width: fit-content;
  margin: 0 0 26px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.82);
}

.access-panel h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.92;
}

.access-copy {
  margin: 18px 0 24px;
  color: var(--muted);
  line-height: 1.5;
}

.back-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-weight: 850;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

@media (max-width: 900px) {
  .portal-nav,
  .hero-grid,
  .access-grid,
  .science-section {
    grid-template-columns: 1fr;
  }

  .portal-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .orbital-field {
    min-height: 360px;
  }

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

@media (max-width: 560px) {
  .landing-hero {
    padding-inline: 14px;
  }

  .hero-copy h1 {
    font-size: 2.65rem;
  }

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

  .password-row button,
  .demo-link,
  .access-link {
    width: 100%;
  }

  .orbital-field img {
    width: 70%;
    right: -18px;
  }
}
