/* limit.trade landing — dựng lại từ design/original.html, responsive, không dùng framework */

:root {
  --ink: #0E1220;
  --text: #596070;
  --muted: #8B92A1;
  --line: #E8EBF2;
  --surface: #F5F7FB;
  --surface-2: #F8FAFD;
  --blue: #2563EB;
  --indigo: #4F46E5;
  --violet: #7C3AED;
  --cyan: #06B6D4;
  --amber: #F59E0B;
  --green: #16A34A;
  --red: #DC2626;
  --navy: #1E3A8A;

  --grad-primary: linear-gradient(97deg, var(--blue) 7%, var(--indigo) 93%);
  --grad-border: linear-gradient(115deg, #C7D9FF 15%, #E3D6FF 54%, #CFF3FA 85%);
  --grad-icon: linear-gradient(135deg, var(--blue) 15%, var(--violet) 85%);

  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-brand: "Nova Square", var(--font-display);

  --radius: 16px;
  --container: 1312px;
  --gutter: clamp(16px, 4.5vw, 64px);
  --nav-h: 76px;
  --section-y: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex: none; }
.icon { width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1.3; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn .icon { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, .25); }
.btn--primary:hover { box-shadow: 0 14px 30px rgba(37, 99, 235, .35); }
.btn--soft { background: var(--surface); color: var(--ink); font-weight: 500; }
.btn--soft:hover { background: #ECEFF6; }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: #C7D2E6; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--light { background: #fff; color: var(--navy); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue); color: #fff;
}
.brand__mark .icon { width: 20px; height: 20px; }
.brand__mark--sm { width: 28px; height: 28px; border-radius: 7px; }
.brand__mark--sm .icon { width: 16px; height: 16px; }
.brand__name { font: 400 19px/1 var(--font-brand); letter-spacing: .2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-size: 14.5px; color: var(--text); }
.nav__links > a:hover { color: var(--ink); }
.nav__mobile-actions { display: none; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__login { background: none; border: 0; padding: 8px 6px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.nav__login:hover { color: var(--blue); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text); border: 1px solid var(--line);
}
.lang-switch .icon { width: 15px; height: 15px; }
.lang-switch:hover { color: var(--ink); border-color: #C7D2E6; }
.lang-switch--text { border: 0; padding: 0; font-weight: 500; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--ink); }
.nav__toggle .icon { width: 20px; height: 20px; }
.nav__toggle-close { display: none; }

@media (max-width: 1024px) {
  .nav__toggle { display: inline-flex; }
  .nav__login, .nav__cta { display: none; }
  .nav__links {
    position: absolute; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(14, 18, 32, .08);
    font-size: 16px;
    display: none;
  }
  .nav__links > a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav__mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__toggle-open { display: none; }
  .nav.is-open .nav__toggle-close { display: inline; }
}
@media (max-width: 420px) {
  .nav__mobile-actions { grid-template-columns: 1fr; }
}

/* ---------- Decorative blobs ---------- */
.hero__bg, .section__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; left: var(--x); top: var(--y);
  width: min(var(--s), 110vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; opacity: .55;
}
.blob--violet { background: radial-gradient(closest-side, rgba(167, 139, 250, .45), rgba(167, 139, 250, 0)); }
.blob--blue   { background: radial-gradient(closest-side, rgba(96, 165, 250, .40), rgba(96, 165, 250, 0)); }
.blob--cyan   { background: radial-gradient(closest-side, rgba(103, 232, 249, .45), rgba(103, 232, 249, 0)); }
.blob--rose   { background: radial-gradient(closest-side, rgba(251, 113, 133, .30), rgba(251, 113, 133, 0)); }
.blob--amber  { background: radial-gradient(closest-side, rgba(252, 211, 77, .35), rgba(252, 211, 77, 0)); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(40px, 6vw, 76px); background: linear-gradient(180deg, #FBFCFF 0%, #fff 100%); }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(37, 99, 235, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, .06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 90%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 90%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 14px; border-radius: 100px; background: rgba(245, 247, 251, .9);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--text);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, .15); flex: none; }
.hero__title {
  max-width: 920px; margin-top: 24px;
  font: 700 clamp(36px, 6.2vw, 66px)/1.05 var(--font-display); letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--blue) 7%, var(--ink) 50%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 760px) { .hero__title { text-wrap: balance; } }
.hero__subtitle { max-width: 640px; margin-top: 24px; font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.6; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* ---------- Dashboard mockup ---------- */
.mockup {
  width: 100%; max-width: 1120px; margin-top: clamp(32px, 4vw, 48px); padding: 8px;
  background: #fff; border-radius: 18px; box-shadow: 0 26px 64px rgba(30, 58, 138, .18);
  border: 1px solid #EEF1F7; text-align: left; color: var(--ink);
}
.mockup__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 8px 10px 14px; }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #F87171; }
.dots i:nth-child(2) { background: #FBBF24; }
.dots i:nth-child(3) { background: #34D399; }
.mockup__url { font-size: 12px; color: var(--muted); }
.mockup__gear { justify-self: end; color: var(--muted); }
.mockup__gear .icon { width: 14px; height: 14px; }
.mockup__screen { display: grid; grid-template-columns: 220px 1fr; border-top: 1px solid var(--line); }
.mock-side { padding: 16px 14px; border-right: 1px solid var(--line); }
.mock-side__brand { display: flex; align-items: center; gap: 8px; padding: 6px 6px 18px; }
.mock-side__brand .brand__name { font-size: 14px; }
.mock-side li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; color: var(--text); }
.mock-side li .icon { width: 15px; height: 15px; color: var(--muted); }
.mock-side li.is-active { background: #E9EFFE; color: var(--ink); font-weight: 600; }
.mock-side li.is-active .icon { color: var(--blue); }
.mock-main { padding: 18px 0 18px 22px; min-width: 0; }
.mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-head__title { font: 600 19px/1.3 var(--font-display); }
.mock-head__sub { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); font-size: 12px; color: var(--text); white-space: nowrap; }
.pill .icon { width: 12px; height: 12px; }
.mock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.mock-stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.mock-stat__label { font-size: 12px; color: var(--muted); }
.mock-stat__value { margin-top: 6px; font: 600 clamp(16px, 1.7vw, 20px)/1.2 var(--font-display); white-space: nowrap; }
.mock-stat__value span { font: 500 11px var(--font-body); }
.up { color: var(--green); }
.down { color: var(--red); }
.mock-card { margin-top: 16px; padding: 16px 18px; border: 1px solid #E2E8F2; border-radius: 12px; background: #fff; }
.mock-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mock-label { font-size: 12px; color: var(--muted); }
.mock-big { display: flex; align-items: center; gap: 8px; font: 700 22px/1.3 var(--font-display); }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 100px; background: #E7F7EE; color: var(--green); font: 600 11px var(--font-body); }
.chip .icon { width: 12px; height: 12px; }
.mock-panels { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 12px; margin-top: 14px; }
.panel { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.panel__title { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.panel__title .up { font-weight: 600; }
.panel--donut { text-align: center; }
.donut {
  width: 112px; aspect-ratio: 1; margin: 12px auto 14px; border-radius: 50%;
  background: conic-gradient(var(--blue) 0 45%, var(--violet) 45% 70%, var(--cyan) 70% 88%, var(--amber) 88% 100%);
  display: grid; place-items: center;
}
.donut__center { width: 64%; aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); display: grid; place-content: center; }
.donut__center strong { font: 700 18px/1 var(--font-display); }
.donut__center span { font-size: 8px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text); padding: 2px 0; }
.legend b { margin-left: auto; font-weight: 600; color: var(--ink); }
.legend i, .bar__fill { background: var(--blue); }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.c0 { background: var(--blue) !important; }
.c1 { background: var(--violet) !important; }
.c2 { background: var(--cyan) !important; }
.c3 { background: var(--amber) !important; }
.panel--area { display: flex; flex-direction: column; }
.area { position: relative; flex: 1; min-height: 150px; margin-top: 12px; }
.area svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area__grid line { stroke: #E2E8F2; stroke-dasharray: 3 4; }
.area__dot { position: absolute; right: -6px; top: calc(15 / 160 * 100% - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .2); }
.area__tip { position: absolute; right: 22%; top: calc(29 / 160 * 100% - 6px); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 10px var(--font-body); }
.area__x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 9.5px; color: var(--muted); }
.bar { margin-top: 12px; }
.bar p { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text); }
.bar b { font-weight: 600; color: var(--ink); }
.bar__track { display: block; height: 5px; margin-top: 5px; border-radius: 4px; background: #E8EBF2; overflow: hidden; }
.bar__fill { display: block; height: 100%; border-radius: 4px; }

@media (max-width: 1024px) {
  .mockup__screen { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-main { padding: 16px 8px 8px; }
}
@media (max-width: 760px) {
  .mock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock-panels { grid-template-columns: 1fr 1fr; }
  .panel--area { grid-column: 1 / -1; order: -1; }
  .mockup__url { display: none; }
  .mockup__bar { grid-template-columns: 1fr auto; }
}
@media (max-width: 480px) {
  .mock-card { padding: 12px; }
  .mock-panels { grid-template-columns: 1fr; }
  .mock-card__head .pill { display: none; }
  .mock-big { font-size: 19px; }
}

/* ---------- Trust strip ---------- */
.trust { padding: clamp(48px, 6vw, 64px) 0 clamp(16px, 3vw, 32px); text-align: center; }
.trust__caption { font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.trust__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(24px, 4vw, 52px); margin-top: 22px; }
.trust__logos li { font: 600 clamp(15px, 1.5vw, 18px)/1.2 var(--font-display); color: #5C6577; opacity: .85; }

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding: var(--section-y) 0; }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head h2 { margin-top: 14px; font: 700 clamp(31px, 2.4vw + 21px, 42px)/1.15 var(--font-display); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.section__head p:not(.eyebrow) { margin-top: 16px; font-size: clamp(15px, 1.3vw, 16.5px); text-wrap: pretty; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow--warm { background-image: linear-gradient(90deg, #F43F5E, #F59E0B); }
.eyebrow--muted { background: none; color: var(--muted); }

/* Problems */
.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 28px clamp(24px, 5vw, 80px); }
.problem { display: flex; gap: 14px; align-items: flex-start; }
.problem__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #FEF2F2; color: #E11D48; border: 1px solid #FDE2E4; flex: none; }
.problem__icon .icon { width: 18px; height: 18px; }
.problem h3 { font: 600 16px/1.4 var(--font-display); color: var(--ink); }
.problem p { margin-top: 4px; font-size: 14.5px; line-height: 1.55; }
@media (max-width: 760px) {
  .problems { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 22px; }
}

/* Cards */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative; padding: clamp(22px, 2.2vw, 28px); border-radius: var(--radius);
  border: 1px solid transparent;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(246, 247, 255, .92)) padding-box,
    var(--grad-border) border-box;
  box-shadow: 0 18px 40px rgba(30, 58, 138, .06);
}
.card h3 { font: 600 clamp(17px, 1.5vw, 19px)/1.35 var(--font-display); color: var(--ink); }
.card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 11px; background: var(--grad-icon); color: #fff; box-shadow: 0 8px 18px rgba(79, 70, 229, .25); }
.card__icon .icon { width: 20px; height: 20px; }
@media (max-width: 1024px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards--3 { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; padding: clamp(24px, 3vw, 40px) clamp(12px, 2vw, 24px); }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd { order: -1; font: 700 clamp(26px, 3vw, 34px)/1.15 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.stat dt { font-size: 13.5px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; }
}

/* Roadmap */
.step__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.step__num { font: 700 34px/1 var(--font-display); background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600; border: 1px solid; }
.tag--blue { color: var(--blue); background: #EFF4FF; border-color: #C7D9FF; }
.tag--violet { color: var(--violet); background: #F5F3FF; border-color: #E3D6FF; }
.tag--green { color: var(--green); background: #E7F7EE; border-color: #BBE7CC; }
@media (max-width: 1024px) and (min-width: 641px) {
  #roadmap .cards--3 > .step:last-child, #testimonials .cards--3 > .card:last-child { grid-column: 1 / -1; }
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 0.92fr 1fr; gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 28px; }
.plan__head h3 { font-size: 16px; color: var(--text); font-weight: 600; }
.plan__badge { padding: 4px 10px; border-radius: 100px; background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px !important; }
.plan__price strong { font: 700 clamp(32px, 3.2vw, 40px)/1 var(--font-display); color: var(--ink); letter-spacing: -0.03em; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan__desc { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan__features { display: grid; gap: 10px; margin: 20px 0 28px; font-size: 14.5px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; }
.plan__features .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--green); }
.plan .btn { margin-top: auto; }
.plan--featured {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--blue), var(--violet)) border-box;
  box-shadow: 0 24px 60px rgba(37, 99, 235, .16);
}
.plan--featured .plan__head h3 { color: var(--ink); }
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:last-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; }
}

/* Testimonials */
.quote { display: flex; flex-direction: column; }
.stars { display: flex; gap: 4px; color: #F59E0B; }
.stars .icon { width: 16px; height: 16px; }
.quote blockquote { margin: 18px 0 28px; font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #E9EFFE; color: var(--blue); font-weight: 700; font-size: 14px; }
.quote__author strong { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.quote__author small { display: block; font-size: 12.5px; color: var(--muted); }

/* CTA band */
.cta-section { padding: 0 0 var(--section-y); }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(44px, 6vw, 64px) clamp(20px, 5vw, 56px); border-radius: 26px; text-align: center; color: #fff;
  background: linear-gradient(100deg, var(--navy) 10%, var(--blue) 54%, var(--indigo) 90%);
}
.cta-band__glow { position: absolute; z-index: -1; border-radius: 50%; }
.cta-band__glow--a { width: 340px; aspect-ratio: 1; left: 0; top: 0; transform: translate(-25%, -40%); background: radial-gradient(closest-side, rgba(196, 181, 253, .75), rgba(196, 181, 253, 0)); }
.cta-band__glow--b { width: 560px; aspect-ratio: 1; right: 0; bottom: 0; transform: translate(30%, 45%); background: radial-gradient(circle at 50% 50%, rgba(34, 211, 238, .35), rgba(37, 99, 235, .25) 50%, transparent 70%); }
.cta-band h2 { font: 700 clamp(31px, 2.4vw + 21px, 42px)/1.15 var(--font-display); letter-spacing: -0.025em; text-wrap: balance; }
.cta-band p { max-width: 560px; margin: 16px auto 0; color: #DBEAFE; text-wrap: pretty; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta-band .cta-band__note { margin-top: 22px; font-size: 13px; color: #BFDBFE; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer__top { display: flex; justify-content: space-between; gap: 40px 64px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand { max-width: 340px; }
.footer__brand p { margin-top: 16px; font-size: 14px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a, .socials span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.socials a:hover { color: var(--blue); border-color: #C7D9FF; }
.socials .icon { width: 16px; height: 16px; }
.footer__security { flex: 0 1 560px; }
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.badges li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: #3B4252; white-space: nowrap; }
.badges .icon { width: 15px; height: 15px; color: var(--text); }
/* O huy hieu co link toi bao cao kiem chung */
.badges li.badges__link { padding: 0; }
.badges__link a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; color: inherit; transition: color .15s ease, border-color .15s ease; }
.badges__link a .icon:last-child { width: 13px; height: 13px; margin-left: auto; color: var(--muted); }
.badges__link:hover { border-color: #C7D9FF; }
.badges__link a:hover { color: var(--blue); }
.badges__link a:hover .icon { color: var(--blue); }
/* O nhan manh (DNSSEC): nen gradient thuong hieu, tuong phan voi o DMCA xanh la/den */
.badges li.badges__link--accent { border: 0; background: var(--grad-primary); box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.badges__link--accent a, .badges__link--accent a .icon, .badges__link--accent a .icon:last-child { color: #fff; }
.badges__link--accent a:hover, .badges__link--accent a:hover .icon { color: #fff; }
.badges li.badges__link--accent:hover { box-shadow: 0 8px 20px rgba(37, 99, 235, .35); }

/* O DMCA: huy hieu ve bang CSS (mau theo huy hieu goc), phu kin o, bo goc */
.badges li.badges__dmca { padding: 0; border: 0; background: none; }
.dmca-badge {
  display: flex; width: 100%; min-height: 38px; height: 100%; border-radius: 9px; overflow: hidden;
  font: 800 13px/1 var(--font-body); letter-spacing: .6px; color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dmca-badge:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(14, 18, 32, .15); }
.dmca-badge span { display: grid; place-items: center; }
.dmca-badge__l { flex: 0 0 36%; background: #8DC642; }
.dmca-badge__r { flex: 1; background: #221E1F; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13.5px; }
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a:hover, .footer__links a[aria-current="page"] { color: var(--ink); }
.footer__links a[aria-current="page"] { font-weight: 600; }
@media (max-width: 640px) {
  .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Trang phap ly ---------- */
.legal { position: relative; isolation: isolate; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.legal__bg { position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; overflow: hidden; pointer-events: none; }
.legal__inner { max-width: calc(760px + 2 * var(--gutter)); }
.legal__back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.legal__back .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.legal__back:hover { color: var(--blue); }
.legal__head { margin: 28px 0 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.legal__head h1 { margin-top: 10px; font: 700 clamp(32px, 3vw + 20px, 46px)/1.12 var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
.legal__updated { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.legal__intro { margin-top: 18px; font-size: 16.5px; color: var(--ink); }
.legal__section { padding-top: 28px; }
.legal__section h2 { font: 600 clamp(19px, 0.6vw + 16px, 22px)/1.35 var(--font-display); color: var(--ink); }
.legal__section p { margin-top: 10px; font-size: 15.5px; line-height: 1.7; }
.legal__contact { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------- Modal form ---------- */
.modal {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(14, 18, 32, .3); color: var(--text);
}
.modal::backdrop { background: rgba(14, 18, 32, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lead { position: relative; display: grid; gap: 14px; padding: clamp(22px, 4vw, 32px); }
.lead h2 { padding-right: 36px; font: 700 22px/1.25 var(--font-display); color: var(--ink); }
.lead__intro { font-size: 14.5px; margin-top: -6px; }
.modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--surface); color: var(--text); }
.modal__close .icon { width: 18px; height: 18px; }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #D9DEE8; border-radius: 10px; background: #fff;
  font-size: 16px; font-weight: 400; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 76px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__status { min-height: 1.2em; font-size: 14px; font-weight: 500; }
.lead__status.is-error { color: var(--red); }
.lead__status.is-success { color: var(--green); }
.lead__privacy { font-size: 12px; color: var(--muted); text-align: center; }
.lead.is-done .field, .lead.is-done button[type="submit"] { display: none; }

/* ---------- Tinh chinh mobile ---------- */
@media (max-width: 640px) {
  /* Moi khoi chi dem phia tren -> khoang cach giua cac khoi deu 56px, khong cong don */
  .section { padding: 56px 0 0; }
  .cta-section { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head h2 { margin-top: 10px; }
  .section__head p:not(.eyebrow) { margin-top: 12px; }
  .trust { padding: 44px 0 4px; }
  .cards { gap: 16px; }
  .stats { margin-top: 16px; }

  /* Khoi Giai phap: icon va tieu de cung 1 dong */
  .feature { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
  .feature .card__icon { margin-bottom: 0; }
  .feature p { grid-column: 1 / -1; margin-top: 14px; }

  /* CTA: nut rong full khung */
  .cta-band__actions { flex-direction: column; align-items: stretch; }
  .cta-band__actions .btn { width: 100%; }

  /* Chan trang */
  .footer { padding: 44px 0 28px; }
  .footer__top { gap: 32px; padding-bottom: 28px; }
  .footer__brand { max-width: none; }
  .footer__security { flex-basis: 100%; }
  .badges li { padding: 9px 10px; font-size: 12.5px; }
  .footer__bottom { flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
  .footer__links { justify-content: center; gap: 8px 18px; }

  /* 2 nut dau trang rong full khung */
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Trang dang nhap / dang ky ---------- */
.auth-body { background: #fff; }
.auth { display: grid; grid-template-columns: minmax(440px, 640px) 1fr; min-height: 100vh; min-height: 100dvh; }
.auth__brand {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 56px 52px; color: #fff;
  background: linear-gradient(235deg, var(--navy) 15%, var(--blue) 54%, var(--indigo) 85%);
}
.auth__blob { position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; }
.auth__blob--1 { left: -180px; top: -200px; background: radial-gradient(closest-side, rgba(255, 255, 255, .4), rgba(37, 99, 235, 0)); }
.auth__blob--2 { right: -280px; bottom: -200px; background: radial-gradient(closest-side, rgba(89, 222, 242, .4), rgba(37, 99, 235, 0)); }
.brand--light { color: #fff; }
.brand--light .brand__mark { width: 38px; height: 38px; border-radius: 11px; background: #fff; color: var(--blue); }
.brand--light .brand__name { font-size: 21px; }
.auth__pitch { display: grid; gap: 24px; max-width: 536px; }
.auth__headline { font: 700 clamp(34px, 1.6vw + 18px, 42px)/1.12 var(--font-display); letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.auth__sub { font-size: 15px; line-height: 25px; color: #DBEAFE; }
.auth__points { display: grid; gap: 13px; }
.auth__points li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #EAF1FF; }
.auth__check {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.auth__check .icon { width: 14px; height: 14px; }
.auth__quote {
  display: flex; align-items: center; gap: 13px; margin: 0; padding: 14px 16px; max-width: 536px;
  border-radius: 14px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18);
}
.auth__avatar {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .25);
}
.auth__avatar .icon { width: 20px; height: 20px; }
.auth__quote blockquote { margin: 0; font-size: 13.5px; line-height: 20px; color: #fff; }
.auth__quote figcaption { margin-top: 4px; font-size: 11.5px; color: #BFDBFE; }

.auth__panel { display: flex; flex-direction: column; padding: 24px clamp(20px, 4vw, 48px) 48px; }
.auth__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth__home { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.auth__home .icon { width: 16px; height: 16px; }
.auth__home:hover { color: var(--blue); }
.auth__card { display: grid; gap: 16px; width: 100%; max-width: 400px; margin: auto; padding-top: 24px; }
.auth__card h1 { font: 700 32px/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.auth__subtitle { margin-top: -4px; font-size: 14px; line-height: 22px; color: var(--text); }
.auth__social { display: grid; gap: 10px; padding-top: 6px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 18px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  font-size: 14.5px; font-weight: 500; color: var(--ink); transition: border-color .15s ease, background-color .15s ease;
}
.social-btn .icon { width: 20px; height: 20px; }
.social-btn--google:hover { border-color: #C7D2E6; background: var(--surface-2); }
.social-btn--facebook { border-color: #1877F2; background: #1877F2; color: #fff; }
.social-btn--facebook .icon { width: 18px; height: 18px; }
.social-btn--facebook:hover { background: #166FE5; }
.auth__divider { display: flex; align-items: center; gap: 12px; padding: 4px 0; font-size: 12.5px; color: var(--muted); }
.auth__divider::before, .auth__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-field { display: grid; gap: 7px; font-size: 13px; font-weight: 500; color: var(--ink); }
.auth-field input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: 15px; font-weight: 400; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field input:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.auth-field input[aria-invalid="true"] { border-color: var(--red); }
.auth-field__wrap { position: relative; display: block; }
.auth-field__wrap input { padding-right: 46px; }
.auth-field__eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--muted);
}
.auth-field__eye:hover { color: var(--ink); }
.auth-field__eye .icon { width: 18px; height: 18px; }
.auth-field__eye .eye-hide, .auth-field__eye[aria-pressed="true"] .eye-show { display: none; }
.auth-field__eye[aria-pressed="true"] .eye-hide { display: block; }
.auth__options { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-check { position: relative; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text); cursor: pointer; }
.auth-check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.auth-check__box {
  display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 5px;
  border: 1px solid #D3D9E5; background: #fff; color: #fff; transition: background-color .15s ease, border-color .15s ease;
}
.auth-check__box .icon { width: 12px; height: 12px; opacity: 0; stroke-width: 3; }
.auth-check input:checked + .auth-check__box { background: var(--blue); border-color: var(--blue); }
.auth-check input:checked + .auth-check__box .icon { opacity: 1; }
.auth-check input:focus-visible + .auth-check__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.auth-check input[aria-invalid="true"] + .auth-check__box { border-color: var(--red); }
.auth-check--agree { align-items: flex-start; line-height: 19px; }
.auth-check--agree .auth-check__box { margin-top: 1px; }
.auth-check a, .auth__link, .auth__switch a { color: var(--blue); font-weight: 500; }
.auth-check a:hover, .auth__link:hover, .auth__switch a:hover { text-decoration: underline; }
.auth__link { padding: 0; border: 0; background: none; font-size: 13px; }
.auth__status { font-size: 13.5px; line-height: 1.5; font-weight: 500; }
.auth__status:empty { display: none; }
.auth__status.is-error { color: var(--red); }
.auth__status.is-info { padding: 12px 14px; border-radius: 10px; background: #EFF4FF; color: var(--navy); }
.auth__status.is-success { padding: 12px 14px; border-radius: 10px; background: #ECFDF3; color: #166534; }
.auth__submit { padding: 14px 18px; border-radius: 11px; }
.auth__switch { padding-top: 4px; text-align: center; font-size: 13.5px; color: var(--text); }

/* Trang tai khoan */
.auth__resend { justify-self: start; margin-top: -6px; }
.auth__resend[hidden], .account [hidden] { display: none; }
.account h1 { overflow-wrap: anywhere; }
.account__info { display: grid; margin: 4px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.account__info > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; font-size: 14px; }
.account__info > div + div { border-top: 1px solid var(--line); }
.account__info dt { color: var(--text); }
.account__info dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.account__info[aria-busy="true"] dd { color: var(--muted); font-weight: 400; }
.account__notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--surface); font-size: 13.5px; line-height: 1.55; }
.account__notice .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--blue); }
.account__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (max-width: 1024px) {
  .auth { grid-template-columns: minmax(360px, 44%) 1fr; }
  .auth__brand { padding: 44px 36px; }
}
@media (max-width: 860px) {
  .auth { display: block; position: relative; }
  .auth__brand { gap: 16px; padding: 22px 22px 26px; }
  .auth__blob { width: 360px; height: 360px; }
  .auth__blob--1 { left: -120px; top: -160px; }
  .auth__blob--2 { display: none; }
  .brand--light .brand__mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand--light .brand__mark .icon { width: 17px; height: 17px; }
  .brand--light .brand__name { font-size: 18px; }
  .auth__headline { font-size: 25px; line-height: 29px; }
  .auth__sub, .auth__points { display: none; }
  .auth__quote { gap: 12px; padding: 12px 14px; max-width: none; }
  .auth__avatar { width: 44px; height: 44px; }
  .auth__quote blockquote { font-size: 12.5px; line-height: 18px; }
  /* Nut doi ngon ngu noi len goc phai khoi xanh; logo da dan ve trang chu */
  .auth__panel { padding: 24px 22px 28px; }
  .auth__top { position: absolute; top: 19px; right: 22px; }
  .auth__home { display: none; }
  .auth__top .lang-switch { color: #fff; border-color: rgba(255, 255, 255, .35); }
  .auth__top .lang-switch:hover { background: rgba(255, 255, 255, .12); color: #fff; }
  .auth__card { gap: 14px; max-width: 480px; padding-top: 0; margin: 0 auto; }
  .auth__card h1 { font-size: 26px; }
  .auth__subtitle { font-size: 13px; line-height: 20px; }
}
