:root {
  color-scheme: light;
  --ink: #2d281b;
  --muted: #6e685b;
  --yellow: #f6cf13;
  --yellow-soft: #fff4ad;
  --paper: #f9f7ef;
  --paper-strong: #fffdf6;
  --line: rgba(45, 40, 27, 0.15);
  --dark: #28251c;
  --dark-soft: #373329;
  --white: #fffdf6;
  --green: #3a8062;
  --red: #ba4d3f;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--dark);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.landing-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 5vw, 76px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-brand img {
  width: 42px;
  height: 36px;
  border: 1px solid rgba(45, 40, 27, 0.18);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(50, 42, 19, 0.1);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms ease;
}

.site-brand:hover img,
.site-brand:focus-visible img {
  box-shadow: 0 10px 22px rgba(50, 42, 19, 0.16);
  transform: rotate(-4deg) translateY(-2px);
}

.primary-link {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 19px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(45, 40, 27, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-link::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  bottom: -80%;
  left: -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  transform: translateX(-240%) rotate(18deg);
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.primary-link:hover,
.primary-link:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 12px 24px rgba(45, 40, 27, 0.16);
  transform: translateY(-2px);
  outline: 0;
}

.primary-link:hover::after,
.primary-link:focus-visible::after {
  transform: translateX(620%) rotate(18deg);
}

.primary-link.large {
  min-height: 52px;
  padding: 13px 23px;
  border-radius: 12px;
  font-size: 15px;
}

.story-screen {
  --pointer-x: 50%;
  --pointer-y: 35%;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(112px, 13vh, 148px) clamp(24px, 5vw, 76px) clamp(72px, 9vh, 104px);
  border-bottom: 1px solid var(--line);
}

.story-screen::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--pointer-x) var(--pointer-y), rgba(246, 207, 19, 0.2), rgba(246, 207, 19, 0.06) 38%, transparent 72%);
  opacity: 0;
  transition: opacity 360ms ease;
}

.story-screen.pointer-active::after {
  opacity: 1;
}

.story-grid {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  min-height: calc(100svh - clamp(184px, 22vh, 252px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(520px, 1.06fr);
  align-items: center;
  gap: clamp(44px, 6vw, 96px);
}

.hero-screen {
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 79% 24%, rgba(246, 207, 19, 0.24), transparent 27%),
    linear-gradient(135deg, #faf8f0 0%, #f7f4e9 56%, #fff7c9 100%);
}

.ambient-shape {
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(45, 40, 27, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  right: -120px;
  bottom: -180px;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.17), 0 0 0 140px rgba(255, 255, 255, 0.1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #756a45;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--yellow);
}

.hero-copy h1 {
  max-width: 710px;
  margin: 0;
  font-size: clamp(48px, 5.6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.text-link {
  padding: 9px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link span {
  display: inline-block;
  transition: transform 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: #8b6f00;
  border-color: var(--yellow);
  outline: 0;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(3px, 3px);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  max-width: 580px;
  margin: 50px 0 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.value-list li:hover {
  border-color: rgba(45, 40, 27, 0.34);
  transform: translateX(4px);
}

.value-list span {
  color: #988118;
  font-size: 10px;
  font-weight: 800;
}

.value-list strong {
  font-weight: 700;
}

.story-visual svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.hero-visual {
  --hero-rotate-x: 0deg;
  --hero-rotate-y: 0deg;
  width: min(720px, 100%);
  justify-self: end;
  transform: perspective(1100px) rotateX(var(--hero-rotate-x)) rotateY(var(--hero-rotate-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
}

.hero-visual:hover .svg-flow-line {
  animation: flow-dash 950ms linear infinite;
}

@keyframes flow-dash {
  to {
    stroke-dashoffset: -24;
  }
}

.svg-flow-line {
  fill: none;
  stroke: rgba(45, 40, 27, 0.24);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}

.svg-icon-stroke,
.svg-action-card,
.svg-check {
  fill: none;
  stroke: #2d281b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-small-label {
  fill: #5e5748;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.svg-package-label {
  fill: #6d6550;
  font-family: "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.svg-action-card {
  stroke-width: 3;
}

.svg-action-card circle {
  fill: var(--yellow);
  stroke: none;
}

.svg-check {
  stroke: var(--green);
  stroke-width: 3;
}

.svg-check circle {
  fill: #e6f2ea;
}

.screen-index {
  position: absolute;
  z-index: 5;
  right: clamp(24px, 5vw, 76px);
  bottom: 28px;
  display: grid;
  grid-template-columns: auto 64px auto;
  align-items: center;
  gap: 10px;
  color: #7c7462;
  font-size: 10px;
  font-weight: 800;
}

.screen-index i {
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease;
}

a.screen-index:hover i,
a.screen-index:focus-visible i {
  transform: scaleX(1.2);
}

.story-head {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 0 auto clamp(50px, 7vh, 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: clamp(40px, 9vw, 150px);
}

.story-head h2 {
  margin: 0;
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.story-head > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.materials-screen {
  background: #fffdf7;
}

.materials-layout {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(24px, 3vw, 46px);
}

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

.material-card {
  position: relative;
  min-height: 216px;
  padding: 26px 23px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfaf4;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.material-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.material-card:hover,
.material-card:focus-within {
  z-index: 1;
  border-color: rgba(45, 40, 27, 0.28);
  box-shadow: 0 20px 32px rgba(45, 40, 27, 0.08);
  transform: translateY(-5px);
}

.material-card:hover::before,
.material-card:focus-within::before {
  transform: scaleX(1);
}

.card-number {
  display: block;
  margin-bottom: 38px;
  color: #9f8a2d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.material-card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.material-card p {
  min-height: 48px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.material-card small {
  display: block;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: #877f6f;
  font-size: 10px;
  line-height: 1.5;
}

.material-card:nth-child(3) {
  color: #2d281b;
  background: var(--yellow-soft);
}

.coverage-panel {
  display: flex;
  min-height: 446px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--white);
  background: var(--dark);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.coverage-panel:hover {
  box-shadow: 0 26px 44px rgba(45, 40, 27, 0.16);
  transform: translateY(-5px);
}

.coverage-panel:hover .coverage-visual {
  transform: scale(1.025) rotate(1deg);
}

.coverage-visual {
  width: min(240px, 80%);
  transition: transform 240ms ease;
}

.coverage-visual svg {
  display: block;
  width: 100%;
}

.coverage-number {
  fill: var(--white);
  font-size: 54px;
  font-weight: 800;
}

.coverage-caption {
  fill: #aaa394;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
}

.coverage-copy {
  width: 100%;
  margin-top: 8px;
}

.status-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.status-row strong {
  font-weight: 600;
}

.status-row em {
  color: #aaa394;
  font-style: normal;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.complete {
  background: #8bc7aa;
}

.status-dot.partial {
  background: var(--yellow);
}

.status-dot.missing {
  background: #766f61;
}

.file-note {
  width: 100%;
  margin-top: 25px;
  padding: 17px;
  border-radius: 14px;
  color: var(--ink);
  background: var(--yellow);
}

.file-note span,
.file-note small {
  display: block;
}

.file-note span {
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.file-note strong {
  font-size: 12px;
}

.file-note small {
  margin-top: 9px;
  font-size: 10px;
  line-height: 1.55;
}

.transformation-screen {
  color: var(--white);
  background:
    radial-gradient(circle at 10% 90%, rgba(246, 207, 19, 0.12), transparent 25%),
    var(--dark);
}

.transformation-screen::after {
  background: radial-gradient(400px circle at var(--pointer-x) var(--pointer-y), rgba(246, 207, 19, 0.16), rgba(246, 207, 19, 0.04) 42%, transparent 74%);
}

.transformation-screen .eyebrow {
  color: #bcb5a7;
}

.light-head > p {
  color: #bcb5a7;
}

.pipeline {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: clamp(60px, 10vh, 112px) auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 72px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.pipeline li {
  position: relative;
  min-height: 320px;
  padding: 0 clamp(16px, 2vw, 30px) 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.pipeline li:hover .pipeline-icon {
  border-color: rgba(246, 207, 19, 0.72);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.2), 0 0 0 7px rgba(246, 207, 19, 0.06);
  transform: translateY(-7px) rotate(-3deg);
}

.pipeline li:hover h3 {
  color: var(--yellow);
}

.pipeline li:last-child {
  border-right: 0;
}

.pipeline-number {
  display: inline-flex;
  margin-bottom: 27px;
  color: #8d8679;
  font-size: 11px;
  font-weight: 800;
}

.pipeline-icon {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--dark);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.pipeline-icon svg {
  width: 38px;
  fill: none;
  stroke: #f3eddd;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipeline h3 {
  margin: 0 0 14px;
  font-size: 18px;
  transition: color 180ms ease;
}

.pipeline p {
  margin: 0;
  color: #a9a295;
  font-size: 12px;
  line-height: 1.75;
}

.pipeline-highlight .pipeline-icon {
  border-color: var(--yellow);
  background: var(--yellow);
  box-shadow: 0 0 0 8px rgba(246, 207, 19, 0.08);
}

.pipeline-highlight .pipeline-icon svg {
  stroke: var(--ink);
}

.pipeline-highlight h3 {
  color: var(--yellow);
}

.admission-note {
  position: relative;
  z-index: 2;
  width: min(810px, 100%);
  margin: 25px auto 0;
  display: grid;
  grid-template-columns: auto 1fr 120px;
  align-items: center;
  gap: 25px;
  padding: 18px 22px;
  border: 1px solid rgba(246, 207, 19, 0.3);
  border-radius: 14px;
  background: rgba(246, 207, 19, 0.06);
}

.admission-note span {
  color: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}

.admission-note p {
  margin: 0;
  color: #bdb5a8;
  font-size: 11px;
  line-height: 1.65;
}

.admission-note svg {
  width: 100%;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.light-index {
  color: #aba497;
}

.orchestration-screen {
  background:
    linear-gradient(180deg, rgba(246, 207, 19, 0.08), transparent 28%),
    #f7f4ea;
}

.orchestration-flow {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.orchestration-flow::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 4%;
  right: 4%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(45, 40, 27, 0.24) 0 5px, transparent 5px 11px);
}

.flow-panel {
  min-height: 356px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 0 18px 30px rgba(45, 40, 27, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.flow-panel:hover {
  z-index: 2;
  border-color: rgba(45, 40, 27, 0.3);
  box-shadow: 0 26px 44px rgba(45, 40, 27, 0.11);
  transform: translateY(-6px);
}

.flow-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  color: #5e5749;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.flow-label span {
  color: #a78e20;
}

.runtime-stack {
  overflow: hidden;
  background: var(--dark);
}

.runtime-stack .flow-label {
  color: #ddd5c5;
}

.stack-card {
  position: relative;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #d1cabb;
  background: var(--dark-soft);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.13);
}

.stack-two {
  margin: -5px 7px 0;
}

.stack-three {
  margin: -5px 14px 0;
}

.package-pill {
  width: max-content;
  margin: 28px auto 0;
  padding: 11px 16px;
  border-radius: 99px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.selection-row {
  position: relative;
  margin-bottom: 13px;
  padding: 16px 38px 16px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8f5eb;
  transition: transform 180ms ease, background 180ms ease;
}

.selection-panel:hover .selection-row:nth-child(2) {
  transform: translateX(4px);
}

.selection-panel:hover .selection-row:nth-child(3) {
  transform: translateX(8px);
}

.selection-panel:hover .selection-row:nth-child(4) {
  transform: translateX(12px);
}

.selection-row small,
.selection-row strong {
  display: block;
}

.selection-row small {
  margin-bottom: 7px;
  color: #8a8273;
  font-size: 9px;
}

.selection-row strong {
  font-size: 12px;
}

.selection-row i {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 11px;
  font-style: normal;
  transform: translateY(-50%);
}

.prompt-panel-landing {
  background: #fff4b8;
}

.prompt-panel-landing ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prompt-panel-landing li {
  position: relative;
  padding: 13px 0 13px 20px;
  border-bottom: 1px solid rgba(45, 40, 27, 0.13);
  font-size: 12px;
  font-weight: 600;
}

.prompt-panel-landing li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--ink);
}

.actions-panel {
  border-color: rgba(45, 40, 27, 0.25);
}

.mini-action {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #faf8f0;
  transition: transform 180ms ease, border-color 180ms ease;
}

.actions-panel:hover .mini-action:nth-child(2) {
  transform: translateX(3px);
}

.actions-panel:hover .mini-action:nth-child(3) {
  transform: translateX(7px);
}

.actions-panel:hover .mini-action:nth-child(4) {
  transform: translateX(11px);
}

.mini-action span {
  padding: 5px 3px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 8px;
  font-weight: 800;
  text-align: center;
}

.mini-action p {
  margin: 2px 0 0;
  color: #665f51;
  font-size: 10px;
  line-height: 1.55;
}

.validation-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px;
  border-radius: 9px;
  color: #2c654d;
  background: #e6f1e9;
  font-size: 9px;
  font-weight: 800;
}

.validation-pill i {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-style: normal;
}

.usage-legend {
  position: relative;
  z-index: 2;
  width: min(1440px, 100%);
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.usage-legend div {
  padding: 15px 18px;
  border-left: 3px solid var(--yellow);
  background: rgba(255, 253, 246, 0.6);
}

.usage-legend span {
  font-size: 11px;
  font-weight: 800;
}

.usage-legend p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.closing-cta {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  margin: 38px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.closing-cta p {
  max-width: 820px;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 600;
  line-height: 1.65;
}

.static-index {
  pointer-events: none;
}

.landing-footer {
  min-height: 106px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(24px, 5vw, 76px);
  color: #a49c8c;
  background: var(--dark);
  font-size: 11px;
}

.small-brand {
  color: var(--white);
  font-size: 14px;
}

.small-brand img {
  width: 34px;
  height: 30px;
}

.footer-legal {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.footer-legal p {
  margin: 0;
  line-height: 1.55;
}

.footer-legal a {
  color: #d8d0c0;
  border-bottom: 1px solid rgba(216, 208, 192, 0.5);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--yellow);
  border-color: var(--yellow);
  outline: 0;
}

.landing-footer > a:last-child {
  justify-self: end;
  border-bottom: 1px solid currentColor;
}

/* Login */

.login-page {
  min-height: 100svh;
  background: #f2efe5;
}

.login-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
}

.login-intro {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  color: var(--white);
  background:
    radial-gradient(circle at 70% 80%, rgba(246, 207, 19, 0.13), transparent 30%),
    var(--dark);
}

.login-brand {
  position: relative;
  z-index: 2;
  width: max-content;
}

.login-intro-copy {
  position: relative;
  z-index: 2;
  width: min(690px, 100%);
  margin: auto 0;
  padding: 80px 0 180px;
}

.login-intro-copy .eyebrow {
  color: #aaa393;
}

.login-intro-copy h1 {
  margin: 0;
  font-size: clamp(44px, 5vw, 74px);
  letter-spacing: -0.06em;
  line-height: 1.06;
}

.login-intro-copy p {
  max-width: 600px;
  margin: 30px 0 0;
  color: #aaa393;
  font-size: 15px;
  line-height: 1.85;
}

.login-orbit {
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: min(600px, 70%);
  opacity: 0.56;
}

.login-orbit svg {
  width: 100%;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.3;
}

.login-orbit circle:nth-of-type(1) {
  fill: var(--yellow);
  fill-opacity: 0.08;
  stroke-width: 2;
}

.login-orbit circle:not(:first-of-type) {
  fill: var(--yellow);
}

.login-card {
  width: min(480px, calc(100% - 48px));
  margin: auto;
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper-strong);
  box-shadow: 0 34px 70px rgba(45, 40, 27, 0.12);
}

.internal-badge {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 8px 11px;
  border: 1px solid rgba(165, 128, 0, 0.25);
  border-radius: 99px;
  color: #7c6509;
  background: #fff4b3;
  font-size: 11px;
  font-weight: 800;
}

.internal-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(246, 207, 19, 0.2);
}

.login-card h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.login-description {
  margin: 15px 0 34px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.login-field {
  display: block;
  margin-bottom: 18px;
}

.login-field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(45, 40, 27, 0.2);
  border-radius: 10px;
  color: var(--ink);
  background: #fbfaf4;
  font-size: 14px;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-field input:focus {
  border-color: #9f8311;
  background: white;
  box-shadow: 0 0 0 4px rgba(246, 207, 19, 0.18);
}

.login-field input:disabled {
  opacity: 0.65;
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 65px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  color: #716957;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--ink);
  background: #eee9da;
  outline: 0;
}

.field-error {
  min-height: 17px;
  display: block;
  padding-top: 4px;
  color: var(--red);
  font-size: 10px;
}

.login-message {
  min-height: 20px;
  margin: -3px 0 8px;
  font-size: 11px;
  line-height: 1.55;
}

.login-message.error {
  color: var(--red);
}

.login-message.success {
  color: var(--green);
}

.login-submit {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  color: var(--ink);
  background: var(--yellow);
  transform: translateY(-1px);
  outline: 0;
}

.login-submit:disabled {
  color: #9f9889;
  background: #ded9cc;
  border-color: #ded9cc;
  cursor: wait;
  transform: none;
}

.back-home {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 28px auto 0;
  color: #766f61;
  font-size: 12px;
  font-weight: 600;
}

.back-home:hover,
.back-home:focus-visible {
  color: var(--ink);
  outline: 0;
}

@media (max-width: 1120px) {
  .story-grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  }

  .hero-copy h1 {
    font-size: clamp(48px, 6vw, 66px);
  }

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

  .pipeline {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    overflow-x: auto;
    padding-bottom: 15px;
  }

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

  .orchestration-flow::before {
    display: none;
  }

  .login-shell {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }
}

@media (max-width: 860px) {
  .landing-header {
    padding: 18px 20px;
  }

  .header-entry {
    min-height: 40px;
    padding: 8px 14px;
  }

  .story-screen {
    min-height: auto;
    padding: 110px 22px 80px;
  }

  .story-screen::after {
    display: none;
  }

  .story-grid,
  .story-head,
  .materials-layout {
    grid-template-columns: 1fr;
  }

  .story-grid {
    min-height: auto;
  }

  .hero-visual {
    width: min(630px, 100%);
    margin: 15px auto 0;
  }

  .story-head {
    gap: 24px;
  }

  .story-head h2 {
    font-size: clamp(36px, 9vw, 56px);
  }

  .coverage-panel {
    min-height: auto;
  }

  .coverage-visual {
    width: 210px;
  }

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

  .closing-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .screen-index {
    right: 22px;
  }

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

  .login-intro {
    display: none;
  }

  .login-card {
    margin: 56px auto;
  }
}

@media (max-width: 580px) {
  .site-brand {
    font-size: 14px;
  }

  .site-brand img {
    width: 36px;
    height: 32px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13.5vw, 60px);
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
  }

  .text-link {
    width: max-content;
  }

  .value-list,
  .material-cards,
  .orchestration-flow {
    grid-template-columns: 1fr;
  }

  .material-card {
    min-height: 190px;
  }

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

  .admission-note svg {
    display: none;
  }

  .flow-panel {
    min-height: auto;
  }

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

  .landing-footer > a:last-child {
    justify-self: start;
  }

  .footer-legal {
    justify-items: start;
    text-align: left;
  }

  .login-card {
    width: calc(100% - 28px);
    margin: 20px auto;
    padding: 30px 22px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .story-screen::after {
    display: none;
  }

  .hero-visual,
  .site-brand:hover img,
  .site-brand:focus-visible img,
  .value-list li:hover,
  .material-card:hover,
  .material-card:focus-within,
  .coverage-panel:hover,
  .coverage-panel:hover .coverage-visual,
  .pipeline li:hover .pipeline-icon,
  .flow-panel:hover,
  .selection-panel:hover .selection-row,
  .actions-panel:hover .mini-action {
    filter: none;
    transform: none;
  }
}
