/* TradeVN landing. Self-hosted Inter only (the page CSP allows nothing external, no inline styles). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-vietnamese-400-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-vietnamese-500-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-vietnamese-600-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-vietnamese-700-normal.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --bg: #131315; --bg2: #19191c; --card: #1e1e22; --line: rgba(255, 255, 255, .09); --txt: #e9eefc; --mut: #a3a3ad; --blue: #2f6df0; --cobalt: #1b3cf0; --acc: #19d3a2; --btn: #0a9b6e; --up: #12b981; --down: #ef4565; --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--txt); font: 15px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.c { text-align: center; }
.hl { color: var(--acc); }
.up-t { color: var(--up); } .down-t { color: var(--down); }
a:focus-visible { outline: 2px solid #4f8cff; outline-offset: 3px; border-radius: 10px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s; }
.nav.solid { background: rgba(19, 19, 21, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-in { display: flex; align-items: center; height: 68px; }
.logo { height: 44px; width: auto; display: block; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-join { background: var(--btn); color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 14px; border-radius: 6px; }
.btn-login { border: 1px solid rgba(255, 255, 255, .28); font-weight: 600; font-size: .8rem; padding: 5px 14px; border-radius: 6px; color: #fff; }
.btn-login:hover { background: rgba(255, 255, 255, .08); }
.btn-join:hover { filter: brightness(1.08); }

/* shared bits */
.sub-title { color: #a3a3ad; font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.btn-start { display: inline-block; background: var(--btn); color: #fff; font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; padding: 17px 48px; border-radius: 99px; transition: transform .25s, filter .25s; }
.btn-start:hover { transform: translateY(-2px); filter: brightness(1.1); }
.lead { color: var(--mut); font-size: 1rem; line-height: 1.7; max-width: 540px; }
.lead.c { margin-inline: auto; }
.big { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; }
.mid { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; }

/* hero */
.hero { position: relative; padding: 130px 0 90px; min-height: min(100svh, 760px); display: flex; align-items: center; background: var(--bg); }
.hero-in > * { min-width: 0; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; margin-bottom: 20px; color: #fff; }
.hero h1 .hl { color: inherit; }
.hero .lead { margin-bottom: 32px; }
.hero-meta { color: var(--mut); font-size: .82rem; margin-top: 16px; }
.scroll-down { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--mut); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }
.win { background: linear-gradient(180deg, #232328, #1a1a1e); border: 1px solid var(--line); border-radius: 22px; padding: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.win-top { display: flex; align-items: baseline; gap: 12px; padding: 2px 4px 12px; }
.win-top b { font-size: .95rem; } .win-top span { color: var(--up); font-weight: 600; font-variant-numeric: tabular-nums; }
.win-top em { margin-left: auto; font-style: normal; color: var(--mut); font-size: .72rem; }
.win-body { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; }
#chart { width: 100%; height: 250px; display: block; background: rgba(255, 255, 255, .02); border-radius: 12px; }
#chart .gl { stroke: rgba(255, 255, 255, .06); }
#chart .cu line { stroke: var(--up); } #chart .cu rect { fill: var(--up); }
#chart .cd line { stroke: var(--down); } #chart .cd rect { fill: var(--down); }
#chart .last { stroke: #4f8cff; stroke-dasharray: 4 4; }
.win-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ring-wrap { position: relative; width: 84px; height: 84px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: rgba(255, 255, 255, .1); }
.ring-fg { stroke: var(--acc); stroke-linecap: round; }
.ring-wrap.result .ring-fg { stroke: #f0b429; }
.ring-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-txt b { font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-txt span { font-size: .5rem; color: var(--mut); letter-spacing: .04em; margin-top: 3px; }
.dir { display: grid; gap: 8px; width: 100%; }
.dir span { text-align: center; padding: 9px 0; border-radius: 10px; font-weight: 700; font-size: .8rem; }
.d-up { background: rgba(18, 185, 129, .18); color: var(--up); } .d-down { background: rgba(239, 69, 101, .18); color: var(--down); }

/* platform */
.platform { padding: 100px 0; background: var(--bg2); }
.platform-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.ind-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; max-width: 420px; margin-inline: auto; display: grid; gap: 12px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.ind-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--mut); } .ind-row b { color: #fff; }
.ind-card svg { width: 100%; height: 90px; }
.ind-line { fill: none; stroke: #4f8cff; stroke-width: 2.4; stroke-linejoin: round; }
.ind-ref { stroke: rgba(255, 255, 255, .12); stroke-dasharray: 3 4; }
.mood { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; } .mood i { display: block; height: 100%; }
.m-up { background: var(--up); flex: 62; } .m-down { background: var(--down); flex: 38; }
.ind-card small { color: var(--mut); font-size: .74rem; }
.platform-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.platform-copy p { color: var(--mut); margin-bottom: 28px; max-width: 520px; }

/* built on */
.built { padding: 110px 0 90px; }
.big.c { margin-bottom: 56px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(25, 211, 162, .12); color: var(--acc); margin-bottom: 18px; }
.item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.item p { color: var(--mut); font-size: .92rem; }

.built { padding-bottom: 0; }
.logo-strip { margin-top: 70px; background: #f5b800; color: rgba(26, 19, 0, .78); overflow: hidden; padding: 32px 0; }
.strip-track { display: flex; width: max-content; animation: strip 40s linear infinite; }
.strip-grp { display: flex; align-items: center; flex: none; }
.lg { display: inline-flex; align-items: center; gap: 14px; padding: 0 60px; white-space: nowrap; }
.lg svg { width: 56px; height: 56px; flex: none; }
.lg b { font-size: 1.35rem; font-weight: 800; line-height: 1.05; letter-spacing: .02em; }
.lg b.it { font-size: 2.3rem; font-style: italic; letter-spacing: -.02em; text-transform: lowercase; }
.lg b.tag { font-size: 1.9rem; letter-spacing: .06em; }
@media (max-width: 860px) { .logo-strip { padding: 24px 0; } .lg { padding: 0 40px; } .lg svg { width: 46px; height: 46px; } .lg b { font-size: 1.1rem; } .lg b.it { font-size: 1.9rem; } .lg b.tag { font-size: 1.55rem; } }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }
/* numbers */
.numbers { padding: 80px 0; background: var(--bg2); }
.mid.c { margin-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px 16px; text-align: center; }
.stat b { display: block; font-size: clamp(1.4rem, 3vw, 2rem); font-variant-numeric: tabular-nums; color: #fff; }
.stat span { color: var(--mut); font-size: .84rem; }
.stats-note { text-align: center; color: var(--mut); font-size: .8rem; margin-top: 16px; }

/* steps */
.steps-sec { padding: 110px 0 90px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { text-align: center; padding: 8px 18px; }
.num { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--btn); color: #fff; font-weight: 800; font-size: 1.4rem; }
.step small { display: block; color: var(--acc); font-weight: 600; margin-bottom: 4px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--mut); font-size: .92rem; }

/* final */
.final { padding: 100px 0; text-align: center; background: var(--bg2); }
.final .big { margin-bottom: 16px; }
.final .btn-start { margin-top: 28px; }

/* footer */
.foot { padding: 64px 0 36px; background: var(--bg); border-top: 1px solid var(--line); }
.foot-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; align-items: start; }
.logo-lg { height: 76px; width: auto; display: block; }
.foot-col { display: grid; gap: 12px; align-content: start; font-size: .92rem; }
.foot-col b { color: #fff; font-size: .95rem; margin-bottom: 6px; }
.foot-col a { color: #8b8b95; transition: color .2s; } .foot-col a:hover { color: #fff; }
.lang select { color-scheme: dark; appearance: auto; width: 100%; max-width: 190px; background: var(--card); color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; padding: 11px 12px; font: 600 .9rem var(--font); cursor: pointer; }
.lang select:focus-visible { outline: 2px solid #4f8cff; outline-offset: 2px; }
.risk { color: #8b8b95; font-size: .78rem; line-height: 1.75; border-top: 1px solid var(--line); padding-top: 28px; }
.risk b { color: #b4b4be; font-weight: 600; }
.copy { color: #6f6f79; font-size: .76rem; margin-top: 20px; }
.ns { padding: 12px 20px; text-align: center; color: var(--mut); }

/* reveal (only when JS is on, so no-JS visitors see everything) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hero { padding: 100px 0 80px; min-height: 0; }
  .hero-in, .platform-in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .platform { padding: 70px 0; }
  .items, .steps { grid-template-columns: minmax(0, 1fr); } .foot-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scroll-down { display: none; }
  .built, .steps-sec { padding: 70px 0 60px; }
}
@media (max-width: 420px) {
  .win-body { grid-template-columns: 1fr; } .win-side { flex-direction: row; justify-content: space-between; }
  .dir { grid-auto-flow: column; width: auto; flex: 1; }
  .btn-join, .btn-login { padding-inline: 14px; }
}
@media (max-width: 860px) {
  .sub-title { font-size: .76rem; margin-bottom: 12px; }
  .hero h1 { font-size: 2.15rem; margin-bottom: 14px; }
  .lead { font-size: .92rem; line-height: 1.65; }
  .hero .lead { margin-bottom: 26px; }
  .btn-start { font-size: .88rem; padding: 15px 40px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .scroll-down { animation: none; } .js .reveal { opacity: 1; transform: none; transition: none; } }
