/* Base */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial; color:#e9f7ee; background:#081b10}

:root{
  --g900:#062814;--g800:#0a3a1f;--g700:#0b4a26;--g600:#13844a;--g500:#17944f;--g400:#1fb464;--g300:#5ed39a;
  --text:#e9f7ee;--muted:#b6d2c3;--card:rgba(255,255,255,.06);--border:rgba(255,255,255,.12);
  --topbar-h:72px; /* chiều cao header mặc định */
  scroll-padding-top: var(--topbar-h);
  --mx: 0px; --my: 0px; /* offset nền parallax theo chuột */
}

/* Background grid + glow */
.bg-grid{position:fixed;inset:0;z-index:-2;background:
  linear-gradient(135deg,var(--g900),var(--g800) 50%,var(--g700)),
  radial-gradient(900px 400px at 70% 10%,rgba(31,180,100,.18),transparent 70%),
  radial-gradient(700px 300px at 20% 80%,rgba(94,211,154,.12),transparent 75%);
}
.bg-grid::after{content:"";position:absolute;inset:0;opacity:.12;background:
  repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 1px,transparent 1px 44px),
  repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 44px);
}

/* Network canvas layer */
.bg-network{position:fixed;inset:0;z-index:-1;pointer-events:none}
.cursor-spotlight{position:fixed;inset:0;pointer-events:none;z-index:-1;
  --sx: 50%; --sy: 50%;
  background: radial-gradient(220px 220px at var(--sx) var(--sy), rgba(99,217,162,.18), rgba(99,217,162,0) 60%);
  mix-blend-mode: screen;
}

/* Topbar */
.topbar{position:fixed;top:0;left:0;right:0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background:rgba(8,27,16,.65);backdrop-filter:blur(6px) saturate(120%);border-bottom:1px solid var(--border)}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{width:40px;height:40px;border-radius:10px;object-fit:contain}
.brand-text{display:flex;flex-direction:column}
.name{font-family:Poppins,Inter,sans-serif;font-weight:700}
.note{font-size:12px;color:var(--muted)}
.top-actions{display:flex;gap:16px}
.top-link{color:var(--text);text-decoration:none;opacity:.9}
.top-link:hover{opacity:1}

/* Layout */
.wrap{max-width:1120px;margin:0 auto;padding:32px 20px; padding-top:var(--topbar-h)}
.hero-split{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.hero-left h1{font-family:Poppins,Inter; font-size:clamp(30px,5vw,54px); line-height:1.12;margin:8px 0 12px}
.subtitle{color:var(--muted);font-size:16px;margin-bottom:24px;max-width:720px}
.cta{display:grid;grid-template-columns:repeat(2,minmax(240px,1fr));gap:16px;position:relative;padding:16px;border-radius:18px;background:rgba(8,27,16,.55);backdrop-filter:blur(8px) saturate(120%);border:1px solid var(--border)}
.secure{display:flex;align-items:center;gap:10px;margin-top:10px;color:var(--muted);font-size:12px}
.secure .badge{border:1px solid var(--border);border-radius:999px;padding:4px 10px;background:var(--card)}
.secure .dot{width:6px;height:6px;border-radius:50%;background:#3dd08f;opacity:.8}

/* Panel (hero-right) */
.panel{position:relative;border-radius:20px;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid var(--border);backdrop-filter:blur(14px) saturate(120%);transform-style:preserve-3d}
.panel-glow{position:absolute;inset:-20px;background:conic-gradient(from 180deg,rgba(31,180,100,.0),rgba(31,180,100,.5),rgba(31,180,100,.0));filter:blur(18px);opacity:.55;animation:spin 12s linear infinite}
.panel-inner{position:relative;display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:center;padding:22px}
.panel-logo{width:72px;height:72px;border-radius:14px;object-fit:contain}
.panel-text strong{font-size:18px}
.panel-text span{color:var(--muted);font-size:13px}
@keyframes spin{to{transform:rotate(360deg)}}

/* Bento */
.bento{margin-top:42px}
.bento h2{font-size:20px;margin:0 0 12px}
.bento-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.tile{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:14px;opacity:0;transform:translateY(8px)}
.tile h3{margin:0 0 6px;font-size:16px}
.tile p{margin:0;color:var(--muted);font-size:14px}
.tile.show{opacity:1;transform:none;transition:opacity 400ms ease,transform 400ms ease}

/* FAQ */
.faq{margin-top:34px}
.faq h2{font-size:20px;margin-bottom:10px}
.faq details{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:12px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:600}
.faq p{color:var(--muted)}

/* Support */
.support{margin-top:34px}
.support-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:16px;opacity:0;transform:translateY(8px)}
.support-card.show{opacity:1;transform:none;transition:opacity 400ms ease,transform 400ms ease}

/* Buttons */
.btn{appearance:none;border:none;cursor:pointer;position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:10px; padding:14px 18px;border-radius:16px;font-weight:700;letter-spacing:.2px;transition:transform 120ms ease,box-shadow 240ms ease,background 240ms ease,color 240ms ease}
.btn.xlg{padding:18px 22px;border-radius:18px}
.btn.lg{padding:16px 20px}
.btn.has-icon .icon{opacity:.85;transition:transform 180ms ease,opacity 180ms ease}
.btn.has-icon:hover .icon{transform:translateX(3px);opacity:1}
.btn .icon.copy{opacity:.75}
.btn .icon.copy:hover{opacity:1}
.btn.primary{color:#052512;background:linear-gradient(180deg,#2bd07f,var(--g600));box-shadow:0 14px 40px rgba(31,180,100,.28);border:1px solid rgba(255,255,255,.18)}
.btn.secondary{color:#eafaf0;background:linear-gradient(180deg,rgba(30,50,40,.55),rgba(30,50,40,.35)) padding-box, linear-gradient(135deg,rgba(31,180,100,.55),rgba(23,148,79,.55)) border-box;border:1px solid transparent;box-shadow:0 10px 28px rgba(15,140,78,.22)}
.btn.accent{color:#052512;background:linear-gradient(180deg,#74e1ad,#2ab573);box-shadow:0 14px 40px rgba(99,217,162,.28);border:1px solid rgba(255,255,255,.18)}
.btn.ghost{color:var(--text);background:transparent;border:1px solid var(--border)}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(255,255,255,.20),0 18px 50px rgba(31,180,100,.30)}
.btn::before{content:"";position:absolute;inset:0;left:-120%;width:50%;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.25),rgba(255,255,255,0));transform:skewX(-12deg)}
.btn:hover::before{animation:shine 800ms ease forwards}
@keyframes shine{to{left:120%}}
.btn::after{content:"";position:absolute;inset:0;border-radius:inherit;border:1px solid rgba(255,255,255,.10)}
.btn.primary::after,.btn.accent::after{border:1px solid rgba(255,255,255,.18)}
.ripple{position:absolute;border-radius:999px;transform:scale(0);pointer-events:none;opacity:.6;background:rgba(255,255,255,.8)}
@keyframes rippleAnim{to{transform:scale(10);opacity:0}}

/* Footer */
.foot{margin-top:40px;border-top:1px solid var(--border)}
.foot .sep{opacity:.6}
.foot{display:flex;gap:8px;justify-content:center;color:var(--muted);font-size:13px;padding:18px 0}

/* Responsive */
@media (max-width:960px){.hero-split{grid-template-columns:1fr}.panel-inner{grid-template-columns:64px 1fr}.panel-logo{width:64px;height:64px}.bento-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.cta{grid-template-columns:1fr}.topbar{padding:12px 16px}.hero-left h1{font-size:clamp(26px,6.5vw,34px)}.subtitle{font-size:15px}.panel-inner{padding:18px}.panel{border-radius:16px}.tile{padding:12px}}
@media (max-width:560px){ .cta{padding:12px;border-radius:16px} }

/* Cập nhật chiều cao header cho mobile để tránh nội dung chui dưới header */
@media (max-width:560px){ :root{ --topbar-h:64px; } }

/* Motion reduction */
@media (prefers-reduced-motion:reduce){.bg-grid::after,.panel-glow,.btn:hover::before{animation:none}.tile.show,.support-card.show{transition:none}}
.hero-split, .bento, .faq, .support { scroll-margin-top: var(--topbar-h); }