:root {
  --bg: #070a12;
  --bg-2: #0b1120;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #e9eef7;
  --muted: #95a1b8;
  --brand: #2dd4bf;
  --brand-2: #38bdf8;
  --violet: #a78bfa;
  --hot: #fb923c;
  --grad: linear-gradient(110deg, #2dd4bf 0%, #38bdf8 50%, #a78bfa 100%);
  --radius: 18px;
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(56, 189, 248, .16), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(45, 212, 191, .12), transparent 60%),
    var(--bg);
  font: 16px/1.65 "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 30%, transparent 100%);
}
a { color: var(--brand); }
::selection { background: rgba(45, 212, 191, .35); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
header { position: sticky; top: 14px; z-index: 50; padding: 0 14px; }
header .wrap {
  display: flex; align-items: center; gap: 22px; height: 62px; max-width: 1100px;
  padding: 0 10px 0 18px;
  background: rgba(11, 17, 32, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  position: relative;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; display: block; border-radius: 8px; box-shadow: 0 0 24px rgba(45, 212, 191, .35); }
nav { display: flex; gap: 4px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-toggle { display: none; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; place-items: center; margin-left: auto; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-toggle:checked ~ .burger span { background: transparent; }
.nav-toggle:checked ~ .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .burger span::after { transform: translateY(-6px) rotate(-45deg); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 0;
  background: var(--grad); color: #04121a; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 30px -8px rgba(56, 189, 248, .55);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 12px 36px -8px rgba(56, 189, 248, .7); }
.btn .i { width: 18px; height: 18px; }
.btn.ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
header .btn { padding: 9px 18px; font-size: 14px; }

@media (max-width: 820px) {
  header .wrap { gap: 8px; }
  .burger { display: grid; }
  nav {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 10px;
    background: #0b1120; border: 1px solid var(--line-2); border-radius: 20px;
    box-shadow: var(--shadow);
  }
  nav a { padding: 12px 16px; border-radius: 12px; }
  .nav-toggle:checked ~ nav { display: flex; }
}
@media (max-width: 480px) { header .btn { display: none; } }

/* hero */
.hero { padding: 96px 0 40px; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 26px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.badge b { background: var(--grad); color: #04121a; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); line-height: 1.04; margin: 0 auto 22px; letter-spacing: -.035em; max-width: 900px; font-weight: 800; }
.hero p { font-size: clamp(17px, 2vw, 19px); color: var(--muted); margin: 0 auto 34px; max-width: 680px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* browser mockup */
.mock {
  margin: 64px auto 0; max-width: 980px; text-align: left;
  border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.02) inset, 0 -40px 120px -40px rgba(56, 189, 248, .35);
  overflow: hidden; position: relative;
}
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.dots i:nth-child(1) { background: #f87171; } .dots i:nth-child(2) { background: #fbbf24; } .dots i:nth-child(3) { background: #34d399; }
.mock-url { flex: 1; max-width: 420px; margin: 0 auto; padding: 5px 14px; border-radius: 999px; background: rgba(255,255,255,.05); color: var(--muted); font-size: 13px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 18px; padding: 24px; align-items: start; }
.ghost-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; opacity: .45; }
.ghost-card .ph { height: 150px; border-radius: 10px; background: linear-gradient(135deg, #1e293b, #334155); }
.ghost-card .ln { height: 9px; border-radius: 5px; background: #1e293b; margin-top: 12px; }
.ghost-card .ln.s { width: 60%; }
@media (max-width: 760px) { .mock-body { grid-template-columns: 1fr; } .ghost-card { display: none; } }

/* demo card (mô phỏng bảng thống kê của extension) */
.demo { position: relative; background: #0d1526; border: 1px solid rgba(45, 212, 191, .45); border-radius: 16px; padding: 14px; box-shadow: 0 0 0 4px rgba(45, 212, 191, .08), 0 20px 50px -10px rgba(45, 212, 191, .25); }
.demo-img { height: 150px; border-radius: 10px; background: linear-gradient(135deg, #f9a8d4, #fda4af 40%, #a5b4fc); display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.demo-title { margin: 10px 0 12px; font-weight: 600; font-size: 14px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo-grid div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 9px; padding: 7px 4px; text-align: center; }
.demo-grid small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.demo-grid b { font-size: 15px; }
.demo-grid .hot { border-color: rgba(251, 146, 60, .4); background: rgba(251, 146, 60, .08); }
.demo-grid .hot b { color: var(--hot); }
.demo-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.demo-tags span { font-size: 12px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.demo-label { position: absolute; top: -11px; right: 14px; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 10px; border-radius: 999px; background: var(--grad); color: #04121a; }

/* sections */
section { padding: 96px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.025em; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* bento cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(45, 212, 191, .4); transform: translateY(-3px); }
.card.wide { grid-column: span 2; }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--brand); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .25); }
.card:nth-child(3n+2) .ico { color: var(--brand-2); background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .25); }
.card:nth-child(3n) .ico { color: var(--violet); background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .25); }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; max-width: 440px; }
.bars { position: absolute; right: 28px; bottom: 28px; display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.bars i { width: 14px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--brand-2), rgba(45, 212, 191, .2)); opacity: .85; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.card-chips span { font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.card-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.card-stats div { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.card-stats small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card-stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .card-stats { grid-template-columns: 1fr 1fr; } }
.card-code { margin-top: 18px; font: 12px/1.7 ui-monospace, Consolas, monospace; color: #a5b4c8; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } .card.wide { grid-column: span 2; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } .card.wide { grid-column: auto; } .bars { display: none; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.step { position: relative; text-align: center; padding: 0 12px; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 20px;
  background: var(--bg-2); border: 1px solid var(--line-2); position: relative;
}
.step-num::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0 auto; color: var(--muted); font-size: 15px; max-width: 300px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } .steps::before { display: none; } }

/* faq */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { text-align: left; margin: 0; position: sticky; top: 110px; }
.faq-wrap .section-head a { color: var(--text); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; padding: 18px 40px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); font-weight: 400; font-size: 18px; transition: transform .25s, color .25s, border-color .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--brand); border-color: var(--brand); }
.faq details p { color: var(--muted); margin: 0 0 20px; padding-right: 40px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 28px; } .faq-wrap .section-head { position: static; } }

/* cta */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  border-radius: 28px; padding: 72px 24px;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(56, 189, 248, .28), transparent 70%),
    radial-gradient(500px 240px at 50% 100%, rgba(167, 139, 250, .2), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line-2);
}
.cta-band h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.025em; }
.cta-band p { margin: 0 0 30px; color: var(--muted); font-size: 17px; }

/* features page */
.page-hero { padding: 88px 0 28px; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5.5vw, 58px); margin: 0 0 14px; letter-spacing: -.035em; line-height: 1.05; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 18px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.toc a { font-size: 14px; padding: 7px 15px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--muted); transition: all .2s; }
.toc a:hover { border-color: var(--brand); color: var(--text); background: rgba(45, 212, 191, .08); }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 72px 0; border-bottom: 1px solid var(--line); }
.feat:last-child { border-bottom: 0; }
.feat:nth-child(even) .feat-text { order: 2; }
.feat-num { display: inline-block; font: 700 13px/1 ui-monospace, Consolas, monospace; color: var(--brand); border: 1px solid rgba(45, 212, 191, .35); background: rgba(45, 212, 191, .08); border-radius: 999px; padding: 6px 12px; margin-bottom: 16px; }
.feat h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.feat p { color: var(--muted); margin: 0 0 16px; }
.feat ul { margin: 0; padding: 0; list-style: none; }
.feat li { margin: 9px 0; padding-left: 28px; position: relative; color: #c5cede; }
.feat li::before { content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: rgba(45, 212, 191, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232dd4bf' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.tip { margin-top: 20px; padding: 14px 16px; border: 1px solid rgba(251, 146, 60, .3); background: rgba(251, 146, 60, .07); border-radius: 12px; font-size: 14px; color: #fdcfa6; }
.visual { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.visual::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(45, 212, 191, .5), transparent 40%, transparent 60%, rgba(167, 139, 250, .4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mini { background: #0d1526; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mini + .mini { margin-top: 10px; }
.mini.hl { border-color: var(--hot); box-shadow: 0 0 0 3px rgba(251, 146, 60, .18), 0 10px 30px -10px rgba(251, 146, 60, .4); }
.mini.mono { font: 12px/1.8 ui-monospace, Consolas, monospace; color: #a5b4c8; overflow-x: auto; white-space: nowrap; }
.mini-row { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; color: var(--muted); }
.mini-row + .mini-row { border-top: 1px dashed var(--line); }
.mini-row b { color: var(--text); }
.mini-row b.hot { color: var(--hot); }
.mini-title { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 8px; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(251, 191, 36, .15); color: #fcd34d; white-space: nowrap; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #0d1526; border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: rgba(255,255,255,.04); color: var(--muted); font-size: 12px; font-weight: 600; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .hot { color: var(--hot); font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px; background: #0d1526; color: #c5cede; }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; gap: 28px; padding: 56px 0; } .feat:nth-child(even) .feat-text { order: 0; } }

/* legal pages */
.legal-hero { padding: 80px 0 8px; text-align: center; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 10px; letter-spacing: -.03em; }
.legal-hero .updated { display: inline-block; color: var(--muted); font-size: 14px; padding: 5px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); margin: 0; }
.legal {
  max-width: 820px; margin: 40px auto 96px; padding: 44px 48px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line); border-radius: 24px;
}
.legal > p:first-child { margin-top: 0; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.01em; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: #c0c9d9; }
.legal li { margin: 8px 0; }
.legal li::marker { color: var(--brand); }
.legal strong { color: var(--text); }
@media (max-width: 640px) { .legal { padding: 28px 22px; margin: 28px 14px 72px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--muted); font-size: 14px; background: rgba(0, 0, 0, .25); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
footer .cols p { max-width: 280px; margin: 14px 0 0; }
footer h4 { margin: 0 0 14px; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 8px 0; }
footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--brand); }
.disclaimer { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: #6b7891; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } footer .cols > div:first-child { grid-column: span 2; } }
