/* Contact (info + lead form) and footer. */
.contact { overflow: hidden; }
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: stretch; }
.contact-info-col { display: flex; flex-direction: column; justify-content: space-between; }
.contact-info-top { display: block; }
.contact-h2 { margin: 14px 0 18px; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.contact .lead { max-width: 480px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.cinfo { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.cinfo li { display: flex; align-items: flex-start; gap: 14px; font-size: 14.5px; line-height: 1.5; }
.cinfo i { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 11px; color: var(--cyan); background: rgba(34, 211, 238, 0.04); margin-top: 2px; }
.cinfo svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cinfo small { display: block; font: 600 11px var(--mono); letter-spacing: 0.06em; color: var(--cyan); margin-bottom: 2px; }
.cinfo a { display: inline; text-underline-offset: 4px; color: var(--text); }
.cinfo a:hover { color: var(--cyan); }

.contact-trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.c-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.c-badge:hover {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.c-badge-icon {
  font-size: 18px;
  line-height: 1;
  flex: none;
  margin-top: 2px;
}
.c-badge strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.c-badge span {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.35;
}

.contact-office-link {
  margin-top: 22px;
}

.form { padding: 30px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); display: flex; flex-direction: column; justify-content: center; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.fld { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.fld label, .fld legend { display: block; padding: 0; margin-bottom: 7px; font-size: 13px; font-weight: 400; color: var(--text-2); }
.fld em { color: var(--cyan); font-style: normal; }
.fld input, .fld textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(5, 7, 13, 0.7); border: 1px solid var(--line-2); border-radius: 11px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:hover, .fld textarea:hover { border-color: var(--text-3); }
.fld input:focus-visible, .fld textarea:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); outline: none; }
.fld input[aria-invalid="true"] { border-color: var(--red); }
.err { margin-top: 6px; font-size: 12.5px; color: var(--red); }
.err[hidden] { display: none; }

/* Agent checkboxes: input is visually hidden but stays focusable; the pill shows state and focus */
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; margin: 0; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick span { display: inline-flex; align-items: center; min-height: 36px; padding: 7px 12px; font-size: 13px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.pick input:checked + span { border-color: var(--cyan); color: var(--text); background: rgba(34, 211, 238, 0.1); }
.pick input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }

.form .btn { width: 100%; margin-top: 6px; }
.note { min-height: 1.4em; margin-top: 12px; font-size: 13.5px; color: var(--accent-2); text-align: center; }

.foot {
  padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--text-3); font-size: 14px;
  /* Soft blue pool behind the brand block ties the footer to the hero emblem */
  background: radial-gradient(520px 260px at 12% 0, rgba(31, 163, 255, 0.10), transparent 70%), var(--bg);
}
.fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.fh { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 500 12px var(--mono); letter-spacing: 0.12em; color: var(--text-2); }
.fh::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--cyan); }
.fgrid nav a { display: flex; align-items: center; min-height: 32px; text-decoration: none; transition: color var(--dur-fast), transform var(--dur-fast); }
.fgrid nav a:hover, .fgrid nav a:focus-visible { color: var(--text); transform: translateX(3px); }
.fbrand .brand img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.fbrand .brand picture { display: inline-flex; align-items: center; }
.fbrand .brand picture img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
/* Three short tags instead of one string, so a narrow column never breaks mid-phrase or strands a dot */
.ftags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ftags li { padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12.5px; color: var(--text-2); }
.fbottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.fbottom a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; transition: color var(--dur-fast); }
.fbottom a:hover, .fbottom a:focus-visible { color: var(--text); }
.totop-ic { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast); }
.totop:hover .totop-ic, .totop:focus-visible .totop-ic { border-color: var(--cyan); background: rgba(34, 211, 238, 0.08); transform: translateY(-2px); }

/* Ecosystem Architecture Section in Footer (Ảnh 1) */
.foot-ecosystem {
  margin-bottom: 56px;
  padding: 36px 32px 40px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(5, 7, 13, 0.95));
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  max-width: 100%;
}
.foot-ecosystem::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  pointer-events: none;
}
.foot-ecosystem__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.foot-ecosystem__tag {
  display: inline-block;
  font: 600 11.5px var(--mono);
  color: var(--cyan);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.foot-ecosystem__title {
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.foot-ecosystem__desc {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.foot-ecosystem__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 22px;
  align-items: stretch;
  min-width: 0;
}
.foot-ecosystem__card {
  background: rgba(10, 15, 29, 0.85);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
}
.foot-ecosystem__card--creative {
  border-color: rgba(34, 211, 238, 0.28);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.05), rgba(10, 15, 29, 0.9));
}
.foot-ecosystem__card--tech {
  border-color: rgba(139, 92, 246, 0.28);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.06), rgba(10, 15, 29, 0.9));
}
.foot-ecosystem__badge {
  display: inline-block;
  font: 700 10.5px var(--mono);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
}
.foot-ecosystem__badge--tech {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
}
.foot-ecosystem__card-head h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.foot-ecosystem__card-head p {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.45;
  margin: 0 0 16px;
}
.foot-ecosystem__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: space-between;
}
.foot-ecosystem__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-2);
}
.foot-ecosystem__list .num {
  flex: none;
  font: 700 10.5px var(--mono);
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.foot-ecosystem__list strong {
  display: block;
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.35;
}
.foot-ecosystem__list span {
  display: block;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.35;
}
.foot-ecosystem__center {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  min-width: 0;
  height: 100%;
}
.foot-ecosystem__visual-frame {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(5, 7, 13, 0.96);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 0 30px rgba(34, 211, 238, 0.04);
  padding: 0;
  box-sizing: border-box;
}
.foot-ecosystem__visual-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.foot-ecosystem__hub-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--cyan);
  font-size: 11px;
  color: var(--text);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
}
.foot-ecosystem__hub-badge .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.foot-ecosystem__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}
.foot-ecosystem__subgroups {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.foot-ecosystem__subgroup h4 {
  font-size: 13px;
  font-weight: 700;
  color: #c084fc;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.foot-ecosystem__sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.foot-ecosystem__tagline {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(168, 85, 247, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 10px var(--mono);
  color: #c084fc;
  letter-spacing: 0.08em;
  text-align: center;
}
.foot-ecosystem__tagline .dot {
  color: var(--text-3);
}

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .foot-ecosystem { padding: 28px 20px; }
  .foot-ecosystem__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .foot-ecosystem__center { order: -1; }
  .foot-ecosystem__visual-frame { min-height: 250px; }
}
@media (max-width: 560px) {
  .form { padding: 22px; }
  .form .two { grid-template-columns: minmax(0, 1fr); }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .foot-ecosystem { padding: 18px 12px; margin-bottom: 36px; border-radius: 14px; }
  .foot-ecosystem__tagline { font-size: 9px; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
  .foot-ecosystem__actions { flex-direction: column; width: 100%; }
  .foot-ecosystem__actions .btn { width: 100%; text-align: center; }
  .foot-ecosystem__hub-badge { font-size: 9.5px; padding: 4px 10px; }
}

/* Touch devices: 44px targets for pills and footer links */
@media (pointer: coarse) {
  .pick span { min-height: 44px; }
  .fgrid nav a { min-height: 44px; }
}
@media (max-width: 560px) {
  .contact .lead, .note { font-size: 16px; }
  .cinfo li { font-size: 16px; }
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.pricing-card {
  position: relative;
  background: rgba(15, 21, 35, 0.7);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: transform var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}
.pricing-card.is-popular {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.08) 0%, rgba(15, 21, 35, 0.85) 100%);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}
.pricing-card__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 16px;
}
.pricing-card__name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.pricing-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 42px;
}
.pricing-card__price-box {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.pricing-card__price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.pricing-card__cycle {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
}
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-card__features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.5;
}
.pricing-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan);
  font-weight: bold;
}
.pricing-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* FAQ Accordion — 2 Cột Kéo Dài Cân Bằng 2 Bên, Hiển Thị 1 Dòng Cân Đối */
#faq .wrap {
  max-width: 1440px;
}
.faq-wrap {
  max-width: 1440px;
  width: 100%;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: start;
}
.faq-item {
  background: rgba(15, 21, 35, 0.75);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.faq-item:hover {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.faq-item[open] {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(18, 26, 44, 0.85);
}
.faq-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 22px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  list-style: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  color: var(--cyan);
  transition: transform var(--dur-fast);
  line-height: 1;
  margin-left: 14px;
  flex: none;
}
details[open] .faq-summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  white-space: normal;
}

@media (min-width: 1024px) {
  .faq-summary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14.5px;
  }
}
@media (min-width: 1360px) {
  .faq-summary {
    font-size: 15px;
  }
}

@media (max-width: 860px) {
  .faq-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .faq-summary {
    white-space: normal;
    font-size: 14px;
    padding: 14px 18px;
  }
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .pricing-card__desc { min-height: unset; }
}


