/* ==========================================================================
   Uway AI Agent — landing page styles
   Brand tokens khớp với production ai.uway.asia (green #008253 · Be Vietnam Pro)
   Nhịp thị giác: typography lớn + khối tối/sáng luân phiên, không dùng ảnh stock
   ========================================================================== */

:root {
  /* Brand — đồng bộ ai.uway.asia */
  --green: #008253;
  --green-2: #00a066;
  --green-3: #6ee7b7;
  --green-soft: #e8f7f0;
  --green-line: rgba(0, 130, 83, .22);
  --green-glow: rgba(0, 130, 83, .18);

  --accent: #c4715b;
  --accent-2: #a85a45;
  --accent-soft: #f4ebe7;

  --ink: #0f1f17;
  --ink-2: #2d4a3a;
  --muted: #5f7268;

  --bg: #f9faf8;
  --bg-2: #ffffff;
  --bg-3: #f0f2ef;
  --line: #d8e8de;
  --line-strong: #b9d1c4;

  /* Trên nền tối */
  --d-bg: #0f1f17;
  --d-bg-2: #142a20;
  --d-line: rgba(255, 255, 255, .14);
  --d-line-strong: rgba(255, 255, 255, .26);
  --d-text: #eef5f0;
  --d-muted: #9fb3a8;

  --display: "Be Vietnam Pro", "Noto Sans", system-ui, sans-serif;
  --sans: "Be Vietnam Pro", "Noto Sans", system-ui, sans-serif;

  --space-2: 8px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;

  --radius: 4px;
  --radius-lg: 6px;

  --maxw: 1280px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible { outline-color: var(--green-3); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 900px) { .shell { padding-inline: 40px; } }

/* ==========================================================================
   Sections — nhịp tối / sáng luân phiên
   ========================================================================== */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section--paper { background: var(--bg); }
.section--white { background: var(--bg-2); }
.section--tint { background: var(--bg-3); }

.section--dark {
  background: var(--d-bg);
  color: var(--d-text);
  position: relative;
  overflow: hidden;
}

/* Mesh grid rất nhẹ thay cho ảnh — tạo chiều sâu kỹ thuật, không neon */
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 70% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
.section--dark > * { position: relative; }

/* ==========================================================================
   Section head — số section lớn là một phần nhận diện (tinh thần SDS)
   ========================================================================== */

.section-head {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section--dark .section-head { border-top-color: var(--d-line); }

.section-head__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.section-head__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--green);
}
.section--dark .section-head__num { color: var(--green-3); }

.section-head__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .section-head__label { color: var(--d-muted); }

.h2 {
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  max-width: 24ch;
}
.h2 em {
  font-style: normal;
  color: var(--green);
}
.section--dark .h2 em { color: var(--green-3); }

.lede {
  margin-top: 20px;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 58ch;
}
.section--dark .lede { color: var(--d-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--green-3); }

/* ==========================================================================
   Buttons — cạnh vuông, dày dặn, không bóng mềm
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn--primary:hover { background: var(--ink); border-color: var(--ink); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-2); }

.section--dark .btn--ghost {
  border-color: var(--d-line-strong);
  color: var(--d-text);
}
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }

.btn[disabled] { cursor: not-allowed; opacity: .5; }

/* Link kiểu SDS: chữ hoa + hairline + mũi tên */
.link-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 0 0;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s var(--ease);
}
.link-rule:hover { color: var(--green); }
.link-rule span:last-child { transition: transform .2s var(--ease); }
.link-rule:hover span:last-child { transform: translate(3px, -3px); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 250, 248, .88);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
  line-height: 0;
}

.brand__logo {
  display: block;
  height: 40px;
  width: auto;
}

@media (min-width: 900px) {
  .brand__logo { height: 48px; }
}

.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-block;
  padding: 10px 14px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .16s var(--ease);
}
.nav__link:hover { color: var(--green); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__cta { display: none; }

.lang {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}

.lang__btn {
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}

.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active {
  background: var(--green);
  color: #fff;
}
.lang__btn + .lang__btn { border-left: 1.5px solid var(--line-strong); }
.lang__btn.is-active + .lang__btn,
.lang__btn + .lang__btn.is-active { border-left-color: transparent; }

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 8px 0 24px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__link span[aria-hidden] { color: var(--green); font-size: .75rem; letter-spacing: .12em; }
.mobile-menu .btn { width: 100%; margin-top: 20px; }

@media (min-width: 1000px) {
  .nav, .header__cta { display: block; }
  .burger { display: none; }
  .mobile-menu, .mobile-menu.is-open { display: none; }
}

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 31, 23, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s, background-color .16s var(--ease);
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover { background: var(--green); }
.back-top:focus-visible { outline-offset: 4px; }

@media (min-width: 900px) {
  .back-top { right: 28px; bottom: 28px; }
}

/* ==========================================================================
   Hero — typography gánh toàn bộ sức nặng thị giác
   ========================================================================== */

.hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 9vw, 112px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto 30%;
  height: 620px;
  background: radial-gradient(closest-side, var(--green-glow), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 8.5vw, 6rem);
  letter-spacing: -.05em;
  line-height: .94;
  margin-block: 26px 26px;
}
.hero h1 span {
  display: block;
  color: var(--green);
}

.hero__desc {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
}

.hero__support {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 2px solid var(--green-line);
  color: var(--muted);
  font-size: .9375rem;
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__micro {
  margin-top: 18px;
  font-size: .875rem;
  color: var(--muted);
}

@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
}

/* ==========================================================================
   Flow visual — data-visual thay cho ảnh
   ========================================================================== */

.flow {
  border: 1.5px solid var(--ink);
  background: var(--bg-2);
  padding: clamp(20px, 3vw, 28px);
}

.flow__label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.flow__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.flow__node {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 13px;
  font-size: .875rem;
  font-weight: 600;
  transition: border-color .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.flow__node svg { flex: none; color: var(--muted); transition: color .35s var(--ease); }
.flow__node.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--ink);
}
.flow__node.is-active svg { color: var(--green); }

@media (hover: hover) and (pointer: fine) {
  .flow__node:hover {
    border-color: var(--green);
    background: var(--green-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 130, 83, .12);
  }
  .flow__node:hover svg { color: var(--green); }
}

.flow__core {
  margin-block: 10px;
  border: 1.5px solid var(--green);
  background: var(--ink);
  color: #fff;
  padding: 18px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.flow__core:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(15, 31, 23, .28);
}
.flow__core strong {
  display: block;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.flow__core span { font-size: .8125rem; color: var(--green-3); }

.flow__arrow {
  display: flex;
  justify-content: center;
  color: var(--line-strong);
  padding-block: 4px;
}

.flow__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Solution cards — hairline, không bọc hộp nặng
   ========================================================================== */

.cards {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s var(--ease);
}

.card__visual {
  position: relative;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 16 / 9;
  cursor: default;
}

.card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease), filter .35s var(--ease);
}

.card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 130, 83, .12), transparent 55%);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}

.card:hover .card__visual img {
  transform: scale(1.05);
  filter: saturate(1.12) contrast(1.04);
}

.card:hover .card__visual::after { opacity: 1; }

.card:hover .card__num { color: var(--green-2); }
.card:hover .card__tag { color: var(--green); }

@media (hover: hover) and (pointer: fine) {
  .card { transition: transform .3s var(--ease); }
  .card:hover { transform: translateY(-4px); }
}

.card__top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.card__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--green);
}
.card__tag {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.card__title {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 26ch;
}
.card__desc {
  color: var(--muted);
  font-size: .9375rem;
  max-width: 46ch;
}

/* Use case nhúng trực tiếp trong thẻ — cụ thể hơn danh sách tính năng chung */
.card__cases { margin-top: 26px; }

.card__cases-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
}

.case {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.case b {
  display: block;
  font-family: var(--display);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.case span {
  display: block;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .card { border-bottom: 0; }
}

/* ==========================================================================
   Before / After
   ========================================================================== */

.ba { display: grid; gap: 0; border-top: 1px solid var(--line); }

.ba__panel { padding: clamp(28px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .ba__panel:hover { background: rgba(0, 130, 83, .04); }
  .section--dark .ba__panel:hover { background: rgba(110, 231, 183, .05); }
}

.ba__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.ba__panel--after .ba__head { color: var(--green); }

.steps { display: grid; gap: 0; }
.steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 500;
}
.steps li b {
  font-family: var(--display);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  flex: none;
}
.steps li.is-human {
  color: var(--ink);
  font-weight: 700;
}
.steps li.is-human b { color: var(--green); }

.ba__note {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  color: var(--ink-2);
  font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
  font-weight: 500;
  max-width: 76ch;
}
.ba__note svg { flex: none; margin-top: 4px; color: var(--green); }

@media (min-width: 900px) {
  .ba { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .ba__panel { border-bottom: 0; }
}

.section--dark .ba,
.section--dark .ba__panel,
.section--dark .steps li { border-color: var(--d-line); }
.section--dark .ba__head { color: var(--d-muted); }
.section--dark .ba__panel--after .ba__head { color: var(--green-3); }
.section--dark .steps li b { color: var(--d-muted); }
.section--dark .steps li.is-human { color: var(--d-text); }
.section--dark .steps li.is-human b { color: var(--green-3); }
.section--dark .ba__note {
  border-top-color: var(--green-3);
  color: var(--d-text);
}
.section--dark .ba__note svg { color: var(--green-3); }

/* ==========================================================================
   Process (khối tối)
   ========================================================================== */

.process__lede {
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: 24px;
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  color: var(--d-muted);
  max-width: 58ch;
}

.process { display: grid; border-top: 1px solid var(--d-line); }

.process__item {
  display: grid;
  gap: 10px 40px;
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--d-line);
  transition: padding-left .25s var(--ease);
}
.process__item:hover { padding-left: 8px; }

.process__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -.03em;
  color: var(--green-3);
  line-height: 1;
}
.process__title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.process__desc { color: var(--d-muted); font-size: .9375rem; }

@media (min-width: 860px) {
  .process__item { grid-template-columns: 120px 1fr 1.2fr; align-items: baseline; }
}

.process__foot {
  margin-top: 32px;
  font-size: .8125rem;
  color: var(--d-muted);
  max-width: 74ch;
}

/* ==========================================================================
   Deployment
   ========================================================================== */

.deploy { display: grid; gap: 0; border-top: 1px solid var(--line); }

.deploy__card {
  padding: clamp(26px, 3.2vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  transition: transform .3s var(--ease);
}

.deploy__visual {
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 160px;
  background: var(--bg-3);
}

.deploy__visual img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .4s var(--ease), filter .3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .deploy__card:hover { transform: translateY(-3px); }
  .deploy__card:hover .deploy__visual img {
    transform: scale(1.06);
    filter: saturate(1.1);
  }
  .deploy__card:hover h3 { color: var(--green); }
}

.deploy__card h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  margin-bottom: 14px;
  transition: color .25s var(--ease);
}
.deploy__card p { color: var(--muted); font-size: .9375rem; max-width: 40ch; }

.guards {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.guards li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.guards svg { flex: none; color: var(--green); transition: transform .25s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .guards li:hover {
    color: var(--ink);
    padding-left: 6px;
  }
  .guards li:hover svg { transform: scale(1.12); }
}

@media (min-width: 860px) {
  .deploy { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .deploy__card { border-bottom: 0; }
  .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
}

/* ==========================================================================
   Capability — phân vai Uway / AIVision
   ========================================================================== */

.split { display: grid; gap: clamp(36px, 5vw, 56px); }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }

.panel { border-top: 2px solid var(--green); padding-top: 26px; }
.panel--muted { border-top-color: var(--line-strong); }

.panel h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 10px;
}
.panel__kicker {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 42ch;
}

.panel ul { display: grid; gap: 0; }
.panel ul li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
  color: var(--ink-2);
}
.panel ul svg { flex: none; color: var(--green); transform: translateY(3px); }
.panel--muted ul li { color: var(--muted); }
.panel--muted ul svg { color: var(--line-strong); }

.partner-line {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font-size: .875rem;
  color: var(--muted);
}
.partner-line strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink);
}

.tech-note {
  margin-top: 22px;
  font-size: .8125rem;
  color: var(--muted);
  max-width: 74ch;
}

.logos { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.logos__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.logos__row { display: flex; flex-wrap: wrap; gap: 8px; }
.logos__item {
  padding: 11px 18px;
  border: 1px dashed var(--line-strong);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* ==========================================================================
   ROI calculator
   ========================================================================== */

.field { display: grid; gap: 8px; padding-block: 18px; border-top: 1px solid var(--line); }
.field:first-child { border-top: 0; padding-top: 0; }

.field label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field .hint { font-size: .75rem; color: var(--muted); }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  outline: none;
}
.input[aria-invalid="true"],
.textarea[aria-invalid="true"] { border-color: var(--accent-2); }

/* ==========================================================================
   CTA band — contact
   ========================================================================== */

.section--cta {
  background: var(--d-bg);
  color: var(--d-text);
  padding-block: clamp(72px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 20% 50%, #000 15%, transparent 70%);
  pointer-events: none;
}

.section--cta > * { position: relative; }

.cta-band {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: end;
}

@media (min-width: 900px) {
  .cta-band {
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
  }
}

.cta-band__eyebrow {
  margin: 0 0 16px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--d-muted);
}

.cta-band__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  letter-spacing: -.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--green-3);
}

.cta-band__desc {
  margin: 0 0 28px;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--d-muted);
}

.cta-band__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile: full-bleed tap targets + tighter header chrome */
@media (max-width: 639px) {
  .shell { padding-inline: 16px; }

  .header__bar { gap: 10px; }
  .header__actions { gap: 8px; }
  .brand__logo { height: 34px; }
  .lang__btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0 8px;
    font-size: .6875rem;
  }
  .burger { width: 44px; height: 44px; }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 2.85rem);
    line-height: .98;
  }

  .hero__actions,
  .cta-band__btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn,
  .cta-band__btns .btn { width: 100%; }

  .cta-band__title {
    font-size: clamp(1.625rem, 8.2vw, 2.25rem);
    line-height: 1.1;
  }

  .back-top {
    right: 12px;
    bottom: 16px;
  }
}

.section--cta .btn--primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.section--cta .btn--primary:hover {
  background: var(--green-2);
  border-color: var(--green-2);
}

.section--cta .btn--ghost {
  border-color: var(--d-line-strong);
  color: var(--d-text);
}
.section--cta .btn--ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--d-bg);
  color: var(--d-muted);
  padding-block: clamp(56px, 7vw, 88px) 32px;
  font-size: .9375rem;
}
.footer a:hover { color: var(--green-3); }

.footer__grid { display: grid; gap: 36px; }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer__brand {
  font-family: var(--display);
  color: var(--d-text);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -.02em;
}
.footer h4 {
  color: var(--d-text);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer ul { display: grid; gap: 12px; }

.footer__bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--d-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--d-muted);
}

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover,
  .deploy__card:hover,
  .flow__node:hover,
  .flow__core:hover { transform: none; }
  .card:hover .card__visual img,
  .deploy__card:hover .deploy__visual img { transform: none; filter: none; }
}
