/* curtainos.com 粒子版視覺：深藍底、固定的粒子背景；每段只有一張亮卡當主角，其他資料無框、錯落融在背景裡。 */
:root {
  --page: #0F2139;
  --glass: #142B4CCC;
  --glass-line: #FFFFFF1F;
  --on: #E8EEF6;
  --on-2: #A9B8CB;
  --sky2: #7FB4EE;
  --soft-line: #FFFFFF1A;
}
html { background: var(--page); }
body { position: relative; color: var(--on); background: transparent; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -10% -10% auto; height: 120lvh; z-index: -2; pointer-events: none; background-color: var(--page);
  background-image: radial-gradient(34% 30% at 72% 30%, #2B5F9E8C, transparent 72%), radial-gradient(36% 30% at 14% 84%, #1F55966B, transparent 72%), radial-gradient(30% 26% at 86% 74%, #2A62A65C, transparent 72%), radial-gradient(24% 18% at 58% 98%, #3A70AC4D, transparent 72%), radial-gradient(20% 30% at 4% 40%, #17406F5C, transparent 72%);
  animation: nebula 28s ease-in-out infinite alternate;
}
@keyframes nebula { from { transform: translate(-1.5%, 1%) scale(1); } to { transform: translate(2%, -1.5%) scale(1.05); } }
.field-canvas { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; }

a { color: var(--sky2); }
.eyebrow { color: var(--sky2); }
.fine, .stage-note { color: var(--on-2); }
.sec-sub { color: var(--on-2); }
.more { color: var(--sky2); }

/* 頂條 */
.nav { background: #0F2139A6; border-bottom-color: var(--soft-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-links a, .nav-login { color: var(--on); }

/* 所有段落透明，粒子背景才看得到 */
.statement, .gains, .flow, .aftercare, .owner, .line, .modules, .start, .plans, .faq, .close, .foot { background: transparent; }

/* ---- 首屏 ---- */
.hero { padding: 0; text-align: left; overflow: visible; }
.hero-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; width: min(1320px, 100% - 2 * var(--gutter) - 32px); min-height: calc(100vh - 52px); min-height: calc(100svh - 52px); margin-inline: auto; }
.hero-copy { width: auto; margin: 0; }
.hero .eyebrow { color: var(--on-2); }
.hero-title { color: #FFFFFF; font-size: clamp(52px, 6.6vw, 96px); }
.hero-line + .hero-line { color: var(--sky2); }
.hero-sub { margin-inline: 0; color: var(--on-2); }
.hero-cta { justify-content: flex-start; }
.hero-aside { position: relative; align-self: stretch; pointer-events: none; }
.hero-mark { display: none; position: absolute; left: 50%; top: 50%; width: min(70%, 360px); height: auto; transform: translate(-50%, -50%); }
.no-field .hero-mark { display: block; }
.hd { position: absolute; margin: 0; color: var(--on); opacity: .82; animation: drift 11s ease-in-out infinite; }
.hd small { display: block; font-size: 13px; color: var(--on-2); }
.hd b { font-family: var(--latin); font-weight: 500; font-variant-numeric: tabular-nums; }
.hd-date { right: 0; top: 7%; display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; --dx: -4px; --dy: 6px; animation-duration: 13s; }
.hd-date b { font-size: 30px; line-height: 38px; }
.hd-due { left: 2%; top: 13%; --dx: 6px; --dy: -7px; }
.hd-due b { font-size: 24px; line-height: 32px; }
.hd-today { right: -1%; bottom: 7%; font-size: 13px; line-height: 26px; --dx: -5px; --dy: -6px; animation-duration: 12s; }
.hd-today li:nth-child(2) { padding-left: 20px; }
.hd-today li:nth-child(3) { padding-left: 6px; }
.hd-today time { margin-right: 10px; font-family: var(--latin); color: var(--sky2); }
.hd-log { left: 0; bottom: 9%; display: flex; flex-direction: column; font-family: var(--latin); font-size: 12px; line-height: 20px; color: var(--on-2); opacity: .66; --dx: 5px; --dy: 6px; animation-duration: 14s; }
.hd-log span:nth-child(2) { padding-left: 18px; }
.hd-log span:nth-child(3) { padding-left: 6px; }
.hd-note { left: 0; bottom: 4%; font-size: 12px; color: var(--on-2); opacity: .6; animation: none; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: var(--dx, 5px) var(--dy, -6px); } }

/* 產品畫面是這一段的亮卡 */
.hero-stage { margin-top: 24px; }
.hero-shot { background: none; padding-top: 0; }
.hero-shot .mk-win { box-shadow: 0 0 0 1px #FFFFFF1F, 0 40px 100px -30px #040A14, 0 0 120px 10px #2F7FE033; }

/* ---- 痛點 ---- */
.statement-text .w { color: #FFFFFF; }
.statement-text .w-brand.is-lit { color: var(--sky2); }
.statement-text { text-shadow: 0 2px 24px #0F213999; }

/* ---- 好處：一張亮卡，其他融在背景 ---- */
.tile { background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--on); }
.tile h3 { color: #FFFFFF; }
.tile p, .tile-kicker { color: var(--on-2); }
.tile-kicker { color: var(--sky2); }
.tile-dark { background: #0A1830D9; }
.tile-dark p, .tile-dark .tile-kicker { color: var(--on-2); }
.tile-ivory { background: linear-gradient(160deg, #EAD9BF1F 0%, #142B4CCC 70%); }
.tile-blue { background: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF1F, 0 40px 90px -30px #040A14, 0 0 110px 6px #2F7FE02E; color: var(--ink); }
.tile-blue h3 { color: var(--ink); }
.tile-blue p { color: var(--muted); }
.tile-blue .tile-kicker { color: var(--blue); }
.tile-blue .mini-flow span { color: var(--ink); }
.tile-blue .mini-flow span.is-on { color: var(--white); }
.tile:not(.tile-blue) .mini-flow span { color: var(--on); background: #FFFFFF14; border-color: var(--glass-line); }
.tile:not(.tile-blue) .mini-flow span.is-on { color: var(--white); background: var(--blue); border-color: var(--blue); }
.tile:not(.tile-blue) .mini-flow i { background: var(--glass-line); }
.also li { color: var(--on-2); border-top-color: var(--soft-line); }
.also strong { color: var(--on); }

/* ---- 流程 ---- */
.flow-step h3 { color: #FFFFFF; }
.step-no { color: var(--sky2); }
.flow-step p { color: var(--on-2); }
.stage-frame { box-shadow: 0 0 0 1px #FFFFFF1F, 0 40px 100px -30px #040A14, 0 0 120px 10px #2F7FE02E; }

/* ---- 回購 ---- */
.aftercare .eyebrow { color: var(--sky2); }
.aftercare .sec-sub, .after-points p { color: var(--on-2); }
.curtain-card { box-shadow: 0 0 0 1px #FFFFFF1F, 0 50px 120px -30px #2F7FE066; }

/* ---- 經營：數字無框，高低錯落 ---- */
.stat { padding: 8px 0; background: none; border-radius: 0; }
.stat-q { color: var(--on); }
.stat-num { color: #FFFFFF; }
.stat-unit, .stat-a { color: var(--on-2); }
.stat-due { color: #FFA39B; }
.bar-a { background: #FFFFFF2E; }

/* ---- LINE ---- */
.line-list li { background: none; padding: 10px 0 10px 22px; border-radius: 0; border-left: 2px solid #06C75599; }
.line-list strong { color: #FFFFFF; }
.line-list span { color: var(--on-2); }

/* ---- 模組 ---- */
.module-grid li { border-top-color: var(--soft-line); }
.module-grid strong { color: var(--on); }
.module-grid span { color: var(--on-2); }
.real-shot .mk-win { box-shadow: 0 0 0 1px #FFFFFF1F, 0 40px 100px -30px #040A14, 0 0 110px 6px #2F7FE02E; }

/* ---- 導入：沒有框，步驟錯落 ---- */
.start-steps li { background: none; padding: 8px 0; border-radius: 0; }
.start-steps strong { color: #FFFFFF; }
.start-steps span:last-child { color: var(--on-2); }

/* ---- 方案：主推方案是唯一的亮卡 ---- */
.plan { background: var(--glass); border-color: var(--glass-line); }
.plan h3 { color: #FFFFFF; }
.plan-price, .plan-terms, .plan p:last-child { color: var(--on-2); }
.plan-price strong, .plan-seats { color: var(--on); }
.plan:hover { border-color: var(--sky2); }
.plan-featured { background: #FFFFFF; border-color: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF1F, 0 40px 90px -30px #040A14, 0 0 110px 6px #2F7FE033; }
.plan-featured h3, .plan-featured .plan-price strong, .plan-featured .plan-seats { color: var(--ink); }
.plan-featured .plan-price, .plan-featured .plan-terms, .plan-featured p:last-child { color: var(--muted); }

/* ---- 常見問題 ---- */
.faq h2 { color: #FFFFFF; }

/* AI 專員入口融入背景 */
.ai-launcher { color: var(--on); background: #142B4CCC; border-color: var(--glass-line); }
.ai-launcher svg { stroke: var(--sky2); }
.faq-list, .faq details { border-color: var(--soft-line); }
.faq summary { color: var(--on); }
.faq summary::after, .faq details p { color: var(--on-2); }

/* ---- 收尾：logo 由粒子聚成 ---- */
.close-mark { width: 240px !important; height: 240px !important; max-width: 60vw; margin-bottom: 8px !important; border-radius: 0 !important; visibility: hidden; }
.no-field .close-mark { visibility: visible; width: 96px !important; height: 96px !important; }
.close h2 { color: #FFFFFF; }
.close .hero-cta { justify-content: center; }

/* ---- 頁尾 ---- */
.foot { color: var(--on-2); border-top-color: var(--soft-line); }
.foot-brand { color: var(--on); }
.foot-brand img { background: #FFFFFF; border-radius: 7px; padding: 2px; }

h2 { color: #FFFFFF; }

/* 寬畫面才做錯落 */
@media (min-width: 961px) {
  .stat:nth-child(2) { transform: translateY(44px); }
  .stat:nth-child(3) { transform: translateY(-14px); }
  .stats { margin-bottom: 44px; }
  .start-steps li:nth-child(2) { transform: translateY(36px); }
  .start-steps li:nth-child(3) { transform: translateY(-8px); }
  .start-steps li:nth-child(4) { transform: translateY(26px); }
  .start-steps { margin-bottom: 36px; }
  .line-list li:nth-child(2) { margin-left: 34px; }
  .line-list li:nth-child(3) { margin-left: 10px; }
  .line-list li:nth-child(4) { margin-left: 48px; }
  .after-points li:nth-child(2) { transform: translateY(30px); }
  .after-points li:nth-child(3) { transform: translateY(-6px); }
  .plan-grid { align-items: center; }
  .plan-featured { padding-block: 56px; }
}
@media (max-width: 960px) {
  .hero-top { grid-template-columns: 1fr; width: min(1320px, 100% - 2 * var(--gutter)); min-height: 0; gap: 0; }
  .hero-aside { order: -1; height: 38vh; height: 38svh; min-height: 236px; }
  .hero-copy { padding-bottom: 32px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hd-today, .hd-log, .hd-note { display: none; }
  .hd-date { top: 12px; }
  .hd-date b { font-size: 20px; line-height: 26px; }
  .hd-date span { font-size: 13px; }
  .hd-due { left: 0; top: 12px; }
  .hd-due b { font-size: 18px; line-height: 24px; }
  .hero-stage { margin-top: 8px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 0; }
  .hero-title { font-size: 46px; }
  .dock { background: #0F2139CC; border-top-color: var(--soft-line); }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .hd { animation: none; }
}
