/* Chuyển động + khu mới của landing HST SEO (07/10/2026): đường line chảy kiểu aios.hasontech.vn (stroke-dash chạy +
   "gói dữ liệu" sáng dọc đường), vòng cung nền, hiện dần khi cuộn, sơ đồ luồng AI, ảnh người thật, bảng giá động
   (lấy từ hst-system), khu ChatGPT. Chỉ dùng transform/opacity/stroke-dashoffset; tắt hết khi giảm chuyển động. */
:root { --flow-line: #0f88d6; --flow-soft: #b9dcf3; --packet: #19b4ff; --ok: #16a34a; --warm: #f59e0b; }

/* ---------- đường line chảy ---------- */
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-svg path { fill: none; }
.flow-svg .flow-base { stroke: var(--flow-soft); stroke-width: 1.5; }
.flow-svg .flow-dash { stroke: var(--flow-line); stroke-width: 1.6; stroke-dasharray: 5 7; opacity: .55; animation: flow-dash 1.2s linear infinite; }
.flow-svg .flow-packet { stroke: var(--packet); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 98;
  filter: drop-shadow(0 0 4px #19b4ffaa); animation: flow-packet 3.6s cubic-bezier(.55,.1,.45,.9) infinite; }
.flow-svg .flow-packet.out { stroke: var(--ok); filter: drop-shadow(0 0 4px #16a34a99); animation-delay: 1.8s; }
.flow-svg .flow-packet.d1 { animation-delay: .6s; } .flow-svg .flow-packet.d2 { animation-delay: 1.2s; }
.flow-svg .flow-packet.d3 { animation-delay: 2.4s; }
@keyframes flow-dash { to { stroke-dashoffset: -24; } }
@keyframes flow-packet { 0% { stroke-dashoffset: 0; opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }

/* vòng cung nền hero (giống aios) */
.hero-arcs { position: absolute; right: -14%; top: 50%; width: 900px; height: 900px; transform: translateY(-50%); pointer-events: none; z-index: 0; }
.hero-arcs circle { fill: none; stroke: #9fcdee; stroke-width: 1; opacity: .45; }
.hero-arcs .arc-dash { stroke-dasharray: 3 9; animation: arc-spin 60s linear infinite; transform-origin: 450px 450px; }
.hero-arcs .arc-dash.rev { animation-duration: 90s; animation-direction: reverse; }
@keyframes arc-spin { to { transform: rotate(360deg); } }
.hero-grid { z-index: 1; }

/* hero: chip nguồn dữ liệu → dashboard → kết quả */
.hero-stage { position: relative; padding-left: 210px; }
.hero-stage .product-figure { position: relative; z-index: 2; }
.flow-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #dceaf5; box-shadow: 0 10px 24px #12344b14; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.flow-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--flow-line); box-shadow: 0 0 0 4px #0f88d61f; }
.flow-chip.green i { background: var(--ok); box-shadow: 0 0 0 4px #16a34a1f; }
.flow-chip.amber i { background: var(--warm); box-shadow: 0 0 0 4px #f59e0b26; }

.hero-stage .chip-gsc { left: 0; top: 22%; } .hero-stage .chip-ga4 { left: 34px; top: 42%; } .hero-stage .chip-web { left: 0; top: 62%; }
.hero-stage .flow-svg { z-index: 1; }

/* số liệu đếm + biểu đồ tự vẽ */
.js-ready .chart-line.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 2.2s ease-out forwards; }
.js-ready .sparkline.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw-line 1.6s ease-out .3s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.health-bar i { transition: width 1.6s cubic-bezier(.2,.8,.2,1); }

/* hiện dần khi cuộn (chỉ khi JS chạy — không JS thì nội dung hiện bình thường) */
.js-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js-ready .reveal.in { opacity: 1; transform: none; }

/* ---------- sơ đồ luồng AI ---------- */
.ai-flow-section { padding: 100px 0 40px; background: linear-gradient(180deg, #fff 0%, #f5f9fc 100%); overflow: hidden; }
.ai-flow-head { display: grid; grid-template-columns: 1fr .9fr; gap: 60px; align-items: center; }
.ai-flow-head h2 { font-size: clamp(32px, 3.1vw, 42px); line-height: 1.3; letter-spacing: -1px; margin-top: 12px; color: var(--ink); }
.ai-flow-head h2 span { color: var(--blue); }
.ai-flow-head p { font-size: 17px; line-height: 1.8; color: var(--muted); margin-top: 16px; }
.photo-card { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px #12344b1f; background: #eaf4fc; }
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transform: scale(1.04); transition: transform 1.2s ease; }
.photo-card.in img, .photo-card:hover img { transform: scale(1); }
.photo-card .photo-badge { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 10px; align-items: center; background: #ffffffeb;
  backdrop-filter: blur(6px); padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 10px 20px #12344b1a; }
.photo-card .photo-badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 #16a34a66; animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px #16a34a00; } 100% { box-shadow: 0 0 0 0 #16a34a00; } }

.ai-flow { display: grid; grid-template-columns: 1.1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 0; margin-top: 60px; }
.flow-node { position: relative; background: #fff; border: 1px solid #dceaf5; border-radius: 16px; padding: 18px 16px; box-shadow: 0 14px 30px #12344b0f; min-height: 132px; }
.flow-node h3 { font-size: 17px; color: var(--ink); margin: 10px 0 6px; }
.flow-node p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.flow-node .node-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #eaf4fc; color: var(--blue); }
.flow-node .node-icon .icon { width: 20px; height: 20px; }
.flow-node.sources ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.flow-node.sources li { font-size: 13px; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.flow-node.sources li i { width: 7px; height: 7px; border-radius: 50%; background: var(--flow-line); }
.flow-node.hub { background: linear-gradient(160deg, #0874c9, #0a5ea3); color: #fff; border: 0; text-align: center; }
.flow-node.hub h3, .flow-node.hub p { color: #fff; } .flow-node.hub p { opacity: .85; }
.flow-node.hub .node-icon { margin: 0 auto; background: #ffffff26; color: #fff; position: relative; }
.flow-node.hub .node-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 16px; border: 2px solid #ffffff66; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.flow-node.done .node-icon { background: #e7f7ee; color: var(--ok); }
.flow-link { position: relative; width: 54px; height: 2px; background: repeating-linear-gradient(90deg, var(--flow-line) 0 6px, transparent 6px 12px);
  background-size: 24px 2px; animation: link-flow 1.2s linear infinite; opacity: .7; }
.flow-link::after { content: ""; position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--packet); box-shadow: 0 0 10px #19b4ff; animation: link-packet 2.4s ease-in-out infinite; }
.flow-link.l2::after { animation-delay: .8s; } .flow-link.l3::after { animation-delay: 1.6s; background: var(--ok); box-shadow: 0 0 10px #16a34a; }
@keyframes link-flow { to { background-position: 24px 0; } }
@keyframes link-packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.flow-caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* vòng lặp — vòng tròn có gói dữ liệu chạy quanh */
.loop-ring { width: 150px; height: 150px; flex: none; }
.loop-ring circle { fill: none; }
.loop-ring .r-base { stroke: #d6e8f6; stroke-width: 2; }
.loop-ring .r-dash { stroke: var(--flow-line); stroke-width: 2; stroke-dasharray: 4 8; animation: flow-dash 1.2s linear infinite; }
.loop-ring .r-packet { stroke: var(--packet); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 3 97; animation: ring-orbit 6s linear infinite; }
@keyframes ring-orbit { to { stroke-dashoffset: -100; } }
.workflow-section .section-heading { align-items: center; }
.workflow > li { transition: transform .3s; } .workflow > li:hover { transform: translateY(-4px); }

/* ---------- đối tượng có ảnh ---------- */
.audience-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.audience-photo { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid #e3e9ee; box-shadow: 0 14px 30px #12344b0d; transition: transform .35s, box-shadow .35s; }
.audience-photo:hover { transform: translateY(-6px); box-shadow: 0 22px 40px #12344b1f; }
.audience-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.audience-photo div { padding: 18px 20px 22px; }
.audience-photo span { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--blue); }
.audience-photo h3 { font-size: 19px; margin: 6px 0; color: var(--ink); }
.audience-photo p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- khu ChatGPT ---------- */
.chatgpt-section { padding: 100px 0; background: #0e2238; color: #dbe7f2; position: relative; overflow: hidden; }
.chatgpt-section::before { content: ""; position: absolute; inset: auto -20% -60% auto; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, #0f88d640, transparent 65%); }
.chatgpt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; position: relative; }
.chatgpt-section h2 { font-size: clamp(32px, 3.1vw, 42px); line-height: 1.3; letter-spacing: -1px; color: #fff; margin-top: 12px; }
.chatgpt-section h2 span { color: #5fb6ec; }
.chatgpt-section p { font-size: 17px; line-height: 1.8; margin-top: 16px; }
.chatgpt-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.chatgpt-list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.6; }
.chatgpt-list li b { color: #fff; }
.chatgpt-list .icon { flex: none; width: 22px; height: 22px; color: #5fb6ec; margin-top: 2px; }
.chatgpt-note { font-size: 14px !important; color: #9fb5c9; border-left: 3px solid #f59e0b; padding-left: 12px; }
.chatgpt-section .photo-card { box-shadow: 0 30px 60px #00000055; }
.chatgpt-section .photo-badge { color: var(--ink); }

/* ---------- bảng giá ---------- */
.pricing-section { padding: 100px 0; background: linear-gradient(180deg, #f5f9fc, #fff); }
.pricing-section .center-heading { max-width: 760px; margin: 0 auto; }
.term-switch { max-width: 100%; flex-wrap: wrap; justify-content: center; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid #dceaf5; margin: 28px auto 0; }
.term-switch-wrap { text-align: center; }
.term-switch button { min-height: 40px; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; }
.term-switch button[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 6px 14px #0874c933; }
.term-switch small { color: var(--ok); font-weight: 700; margin-left: 4px; }
.term-switch button[aria-pressed="true"] small { color: #c6f6d5; }
/* các gói trên MỘT hàng, trượt ngang (kéo/vuốt, cuộn, phím mũi tên khi focus, nút ‹ ›) */
.pricing-scroller { position: relative; margin-top: 34px; }
.pricing-grid { display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px; padding: 18px 4px 22px; scrollbar-width: thin; scrollbar-color: #b9dcf3 transparent; }
.pricing-grid:focus-visible { outline: 3px solid #0874c955; outline-offset: 4px; border-radius: 12px; }
.pricing-grid > * { flex: 0 0 clamp(250px, 23%, 290px); scroll-snap-align: start; }
.pricing-grid > .pricing-error { flex-basis: 100%; }
.pricing-grid::-webkit-scrollbar { height: 8px; } .pricing-grid::-webkit-scrollbar-thumb { background: #b9dcf3; border-radius: 8px; }
.price-nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid #dceaf5;
  background: #fff; color: var(--blue); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px #12344b1f; }
.price-nav.prev { left: -18px; } .price-nav.next { right: -18px; }
.price-nav:disabled { opacity: .35; cursor: default; }
.price-nav:focus-visible { outline: 3px solid #0874c966; outline-offset: 2px; }
.pricing-scroller.can-next::after, .pricing-scroller.can-prev::before { content: ""; position: absolute; top: 0; bottom: 0; width: 48px; pointer-events: none; z-index: 2; }
.pricing-scroller.can-next::after { right: 0; background: linear-gradient(90deg, transparent, #fbfdfe); }
.pricing-scroller.can-prev::before { left: 0; background: linear-gradient(-90deg, transparent, #f8fbfd); }
.plan-card { min-width: 0; position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #e3e9ee; border-radius: 18px; padding: 26px 22px;
  box-shadow: 0 14px 30px #12344b0d; transition: transform .3s, box-shadow .3s, border-color .3s; }
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px #12344b1f; border-color: #b9dcf3; }
.plan-card.free { border-color: #b8e6c9; background: linear-gradient(180deg, #f3fcf6, #fff 40%); }
.plan-card h3 { font-size: 20px; color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; }
.plan-price { margin: 14px 0 4px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 800; color: var(--ink); letter-spacing: -.5px; line-height: 1.2; overflow-wrap: anywhere; }
.plan-price small { display: inline-block; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.plan-sub { min-height: 40px; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.plan-sub b { color: var(--ok); }
.plan-limits { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; flex: 1; }
.plan-limits li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.plan-limits .icon { flex: none; width: 18px; height: 18px; color: var(--ok); margin-top: 2px; }
.plan-card .button { width: 100%; white-space: normal; text-align: center; }
.plan-card.free .button { background: var(--ok); box-shadow: 0 6px 14px #16a34a33; }
.plan-tag { position: absolute; top: -12px; left: 22px; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan-card.skeleton { display: none; } .js-ready .plan-card.skeleton { display: block; }
.plan-card.skeleton { min-height: 360px; background: linear-gradient(90deg, #f1f6fa 25%, #e8f0f6 37%, #f1f6fa 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border: 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; line-height: 1.7; }
.pricing-error { grid-column: 1 / -1; text-align: center; padding: 30px; border: 1px dashed #b9dcf3; border-radius: 14px; color: var(--ink); }

/* nút phụ cạnh nút chính */
.button-ghost { background: #fff; color: var(--blue); border: 1px solid #b9dcf3; box-shadow: none; }
.button-ghost:hover { background: #f1f8fd; }
.nav-login { font-weight: 600; }
.closing-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.closing-actions .button { margin-top: 0; min-height: 50px; }
.closing-actions .button-ghost { background: transparent; color: #fff; border-color: #ffffff80; }
.closing-actions .button-ghost:hover { background: #ffffff1a; }

/* nút Chọn gói trên header (mobile) */
.header-plan { display: none; }
/* nút dừng hiệu ứng (giống aios) — tạm dừng mọi chuyển động lặp trên trang */
.motion-toggle { position: absolute; z-index: 4; left: 0; top: -2%; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #dceaf5;
  background: #fff; color: var(--blue); font-size: 11px; cursor: pointer; box-shadow: 0 6px 16px #12344b14; }
.motion-toggle:focus-visible { outline: 3px solid #0874c966; outline-offset: 2px; }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* khối ngoài màn hình: dừng hiệu ứng lặp */
.offscreen *, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }

@media (max-width: 1200px) {
  .hero-stage { padding-left: 0; }
  .hero-stage .chip-gsc, .hero-stage .chip-ga4, .hero-stage .chip-web, .hero-stage .chip-top { left: 0; }
  .ai-flow { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ai-flow .flow-link { display: none; }
  .ai-flow-head, .chatgpt-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) { .pricing-grid > * { flex-basis: 82%; } .price-nav { display: none; } }
/* menu 1201–1320px: 7 mục + nút vẫn vừa một hàng */
@media (min-width: 1201px) and (max-width: 1320px) { .main-nav { gap: 16px; } .main-nav > a:not(.button) { font-size: 15px; } }
@media print { .js-ready .reveal { opacity: 1 !important; transform: none !important; } .pricing-grid { flex-wrap: wrap; overflow: visible; } .price-nav { display: none; } }
@media (max-width: 700px) {
  .header-inner { gap: 10px; }
  .header-plan { display: inline-flex; margin-left: auto; min-height: 42px; padding: 9px 12px; font-size: 14px; }
  .closing-actions { flex-direction: column; } .closing-actions .button { width: 100%; }
}
@media (max-width: 800px) {
  .ai-flow { gap: 0; }
  .ai-flow .flow-link { display: block; justify-self: center; width: 2px; height: 30px; background: var(--flow-soft); animation: none; }
  .ai-flow .flow-link::after { top: 0; left: 50%; margin: 0 0 0 -4.5px; animation: packet-down 2.4s linear infinite; }
  .motion-toggle { display: none; }
  .flow-chip { font-size: 12px; padding: 6px 10px; }
  .hero-stage .flow-chip, .hero-stage .flow-svg { display: none; }
  .hero-arcs { display: none; }
  .audience-photos { grid-template-columns: 1fr; }
  .ai-flow { grid-template-columns: 1fr; }
  .ai-flow-section, .chatgpt-section, .pricing-section { padding: 64px 0; }
  .loop-ring { display: none; }
}
@keyframes packet-down { from { transform: translateY(0); opacity: 0; } 20%, 80% { opacity: 1; } to { transform: translateY(30px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .motion-toggle { display: none; }
  .flow-svg .flow-dash, .flow-svg .flow-packet, .hero-arcs .arc-dash, .flow-chip, .flow-link, .flow-link::after, .loop-ring circle,
  .flow-node.hub .node-icon::after, .photo-card .photo-badge i, .plan-card.skeleton { animation: none !important; }
  .flow-svg .flow-packet, .flow-link::after, .loop-ring .r-packet { display: none; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .js-ready .chart-line.draw, .js-ready .sparkline.draw path { stroke-dasharray: none; animation: none; }
}

/* ---------- hero (bản 2): cột "Dữ liệu vào" bên trái → dashboard → thẻ kết quả nổi ở mép phải ---------- */
.hero-stage .preview-label { justify-content: center; }
.stage-tag { position: absolute; z-index: 3; left: 0; top: 12%; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #7093b0; }
.motion-toggle { top: auto; bottom: 6%; left: 0; }
.out-card { position: absolute; z-index: 4; right: -26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: #fff; border: 1px solid #dceaf5; border-radius: 14px; box-shadow: 0 18px 36px #12344b24; min-width: 214px;
  animation: out-float 7s ease-in-out infinite; }
.out-card.out-post { top: 7%; animation-delay: -3.5s; } .out-card.out-top { top: 57%; }
.out-card small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.out-card strong { display: block; font-size: 22px; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.out-card strong em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ok); }
.out-ico { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #fff4e0; color: #d97706; }
.out-ico.green { background: #e7f7ee; color: var(--ok); }
.out-ico .icon { width: 19px; height: 19px; }
.out-ico::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid currentColor; opacity: 0; animation: out-ping 3.6s ease-out infinite; }
.out-post .out-ico::after { animation-delay: 1.8s; }
.out-spark { width: 60px; height: 24px; flex: none; }
.out-spark path { fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js-ready .out-spark path { animation: draw-line-loop 3.6s ease-in-out infinite; }
@keyframes out-float { 50% { transform: translateY(-6px); } }
@keyframes out-ping { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes draw-line-loop { 0% { stroke-dashoffset: 1; } 45%, 100% { stroke-dashoffset: 0; } }
@media (max-width: 1320px) { .out-card { right: -8px; } }
@media (max-width: 1200px) { .out-card { right: 0; } }
@media (max-width: 800px) {
  .stage-tag { display: none; }
  .hero-stage { display: flex; flex-wrap: wrap; gap: 0 10px; }
  .hero-stage .product-figure { flex: 0 0 100%; }
  .out-card { position: static; flex: 1 1 0; min-width: 0; margin-top: 12px; gap: 9px; padding: 10px; animation: none; }
  .out-card.out-top { order: 2; } .out-card.out-post { order: 3; }
  .out-card small { white-space: normal; font-size: 11px; line-height: 1.35; }
  .out-card strong { font-size: 18px; } .out-card strong em { font-size: 11px; }
  .out-ico { width: 32px; height: 32px; border-radius: 9px; } .out-spark { display: none; }
}

/* ---------- vòng lặp 1→6 thành CHU TRÌNH: thẻ xếp vòng, đường line + gói dữ liệu chạy đúng thứ tự ---------- */
.cycle-wrap { position: relative; margin-top: 50px; }
.cycle-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.cycle-svg path { fill: none; }
.cycle-svg .flow-base { stroke: var(--flow-soft); stroke-width: 2; }
.cycle-svg .flow-dash { stroke: var(--flow-line); stroke-width: 2; stroke-dasharray: 6 8; opacity: .6; animation: flow-dash 1.2s linear infinite; }
.cycle-packet { stroke: var(--packet); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1.2 98.8; filter: drop-shadow(0 0 5px #19b4ffcc);
  animation: cycle-run 12s linear infinite; }
.cycle-packet.p2 { animation-delay: -4s; } .cycle-packet.p3 { animation-delay: -8s; }
@keyframes cycle-run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
.cycle-arrows circle { fill: #fff; stroke: #b9dcf3; stroke-width: 1.5; }
.cycle-arrows path { fill: none; stroke: var(--flow-line); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.workflow.cycle { position: relative; z-index: 1; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 72px;
  grid-template-areas: "s1 s2 s3" "s6 s5 s4"; }
.workflow.cycle > li { background: #fff; border: 1px solid #dceaf5; border-radius: 16px; padding: 22px 24px 24px; box-shadow: 0 12px 30px #12344b0f;
  transition: border-color .4s, box-shadow .4s, transform .3s; min-width: 0; }
.workflow.cycle > li::before { display: none; }
.workflow.cycle > li:nth-child(1) { grid-area: s1; } .workflow.cycle > li:nth-child(2) { grid-area: s2; } .workflow.cycle > li:nth-child(3) { grid-area: s3; }
.workflow.cycle > li:nth-child(4) { grid-area: s4; } .workflow.cycle > li:nth-child(5) { grid-area: s5; } .workflow.cycle > li:nth-child(6) { grid-area: s6; }
.workflow.cycle .step-top { justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.workflow.cycle .step-top > span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: #eaf5fd;
  color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: 0; transition: background .4s, color .4s; }
.workflow.cycle p { max-width: none; }
.workflow.cycle > li.is-active { border-color: #7cc3f0; box-shadow: 0 0 0 4px #0f88d61a, 0 16px 34px #0f88d622; }
.workflow.cycle > li.is-active .step-top > span { background: var(--blue); color: #fff; }
.workflow.cycle > li.is-active .step-top .icon { color: var(--blue); }
.cycle-wrap + .workflow-loop { margin-top: 30px; }
@media (max-width: 1000px) {
  .workflow.cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 44px; grid-template-areas: "s1 s2" "s6 s3" "s5 s4"; }
}
@media (max-width: 700px) {
  .cycle-wrap { margin-top: 30px; }
  .workflow.cycle { gap: 40px 30px; }
  .workflow.cycle > li { padding: 16px 14px 18px; border-radius: 14px; }
  .workflow.cycle h3 { font-size: 16px; } .workflow.cycle p { font-size: 14px; line-height: 1.65; margin-top: 6px; }
  .workflow.cycle .step-top { margin-right: 0; }
  .workflow.cycle .step-top > span { min-width: 30px; height: 30px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cycle-packet, .out-ico::after { display: none; } .out-card { animation: none; } }

/* gói nổi bật (Cơ bản): viền xanh đậm, nền nhấn, nhô cao hơn, nhãn "Khuyên dùng", nút có ánh sáng chạy */
.plan-card.featured { border: 2px solid var(--blue); background: linear-gradient(180deg, #eaf5fd, #fff 46%);
  box-shadow: 0 0 0 5px #0f88d614, 0 24px 48px #0874c92e; transform: translateY(-8px); }
.plan-card.featured:hover { transform: translateY(-12px); border-color: var(--blue); }
.plan-card.featured .plan-tag { background: linear-gradient(90deg, #0874c9, #19b4ff); box-shadow: 0 6px 14px #0874c955; }
.plan-card.featured .plan-price { color: var(--blue); }
.plan-pitch { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: #35607f; }
.plan-card.featured .button { position: relative; overflow: hidden; box-shadow: 0 10px 22px #0874c955; }
.plan-card.featured .button::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, #ffffff73, transparent); transform: skewX(-20deg); animation: btn-shine 3.2s ease-in-out infinite; }
@keyframes btn-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.pricing-grid { padding-top: 26px; }
@media (prefers-reduced-motion: reduce) { .plan-card.featured .button::after { display: none; } .plan-card.featured { transform: none; } }
@media (max-width: 700px) { .pricing-scroller.can-next::after, .pricing-scroller.can-prev::before { width: 18px; } }

/* "Kết nối những công cụ…": màn ≤1200px — tiêu đề nằm riêng một hàng (căn giữa), các thương hiệu là ô đều nhau bên dưới */
@media (max-width: 1200px) {
  .integrations > p { grid-column: 1 / -1; justify-self: center; text-align: center; font-size: 15px; line-height: 1.5; }
  .integrations > p br { display: none; }
  .integrations > p strong { margin-left: 4px; }
  .integration-brand { width: 100%; align-self: stretch; min-height: 66px; box-sizing: border-box; justify-content: center; padding: 10px; border: 1px solid #e3edf5; border-radius: 12px; background: #fff; }
  .integrations { row-gap: 14px; align-items: stretch; }
}
@media (max-width: 700px) {
  .integrations { gap: 12px; justify-items: stretch; }
  .integrations > p { margin-bottom: 4px; }
  .integration-brand { justify-content: flex-start; min-width: 0; font-size: 17px; }
  .integration-brand small { font-size: 12px; }
}
