.landing-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-2);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, transparent, black 65%, transparent);
}
.hero-layout {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
  padding-block: 72px 64px;
  min-height: 720px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(2.75rem, 5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  max-width: 12ch;
}
.hero-lead {
  margin-top: 24px;
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--c-text-muted);
  max-width: 61ch;
}
.hero-lead strong {
  color: var(--c-text);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-actions .btn {
  min-height: 50px;
  padding-inline: 22px;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  color: var(--c-text-muted);
  font-size: 13px;
  font-weight: 600;
}
.hero-proof > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.proof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-ok);
  box-shadow: 0 0 0 4px var(--c-ok-bg);
}
.product-preview {
  position: relative;
  z-index: 1;
  min-width: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: 0 30px 70px rgba(10, 31, 57, 0.18);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}
.preview-topbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}
.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  background: var(--c-accent);
  color: var(--c-bg);
  border-radius: 4px;
  font-size: 13px;
}
.preview-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-ok);
}
.preview-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--c-ok-bg);
}
.preview-body {
  display: grid;
  grid-template-columns: 50px 1fr;
}
.preview-sidebar {
  border-right: 1px solid var(--c-border);
  padding-top: 18px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
}
.preview-sidebar span {
  width: 17px;
  height: 17px;
  border: 1px solid var(--c-border-strong);
  border-radius: 4px;
}
.preview-sidebar .active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 0 0 5px var(--c-accent-soft);
}
.preview-main {
  padding: 22px;
  min-width: 0;
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.preview-heading div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-heading small,
.preview-kpis small {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--c-text-subtle);
}
.preview-heading strong {
  font-size: 18px;
}
.preview-heading > span {
  font:
    11px ui-monospace,
    monospace;
  color: var(--c-text-subtle);
}
.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.preview-kpis > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: var(--c-surface-2);
}
.preview-kpis strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.preview-kpis i {
  font-size: 8px;
  font-style: normal;
  color: var(--c-accent);
  font-weight: 700;
}
.preview-kpis i.ok {
  color: var(--c-ok);
}
.preview-chart {
  margin-top: 10px;
  padding: 15px 15px 8px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
}
.chart-label {
  display: flex;
  justify-content: space-between;
  color: var(--c-text-subtle);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.preview-chart svg {
  display: block;
  width: 100%;
  height: 180px;
  margin-top: 8px;
}
.chart-lines {
  fill: none;
  stroke: var(--c-border);
  stroke-width: 1;
}
.chart-area {
  fill: var(--c-accent-soft);
}
.chart-stroke {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}
.preview-events {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 8px;
  color: var(--c-text-muted);
}
.preview-events span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.preview-events b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--c-ok);
}
.trust-strip {
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}
.trust-strip .container {
  padding-block: 26px;
}
.trust-strip li {
  padding-left: 16px;
  border-left: 2px solid var(--c-border);
}
.customer-proof {
  padding-block: 34px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
  overflow: hidden;
}
.customer-proof-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}
.customer-proof-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--c-border-control);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.motion-toggle svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.motion-toggle.is-active svg {
  opacity: 0.7;
}
.motion-toggle:hover,
.motion-toggle:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.customer-marquee {
  margin-top: 24px;
  overflow: hidden;
  outline-offset: 4px;
}
.customer-track {
  display: flex;
  width: max-content;
  animation: customer-scroll 55s linear infinite;
  animation-play-state: running;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.customer-marquee:hover .customer-track,
.customer-marquee:focus .customer-track,
.customer-marquee:focus-within .customer-track {
  animation-play-state: paused;
}
.customer-list {
  list-style: none;
  margin: 0;
  padding: 0 12px 0 0;
  display: flex;
  gap: 12px;
}
.customer-list li {
  width: clamp(250px, 24vw, 330px);
  min-height: 96px;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text-muted);
}
.customer-list strong {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.025em;
}
.customer-index {
  align-self: start;
  padding-top: 2px;
  font:
    700 10px ui-monospace,
    monospace;
  color: var(--c-accent);
}
.customer-proof-note {
  margin: 12px auto 0;
  text-align: center;
  color: var(--c-text-subtle);
  font-size: 11px;
  line-height: 1.5;
}
@keyframes customer-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.problem-copy {
  margin-top: var(--sp-3);
  font-size: var(--fs-md);
  line-height: 1.6;
}
.solution-copy {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--c-text-muted);
}
.isa-figure {
  position: relative;
  margin: var(--sp-12) 0 0;
  padding: clamp(20px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
}
.isa-figure:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}
.isa-pyramid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 4px 18px;
}
.isa-flow {
  position: absolute;
  z-index: 6;
  top: 24px;
  right: -12px;
  bottom: 24px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to top,
    transparent 0,
    var(--c-accent) 14%,
    var(--c-accent) 86%,
    transparent 100%
  );
  box-shadow:
    0 0 0 1px var(--c-surface),
    0 0 12px var(--c-accent);
  pointer-events: none;
}
.isa-flow:before,
.isa-flow:after {
  content: "";
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translateX(-50%) rotate(45deg);
  border-style: solid;
  border-color: var(--c-accent);
  filter: drop-shadow(0 0 5px var(--c-accent));
}
.isa-flow:before {
  top: -2px;
  border-width: 2px 0 0 2px;
}
.isa-flow:after {
  bottom: -2px;
  border-width: 0 2px 2px 0;
}
.isa-flow span {
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  border: 3px solid var(--c-surface);
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow:
    0 0 0 4px var(--c-accent-soft),
    0 0 16px var(--c-accent);
  animation: isa-data-flow 3.2s ease-in-out infinite;
}
.isa-flow span:nth-child(2) {
  animation-delay: 0.8s;
}
.isa-flow span:nth-child(3) {
  animation-delay: 1.6s;
}
.isa-flow span:nth-child(4) {
  animation-delay: 2.4s;
}
.isa-level {
  position: relative;
  isolation: isolate;
  min-height: 82px;
  display: grid;
  grid-template-columns: 64px 50px minmax(0, 1fr) 28px;
  align-items: center;
  padding: 8px 30px 8px 14px;
  filter: drop-shadow(0 5px 10px rgba(10, 31, 57, 0.08));
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}
.isa-level:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid var(--c-border-control);
  background: linear-gradient(110deg, var(--c-surface-2), var(--c-surface));
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
}
.isa-level:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 9px 16px rgba(10, 31, 57, 0.14));
}
.isa-index {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--sh-1);
  font:
    800 13px ui-monospace,
    monospace;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}
.isa-icon {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-text-muted);
}
.isa-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.isa-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 18px;
  text-align: center;
}
.isa-level strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.isa-level small {
  font-size: 12px;
  color: var(--c-text-muted);
}
.isa-signal {
  position: relative;
  z-index: 5;
  width: 10px;
  height: 10px;
  justify-self: end;
  border: 2px solid var(--c-surface);
  border-radius: 50%;
  background: var(--c-text-subtle);
  box-shadow: 0 0 0 3px var(--c-border);
}
.isa-l4 {
  width: 58%;
}
.isa-l3 {
  width: 68%;
}
.isa-l2 {
  width: 78%;
}
.isa-l1 {
  width: 89%;
}
.isa-l0 {
  width: 100%;
}
.isa-l1:before,
.isa-l2:before,
.isa-l3:before {
  border-color: var(--c-accent);
  background: linear-gradient(110deg, var(--c-accent-soft), var(--c-surface));
}
.isa-l1 .isa-icon,
.isa-l2 .isa-icon,
.isa-l3 .isa-icon {
  border-color: var(--c-accent);
  color: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-soft);
}
.isa-l1 .isa-signal,
.isa-l2 .isa-signal,
.isa-l3 .isa-signal {
  background: var(--c-accent);
  box-shadow: 0 0 0 4px var(--c-accent-soft);
}
.isa-legend {
  position: relative;
  margin-top: 30px;
  padding: 20px;
  border-left: 3px solid var(--c-accent);
  background: var(--c-surface-2);
}
.isa-legend > strong {
  font-size: 14px;
}
.isa-legend p {
  margin-top: 6px;
  max-width: 80ch;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.65;
}
.isa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.isa-chips span {
  padding: 5px 9px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-accent);
}
@keyframes isa-data-flow {
  0% {
    top: 100%;
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.7);
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 0;
    opacity: 0;
    transform: translate(-50%, -8px) scale(1);
  }
}
.final-cta {
  position: relative;
  overflow: hidden;
}
.final-cta:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 80px var(--c-accent-soft),
    0 0 0 160px var(--c-surface);
}
.final-cta .container {
  position: relative;
}
.section > .container > div:first-child h2 {
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--c-border-strong);
  box-shadow: var(--sh-2);
}
@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
    gap: 36px;
  }
  .product-preview {
    margin-right: -110px;
  }
  .preview-main {
    padding: 26px;
  }
  .hero-copy h1 {
    font-size: clamp(3.5rem, 5vw, 5rem);
  }
}
@media (max-width: 767px) {
  .hero-layout {
    padding-block: 56px 48px;
    min-height: auto;
  }
  .hero-copy h1 {
    font-size: 2.75rem;
  }
  .product-preview {
    transform: none;
  }
  .preview-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .preview-kpis > div:last-child {
    display: none;
  }
  .preview-main {
    padding: 14px;
  }
  .preview-chart svg {
    height: 120px;
  }
  .preview-events span:last-child {
    display: none;
  }
  .trust-strip li {
    padding-left: 12px;
  }
  .customer-list li {
    width: 270px;
  }
  .isa-figure {
    padding-inline: 12px;
  }
  .isa-pyramid {
    padding: 4px 24px 4px 0;
  }
  .isa-level {
    width: 100%;
    min-height: 78px;
    grid-template-columns: 48px 42px minmax(0, 1fr);
    padding: 7px 12px;
  }
  .isa-level:before {
    clip-path: none;
    border-radius: var(--r-md);
  }
  .isa-index {
    width: 40px;
    height: 40px;
  }
  .isa-icon {
    width: 36px;
    height: 36px;
  }
  .isa-icon svg {
    width: 21px;
    height: 21px;
  }
  .isa-copy {
    text-align: left;
    padding-inline: 10px 4px;
  }
  .isa-level small {
    font-size: 11px;
  }
  .isa-signal {
    display: none;
  }
  .isa-flow {
    top: 18px;
    right: 7px;
    bottom: 18px;
    width: 3px;
  }
  .isa-flow span {
    width: 10px;
    height: 10px;
    border-width: 2px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .isa-l4 {
    width: 68%;
  }
  .isa-l3 {
    width: 76%;
  }
  .isa-l2 {
    width: 84%;
  }
  .isa-l1 {
    width: 92%;
  }
  .isa-level {
    grid-template-columns: 58px 46px minmax(0, 1fr) 24px;
    padding-right: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-preview {
    transform: none;
  }
  .card,
  .isa-level {
    transition: none;
  }
  .isa-flow span {
    animation: none;
    display: none;
  }
  .customer-marquee {
    overflow: visible;
  }
  .customer-track {
    display: block;
    width: auto;
    animation: none;
    will-change: auto;
  }
  .customer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    padding: 0;
  }
  .customer-list[aria-hidden="true"] {
    display: none;
  }
  .customer-list li {
    width: auto;
  }
}

/* Override có chủ đích khi người dùng nhấn “Bật hiệu ứng”. */
@media (prefers-reduced-motion: reduce) {
  html.motion-enabled .customer-marquee {
    overflow: hidden;
  }
  html.motion-enabled .customer-track {
    display: flex;
    width: max-content;
    animation: customer-scroll 55s linear infinite !important;
    animation-duration: 55s !important;
    animation-iteration-count: infinite !important;
    will-change: transform;
  }
  html.motion-enabled .customer-list {
    display: flex;
    grid-template-columns: none;
    padding: 0 12px 0 0;
  }
  html.motion-enabled .customer-list[aria-hidden="true"] {
    display: flex;
  }
  html.motion-enabled .customer-list li {
    width: clamp(250px, 24vw, 330px);
  }
  html.motion-enabled .isa-flow span {
    display: block;
    animation: isa-data-flow 3.2s ease-in-out infinite !important;
    animation-duration: 3.2s !important;
    animation-iteration-count: infinite !important;
  }
  html.motion-enabled .isa-flow span:nth-child(2) {
    animation-delay: 0.8s !important;
  }
  html.motion-enabled .isa-flow span:nth-child(3) {
    animation-delay: 1.6s !important;
  }
  html.motion-enabled .isa-flow span:nth-child(4) {
    animation-delay: 2.4s !important;
  }
}

html.motion-paused .customer-track {
  animation-play-state: paused !important;
}
html.motion-paused .isa-flow span {
  display: none;
}
