/* marketing styles split from app/static/styles.css. */

@font-face {
  font-family: "阿里妈妈数黑体 Bold";
  font-weight: 700;
  src:
    url("//at.alicdn.com/wf/webfont/PQMKqeHRuP8c/oleVqAIUE5SM.woff2") format("woff2"),
    url("//at.alicdn.com/wf/webfont/PQMKqeHRuP8c/lXc4VTgNXlyW.woff") format("woff");
  font-variation-settings: normal;
  font-display: swap;
}

.webfont {
  font-family: "阿里妈妈数黑体 Bold", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-variation-settings: normal;
}

.marketing-toast-stack {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 160;
  display: grid;
  gap: 10px;
  width: min(440px, calc(100% - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.marketing-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.12),
    0 2px 8px rgba(15, 23, 42, 0.08);
  color: #1f2937;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: auto;
  backdrop-filter: blur(10px);
}

.marketing-toast::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
}

.marketing-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.marketing-toast.is-leaving {
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
}

.marketing-toast-success {
  border-color: #d1fae5;
  background: rgba(240, 253, 244, 0.97);
}

.marketing-toast-success::before {
  background-color: #10b981;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.2 3.8 8.5l-1 1 3.7 3.7L13.2 6.5l-1-1z'/%3E%3C/svg%3E");
}

.marketing-toast-error {
  border-color: #fee2e2;
  background: rgba(254, 242, 242, 0.97);
}

.marketing-toast-error::before {
  background-color: #ef4444;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M8 3a.9.9 0 0 1 .9.9v4.3a.9.9 0 1 1-1.8 0V3.9A.9.9 0 0 1 8 3m0 9.9a1.05 1.05 0 1 1 0-2.1 1.05 1.05 0 0 1 0 2.1'/%3E%3C/svg%3E");
}

.marketing-toast-content {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.marketing-toast-close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.marketing-toast-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #4b5563;
}

.marketing-body {
  min-height: 100vh;
  overflow: auto;
  background: #080906;
  color: #f8fafc;
}

.marketing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 9, 6, 0.52) 0%, rgba(8, 9, 6, 0.8) 48%, #080906 100%),
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.18), transparent 34%),
    url("/static/backImg.png") center top / cover no-repeat,
    #080906;
}

.marketing-shell {
  width: min(1500px, calc(100% - 64px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.marketing-nav {
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 28px;
  animation: marketing-rise 520ms ease both;
}

.marketing-brand img {
  width: 156px;
  filter: brightness(0) invert(1);
}

.marketing-nav nav {
  display: flex;
  align-items: center;
  gap: 52px;
}

.marketing-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  text-decoration: none;
}

.marketing-nav a:hover {
  color: #fff;
}

.marketing-nav-button,
.marketing-primary-button {
  border: 0;
  border-radius: 999px;
  background: #f8f7f0;
  color: #11120d;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.marketing-nav-button:hover,
.marketing-primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(248, 247, 240, 0.18);
  background: #fff;
}

.marketing-nav-button {
  justify-self: end;
  min-height: 44px;
  padding: 0 24px;
}

.marketing-hero {
  min-height: 880px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 70px;
  padding: 92px 0 0;
  text-align: center;
}

.marketing-hero-copy {
  width: min(780px, 100%);
  display: grid;
  justify-items: center;
  gap: 22px;
  animation: marketing-rise 680ms 80ms ease both;
}

.marketing-kicker {
  margin: 0;
  color: #9db7ff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.marketing-hero h1 {
  margin: 0;
  color: #f8f7f0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 72px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.marketing-subtitle {
  width: min(660px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.8;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}

.marketing-primary-button {
  min-height: 56px;
  padding: 0 38px;
  font-size: 17px;
}

.marketing-secondary-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-decoration: none;
  transition: color 160ms ease;
}

.marketing-secondary-link:hover {
  color: #fff;
}

.marketing-preview {
  width: min(1380px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  overflow: hidden;
  border-radius: 18px;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(235, 235, 229, 0.78)),
    #f3f1ec;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
  animation: marketing-rise 760ms 180ms ease both;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.marketing-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 38px 105px rgba(0, 0, 0, 0.36);
}

.preview-canvas {
  min-height: 390px;
  border-radius: 12px 0 0 12px;
  padding: 24px;
  background: #171713;
  color: #f8fafc;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.preview-toolbar span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #f8f7f0;
}

.preview-grid {
  min-height: 315px;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: end;
  gap: 34px;
  padding: 38px 26px 0;
}

.preview-card {
  min-height: 150px;
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(200, 205, 212, 0.78)),
    #e5e7eb;
  animation: marketing-float 5.8s ease-in-out infinite;
}

.preview-card.tall {
  min-height: 210px;
  animation-delay: -1.2s;
}

.preview-card.featured {
  min-height: 280px;
  display: grid;
  place-items: center;
  outline: 2px solid #60a5fa;
  background:
    linear-gradient(160deg, #f9fafb 0%, #bfc6cf 50%, #111827 100%);
  animation-delay: -2.4s;
}

.preview-card.featured span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #111827;
  font-weight: 900;
}

.preview-side-panel {
  min-height: 390px;
  display: grid;
  align-content: center;
  gap: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 34px;
  background: #22211d;
  color: rgba(255, 255, 255, 0.72);
}

.preview-side-panel small {
  color: rgba(255, 255, 255, 0.46);
}

.preview-side-panel p {
  margin: 0;
  line-height: 1.7;
}

.preview-side-panel ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-side-panel li::before {
  content: "·";
  margin-right: 10px;
}

.marketing-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 96px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 183, 255, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  animation: marketing-rise 620ms 220ms ease both;
}

.marketing-feature-strip article {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.marketing-feature-strip article:hover {
  transform: translateY(-5px);
  border-color: rgba(157, 183, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.marketing-feature-strip strong {
  color: #f8fafc;
  font-size: 18px;
}

.marketing-feature-strip span {
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.7;
}

.marketing-credit-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(157, 183, 255, 0.24);
  border-radius: 18px;
  margin-top: 18px;
  padding: 20px 24px;
  background: rgba(157, 183, 255, 0.1);
  color: #f8fafc;
  animation: marketing-rise 620ms 280ms ease both;
}

.marketing-credit-note strong {
  white-space: nowrap;
  font-size: 18px;
}

.marketing-credit-note span {
  color: rgba(226, 232, 240, 0.76);
  line-height: 1.6;
}

.marketing-workflow {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 84px 0 26px;
  color: rgba(226, 232, 240, 0.78);
  animation: marketing-rise 620ms 340ms ease both;
}

.marketing-workflow h2 {
  margin: 8px 0 0;
  color: #f8fafc;
  font-size: 36px;
}

.workflow-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workflow-steps span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.workflow-steps span:hover {
  transform: translateY(-2px);
  border-color: rgba(157, 183, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

@keyframes marketing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes marketing-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes marketing-card-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  46% {
    transform: translate3d(0, var(--card-float-up, -5px), 0) scale(1.012);
  }
  76% {
    transform: translate3d(0, var(--card-float-down, 2px), 0) scale(0.998);
  }
}

@keyframes marketing-page-in-from-right {
  from {
    opacity: 0;
    transform: translate3d(28px, 0, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes marketing-page-in-from-left {
  from {
    opacity: 0;
    transform: translate3d(-28px, 0, 0);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes marketing-page-out-to-left {
  to {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
    filter: blur(8px);
  }
}

@keyframes marketing-page-out-to-right {
  to {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
    filter: blur(8px);
  }
}

@keyframes marketing-card-lean-in {
  0% {
    opacity: 0;
    transform:
      translate3d(0, calc(var(--card-y, 0px) + 42px), -34px)
      rotateZ(calc(var(--card-rot, 0deg) - 8deg))
      rotateY(var(--card-tilt, 0deg))
      scale(0.9);
    filter: blur(6px);
  }
  68% {
    opacity: 1;
    transform:
      translate3d(var(--card-x, 0px), calc(var(--card-y, 0px) - 10px), 10px)
      rotateZ(calc(var(--card-rot, 0deg) + 2deg))
      rotateY(var(--card-tilt, 0deg))
      scale(calc(var(--card-scale, 1) + 0.025));
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform:
      translate3d(
        var(--card-x, calc(var(--slot, 0) * var(--card-near-x))),
        var(--card-y, 0px),
        calc(var(--abs-slot, 0) * -8px)
      )
      rotateZ(var(--card-rot, calc(var(--slot, 0) * -9deg)))
      rotateY(var(--card-tilt, calc(var(--slot, 0) * 2deg)))
      translate3d(0, 0, 0)
      scale(var(--card-scale, calc(1 - var(--abs-slot, 0) * 0.045)))
      scale(1);
    filter: blur(0);
  }
}

@keyframes marketing-mobile-dialog-in {
  from {
    opacity: 0.96;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.marketing-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 9, 6, 0.46);
  backdrop-filter: blur(14px) saturate(1.03);
  -webkit-backdrop-filter: blur(14px) saturate(1.03);
}

.login-modal-open .marketing-login-overlay {
  display: grid;
  animation: glass-surface-in 180ms ease both;
}

.marketing-login-dialog {
  position: relative;
  width: min(1000px, calc(100vw - 48px));
  height: min(680px, calc(100dvh - 48px));
  min-height: min(600px, calc(100dvh - 48px));
  display: grid;
  grid-template-columns: minmax(400px, 1.05fr) minmax(390px, 0.95fr);
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: #111827;
  box-shadow:
    0 26px 76px rgba(0, 0, 0, 0.24),
    0 2px 14px rgba(0, 0, 0, 0.12);
}

.marketing-login-dialog::before {
  content: none;
}

.marketing-login-showcase {
  position: relative;
  isolation: isolate;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 34px clamp(32px, 3.8vw, 46px) 42px;
  color: #11120d;
  background: #fff;
}

.login-showcase-brand {
  position: relative;
  z-index: 1;
  width: fit-content;
  display: block;
}

.login-showcase-brand img {
  width: 160px;
  height: auto;
  filter: brightness(0);
}

.login-showcase-illustration {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: auto;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.login-showcase-illustration::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 28%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, transparent 42%);
  pointer-events: none;
}

.login-showcase-illustration img {
  display: block;
  width: min(88%, 430px);
  height: min(88%, 580px);
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: translateY(-44px);
}

.login-showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.login-showcase-copy .marketing-kicker {
  margin: 0 0 18px;
  color: rgba(17, 18, 13, 0.6);
}

.login-showcase-copy h2 {
  margin: 0 0 18px;
  color: #11120d;
  font-family: "阿里妈妈数黑体 Bold", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: clamp(38px, 3.8vw, 48px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
  font-variation-settings: normal;
}

.marketing-login-form-side {
  position: relative;
  min-width: 0;
  display: grid;
  overflow-y: auto;
  padding: 38px clamp(34px, 4vw, 48px) 34px;
  background: #fff;
}

.marketing-login-form-wrap {
  width: min(408px, 100%);
  display: grid;
  gap: 18px;
  align-self: center;
  justify-self: center;
}

.marketing-login-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 30px;
  line-height: 1;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.marketing-auth-panels {
  display: grid;
}

.marketing-auth-panels [hidden] {
  display: none !important;
}

.auth-panel-head {
  display: grid;
  gap: 7px;
  margin-bottom: 2px;
}

.auth-panel-title {
  margin: 0;
  color: #111827;
  font-family: "阿里妈妈数黑体 Bold", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  font-variation-settings: normal;
}

.auth-panel-subtitle {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.login-form label > input {
  height: 48px;
  border: 1px solid #deddd9;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.login-form label > input:-webkit-autofill,
.login-form label > input:-webkit-autofill:hover,
.login-form label > input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.88) inset;
  caret-color: #111827;
}

.login-form label > input:focus {
  border-color: rgba(17, 24, 39, 0.22);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

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

.login-code-row input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid #deddd9;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: none;
  appearance: none;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.login-code-row input:focus {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.login-code-button {
  min-width: 132px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.login-code-button:disabled {
  cursor: not-allowed;
  background: #9ca3af;
}

.login-inline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.auth-inline-link,
.auth-footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.auth-inline-link:hover,
.auth-footer-link:hover {
  color: #2563eb;
}

.login-form-hint {
  margin: -4px 0 0;
  color: #737985;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.button-is-busy {
  cursor: wait !important;
  opacity: 0.72;
}

.auth-panel-footer {
  margin: 0;
  color: #737985;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 640px) {
  .login-code-row {
      grid-template-columns: 1fr;
    }

  .login-code-button {
      width: 100%;
    }
}

.login-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -4px;
  color: #737985;
  font-size: 12px;
  font-weight: 800;
}

.login-remember {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 7px !important;
  color: #4f5663 !important;
  font-size: 12px !important;
}

.login-remember input {
  width: 15px;
  height: 15px;
  border: 1px solid #b8b5af;
  border-radius: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  accent-color: #111827;
}

.login-future-entry {
  border-top: 0;
  margin-top: 18px;
  color: #6b7280;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.marketing-login-dialog .primary-button {
  min-height: 50px;
  border-radius: 10px;
  margin-top: 6px;
  background: #1b1b20;
  color: #fff;
  font-size: 15px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.marketing-login-dialog .primary-button:hover {
  transform: translateY(-1px);
  background: #09090b;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.2);
}

@media (max-width: 900px) {
  .marketing-shell {
      width: min(100% - 28px, 760px);
      padding: 18px 0 52px;
    }

  .marketing-nav {
      grid-template-columns: 1fr auto;
    }

  .marketing-nav nav {
      display: none;
    }

  .marketing-brand img {
      width: 132px;
    }

  .marketing-hero {
      min-height: auto;
      gap: 42px;
      padding: 58px 0 0;
    }

  .marketing-hero h1 {
      font-size: 46px;
    }

  .marketing-preview {
      grid-template-columns: 1fr;
      padding: 18px;
    }

  .preview-canvas,
    .preview-side-panel {
      min-height: auto;
      border-radius: 12px;
    }

  .preview-grid {
      grid-template-columns: 1fr;
      min-height: auto;
      gap: 14px;
      padding: 24px 0 0;
    }

  .preview-card,
    .preview-card.tall,
    .preview-card.featured {
      min-height: 150px;
    }

  .marketing-feature-strip,
    .marketing-credit-note,
    .marketing-workflow {
      grid-template-columns: 1fr;
      display: grid;
    }

  .marketing-feature-strip {
      gap: 12px;
      margin-top: 52px;
      padding: 18px;
    }

  .marketing-credit-note,
    .marketing-workflow {
      gap: 14px;
    }

}


@media (max-width: 900px) {
  .marketing-shell {
      width: min(100% - 24px, 760px);
    }

  .marketing-hero {
      gap: 30px;
      padding-top: 42px;
    }

  .marketing-hero h1 {
      font-size: clamp(36px, 10vw, 46px);
    }

  .marketing-preview {
      border-radius: 16px;
    }

  .marketing-login-overlay {
      align-items: start;
      overflow: auto;
      padding: 16px;
    }

  .marketing-login-dialog {
      width: min(520px, 100%);
      height: auto;
      min-height: 0;
      max-height: none;
      grid-template-columns: minmax(0, 1fr);
      overflow: hidden;
      border-radius: 22px;
    }

  .marketing-login-showcase {
      min-height: 204px;
      padding: 26px 28px 28px;
      gap: 22px;
    }

  .login-showcase-illustration::after {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, transparent 40%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.94) 0%, transparent 62%);
    }

  .login-showcase-illustration img {
      width: min(72%, 250px);
      height: min(86%, 192px);
      object-position: center;
      transform: translateY(-14px);
    }

  .login-showcase-brand img {
      width: 148px;
    }

  .login-showcase-copy h2 {
      margin-bottom: 10px;
      font-size: clamp(28px, 7vw, 34px);
    }

  .marketing-login-form-side {
      overflow: visible;
      padding: 34px 28px 32px;
    }

  .marketing-login-form-wrap {
      width: 100%;
      margin: 0 auto;
      align-self: start;
    }
}

@media (max-width: 760px) {
  .marketing-nav {
      gap: 14px;
    }

  .login-modal-open .marketing-login-dialog {
      transform-origin: bottom center;
      animation: marketing-mobile-dialog-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

  .marketing-subtitle {
      font-size: 15px;
    }

  .marketing-actions {
      gap: 12px;
    }

  .marketing-primary-button {
      min-height: 48px;
      padding: 0 26px;
      font-size: 15px;
    }
}

@media (max-width: 560px) {
  .marketing-shell {
      width: min(100% - 20px, 520px);
      padding-top: 16px;
    }

  .marketing-nav {
      grid-template-columns: 1fr auto;
    }

  .marketing-nav-button {
      min-height: 40px;
      padding: 0 16px;
    }

  .marketing-preview {
      padding: 12px;
    }

  .marketing-login-overlay {
      padding: 0;
    }

  .marketing-login-dialog {
      width: 100%;
      min-height: 100dvh;
      max-height: none;
      border-radius: 0;
      border: 0;
    }

  .marketing-login-showcase {
      min-height: 188px;
      padding: 22px 20px 20px;
    }

  .login-showcase-illustration {
      place-items: start end;
    }

  .login-showcase-illustration::after {
      background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, transparent 38%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, transparent 48%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.96) 0%, transparent 58%);
    }

  .login-showcase-illustration img {
      width: min(54vw, 198px);
      height: 150px;
      object-position: center;
      transform: translate(4px, 42px);
    }

  .login-showcase-brand img {
      width: 128px;
    }

  .login-showcase-copy .marketing-kicker {
      margin-bottom: 10px;
      font-size: 11px;
    }

  .login-showcase-copy h2 {
      font-size: 26px;
      margin-bottom: 8px;
    }

  .login-showcase-copy {
      max-width: 15.5em;
    }

  .marketing-login-form-side {
      padding: 30px 18px 28px;
    }

  .marketing-login-close {
      top: 16px;
      right: 16px;
    }
}

/* New public entry surface. */
.marketing-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #e8e9ec;
  color: #17181c;
}

.marketing-body::before {
  content: none;
}

.marketing-shell {
  width: min(1180px, calc(100% - 88px));
  margin: 0 auto;
  padding: clamp(86px, 13vh, 150px) 0 28px;
}

.marketing-stage {
  min-height: min(690px, calc(100vh - 178px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    #f6f7f8;
  box-shadow:
    0 42px 110px rgba(36, 41, 51, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.marketing-nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 22px;
  padding: 22px clamp(24px, 4vw, 54px);
  animation: none;
}

.marketing-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.marketing-brand img {
  width: 150px;
  height: auto;
  filter: brightness(0);
}

.marketing-tabs {
  --tab-indicator-x: 0px;
  --tab-indicator-width: 70px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 0 4px 9px;
  background: transparent;
  overflow: visible;
}

.marketing-tabs::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 4px;
  z-index: 0;
  width: var(--tab-indicator-width);
  height: 2px;
  border-radius: 999px;
  background: #17181c;
  box-shadow: 0 4px 14px rgba(23, 24, 28, 0.2);
  transform: translateX(var(--tab-indicator-x));
  transition:
    transform 520ms cubic-bezier(0.2, 0.72, 0.25, 1),
    width 520ms cubic-bezier(0.2, 0.72, 0.25, 1),
    box-shadow 240ms ease;
  pointer-events: none;
}

.marketing-tabs:not(.is-ready)::before {
  transition: none;
}

.marketing-nav .marketing-tabs {
  display: inline-flex;
}

.marketing-nav a,
.marketing-tab {
  color: #6f7480;
  text-decoration: none;
}

.marketing-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  transition:
    color 260ms ease,
    transform 260ms ease;
}

.marketing-tab.active {
  color: #17181c;
}

.marketing-nav .marketing-tab:hover {
  color: #17181c;
  transform: translateY(-1px);
}

.marketing-nav .marketing-tab.active:hover {
  color: #17181c;
}

.marketing-content-panel {
  min-width: 0;
  position: relative;
  will-change: transform, opacity, filter;
}

.marketing-content-panel.is-entering-right {
  animation: marketing-page-in-from-right 460ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.marketing-content-panel.is-entering-left {
  animation: marketing-page-in-from-left 460ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.marketing-content-panel.is-exiting-right {
  animation: marketing-page-out-to-left 320ms cubic-bezier(0.55, 0, 0.45, 1) both;
}

.marketing-content-panel.is-exiting-left {
  animation: marketing-page-out-to-right 320ms cubic-bezier(0.55, 0, 0.45, 1) both;
}

.marketing-nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.marketing-login-link,
.marketing-nav-button,
.marketing-primary-button,
.marketing-prompt-submit {
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.marketing-login-link {
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #17181c;
  box-shadow:
    0 14px 28px rgba(31, 35, 44, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marketing-nav-button {
  min-height: 40px;
  padding: 0 18px;
  background: #fff;
  color: #17181c;
  box-shadow:
    0 12px 26px rgba(37, 43, 54, 0.09),
    inset 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.marketing-login-link:hover,
.marketing-nav-button:hover,
.marketing-primary-button:hover,
.marketing-prompt-submit:hover {
  transform: translateY(-1px);
}

.marketing-hero {
  min-height: 0;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(46px, 8vh, 96px);
  padding: clamp(56px, 8vh, 94px) clamp(20px, 4vw, 56px) clamp(30px, 5vh, 54px);
  text-align: center;
}

.marketing-shell[data-marketing-module="home"] .marketing-hero {
  gap: clamp(22px, 4vh, 42px);
}

.marketing-shell[data-marketing-module="home"] .marketing-hero::before {
  content: "";
  position: absolute;
  top: clamp(86px, 15vh, 168px);
  right: clamp(16px, 5vw, 96px);
  z-index: 0;
  width: min(28vw, 380px);
  aspect-ratio: 1;
  background: url("/static/home_illu_ballon.png") center / contain no-repeat;
  opacity: 0.82;
  filter: drop-shadow(0 22px 48px rgba(31, 35, 44, 0.08));
  transform: rotate(3deg);
  pointer-events: none;
}

.marketing-hero-copy {
  width: min(760px, 100%);
  display: grid;
  position: relative;
  z-index: 1;
  justify-items: center;
  gap: 18px;
  animation: marketing-rise 520ms ease both;
}

.marketing-kicker {
  margin: 0;
  color: #737985;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.marketing-hero h1,
.marketing-module h1 {
  max-width: 100%;
  margin: 0;
  color: #17181c;
  font-family: "阿里妈妈数黑体 Bold", Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(42px, 6.2vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  font-variation-settings: normal;
}

.marketing-shell[data-marketing-module="home"] .marketing-hero h1 {
  display: grid;
  justify-items: center;
  font-family: "阿里妈妈数黑体 Bold", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-size: clamp(34px, 5.1vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
}

.marketing-subtitle {
  width: min(560px, 100%);
  margin: 0;
  color: #747986;
  font-size: 15px;
  line-height: 1.7;
}

.marketing-prompt-form {
  width: min(650px, 100%);
  box-sizing: border-box;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 6px 7px 6px 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 45px rgba(31, 35, 44, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.marketing-prompt-form input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  color: #17181c;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.marketing-prompt-form input::placeholder {
  color: #a1a6af;
  font-weight: 700;
}

.marketing-prompt-submit {
  inline-size: 48px;
  min-width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: #17181c;
  color: #fff;
  box-shadow: 0 12px 26px rgba(23, 24, 28, 0.22);
}

.marketing-prompt-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateX(1px);
}

.marketing-folding-cards {
  --card-near-x: clamp(96px, 14vw, 178px);
  --card-wide-x: clamp(238px, 27vw, 360px);
  --card-high-y: clamp(-86px, -6vh, -48px);
  --card-low-y: clamp(92px, 13vh, 158px);
  width: min(1120px, 100%);
  height: clamp(330px, 45vh, 500px);
  margin-top: clamp(24px, 6vh, 86px);
  margin-bottom: clamp(-154px, -13vh, -84px);
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
  isolation: isolate;
  transform: translateY(clamp(58px, 12vh, 132px));
  animation: marketing-rise 640ms 80ms ease both;
}

.marketing-folding-card {
  --card-float-duration: 6.2s;
  --card-float-delay: -0.3s;
  --card-entry-delay: 0ms;
  --card-float-up: -6px;
  --card-float-down: 2px;
  position: absolute;
  z-index: var(--z, 1);
  width: clamp(160px, 18vw, 258px);
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform:
    translate3d(
      var(--card-x, calc(var(--slot, 0) * var(--card-near-x))),
      var(--card-y, 0px),
      calc(var(--abs-slot, 0) * -8px)
    )
    rotateZ(var(--card-rot, calc(var(--slot, 0) * -9deg)))
    rotateY(var(--card-tilt, calc(var(--slot, 0) * 2deg)))
    translate3d(0, 0, 0)
    scale(var(--card-scale, calc(1 - var(--abs-slot, 0) * 0.045)))
    scale(1);
  transform-origin: 50% 84%;
  backface-visibility: hidden;
  will-change: transform;
  transition:
    transform 920ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 360ms ease,
    opacity 360ms ease;
}

.marketing-shell[data-marketing-module="home"] .marketing-folding-card {
  animation: marketing-card-lean-in 960ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
  animation-delay: var(--card-entry-delay);
}

.marketing-folding-card:not(.is-active):hover,
.marketing-folding-card:not(.is-active):focus-visible {
  transform:
    translate3d(
      var(--card-x, calc(var(--slot, 0) * var(--card-near-x))),
      var(--card-y, 0px),
      calc(var(--abs-slot, 0) * -8px)
    )
    rotateZ(var(--card-rot, calc(var(--slot, 0) * -9deg)))
    rotateY(var(--card-tilt, calc(var(--slot, 0) * 2deg)))
    translate3d(0, -12px, 22px)
    scale(var(--card-scale, calc(1 - var(--abs-slot, 0) * 0.045)))
    scale(1.035);
}

.marketing-folding-card:nth-child(2) {
  --card-float-duration: 7s;
  --card-float-delay: -1.6s;
  --card-entry-delay: 70ms;
  --card-float-up: -4px;
  --card-float-down: 3px;
}

.marketing-folding-card:nth-child(3) {
  --card-float-duration: 6.7s;
  --card-float-delay: -2.4s;
  --card-entry-delay: 130ms;
  --card-float-up: -7px;
  --card-float-down: 1px;
}

.marketing-folding-card:nth-child(4) {
  --card-float-duration: 7.4s;
  --card-float-delay: -0.9s;
  --card-entry-delay: 190ms;
  --card-float-up: -5px;
  --card-float-down: 3px;
}

.marketing-folding-card:nth-child(5) {
  --card-float-duration: 6.5s;
  --card-float-delay: -3.1s;
  --card-entry-delay: 250ms;
  --card-float-up: -8px;
  --card-float-down: 2px;
}

.marketing-folding-card img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  transform: translate3d(0, 0, 0);
  box-shadow:
    0 24px 56px rgba(31, 35, 44, 0.18),
    0 4px 14px rgba(31, 35, 44, 0.12);
  transition:
    box-shadow 420ms ease,
    filter 360ms ease;
}

.marketing-folding-card:not(.is-active) img {
  animation: marketing-card-breathe var(--card-float-duration) ease-in-out infinite;
  animation-delay: var(--card-float-delay);
  filter: saturate(0.92) contrast(0.98);
}

.marketing-folding-card.is-active {
  z-index: 34;
  transform: translate3d(0, clamp(48px, 8vh, 86px), 52px) rotateZ(-2deg) rotateY(0deg) scale(1.08);
}

.marketing-folding-card.is-active:hover,
.marketing-folding-card.is-active:focus-visible {
  transform: translate3d(0, clamp(42px, 7.3vh, 78px), 68px) rotateZ(-2deg) rotateY(0deg) scale(1.095);
}

.marketing-folding-card.is-active img {
  box-shadow:
    0 34px 80px rgba(23, 24, 28, 0.26),
    0 8px 24px rgba(23, 24, 28, 0.14);
}

.marketing-folding-card:hover img,
.marketing-folding-card:focus-visible img {
  filter: saturate(1.05) contrast(1.02);
}

.marketing-scenario-strip {
  width: min(900px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 58px);
  color: #a4a8b0;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.marketing-scenario-strip span:nth-child(2) {
  color: #17181c;
}

.marketing-shell[data-marketing-module="home"] .marketing-scenario-strip {
  display: none;
}

.marketing-module {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: clamp(36px, 6vh, 68px) clamp(24px, 4vw, 56px) clamp(28px, 5vh, 48px);
}

.marketing-module-head {
  width: min(680px, 100%);
  display: grid;
  justify-self: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.marketing-module h1 {
  font-size: clamp(36px, 4.9vw, 54px);
}

#marketing-discover-title {
  font-family: "阿里妈妈数黑体 Bold", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-weight: 700;
  font-variation-settings: normal;
}

.public-discover-toolbar {
  --public-discover-indicator-x: 0px;
  --public-discover-indicator-y: 0px;
  --public-discover-indicator-width: 0px;
  --public-discover-indicator-height: 0px;
  max-width: 100%;
  position: relative;
  display: flex;
  justify-self: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.public-discover-toolbar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: var(--public-discover-indicator-width);
  height: var(--public-discover-indicator-height);
  border-radius: 999px;
  background: #17181c;
  transform: translate3d(var(--public-discover-indicator-x), var(--public-discover-indicator-y), 0);
  transition:
    transform 560ms cubic-bezier(0.16, 1, 0.3, 1),
    width 560ms cubic-bezier(0.16, 1, 0.3, 1),
    height 560ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.public-discover-toolbar::-webkit-scrollbar {
  display: none;
}

.public-discover-filter {
  position: relative;
  z-index: 1;
  min-height: 34px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  color: #686e79;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.public-discover-filter.active {
  border-color: transparent;
  background: transparent;
  color: #fff;
}

.public-discover-grid {
  min-width: 0;
  display: block;
  columns: 4 180px;
  column-gap: 14px;
}

.public-discover-grid.is-loading {
  min-height: min(760px, calc(100vh - 220px));
}

.public-discover-card {
  min-width: 0;
  display: block;
  break-inside: avoid;
  overflow: hidden;
  margin: 0 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.public-discover-art {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
}

.public-discover-art img {
  width: 100%;
  display: block;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.public-discover-card-loading .public-discover-art {
  min-height: 260px;
  background: #e4e7eb;
}

.public-discover-card-loading.skeleton-1 .public-discover-art {
  min-height: 250px;
}

.public-discover-card-loading.skeleton-2 .public-discover-art {
  min-height: 304px;
}

.public-discover-card-loading.skeleton-3 .public-discover-art {
  min-height: 360px;
}

.public-discover-card-loading.skeleton-4 .public-discover-art {
  min-height: 286px;
}

.public-discover-card-loading.skeleton-5 .public-discover-art {
  min-height: 330px;
}

.public-discover-card-loading.skeleton-6 .public-discover-art {
  min-height: 236px;
}

.public-discover-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.public-discover-empty {
  margin: 0;
  color: #8a909c;
  text-align: center;
  font-weight: 800;
}

.marketing-home-discover {
  display: none;
}

.marketing-home-discover-title {
  margin: 0;
  color: #17181c;
  font-size: 15px;
  font-weight: 900;
}

.marketing-icp {
  padding: 20px 0 0;
  color: #898e98;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.marketing-icp a {
  color: inherit;
  text-decoration: none;
}

.login-showcase-copy h2 {
  letter-spacing: 0;
}

@media (max-width: 980px) {
  .marketing-shell {
    width: min(100% - 32px, 820px);
    padding: 42px 0 24px;
  }

  .marketing-stage {
    min-height: calc(100dvh - 88px);
    border-radius: 28px;
  }

  .marketing-nav {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 20px 18px 8px;
  }

  .marketing-brand img {
    width: 136px;
  }

  .marketing-tabs {
    display: inline-flex;
    max-width: 100%;
  }

  .marketing-nav-actions {
    justify-self: center;
  }

  .marketing-hero {
    gap: 44px;
    padding: 48px 18px 28px;
  }

  .marketing-scenario-strip {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 4px 10px;
    scrollbar-width: none;
  }

  .marketing-scenario-strip::-webkit-scrollbar {
    display: none;
  }

  .public-discover-grid {
    columns: 2 150px;
  }
}

@media (max-width: 560px) {
  .marketing-shell {
    width: min(100% - 20px, 520px);
    padding: 12px 0 16px;
  }

  .marketing-stage {
    min-height: calc(100dvh - 42px);
    border-radius: 22px;
  }

  .marketing-nav {
    gap: 12px;
    padding: 18px 14px 6px;
  }

  .marketing-brand img {
    width: 128px;
  }

  .marketing-login-link {
    min-height: 36px;
  }

  .marketing-nav-button {
    min-height: 38px;
    padding: 0 16px;
  }

  .marketing-hero {
    align-content: start;
    gap: 34px;
    padding: 44px 14px 24px;
  }

  .marketing-hero h1,
  .marketing-module h1 {
    font-size: clamp(30px, 8.2vw, 34px);
    line-height: 1.08;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-hero h1 {
    font-size: clamp(30px, 8.2vw, 34px);
  }

  .marketing-shell[data-marketing-module="home"] .marketing-hero::before {
    content: none;
  }

  .marketing-subtitle {
    font-size: 14px;
  }

  .marketing-prompt-form {
    min-height: 54px;
    gap: 8px;
    border-radius: 999px;
    padding: 5px 6px 5px 16px;
  }

  .marketing-prompt-form input {
    height: 40px;
    font-size: 15px;
  }

  .marketing-prompt-submit {
    inline-size: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .marketing-folding-cards {
    display: none;
  }

  .marketing-scenario-strip {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    overflow: visible;
    padding-bottom: 0;
    white-space: normal;
  }

  .marketing-module {
    padding: 34px 14px 26px;
  }

  .public-discover-toolbar {
    justify-self: stretch;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
  }

  .public-discover-grid {
    columns: 2 130px;
    column-gap: 10px;
  }

  .public-discover-card {
    margin-bottom: 10px;
  }
}

/* Keep the public entry as a true fullscreen first view. */
.marketing-shell {
  width: 100vw;
  max-width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
  display: grid;
  align-items: stretch;
  justify-items: center;
  padding: 0;
}

.marketing-stage {
  width: 100%;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.marketing-shell[data-marketing-module="home"] .marketing-stage,
.marketing-shell[data-marketing-module="discover"] .marketing-stage {
  background: #f8fafc;
}

.marketing-stage > * {
  position: relative;
  z-index: 1;
}

.marketing-shell[data-marketing-module="home"] .marketing-stage::before,
.marketing-shell[data-marketing-module="discover"] .marketing-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/static/home_back_img1.png") center / cover no-repeat;
  opacity: 0.34;
  filter: saturate(0.86) brightness(1.08);
  pointer-events: none;
}

.marketing-shell[data-marketing-module="home"] .marketing-stage::before,
.marketing-shell[data-marketing-module="discover"] .marketing-stage::before {
  position: fixed;
}

.marketing-shell[data-marketing-module="home"] .marketing-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(120px, 22vh, 260px);
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0) 0%,
    rgba(255, 255, 255, 0.72) 48%,
    #fff 100%
  );
  pointer-events: none;
}

.marketing-icp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 1;
  padding: 0;
  pointer-events: none;
}

.marketing-icp a {
  pointer-events: auto;
}

@media (max-width: 980px) {
  .marketing-shell {
    width: 100%;
    min-height: 100dvh;
    padding: 0;
  }

  .marketing-stage {
    min-height: 100dvh;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-stage::before,
  .marketing-shell[data-marketing-module="discover"] .marketing-stage::before {
    opacity: 0.28;
  }
}

@media (max-width: 560px) {
  .marketing-shell {
    width: 100%;
    padding: 0;
  }

  .marketing-stage {
    min-height: 100dvh;
  }

  .marketing-tabs,
  .marketing-nav .marketing-tabs {
    display: none;
  }

  .marketing-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 14px 16px 4px;
  }

  .marketing-brand {
    justify-self: start;
  }

  .marketing-nav-actions {
    justify-self: end;
  }

  .marketing-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    min-width: 56px;
    padding: 0 14px;
    color: #17181c;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-stage {
    grid-template-rows: auto auto auto;
    align-content: start;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-stage::before,
  .marketing-shell[data-marketing-module="discover"] .marketing-stage::before {
    background-position: center top;
    opacity: 0.24;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-stage::after {
    content: none;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-hero {
    gap: 18px;
    padding: 32px 14px 18px;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-scenario-strip {
    display: none;
  }

  .marketing-shell[data-marketing-module="home"] .marketing-home-discover {
    display: grid;
    gap: 12px;
    padding: 0 14px 54px;
  }

  .marketing-home-discover .public-discover-toolbar {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 6px;
  }

  .marketing-home-discover .public-discover-grid {
    columns: 2 132px;
    column-gap: 10px;
  }
}

.not-found-body {
  min-height: 100vh;
}

.not-found-shell {
  width: min(1180px, calc(100% - 56px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 64px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.not-found-nav {
  min-height: 52px;
  display: flex;
  align-items: center;
}

.not-found-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  align-items: center;
  gap: 48px;
  padding: 54px 0 24px;
}

.not-found-copy {
  max-width: 700px;
}

.not-found-code {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.not-found-copy h1 {
  margin: 0;
  max-width: 12ch;
  color: #ffffff;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.not-found-copy p:not(.not-found-code) {
  max-width: 560px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.not-found-path {
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  display: block;
  overflow: hidden;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.not-found-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.not-found-primary,
.not-found-secondary {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.not-found-primary {
  background: #f8f7f0;
  color: #11120d;
}

.not-found-secondary {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.not-found-primary:hover,
.not-found-secondary:hover {
  transform: translateY(-2px);
}

.not-found-secondary:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}

.not-found-panel {
  min-height: 420px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 86px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.not-found-panel img {
  width: min(100%, 320px);
  margin: 0 auto;
  border-radius: 18px;
}

.not-found-panel strong {
  display: block;
  margin-top: 28px;
  color: #ffffff;
  font-size: 22px;
}

.not-found-panel span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .not-found-shell {
      width: min(100% - 28px, 760px);
      padding-top: 20px;
    }

  .not-found-content {
      grid-template-columns: minmax(0, 1fr);
      gap: 30px;
      padding-top: 48px;
    }

  .not-found-panel {
      min-height: 0;
    }
}

@media (max-width: 560px) {
  .not-found-shell {
      width: min(100% - 20px, 520px);
      padding-bottom: 40px;
    }

  .not-found-content {
      padding-top: 38px;
    }

  .not-found-copy h1 {
      max-width: 9ch;
      font-size: 40px;
    }

  .not-found-actions {
      align-items: stretch;
      flex-direction: column;
    }

  .not-found-primary,
  .not-found-secondary {
      width: 100%;
    }

  .not-found-panel {
      padding: 18px;
      border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
  .public-discover-toolbar::before,
  .marketing-content-panel.is-entering-right,
  .marketing-content-panel.is-entering-left,
  .marketing-content-panel.is-exiting-right,
  .marketing-content-panel.is-exiting-left,
  .marketing-shell[data-marketing-module="home"] .marketing-folding-card,
  .marketing-folding-card img {
    animation: none;
  }
}
