@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --green: #3e613d;
  --green-2: #506f4d;
  --green-deep: #345334;
  --green-border: rgba(236, 241, 229, 0.22);
  --cream: #f4eee4;
  --cream-2: #f8f3ea;
  --white: #ffffff;
  --ink: #292a28;
  --muted: #666963;
  --orange: #d65b2a;
  --orange-dark: #bd4c20;
  --gold: #f5b43a;
  --line: #e1d9cd;
  --panel: #292a27;
  --container: 1340px;
  --radius: 19px;
  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

main section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 242, 233, 0.96);
  border-bottom: 1px solid rgba(42, 42, 39, 0.08);
  box-shadow: 0 8px 28px rgba(30, 35, 28, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 118px;
  max-height: 64px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.5vw, 40px);
  min-width: 0;
}

.desktop-nav a {
  position: relative;
  color: #485248;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--orange);
  transform: translateX(-50%);
  transition: width .2s ease;
}

.desktop-nav a:hover { color: var(--orange-dark); }
.desktop-nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 30px;
  border: 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.desktop-nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(245, 180, 58, 0.58);
  outline-offset: 4px;
}

.btn-primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 20px rgba(176, 67, 24, 0.14);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 10px 24px rgba(176, 67, 24, 0.20);
}

.btn-outline-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .50);
  background: transparent;
}

.btn-outline-light:hover {
  border-color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.06);
}

.btn-dark-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,.42);
  background: transparent;
}

.header-cta {
  min-height: 56px;
  padding-inline: 26px;
  border-radius: 13px;
  font-size: 16px;
  white-space: nowrap;
}

.cta-short { display: none; }

/* SHARED SECTIONS */
.section {
  padding: 76px 0 82px;
}

.section-light { background: var(--cream); }
.section-green { background: var(--green); color: #f4f1e9; }

.construction-stripe {
  height: 12px;
  width: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      var(--orange) 0 25px,
      var(--orange) 25px 33px,
      var(--gold) 33px 57px
    );
}

.grid-bg {
  background-color: var(--green);
  background-image:
    linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px);
  background-size: 62px 62px;
}

.section-kicker {
  margin-bottom: 15px;
  color: #315737;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .26em;
}

.kicker-gold { color: var(--gold); }

h2 {
  max-width: 1240px;
  margin: 0 0 38px;
  font-size: clamp(40px, 3.05vw, 56px);
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -0.035em;
}

h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.27;
  font-weight: 800;
  letter-spacing: -.02em;
}

p { margin: 0; }

.light-heading { color: #fff; }

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.four-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* HERO */
.hero {
  padding: 0 0 80px;
}

.hero-inner {
  padding-top: 76px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  color: var(--gold);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .25em;
}

.hero h1 {
  max-width: 850px;
  margin: 26px 0 18px;
  color: #fff;
  font-size: clamp(54px, 5vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.048em;
  font-weight: 800;
}

.hero-copy {
  max-width: 1040px;
  color: #f1efe8;
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-top: 44px;
}

.stat-card {
  min-height: 126px;
  padding: 23px 24px 20px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.075);
}

.stat-card strong {
  display: block;
  color: var(--gold);
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: #f4f0e8;
  font-size: 16px;
}

/* CARDS */
.white-card {
  padding: 28px 30px;
  border: 1px solid #e2dbd0;
  border-radius: var(--radius);
  background: #fff;
}

.white-card p {
  color: #5f615f;
  font-size: 17px;
  line-height: 1.65;
}

.accent-left {
  min-height: 222px;
  border-left: 7px solid var(--orange);
}

.problem-grid { margin-top: 6px; }

.section-note {
  margin-top: 25px;
  color: #59605b;
  font-size: 18px;
}

.section-note strong { font-weight: 800; }

.solution-grid {
  margin-top: 2px;
  align-items: start;
}

.green-card {
  min-height: 218px;
  padding: 28px 30px;
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.075);
}

.green-card h3 { color: #fff; }

.green-card p {
  color: #efeee7;
  font-size: 17px;
  line-height: 1.65;
}

.flow-grid { margin-top: 6px; }

.flow-card {
  min-height: 284px;
  padding: 30px 32px 32px;
}

.flow-label,
.eco-label {
  margin-bottom: 16px;
  color: #545f57;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .14em;
}

.flow-card h3 { font-size: 24px; }
.flow-card p { font-size: 17px; }

/* SERVICES */
.services-section { padding-top: 34px; }

.service-list {
  display: grid;
  gap: 14px;
}

.service-card {
  padding: 22px 26px 23px;
  border: 1px solid #e2dbcf;
  border-radius: 18px;
  background: #fff;
}

.service-card h3 {
  margin: 0 0 5px;
  color: #ad461c;
  font-size: 20px;
  letter-spacing: .03em;
}

.service-card h3 span { text-transform: none; }

.service-card p {
  color: #656764;
  font-size: 17px;
  line-height: 1.58;
}

.services-note {
  margin-top: 25px;
  color: #5b625e;
  font-size: 18px;
  line-height: 1.65;
}

/* BENEFITS */
.benefit-grid { align-items: start; }
.benefit-card { min-height: 258px; }

.benefit-no {
  display: block;
  margin-bottom: 20px;
  color: #efede3;
  font-size: 17px;
  font-weight: 800;
}

.benefit-card h3 { font-size: 23px; }

/* TABLE */
.table-wrap {
  overflow: hidden;
  border: 1px solid #e3dbcf;
  border-radius: 19px;
  background: #fff;
}

.network-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 17px;
}

.network-table thead th {
  padding: 17px 20px;
  color: #fff;
  background: #3f613e;
  text-align: left;
  font-weight: 800;
}

.network-table thead th:first-child { width: 20%; }
.network-table thead th:nth-child(2) { width: 31%; }

.network-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid #e3ded4;
  vertical-align: top;
}

.network-table tbody tr:last-child td { border-bottom: 0; }

.network-table tbody td:first-child {
  color: #242725;
  font-weight: 700;
}

/* PROCESS */
.process-section { padding-top: 46px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.process-card {
  min-height: 184px;
  padding: 23px 22px 26px;
  border: 1px solid #e2dacd;
  border-top: 5px solid var(--gold);
  border-radius: 17px;
  background: #fff;
}

.process-card strong {
  display: block;
  margin-bottom: 16px;
  color: #ca5524;
  font-size: 36px;
  line-height: 1;
}

.process-card p {
  color: #60625f;
  font-size: 16px;
  line-height: 1.55;
}

.process-note {
  max-width: 1080px;
  margin-top: 27px;
  color: #616562;
  font-size: 17px;
  line-height: 1.72;
}

.ecosystem-block { margin-top: 64px; }
.ecosystem-grid { align-items: stretch; }

.ecosystem-card {
  min-height: 260px;
  padding: 27px;
}

.ecosystem-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.ecosystem-card p { font-size: 16px; }

/* CONTACT */
.contact-section { padding: 16px 0 78px; }

.contact-panel {
  padding: 46px 38px 50px;
  color: #fff;
  background: var(--panel);
  border-radius: 26px;
  text-align: center;
}

.contact-kicker { margin-bottom: 12px; }

.contact-panel h2 {
  margin: 0 auto 17px;
  font-size: clamp(38px, 2.8vw, 52px);
}

.contact-panel p {
  color: #ebeae4;
  font-size: 18px;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 25px;
}

.contact-actions .btn { min-height: 62px; }

/* FOOTER */
.site-footer {
  color: #f5f1e8;
  background: var(--green);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 42px 0 38px;
}

.footer-main {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.footer-logo {
  flex: 0 0 auto;
  width: 104px;
  max-width: 104px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-copy {
  min-width: 0;
}

.footer-copy p {
  max-width: 840px;
  font-size: 15px;
  line-height: 1.58;
}

.footer-copy p strong {
  color: #fff;
  font-size: 17px;
}

.footer-tagline {
  flex: 0 0 auto;
  margin: 0;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .22em;
  white-space: nowrap;
}

.footer-stripe { height: 11px; }

/* TABLET */
@media (max-width: 1100px) {
  :root { --header-h: 78px; }

  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .header-inner { gap: 22px; }
  .desktop-nav { gap: 20px; }
  .desktop-nav a { font-size: 13px; }
  .brand img { width: 106px; }
  .header-cta { min-height: 52px; padding-inline: 20px; font-size: 14px; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hero h1 { max-width: 780px; }
}

/* MOBILE */
@media (max-width: 760px) {
  :root { --header-h: 68px; }

  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    box-shadow: 0 6px 20px rgba(30, 35, 28, 0.06);
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand img {
    width: 94px;
    max-height: 52px;
  }

  .desktop-nav { display: none; }

  .header-cta {
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 11px;
    font-size: 13px;
    box-shadow: none;
  }

  .cta-full { display: none; }
  .cta-short { display: inline; }

  .construction-stripe { height: 9px; }

  .hero {
    padding-bottom: 50px;
  }

  .hero-inner {
    padding-top: 46px;
  }

  .eyebrow-pill {
    min-height: 38px;
    max-width: 100%;
    padding-inline: 14px;
    font-size: 11px;
    letter-spacing: .16em;
    white-space: normal;
  }

  .hero h1 {
    margin-top: 21px;
    font-size: clamp(38px, 10.8vw, 48px);
    line-height: 1.03;
    letter-spacing: -.045em;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin-top: 26px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn {
    min-height: 54px;
    padding-inline: 20px;
    border-radius: 12px;
    font-size: 15px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 32px;
  }

  .stat-card {
    min-height: 108px;
    padding: 18px 16px;
    border-radius: 15px;
  }

  .stat-card strong { font-size: 34px; }
  .stat-card span { font-size: 14px; line-height: 1.35; }

  .section {
    padding: 52px 0 56px;
  }

  .section-kicker {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: .22em;
  }

  h2 {
    margin-bottom: 28px;
    font-size: clamp(30px, 8.2vw, 38px);
    line-height: 1.13;
  }

  h3 { font-size: 21px; }

  .three-col,
  .two-col,
  .four-col,
  .process-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .white-card,
  .green-card {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .white-card p,
  .green-card p,
  .flow-card p {
    font-size: 15px;
    line-height: 1.62;
  }

  .accent-left,
  .green-card,
  .flow-card,
  .benefit-card,
  .ecosystem-card {
    min-height: auto;
  }

  .accent-left { border-left-width: 5px; }

  .section-note,
  .services-note,
  .process-note {
    font-size: 15px;
    line-height: 1.62;
  }

  .flow-card { padding: 22px 20px; }
  .flow-label, .eco-label { font-size: 12px; }

  .services-section { padding-top: 26px; }

  .service-list { gap: 11px; }

  .service-card {
    padding: 19px 18px;
    border-radius: 15px;
  }

  .service-card h3 {
    font-size: 17px;
    line-height: 1.35;
  }

  .service-card p {
    font-size: 15px;
    line-height: 1.58;
  }

  .services-note br { display: none; }

  .benefit-no {
    margin-bottom: 12px;
    font-size: 15px;
  }

  /* Chuyển bảng sang dạng card trên mobile để không phải kéo ngang */
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .network-table,
  .network-table tbody,
  .network-table tr,
  .network-table td {
    display: block;
    width: 100%;
  }

  .network-table {
    background: transparent;
    font-size: 15px;
  }

  .network-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .network-table tbody {
    display: grid;
    gap: 12px;
  }

  .network-table tbody tr {
    overflow: hidden;
    border: 1px solid #e1d9cc;
    border-radius: 16px;
    background: #fff;
  }

  .network-table tbody td {
    display: grid;
    grid-template-columns: minmax(112px, .8fr) 1.2fr;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid #ece5da;
  }

  .network-table tbody td:last-child { border-bottom: 0; }

  .network-table tbody td::before {
    content: attr(data-label);
    color: #315737;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
  }

  .network-table tbody td:first-child {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 16px;
    color: #fff;
    background: var(--green);
  }

  .network-table tbody td:first-child::before {
    display: none;
  }

  .process-section { padding-top: 38px; }

  .process-card {
    min-height: 0;
    padding: 19px 18px 20px;
    border-radius: 15px;
  }

  .process-card strong {
    margin-bottom: 9px;
    font-size: 31px;
  }

  .process-card p { font-size: 15px; }

  .ecosystem-block { margin-top: 50px; }

  .ecosystem-card {
    padding: 21px 20px;
  }

  .ecosystem-card h3 { font-size: 20px; }
  .ecosystem-card p { font-size: 15px; }

  .contact-section {
    padding: 10px 0 54px;
  }

  .contact-panel {
    padding: 34px 20px 36px;
    border-radius: 20px;
  }

  .contact-panel h2 {
    font-size: clamp(30px, 8.3vw, 36px);
    line-height: 1.14;
  }

  .contact-panel p {
    font-size: 15px;
    line-height: 1.6;
  }

  .contact-panel p br { display: none; }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .contact-actions .btn {
    width: 100%;
    min-height: 54px;
  }

  .desktop-only { display: none; }

  .footer-inner {
    display: block;
    padding: 32px 0 28px;
  }

  .footer-main {
    display: block;
  }

  .footer-logo {
    display: none;
  }

  .footer-copy p {
    font-size: 13px;
    line-height: 1.55;
  }

  .footer-copy p strong {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 14px;
  }

  .footer-tagline {
    margin-top: 15px;
    padding-left: 0;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: .20em;
    white-space: normal;
  }

  .footer-stripe { height: 9px; }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand img { width: 86px; }

  .header-cta {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .stats-grid { gap: 9px; }

  .stat-card {
    padding: 16px 13px;
  }

  .stat-card strong { font-size: 31px; }
  .stat-card span { font-size: 12px; }

  h2 { font-size: 30px; }

  .network-table tbody td {
    grid-template-columns: 100px 1fr;
    gap: 10px;
    padding-inline: 13px;
  }

  .footer-main {
    display: block;
  }

  .footer-logo {
    display: none;
  }

  .footer-copy p {
    font-size: 12px;
    line-height: 1.5;
  }

  .footer-copy p strong {
    font-size: 13px;
  }

  .footer-tagline {
    padding-left: 0;
    font-size: 9px;
    letter-spacing: .16em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
