:root {
  --paper: #f7f4ed;
  --paper-deep: #ebe5d9;
  --ink: #11100e;
  --muted: #6e6a63;
  --soft: #ffffffcc;
  --line: #ddd5c9;
  --line-strong: #cfc4b5;
  --accent: #0f0f0f;
  --warm: #b4532f;
  --blue: #2f6580;
  --green: #60765f;
  --gold: #c49a2b;
  --shadow: 0 24px 80px rgba(34, 29, 22, 0.08);
  --control-height: 42px;
  --control-min: 72px;
  --control-px: 20px;
  --control-radius: 999px;
  --field-radius: 18px;
  --panel-radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.035) 1px, transparent 1px) 32px 0 / 9px 100% no-repeat,
    radial-gradient(circle at 50% 0%, #fffaf1 0, transparent 34rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  padding: 26px 28px 56px;
}

.landing-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2px;
}

.brand-link,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 12px;
  width: fit-content;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-glyph {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brand-glyph img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-actions {
  position: relative;
  justify-content: flex-end;
  gap: 10px;
}

.nav-actions.auth-loading {
  min-width: 146px;
  min-height: 42px;
}

.nav-button {
  display: inline-flex;
  min-width: var(--control-min);
  min-height: var(--control-height);
  height: var(--control-height);
  align-items: center;
  justify-content: center;
  border-radius: var(--control-radius);
  padding: 0 var(--control-px);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 253, 247, 0.94);
  transform: none;
}

.nav-button-soft {
  background: rgba(255, 255, 255, 0.58);
}

.nav-button-dark {
  color: #fff;
  border-color: #000;
  background: #050505;
}

.landing-user-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 4px 14px 4px 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.landing-user-pill:hover {
  border-color: #bfb3a5;
  background: rgba(255, 253, 247, 0.9);
}

.landing-user-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f2eee5;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.landing-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 247, 0.96);
  padding: 14px;
  box-shadow: 0 18px 50px rgba(34, 29, 22, 0.12);
  backdrop-filter: blur(18px);
}

.landing-user-menu * {
  box-sizing: border-box;
}

.landing-user-menu.hidden {
  display: none;
}

.landing-profile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  padding-bottom: 12px;
}

.landing-profile-head strong,
.landing-profile-head span {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.landing-profile-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.landing-menu-action {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  appearance: none;
}

.landing-menu-action + .landing-menu-action {
  margin-top: 8px;
}

.landing-menu-action:hover {
  border-color: #11100e;
  background: #11100e;
  color: #fff;
}

.hero-section {
  position: relative;
  display: flex;
  min-height: calc(100vh - 110px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 132px 0 64px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-orbit {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(17, 16, 14, 0.08);
  border-radius: 999px;
  opacity: 0.8;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
}

.hero-orbit-left {
  left: -5rem;
  top: 15rem;
}

.hero-orbit-right {
  right: -5rem;
  top: 9rem;
  animation-delay: -4s;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(196, 154, 43, 0.24);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(224, 246, 255, 0.76), rgba(255, 246, 229, 0.86));
  box-shadow: 0 12px 34px rgba(39, 39, 39, 0.05);
  color: #2d2924;
  font-size: 14px;
  animation: riseIn 0.55s ease both;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1c9a64;
  box-shadow: 0 0 0 5px rgba(28, 154, 100, 0.12);
}

.hero-mark {
  display: grid;
  width: 86px;
  height: 86px;
  margin-top: 26px;
  place-items: center;
  border-radius: 0;
  animation: riseIn 0.55s 0.08s ease both;
}

.hero-mark img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 10px 18px rgba(17, 16, 14, 0.08));
}

.hero-section h1 {
  max-width: 850px;
  margin: 28px 0 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(46px, 6.4vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  animation: riseIn 0.55s 0.14s ease both;
}

.hero-copy {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  animation: riseIn 0.55s 0.2s ease both;
}

.prompt-console {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(800px, 100%);
  min-height: 68px;
  margin-top: 30px;
  padding: 8px 8px 8px 24px;
  border: 1px solid rgba(207, 196, 181, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  text-align: left;
  backdrop-filter: blur(18px);
  animation: riseIn 0.55s 0.28s ease both;
}

.console-caret {
  width: 8px;
  height: 23px;
  border-radius: 8px;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}

.console-text {
  color: #8a847c;
  font-size: 16px;
}

.console-action {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease;
}

.console-action:hover {
  transform: scale(1.04);
  background: #000;
}

.workspace-entry-grid {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  animation: riseIn 0.55s 0.36s ease both;
}

.workspace-entry {
  position: relative;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 252, 246, 0.72);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 40px rgba(34, 29, 22, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.workspace-entry strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  letter-spacing: 0;
}

.workspace-entry small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.entry-index {
  color: var(--warm);
  font-family: "Avenir Next", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.workspace-entry.is-ready:hover {
  border-color: #111;
  background: #fff;
  box-shadow: 0 26px 60px rgba(34, 29, 22, 0.1);
  transform: translateY(-4px);
}

.workspace-entry.is-disabled {
  overflow: visible;
  color: #9a9388;
  cursor: not-allowed;
  filter: grayscale(0.9);
}

.workspace-entry.is-disabled:hover::after,
.workspace-entry.is-disabled:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: -42px;
  z-index: 5;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(17, 16, 14, 0.2);
}

.section-panel {
  max-width: 1180px;
  margin: 0 auto 220px;
  padding: 52px 0;
  scroll-margin-top: 96px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
}

.section-panel h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.capability-grid article {
  min-height: 190px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.capability-grid span {
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
}

.capability-grid h3 {
  margin: 28px 0 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.workflow-strip {
  display: grid;
  max-width: 1180px;
  margin: 0 auto 220px;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(17, 16, 14, 0.08);
  border-radius: 32px;
  padding: 34px 42px;
  background:
    radial-gradient(circle at 50% -40%, rgba(76, 67, 56, 0.94), rgba(17, 16, 14, 0.9) 58%, rgba(17, 16, 14, 0.78));
  color: #fff;
  box-shadow:
    0 58px 160px rgba(34, 29, 22, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  scroll-margin-top: 96px;
}

.workflow-strip div {
  min-width: 0;
}

.workflow-strip span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.workflow-strip strong {
  display: block;
  margin-top: 14px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.workflow-strip small {
  display: block;
  margin-top: 10px;
  color: #cfc3b2;
  line-height: 1.6;
}

.workflow-strip i {
  width: 52px;
  height: 1px;
  background: #5b5146;
}

.audience-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.audience-list {
  display: grid;
  gap: 0;
}

.audience-list p {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.audience-list strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.audience-list span {
  color: var(--muted);
  line-height: 1.8;
}

.floating-toast {
  position: fixed;
  left: 50%;
  top: 22px;
  z-index: 50;
  pointer-events: none;
  transform: translate(-50%, -70px) scale(0.95);
  opacity: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(17, 16, 14, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.28s cubic-bezier(0.2, 1, 0.2, 1), opacity 0.28s ease;
}

.floating-toast.show {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.landing-modal {
  width: min(480px, calc(100% - 28px));
  border: 0;
  border-radius: 28px;
  background: transparent;
  padding: 0;
}

.landing-modal::backdrop {
  background: rgba(17, 16, 14, 0.28);
  backdrop-filter: blur(12px);
}

.landing-modal-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 30px 90px rgba(34, 29, 22, 0.18);
  padding: 24px;
}

.landing-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.landing-modal-head h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
}

.landing-modal-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.landing-modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

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

.landing-field span {
  color: #4f4942;
  font-size: 13px;
  font-weight: 800;
}

.landing-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf7;
  color: var(--ink);
  padding: 0 16px;
  outline: 0;
  font-size: 16px;
  font-weight: 700;
}

.landing-field input:focus {
  border-color: #11100e;
}

.landing-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.landing-code-button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f4ed;
  color: var(--ink);
  padding: 0 14px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.landing-code-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.landing-form-notice {
  margin: 0;
  border-radius: 16px;
  background: rgba(180, 83, 47, 0.1);
  color: #8d3f25;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.landing-form-notice.success {
  background: rgba(96, 118, 95, 0.13);
  color: #435942;
}

.landing-form-notice.hidden {
  display: none;
}

.landing-submit {
  width: 100%;
  min-height: 48px;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0.16;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(18px, -18px, 0);
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: 100%;
    max-width: 100vw;
    padding: 18px 16px 36px;
  }

  .landing-nav {
    position: relative;
    top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  .brand-link,
  .nav-actions {
    min-width: 0;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-button {
    min-width: var(--control-min);
    min-height: var(--control-height);
    height: var(--control-height);
    padding: 0 var(--control-px);
  }

  .landing-user-pill {
    max-width: 46vw;
  }

  .landing-user-pill span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero-section {
    min-height: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    padding: 82px 0 54px;
  }

  .hero-orbit {
    display: none;
  }

  .hero-section h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .prompt-console {
    width: 100%;
    max-width: 100%;
    min-height: 62px;
    padding-left: 18px;
  }

  .console-text {
    font-size: 14px;
  }

  .workspace-entry-grid,
  .capability-grid,
  .audience-panel {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .workspace-entry {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
  }

  .section-panel {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin-bottom: 72px;
    border-radius: 24px;
    padding: 32px 22px;
  }

  .workflow-strip {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    margin-bottom: 72px;
    padding: 30px 24px;
  }

  .workflow-strip i {
    width: 1px;
    height: 28px;
    margin-left: 10px;
  }

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

  .audience-list p {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
/* 2026-05-10: Softer landing-page scrollbars matching the selected UI tint. */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 196, 181, 0.42) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(207, 196, 181, 0.38);
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(207, 196, 181, 0.54);
}
