/* Trang chủ hướng D (24/10). Chỉ nạp trên home-layout.hbs, các trang khác vẫn dùng screen.css. */
:root {
  --forest: #0f2b22;
  --forest-2: #0b211a;
  --moss: #1d4a3c;
  --brass: #e3b76b;
  --cream: #f1ebdc;
  --sage: #9fb1a5;
  --soft: #bdc9bf;
  --line: rgba(241,235,220,.14);
  --glass: rgba(241,235,220,.06);
  --win: #5fd39a;
  --loss: #ff7a66;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.hd { margin: 0; background: var(--forest); color: var(--cream); font-family: var(--display); font-size: 17px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.hd a { color: inherit; }
.hd h1, .hd h2, .hd h3 { margin: 0; letter-spacing: -.03em; line-height: .95; text-wrap: balance; font-weight: 800; }
.hd p { margin: 0; }
.hd .wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.hd .kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.hd :focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.hd .btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 14px 22px; border-radius: 14px; text-decoration: none; transition: transform .15s; }
.hd .btn:hover { transform: translateY(-2px); }
.hd .btn.p { background: var(--brass); color: var(--forest); }
.hd .btn.g { box-shadow: inset 0 0 0 1px rgba(241,235,220,.3); }
.hd .row { display: flex; flex-wrap: wrap; gap: 10px; }

/* header */
.hd .bar { position: sticky; top: 0; z-index: 20; background: rgba(11,33,26,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd .bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.hd .brand { display: flex; text-decoration: none; }
.hd .brand svg { width: 60px; height: 60px; flex: none; transition: transform .2s; }
.hd .brand:hover svg { transform: rotate(-4deg) scale(1.04); }
.hd .bar .nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; color: var(--sage); }
.hd .bar .nav a { text-decoration: none; } .hd .bar .nav a:hover { color: var(--cream); }
.hd .bar .btn { padding: 10px 16px; font-size: 14px; }
@media (max-width: 760px) { .hd .bar .nav { display: none; } .hd .brand svg { width: 50px; height: 50px; } }

/* hero */
.hd .hero { background: radial-gradient(100% 120% at 85% 0%, var(--moss) 0%, var(--forest) 55%, var(--forest-2) 100%); }
.hd .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hd .hero h1 { font-size: clamp(52px, 8.4vw, 118px); margin-top: 18px; }
.hd .hero h1 span { color: var(--brass); }
.hd .hero .lead { font-size: 19px; color: var(--soft); max-width: 36ch; margin-top: 22px; }
.hd .hero .row { margin-top: 28px; }
.hd .trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; font-size: 14px; color: var(--sage); }
.hd .trust b { color: var(--cream); font-weight: 600; }
.hd .panel { display: block; text-decoration: none; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; padding: 22px; min-width: 0; transition: border-color .2s; }
.hd .panel:hover { border-color: rgba(227,183,107,.5); }
.hd .panel .h { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--sage); }
.hd .panel .big { font-weight: 800; font-size: clamp(44px, 5vw, 60px); color: var(--brass); margin-top: 8px; letter-spacing: -.03em; line-height: 1; }
.hd .panel .sub { font-size: 14px; color: var(--sage); margin-bottom: 8px; }
.hd .panel svg { width: 100%; height: 150px; display: block; }
.hd .panel svg path.l { fill: none; stroke: var(--brass); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.hd .panel svg path.a { fill: url(#fillD); }
.hd .cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.hd .cells div { background: var(--glass); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--sage); min-width: 0; }
.hd .cells b { display: block; color: var(--cream); font-size: 17px; font-variant-numeric: tabular-nums; }
.hd .panel .src { margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--sage); }
@media (max-width: 900px) { .hd .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; gap: 36px; } }

/* ticker */
.hd .ticker { background: var(--forest-2); border-block: 1px solid var(--line); overflow: hidden; }
.hd .ticker .track { display: flex; width: max-content; animation: hd-run 34s linear infinite; }
.hd .ticker span { font-family: var(--mono); font-size: 14px; padding: 13px 26px; white-space: nowrap; color: var(--sage); }
.hd .ticker span b { color: var(--brass); font-weight: 500; padding: 0; }
@keyframes hd-run { to { transform: translateX(-50%); } }

/* sections */
.hd section.band { padding-block: 96px; }
.hd section.band.dark { background: var(--forest-2); }
.hd .sec-h { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.hd .sec-h.flush { margin-bottom: 0; }
.hd .sec-h h2 { font-size: clamp(38px, 5.6vw, 72px); }
.hd .sec-h h2 span { color: var(--brass); }
.hd .sec-h p { color: var(--soft); font-size: 18px; max-width: 52ch; }
@media (max-width: 760px) { .hd section.band { padding-block: 64px; } }

/* a call */
.hd .call { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.hd .timeline { list-style: none; margin: 0; padding: 0; }
.hd .timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hd .timeline time { font-family: var(--mono); font-size: 14px; color: var(--brass); padding-top: 2px; }
.hd .timeline b { display: block; font-size: 18px; }
.hd .timeline span { color: var(--sage); font-size: 15px; }
.hd .tg { background: #17212b; border-radius: 26px; padding: 14px; max-width: 420px; justify-self: end; width: 100%; box-shadow: 0 40px 70px -40px rgba(0,0,0,.7); }
.hd .tg-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; }
.hd .tg-head svg { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.hd .tg-head b { display: block; font-size: 15px; } .hd .tg-head small { color: #7f91a4; font-size: 12px; }
.hd .msgs { display: grid; gap: 8px; }
.hd .msg { justify-self: start; max-width: 92%; background: #182533; color: #e9eef3; border-radius: 16px 16px 16px 6px; padding: 9px 12px 6px; font-size: 14.5px; line-height: 1.35; }
.hd .msg time { display: block; text-align: right; font-size: 11px; color: #6d8094; font-family: var(--mono); }
.hd .msg.now { color: var(--loss); font-weight: 800; }
.hd .msg.card { background: #1f2f40; }
.hd .msg.card .r { display: flex; justify-content: space-between; gap: 18px; font-family: var(--mono); font-size: 13px; }
.hd .msg.card .r span:last-child { color: #8aa0b4; }
.hd .msg.win { background: #123526; color: #c9f7dc; } .hd .msg.win strong { color: var(--win); }
@media (max-width: 900px) { .hd .call { grid-template-columns: 1fr; } .hd .tg { justify-self: stretch; max-width: none; } }

/* EAs */
.hd .eas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hd .ea { border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.hd .ea.anchor { background: linear-gradient(160deg, rgba(29,74,60,.7), rgba(15,43,34,.4)); }
.hd .ea.blitz { background: linear-gradient(160deg, rgba(227,183,107,.16), rgba(15,43,34,.4)); }
.hd .ea .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hd .ea .chip { font-family: var(--mono); font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.hd .ea.anchor .chip { background: rgba(95,211,154,.14); color: var(--win); }
.hd .ea.blitz .chip { background: rgba(255,122,102,.14); color: var(--loss); }
.hd .ea h3 { font-size: clamp(34px, 3.8vw, 50px); }
.hd .ea .was { font-family: var(--mono); font-size: 12px; color: var(--sage); }
.hd .ea .gain { font-weight: 800; font-size: clamp(48px, 6vw, 76px); color: var(--brass); line-height: .9; letter-spacing: -.03em; }
.hd .ea .gain small { display: block; font-weight: 400; font-size: 14px; color: var(--sage); letter-spacing: 0; margin-top: 8px; }
.hd .ea p.what { color: var(--soft); }
.hd .ea dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.hd .ea dl div { background: var(--glass); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.hd .ea dt { font-size: 12px; color: var(--sage); } .hd .ea dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.hd .ea a.more { font-weight: 700; color: var(--brass); text-decoration: none; }
.hd .fine { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--sage); }
@media (max-width: 900px) { .hd .eas { grid-template-columns: 1fr; } }

/* cashback */
.hd .cash { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.hd .tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; height: 300px; }
.hd .tier { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; }
.hd .tier .col { background: linear-gradient(180deg, var(--brass), rgba(227,183,107,.35)); border-radius: 14px 14px 4px 4px; color: var(--forest); font-weight: 800; font-size: clamp(18px, 2.2vw, 26px); text-align: center; padding-top: 10px; }
.hd .tier small { font-family: var(--mono); font-size: 12px; text-align: center; color: var(--sage); }
@media (max-width: 900px) { .hd .cash { grid-template-columns: 1fr; } .hd .tiers { height: 240px; } }

/* end + footer */
.hd .end h2 { font-size: clamp(56px, 11vw, 160px); }
.hd .end h2 span { color: var(--brass); }
.hd .end > .wrap > p { margin-top: 18px; font-size: 19px; color: var(--soft); max-width: 44ch; }
.hd .end .row { margin-top: 28px; }
.hd .foot { margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; font-size: 13px; color: var(--sage); }
.hd .foot p { max-width: 90ch; }
.hd .foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.hd .foot ul a { text-decoration: none; color: var(--cream); } .hd .foot ul a:hover { color: var(--brass); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hd .ticker .track { animation: none; } .hd .btn, .hd .brand svg { transition: none; } }
