/* ============================================================
   TuAI Vietnam — refresh.css
   视觉重做层：在 main.css / sections.css 之后加载，只做覆盖与增强。
   ============================================================ */

/* ---------------- 品牌 ---------------- */
.brand { gap: 10px; }
.brand__mark {
  width: 34px; height: 36px; object-fit: contain; flex: none;
  filter: drop-shadow(0 2px 10px rgba(0, 184, 248, .35));
  transition: transform var(--dur) var(--ease-out);
}
.brand__word { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--white); }
.brand__word em { font-style: normal; color: var(--cyan-400); }
.brand:hover .brand__mark { transform: translateY(-1px); }
.brand__plate { background: transparent; box-shadow: none; padding: 0; }

/* ---------------- 首屏：产品界面 ---------------- */
.app-mock {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 26, 59, .96), rgba(9, 15, 34, .98));
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 40px 120px -30px rgba(0, 80, 248, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  transform: perspective(1600px) rotateY(-5deg) rotateX(2deg);
  transform-origin: center right;
  transition: transform 700ms var(--ease-out);
}
.app-mock:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.app-mock::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background: radial-gradient(120% 80% at 90% 0%, rgba(0, 184, 248, .18), transparent 55%);
}
.app-mock__bar {
  display: flex; align-items: center; gap: 7px; padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03);
}
.app-mock__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.app-mock__bar .dot:nth-child(1) { background: #E80000; opacity: .8; }
.app-mock__bar .dot:nth-child(2) { background: var(--tuai-yellow); opacity: .85; }
.app-mock__bar .dot:nth-child(3) { background: #12B76A; opacity: .85; }
.app-mock__title { margin-left: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .62); font-family: var(--font-mono); }
.app-mock__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #7CE3B0;
  padding: 4px 10px; border-radius: 999px; background: rgba(18, 183, 106, .12);
}
.app-mock__live i { width: 6px; height: 6px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 3px rgba(18, 183, 106, .18); }
.app-mock__body { display: grid; grid-template-columns: 148px 1fr; min-height: 340px; }
.app-mock__side { padding: 14px 10px; border-right: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 4px; align-content: start; }
.ams { padding: 9px 11px; border-radius: 10px; display: grid; gap: 2px; border: 1px solid transparent; }
.ams b { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .86); }
.ams span { font-size: 10.5px; color: rgba(255, 255, 255, .42); }
.ams.is-on { background: rgba(0, 80, 248, .22); border-color: rgba(0, 184, 248, .4); }
.ams.is-on b { color: var(--white); }
.ams.is-on span { color: rgba(140, 223, 252, .9); }
.app-mock__main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.msg { border-radius: 12px; padding: 11px 13px; font-size: 12.5px; line-height: 1.5; }
.msg--user {
  justify-self: end; max-width: 88%; background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .9); border-bottom-right-radius: 4px;
}
.msg--ai {
  background: rgba(0, 80, 248, .13); border: 1px solid rgba(0, 184, 248, .26);
  border-bottom-left-radius: 4px; color: rgba(255, 255, 255, .82);
}
.msg__head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--white); }
.msg__head i {
  font-style: normal; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 6px; background: var(--grad-brand); font-size: 9px; font-weight: 800;
  color: var(--navy-950); flex: none;
}
.msg__head em { font-style: normal; font-weight: 500; font-size: 10.5px; color: rgba(140, 223, 252, .85); margin-left: auto; }
.msg--ai ul { margin: 9px 0 0; display: grid; gap: 5px; }
.msg--ai li { position: relative; padding-left: 14px; font-size: 11.5px; color: rgba(255, 255, 255, .72); }
.msg--ai li::before { content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan-400); }
.msg__ok {
  margin-top: 10px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; color: #7CE3B0;
  padding: 4px 9px; border-radius: 999px; background: rgba(18, 183, 106, .13);
}
.msg__ok::before { content: "\2713"; }
.msg__input {
  margin-top: 4px; display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: 999px; font-size: 12px; color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
}
.msg__input span { color: rgba(255, 255, 255, .28); }

/* ---------------- 首屏信任条 ---------------- */
.hero-meta {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 13px; color: rgba(255, 255, 255, .5);
  padding-bottom: clamp(28px, 4vw, 44px);
}
.hero-meta b { color: rgba(255, 255, 255, .78); font-weight: 600; }
.hero-meta i { font-style: normal; color: rgba(255, 255, 255, .25); margin: 0 2px; }

/* ---------------- 定价：3 档 + 2 宽卡 ---------------- */
.plans { grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: stretch; }
.plans > .plan { grid-column: span 2; }
.plans > .plan:nth-child(4),
.plans > .plan:nth-child(5) { grid-column: span 3; }
.plan {
  display: flex; flex-direction: column; border-radius: 20px; padding: 26px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)), var(--navy-900);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}
.plan:hover { transform: translateY(-4px); border-color: rgba(0, 184, 248, .38); }
.plan--hot {
  background: radial-gradient(120% 90% at 50% -10%, rgba(248, 192, 8, .13), transparent 60%),
              linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)), var(--navy-900);
  border-color: rgba(248, 192, 8, .55);
  box-shadow: 0 0 0 1px rgba(248, 192, 8, .18), 0 24px 60px -28px rgba(248, 192, 8, .5);
}
.plan--hot:hover { border-color: rgba(248, 192, 8, .85); }
.plan__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan__name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.plan--hot .plan__name { color: var(--tuai-yellow); }
.plan__price { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__for { font-size: 12.5px; color: rgba(255, 255, 255, .48); margin-top: 6px; line-height: 1.5; min-height: 34px; }
.plan ul { margin: 18px 0 22px; display: grid; gap: 9px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); }
.plan li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 6px;
  border-left: 1.6px solid var(--cyan-400); border-bottom: 1.6px solid var(--cyan-400); transform: rotate(-45deg);
}
.plan--hot li::before { border-color: var(--tuai-yellow); }
.plan .btn { margin-top: auto; width: 100%; min-height: 46px; font-size: 14px; }
.plan__badge {
  position: absolute; top: -11px; left: 22px; padding: 4px 11px; border-radius: 999px;
  background: var(--grad-cta); color: var(--navy-950);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.paths {
  margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; overflow: hidden;
  background: rgba(255, 255, 255, .02);
}
.path { border: 0; border-radius: 0; background: transparent; padding: 22px 20px; }
.path + .path { border-left: 1px solid rgba(255, 255, 255, .08); }
.path b { font-size: 14px; }
.path span { font-size: 12.5px; }

/* ---------------- 表单 ---------------- */
.plan-pick {
  display: none; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 14px; border-radius: 12px;
  background: rgba(0, 80, 248, .07); border: 1px solid rgba(0, 80, 248, .22);
  font-size: 13px; color: #16233D;
}
.plan-pick.is-on { display: flex; }
.plan-pick b { color: var(--blue-700); }
.plan-pick button { margin-left: auto; border: 0; background: transparent; cursor: pointer; font-size: 12px; color: #6B7280; text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-card { box-shadow: 0 30px 90px -40px rgba(0, 80, 248, .55), 0 0 0 1px rgba(255, 255, 255, .06); }

.form-success__next {
  margin-top: 20px; display: grid; gap: 10px; text-align: left;
  padding: 16px; border-radius: 14px; background: #F7F8FB; border: 1px solid #E5E7EB;
}
.form-success__next h4 { font-size: 13px; letter-spacing: .02em; color: #16233D; }
.form-success__next ol { display: grid; gap: 8px; margin-top: 2px; }
.form-success__next li { font-size: 13px; color: #4B5563; line-height: 1.55; padding-left: 18px; position: relative; }
.form-success__next li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-600); }
.form-success__act { margin-top: 16px; display: grid; gap: 10px; }
.form-success__act .btn { width: 100%; }
@media (min-width: 520px) { .form-success__act { grid-template-columns: 1fr 1fr; } }

/* ---------------- 版式节奏 ---------------- */
.section-head { max-width: 760px; }
.section-head .lead { max-width: 62ch; }
.h1 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.section--white { position: relative; }
.section--white::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 80, 248, .28), transparent);
}

/* ---------------- 响应式覆盖 ---------------- */
@media (max-width: 1279px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans > .plan, .plans > .plan:nth-child(4), .plans > .plan:nth-child(5) { grid-column: span 1; }
  .plans > .plan:last-child { grid-column: span 2; }
}
@media (max-width: 1023px) {
  .app-mock { transform: none; max-width: 560px; }
  .paths { grid-template-columns: repeat(2, 1fr); }
  .path:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .path:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 767px) {
  .plans { grid-template-columns: 1fr; }
  .plans > .plan:last-child { grid-column: span 1; }
  .app-mock__body { grid-template-columns: 1fr; }
  .app-mock__side { display: none; }
  .paths { grid-template-columns: 1fr; }
  .path + .path { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .hero-meta { font-size: 12px; gap: 8px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-mock, .app-mock:hover { transform: none; }
  .plan:hover { transform: none; }
}

/* 首屏标题：略收字号，避免越南语长词生硬断行 */
.hero__title { font-size: clamp(32px, 4.5vw, 62px); letter-spacing: -.035em; }
.hero__sub { max-width: 560px; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 52px); }
}
