/* Public landing refresh. Workspace and dialog surfaces stay in their existing stylesheets. */
.landing-hero {
  min-height: calc(100svh - 72px);
  padding: 78px 24px 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.landing-hero .hero-inner { max-width: 760px; }
.hero-break { display: none; }
.hero-lead {
  max-width: 670px;
  margin: 18px auto 0 !important;
  color: #4a5468 !important;
  font-size: 18px !important;
  line-height: 1.75;
}
.landing-hero .hero-actions { margin-top: 31px; }
.landing-hero .hero-link { margin-top: 20px; }
.landing-hero .hero-note { margin-top: 14px; }

.hero-orbit {
  width: min(900px, 92vw);
  height: 215px;
  margin: 22px auto 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 42px 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(31, 64, 104, .09), transparent 68%);
  filter: blur(8px);
  z-index: -2;
}
.orbit-ring {
  position: absolute;
  border: 1px solid rgba(31, 64, 104, .12);
  border-radius: 50%;
  transform: rotate(-8deg);
  animation: landing-orbit-drift 9s ease-in-out infinite;
}
.ring-one { width: 680px; height: 150px; }
.ring-two { width: 520px; height: 112px; transform: rotate(12deg); animation-delay: -3s; }
.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(184, 134, 46, .12);
  animation: landing-orbit-pulse 3s ease-in-out infinite;
}
.dot-a { left: 22%; top: 45%; }
.dot-b { right: 23%; top: 33%; background: var(--navy); box-shadow: 0 0 0 6px rgba(31, 64, 104, .12); animation-delay: -1.5s; }
.orbit-core {
  width: 170px;
  height: 112px;
  border: 1px solid #e3e9ef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(27, 53, 82, .13);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: landing-core-float 5s ease-in-out infinite;
}
.orbit-core img { width: 34px; height: 34px; border-radius: 10px; }
.orbit-core strong { color: var(--navy); font-size: 15px; }
.orbit-core small { color: #8794a4; font-size: 10px; }
.orbit-stat { display: inline-flex; align-items: baseline; gap: 3px; margin-top: 1px; }
.orbit-stat b { color: var(--gold); font-size: 12px; }
.orbit-stat small { color: #8794a4; font-size: 9px; }

.landing-section { scroll-margin-top: 80px; }
.landing-feature-grid { max-width: 1040px; }
.landing-feature-grid .feature { background: #f7f8fa; border-color: #edf0f3; box-shadow: none; }
.landing-feature-grid .feature:hover { background: #fff; }
.landing-feature-grid .feature p { min-height: 0; }
.landing-feature-grid .feature a { margin-top: 19px; }
.reveal-delay-2 { transition-delay: .3s; }

.workflow.landing-section {
  max-width: 1120px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 84px;
  padding: 110px 30px;
}
.workflow-copy h2 { font-size: clamp(34px, 4vw, 48px); }
.workflow-copy > p { max-width: 460px; }
.workflow-steps { list-style: none; margin: 26px 0 0; padding: 0; }
.workflow-steps li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.workflow-steps li:last-child { border-bottom: 0; }
.workflow-steps li > b {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  border-radius: 50%;
  background: #eaf0f6;
  color: var(--navy);
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.workflow-steps li span { display: grid; gap: 4px; }
.workflow-steps strong { color: #33405a; font-size: 15px; }
.workflow-steps small { color: #8995a5; font-size: 12px; line-height: 1.6; }

.miniapp.landing-section {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 76px;
  padding: 104px clamp(22px, 8vw, 140px);
  background: #f7f8fa;
}
.install-copy h2 {
  margin: 14px 0 15px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
}
.install-copy > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.install-tabs {
  width: min(330px, 100%);
  display: flex;
  gap: 4px;
  margin-top: 26px;
  padding: 4px;
  border-radius: 11px;
  background: #e9edf2;
}
.install-tabs button { flex: 1; height: 36px; border-radius: 8px; background: transparent; color: #617086; font-size: 13px; font-weight: 700; }
.install-tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 3px 10px rgba(31, 64, 104, .1); }
.install-steps { display: grid; gap: 12px; margin-top: 20px; }
.install-steps[hidden] { display: none; }
.install-steps > div { display: flex; align-items: flex-start; gap: 11px; color: #33405a; font-size: 13.5px; line-height: 1.65; }
.install-steps b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #eaf0f6;
  color: var(--navy);
  font-size: 12px;
}
.install-note {
  margin-top: 20px !important;
  padding: 12px 14px;
  border: 1px solid #f0e7d2;
  border-radius: 11px;
  background: #faf7ef;
  color: #8c6420 !important;
  font-size: 12px !important;
  line-height: 1.65 !important;
}
.install-preview { min-height: 420px; position: relative; display: flex; align-items: center; justify-content: center; }
.preview-frame {
  width: min(500px, 100%);
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(31, 64, 104, .14);
  transform: rotate(1.5deg);
  transition: transform .35s ease, box-shadow .35s ease;
}
.preview-frame:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 28px 60px rgba(31, 64, 104, .18); }
.preview-bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border-bottom: 1px solid #e3e8ed; background: #eef2f5; }
.preview-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e78e7e; }
.preview-bar i:nth-child(2) { background: #e6b85a; }
.preview-bar i:nth-child(3) { background: #73b77b; }
.preview-bar span { margin-left: 7px; color: #8b97a7; font-size: 11px; }
.preview-body { min-height: 310px; display: grid; grid-template-columns: 1fr 185px; gap: 15px; padding: 24px; background: #f6f8fa; }
.preview-form { display: grid; align-content: start; gap: 13px; padding-top: 5px; }
.preview-form span { height: 31px; border: 1px solid #e4e9ee; border-radius: 7px; background: linear-gradient(90deg, #dfe6ed 0 30%, #fff 30%); }
.preview-form span.short { width: 72%; }
.plugin-pop { align-self: center; padding: 16px 14px; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; box-shadow: 0 12px 26px rgba(31, 64, 104, .12); }
.plugin-pop-head { display: flex; align-items: center; gap: 7px; }
.plugin-pop-head img { width: 24px; height: 24px; border-radius: 7px; }
.plugin-pop-head strong { color: var(--navy); font-size: 12px; }
.plugin-pop-head em { margin-left: auto; color: var(--gold); font-size: 16px; font-style: normal; }
.plugin-pop p { margin: 13px 0 8px; color: #748297; font-size: 10px; }
.plugin-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #edf1f4; }
.plugin-progress i { display: block; width: 70%; height: 100%; border-radius: inherit; background: var(--gold); animation: landing-progress-shift 3.5s ease-in-out infinite; }
.plugin-pop button { width: 100%; height: 34px; margin-top: 15px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; }
.preview-caption { position: absolute; right: 0; bottom: 31px; padding: 13px 16px; border: 1px solid #e6ebf0; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(24, 42, 63, .13); }
.preview-caption span, .preview-caption strong, .preview-caption small { display: block; }
.preview-caption span { color: #4d7f63; font-size: 10px; font-weight: 700; }
.preview-caption strong { color: var(--navy); font-size: 25px; line-height: 1.15; }
.preview-caption small { color: #8591a1; font-size: 10px; }

.platforms { padding: 92px 24px; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; background: #fff; }
.platforms-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.platforms h2 { margin: 14px 0 12px; font-family: var(--serif); font-size: clamp(31px, 4vw, 42px); }
.platforms p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.platform-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 23px; }
.platform-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border: 1px solid #e1e4e9; border-radius: 999px; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; }
.platform-tags i { width: 6px; height: 6px; border-radius: 50%; background: #4a7c5a; }
.platform-tags .pending { border-style: dashed; color: #8a92a0; background: transparent; }
.platforms-inner > small { max-width: 640px; display: block; margin: 21px auto 0; color: #8a92a0; font-size: 12px; line-height: 1.75; }

.faq { padding: 105px 22px; background: #fff; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { overflow: hidden; border: 1px solid #edf0f3; border-radius: 13px; background: #fff; box-shadow: 0 1px 2px rgba(20, 30, 50, .03); }
.faq-list summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 19px; color: #273a54; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: #8b98a8; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(180deg); }
.faq-list details p { margin: 0; padding: 0 19px 18px; color: #6b798c; font-size: 13px; line-height: 1.75; }

.member-preview { padding: 96px 22px; background: #fff; }
.member-preview-inner { max-width: 1040px; margin: 0 auto; padding: 48px 52px; overflow: hidden; border-radius: 20px; background: linear-gradient(150deg, #22456e, #1a3556); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.member-preview-copy h2 { margin: 14px 0; color: #fff; font-family: var(--serif); font-size: clamp(30px, 3.5vw, 42px); line-height: 1.25; }
.member-preview-copy p { max-width: 470px; margin: 0 0 24px; color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.8; }
.member-preview-copy .btn-light { border: 0; color: var(--navy); }
.member-preview-grid { display: grid; gap: 11px; }
.member-preview-grid article { display: grid; grid-template-columns: 34px 1fr; column-gap: 11px; padding: 16px 15px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 13px; background: rgba(255, 255, 255, .06); }
.member-preview-grid b { width: 32px; height: 32px; display: grid; place-items: center; grid-row: span 2; border-radius: 10px; background: #f7e9c6; color: #8c6420; }
.member-preview-grid strong { font-size: 14px; }
.member-preview-grid span { margin-top: 4px; color: rgba(255, 255, 255, .67); font-size: 11px; }

.download { padding: 84px 24px; }
.download-inner { max-width: 1040px; }
.download h2 { font-size: clamp(32px, 4vw, 46px); }

@keyframes landing-orbit-drift { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-8px); } }
@keyframes landing-orbit-pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.35); opacity: 1; } }
@keyframes landing-core-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes landing-progress-shift { 0%, 100% { width: 32%; } 50% { width: 78%; } }

@media (max-width: 860px) {
  .landing-hero { padding-top: 58px; }
  .hero-orbit { height: 170px; }
  .ring-one { width: 560px; }
  .ring-two { width: 430px; }
  .workflow.landing-section, .miniapp.landing-section { grid-template-columns: 1fr; gap: 48px; padding-top: 80px; padding-bottom: 80px; }
  .workflow-steps { margin-top: 0; }
  .install-preview { order: -1; min-height: 330px; }
  .preview-body { min-height: 250px; }
  .member-preview-inner { grid-template-columns: 1fr; padding: 38px 30px; gap: 30px; }
  .member-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .member-preview-grid article { display: block; }
  .member-preview-grid b { margin-bottom: 11px; }
  .member-preview-grid span { display: block; }
}

@media (max-width: 540px) {
  .landing-hero { min-height: auto; padding: 48px 18px 10px; }
  .hero-break { display: block; }
  .hero-lead { font-size: 15px !important; }
  .landing-hero .hero-actions { margin-top: 25px; padding: 0; }
  .landing-hero .hero-actions .btn { width: 100%; }
  .hero-orbit { width: 100%; height: 145px; margin-top: 18px; }
  .ring-one { width: 420px; height: 110px; }
  .ring-two { width: 330px; height: 86px; }
  .orbit-core { width: 145px; height: 98px; }
  .orbit-core img { width: 30px; height: 30px; }
  .dot-a { left: 10%; }
  .dot-b { right: 10%; }
  .feature-band { padding-top: 76px; padding-bottom: 78px; }
  .section-head { margin-bottom: 32px; }
  .workflow.landing-section, .miniapp.landing-section { padding-left: 20px; padding-right: 20px; }
  .preview-body { grid-template-columns: 1fr; gap: 12px; padding: 15px; }
  .preview-form { display: none; }
  .plugin-pop { width: 190px; margin: 0 auto; }
  .preview-caption { right: 4px; bottom: 8px; }
  .platforms { padding: 76px 20px; }
  .faq { padding: 78px 16px; }
  .faq-list summary { padding: 0 15px; }
  .faq-list details p { padding-left: 15px; padding-right: 15px; }
  .member-preview { padding: 72px 16px; }
  .member-preview-inner { padding: 32px 22px; }
  .member-preview-grid { grid-template-columns: 1fr; }
  .member-preview-grid article { display: grid; }
  .member-preview-grid b { margin: 0; }
  .download { padding: 70px 20px; }
  .download-actions, .download-actions .btn { width: 100%; }
  .site-header { height: 64px; }
  .site-header .brand { font-size: 16px; }
  .site-header .brand img { width: 31px; height: 31px; }
  .header-workspace-btn { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-dot, .orbit-core, .plugin-progress i { animation: none; }
  .preview-frame { transition: none; }
}
