/* ============================================================
   HOA VIET TECH — homepage stylesheet
   Palette: navy primary, ice-blue supports, red accent (legacy logo red)
   ============================================================ */

:root {
  --navy-900: #22376b;
  --navy-800: #2b4483;
  --navy-700: #35529b;
  --navy-600: #4062b0;
  --blue-500: #5580d0;
  --ice-100: #f2f6fd;
  --ice-200: #e4ecfa;
  --red-500: #d0342c;
  --ink: #1c2333;
  --ink-soft: #4a5468;
  --line: #d8dfec;
  --bg: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(19, 31, 66, 0.10);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 860px; }

.section { padding: 72px 0; }

h1, h2, h3 { line-height: 1.25; color: var(--navy-900); }

h2 { font-size: 1.9rem; margin-bottom: 24px; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary { background: var(--red-500); color: #fff; }
.btn-primary:hover { background: #b32a23; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

.link-arrow {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy-900);
  margin-right: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--red-500);
}

.brand-name { font-size: 1.05rem; letter-spacing: 0.4px; }
.brand-name strong { color: var(--red-500); }

.site-nav { display: flex; gap: 22px; }

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--navy-700); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.2rem;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--navy-800);
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 62%, var(--navy-600) 100%);
  color: #fff;
  padding: 84px 0 92px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a9c1ef;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: #ffd7d4;
}

.hero-sub {
  color: #e2e9fb;
  font-size: 1.06rem;
  margin-bottom: 32px;
  max-width: 56ch;
}

.hero-sub strong { color: #fff; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.hero .link-arrow { color: #cdd9f7; }

/* hero mock visual (placeholder until real screenshot) */

.mock-window {
  background: #f5f8ff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: var(--ice-200);
}

.mock-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #b9c6e2;
}

.mock-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
  padding: 14px;
  min-height: 260px;
}

.mock-col { background: #fff; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }

.mock-line { height: 9px; border-radius: 5px; background: var(--ice-200); }
.mock-line.w50 { width: 50%; } .mock-line.w55 { width: 55%; }
.mock-line.w60 { width: 60%; } .mock-line.w65 { width: 65%; }
.mock-line.w70 { width: 70%; } .mock-line.w75 { width: 75%; }
.mock-line.w80 { width: 80%; } .mock-line.w85 { width: 85%; }
.mock-line.w90 { width: 90%; }

.mock-block { height: 64px; border-radius: 8px; background: var(--ice-100); border: 1px solid var(--ice-200); }

.mock-chip { height: 22px; width: 60%; border-radius: 11px; background: var(--ice-100); border: 1px solid var(--ice-200); }

/* ---------- Trust strip ---------- */

.trust {
  background: var(--ice-100);
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.trust-title {
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.trust-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  white-space: nowrap;
}

/* ---------- Problem ---------- */

.problem-list {
  list-style: none;
  counter-reset: prob;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 34px 0;
}

.problem-list li {
  counter-increment: prob;
  background: var(--ice-100);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  position: relative;
}

.problem-list li::before {
  content: counter(prob);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.problem-list h3 { font-size: 1.05rem; margin-bottom: 8px; }
.problem-list p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Platform ---------- */

.platform { background: #fff; }

.platform-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.check-list {
  list-style: none;
  margin: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  padding-left: 34px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ice-200);
  color: var(--navy-700);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.platform-tagline {
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 8px;
}

.platform-tiles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tile {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--ice-100);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.tile-icon { font-size: 1.4rem; line-height: 1.2; }

.tile p { font-weight: 600; color: var(--navy-900); font-size: 0.95rem; }

/* proof block */

.proof-block {
  background: var(--navy-900);
  color: #dce5fa;
  border-radius: 14px;
  padding: 40px 44px;
}

.proof-block h3 { color: #fff; font-size: 1.35rem; margin-bottom: 14px; }

.reg-timeline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 20px;
}

.reg-timeline li {
  flex: 1 1 0;
  min-width: 130px;
  position: relative;
  padding: 14px 18px 0 0;
  border-top: 2px solid var(--blue-500);
}

.reg-timeline li::before {
  content: "";
  position: absolute;
  top: -6px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-500);
}

.reg-timeline li:last-child { border-top-color: var(--red-500); }
.reg-timeline li:last-child::before { border-color: var(--red-500); }

.reg-year { display: block; font-size: 0.8rem; color: #93a8d8; font-weight: 700; }
.reg-name { display: block; font-weight: 700; color: #fff; font-size: 0.95rem; }

.proof-extra { font-size: 0.92rem; color: #aebde3; }

.proof-tagline { margin-top: 18px; font-size: 1.02rem; }
.proof-tagline strong { color: #fff; }

/* ---------- Products ---------- */

.products { background: var(--ice-100); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.card p { font-size: 0.93rem; color: var(--ink-soft); }

.card-clients {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-700);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 10px;
}

.tag-live { background: #e3f2e8; color: #1e7a3d; }
.tag-dev { background: #fdeedc; color: #9a5b13; }

/* ---------- Industries ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.industry {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.industry h3 { font-size: 1.02rem; margin-bottom: 10px; }
.industry p { font-size: 0.9rem; color: var(--ink-soft); }
.industry em { display: block; margin-top: 8px; color: var(--navy-700); font-size: 0.85rem; }

/* ---------- Compare table ---------- */

.why { background: var(--ice-100); }

.table-wrap { overflow-x: auto; }

.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 560px;
}

.compare th, .compare td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.93rem;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  background: var(--navy-900);
  color: #fff;
  font-size: 0.9rem;
}

.compare thead th.hl { background: var(--red-500); }

.compare tbody th {
  font-weight: 600;
  color: var(--navy-900);
  width: 26%;
  background: var(--ice-100);
}

.compare td.hl { font-weight: 600; color: var(--navy-800); }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-copy { font-size: 1.02rem; }

.stats { display: flex; flex-direction: column; gap: 18px; }

.stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-left: 4px solid var(--red-500);
  background: var(--ice-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 20px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-900);
  min-width: 86px;
}

.stat-label { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  color: var(--navy-900);
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--navy-600);
}

.faq details[open] summary::after { content: "–"; }

.faq details p { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- CTA ---------- */

.cta {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
}

.cta h2 { color: #fff; }

.cta-sub { color: #cdd9f7; margin-bottom: 30px; max-width: 62ch; }

.cta-form {
  background: #fff;
  border-radius: 14px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.cta-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.9rem;
  min-width: 0; /* let grid shrink labels below input intrinsic width */
}

.cta-form input, .cta-form select {
  width: 100%;
  font-family: var(--font);
  font-size: 0.98rem;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink);
}

.cta-form input:focus, .cta-form select:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 1px;
}

.form-note {
  margin-top: 14px;
  color: #1e7a3d;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-900);
  color: #b9c6e6;
  padding: 44px 0 22px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand-name { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }

.footer-nav { display: flex; gap: 20px; align-items: flex-start; }

.footer-nav a { color: #b9c6e6; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: #fff; }

.footer-legal { padding-top: 18px; font-size: 0.82rem; color: #93a6d2; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner, .platform-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .product-grid, .industry-grid, .form-row { grid-template-columns: 1fr; }
  .btn-header { display: none; }
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px 24px;
    gap: 14px;
  }

  .site-nav.open { display: flex; }

  .reg-timeline li { min-width: 46%; margin-bottom: 14px; }
  .proof-block { padding: 28px 24px; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 1.8rem; }
}
