/* DNEX public website (dnexchange.vn). Static, no build step; colours are tokens on :root. */
:root {
  --navy: #0d2544;
  --navy-2: #143a66;
  --gold: #d4a33d;     /* logo gold */
  --gold-2: #e2bd62;
  --ink: #1b2430;
  --muted: #5d6b7b;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --ok: #1f7a4d;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(13, 37, 68, .08);
  --max: 1200px;
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { line-height: 1.3; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold); margin-bottom: .5em; }

/* notice + top bar */
.notice { background: #dedede; color: #d9707f; font-size: 1.05rem; padding: 6px 0; overflow: hidden; white-space: nowrap; }
.notice span { display: inline-block; padding-left: 100%; animation: notice-run 22s linear infinite; }
@keyframes notice-run { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .notice { text-align: center; } .notice span { padding-left: 0; animation: none; } }
.topbar { background: var(--navy); color: #c8d3e2; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #c8d3e2; }
.topbar a:hover { color: var(--gold-2); }
.topbar .lang a { margin-left: 10px; }
.topbar .lang a.on { color: var(--gold-2); font-weight: 600; }

/* header + nav */
header.site { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand .mark { width: auto; height: 58px; flex-shrink: 0; }
.brand { flex-shrink: 0; }
.brand b { display: block; font-size: 1.35rem; letter-spacing: .04em; }
.brand small { display: block; white-space: nowrap; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
nav.main > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
nav.main li { position: relative; }
nav.main > ul > li > a { display: block; padding: 25px 7px; font-weight: 600; font-size: .8rem; white-space: nowrap; color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
nav.main > ul > li > a.on, nav.main > ul > li:hover > a { color: var(--gold); }
nav.main .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--gold); list-style: none; margin: 0; padding: 8px 0; }
nav.main li:hover > .sub, nav.main li:focus-within > .sub { display: block; }
nav.main .sub a { display: block; padding: 8px 18px; color: var(--ink); font-size: .92rem; }
nav.main .sub a:hover { background: var(--bg-soft); color: var(--navy-2); }
.btn { display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600; border: 2px solid transparent; transition: .2s; cursor: pointer; font-family: inherit; font-size: .95rem; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--gold-2); color: var(--navy); }
.btn.ghost { border-color: #fff; color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--navy); }
.btn.line { border-color: var(--navy-2); color: var(--navy-2); }
.btn.line:hover { background: var(--navy-2); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 24px; height: 2px; background: var(--navy); position: relative; margin: 0 auto; content: ""; }
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

/* hero slider */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.slide { display: none; min-height: 520px; padding: 90px 0 110px; background-size: cover; background-position: center; }
.slide.on { display: block; animation: fade .7s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.slide .wrap { position: relative; z-index: 2; max-width: var(--max); }
.slide h1, .slide h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 760px; }
.slide p { max-width: 640px; font-size: 1.1rem; color: #dbe4f0; }
.slide .art { position: absolute; right: 0; top: 0; bottom: 0; width: 55%; opacity: .9; z-index: 1; }
.s1 { background: radial-gradient(1200px 500px at 85% 30%, #1f4f86 0%, transparent 60%), linear-gradient(120deg, #0b1f3a, #143a66); }
.s2 { background: radial-gradient(900px 500px at 80% 60%, #6b4f12 0%, transparent 60%), linear-gradient(120deg, #1a1408, #3b2c0b); }
.s3 { background: radial-gradient(900px 500px at 80% 40%, #1e6b4a 0%, transparent 60%), linear-gradient(120deg, #0b2a22, #12443a); }
.s4 { background: radial-gradient(900px 500px at 80% 50%, #3d3f8f 0%, transparent 60%), linear-gradient(120deg, #111334, #23265e); }
.dots { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; padding: 0; }
.dots button.on { background: var(--gold); border-color: var(--gold); }

/* sections */
section.block { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
section.dark { background: var(--navy); color: #dbe4f0; }
section.dark h2, section.dark h3 { color: #fff; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.head h2 { margin: 0; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .pic { aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; }
.card .pic svg { width: 72px; height: 72px; }
.detail-pic { border-radius: 12px; aspect-ratio: 21/9; display: grid; place-items: center; color: #fff; margin-bottom: 1.6em; }
.detail-pic svg { width: 80px; height: 80px; }
.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card .body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .more { font-weight: 600; font-size: .9rem; }
.meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: var(--navy-2); margin-right: 6px; }
.tag.gold { background: #fbf1d2; color: #7a5d00; }
.tag.green { background: #e2f3ea; color: var(--ok); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--gold-2); }
.stat span { color: #c8d3e2; font-size: .92rem; }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.intro .visual { border-radius: 16px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); padding: 36px; color: #fff; box-shadow: var(--shadow); }
.intro .visual li { margin-bottom: 10px; }
.band { background: linear-gradient(90deg, var(--gold), var(--gold-2)); color: var(--navy); text-align: center; padding: 26px 20px; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; }
.cat { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cat .top { padding: 26px 22px; color: #fff; min-height: 150px; display: flex; flex-direction: column; justify-content: end; }
.cat .top h3 { color: #fff; margin: 0; }
.cat ul { list-style: none; margin: 0; padding: 14px 22px 20px; }
.cat li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cat li:last-child { border: 0; }
.svc { display: grid; grid-template-columns: 110px 1fr; gap: 22px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.svc .ico { width: 110px; height: 110px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.svc .ico svg { width: 54px; height: 54px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: st; }
.timeline > div { background: #fff; border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.timeline small { color: var(--gold); font-weight: 700; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos div { border: 1px dashed #c8d1dc; border-radius: 10px; height: 84px; display: grid; place-items: center; color: var(--muted); font-size: .82rem; text-align: center; padding: 8px; background: #fff; }

/* inner pages */
.pagehead { background: linear-gradient(120deg, #0b1f3a, #143a66); color: #fff; padding: 54px 0 46px; }
.pagehead h1 { color: #fff; margin: 0 0 .3em; }
.pagehead p { color: #c8d3e2; max-width: 760px; margin: 0; }
.crumb { font-size: .85rem; color: #9fb0c6; margin-bottom: 12px; }
.crumb a { color: #c8d3e2; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 56px 0 72px; }
.layout.full { grid-template-columns: 1fr; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
aside .box { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
aside .box h3 { font-size: 1rem; }
aside ul { list-style: none; margin: 0; padding: 0; }
aside li a { display: block; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
aside li a.on, aside li a:hover { color: var(--gold); }
table.spec { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.spec th { background: var(--navy); color: #fff; font-weight: 600; }
table.spec td:first-child { background: var(--bg-soft); font-weight: 600; width: 32%; }
table.list td:first-child { width: auto; background: none; font-weight: 400; }
.callout { border-left: 4px solid var(--gold); background: #fffaf0; padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 1.2em 0; }
.placeholder { background: #fff3cd; border: 1px dashed #d9b54a; padding: 2px 6px; border-radius: 4px; color: #6b5300; font-size: .92em; }
.rows .row { display: grid; grid-template-columns: 220px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rows .row .pic { border-radius: 10px; aspect-ratio: 16/10; display: grid; place-items: center; color: #fff; }
.rows .row .pic svg { width: 56px; height: 56px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--navy); }
.faq details > div { padding: 0 18px 14px; color: var(--ink); }
form.f { display: grid; gap: 14px; }
form.f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.f label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 4px; }
form.f input, form.f textarea, form.f select { width: 100%; padding: 11px 12px; border: 1px solid #cdd5df; border-radius: 8px; font-family: inherit; font-size: 1rem; }
form.f textarea { min-height: 130px; }
.formmsg { display: none; background: #e2f3ea; color: var(--ok); padding: 12px 16px; border-radius: 8px; }
.formmsg.on { display: block; }
.pager { display: flex; gap: 8px; margin-top: 24px; }

/* footer */
footer.site { background: #08182d; color: #a9b7c9; padding: 56px 0 0; font-size: .93rem; }
.flogo { display: inline-block; background: #fff; border-radius: 12px; padding: 10px 14px; }
.flogo img { height: 96px; width: auto; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
footer.site a { color: #a9b7c9; }
footer.site a:hover { color: var(--gold-2); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.copy { border-top: 1px solid #1c3150; margin-top: 40px; padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.totop { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: #fff; border: 0; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); display: none; z-index: 60; }
.totop.on { display: block; }

@media (max-width: 1280px) {
  nav.main > ul > li > a { padding: 25px 6px; font-size: .78rem; }
}
@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow); max-height: calc(100vh - 74px); overflow: auto; }
  nav.main.open { display: block; }
  nav.main > ul { flex-direction: column; }
  nav.main > ul > li > a { padding: 14px 20px; border-bottom: 1px solid var(--line); }
  nav.main .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 8px 16px; }
}
@media (max-width: 960px) {
  .g3, .g4, .timeline, .stats { grid-template-columns: repeat(2, 1fr); }
  .intro, .layout, .fgrid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .slide .art { opacity: .25; width: 100%; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4, .timeline, .stats { grid-template-columns: 1fr; }
  .svc, .rows .row { grid-template-columns: 1fr; }
  form.f .two { grid-template-columns: 1fr; }
  .slide { min-height: 440px; padding: 60px 0 90px; }
  .topbar .wrap { justify-content: center; }
  table.spec td:first-child { width: 40%; }
}
