:root { --p:#3a0b86; --p2:#5a16c4; --gold:#e0b020; --ink:#1b1530; --muted:#6b6483; --bg:#fff; --alt:#f6f2ff; --line:#e4dcf7; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--ink); background:var(--bg); line-height:1.6; }
.top { position:sticky; top:0; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.7rem 1.2rem; background:var(--p); }
.brand { display:flex; align-items:center; gap:.6rem; color:var(--gold); font-weight:800; font-size:1.2rem; text-decoration:none; }
.top nav { display:flex; gap:1.1rem; flex-wrap:wrap; }
.top nav a { color:#e8defa; text-decoration:none; font-size:.95rem; }
.top nav a:hover { color:var(--gold); }
.cta { display:inline-block; background:var(--gold); color:#2a1a00; font-weight:700; padding:.8rem 1.6rem; border-radius:999px; text-decoration:none; }
section { padding:3.2rem 1.2rem; max-width:1100px; margin:0 auto; }
section.alt { max-width:none; background:var(--alt); }
section.alt > * { max-width:1100px; margin-left:auto; margin-right:auto; }
h2 { margin:0 0 .6rem; font-size:1.7rem; color:var(--p); }
h3 { margin:1.6rem 0 .6rem; color:var(--p); }
.lead { max-width:70ch; color:var(--muted); }
.muted { color:var(--muted); font-size:.95rem; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:1rem; margin-top:1rem; }
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:1.1rem 1.2rem; }
.card h4 { margin:0 0 .4rem; font-size:1.05rem; color:var(--ink); }
.card p { margin:0; color:var(--muted); font-size:.95rem; white-space:pre-line; }
.card small { color:var(--muted); }
.badge { display:inline-block; font-size:.72rem; font-weight:700; padding:.1rem .55rem; border-radius:999px; margin-bottom:.4rem; }
.badge.ready { background:#dff6e6; color:#17623a; }
.badge.soon { background:#fff1cc; color:#7a5600; }
.badge.important { background:#fde2e2; color:#8a1c1c; }
.chips { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.chips li { background:#fff; border:1px solid var(--line); border-radius:999px; padding:.3rem .9rem; font-size:.92rem; }
.release { background:#fff; border:1px solid var(--line); border-radius:14px; padding:1.1rem 1.3rem; margin-top:1rem; }
.release h4 { margin:0 0 .4rem; }
.release ul { margin:.3rem 0 0 1.1rem; padding:0; color:var(--muted); }
.contact { list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:.5rem; }
.contact a { color:var(--p2); }
footer { display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; align-items:center; padding:1.4rem 1.2rem; background:var(--p); color:#cfc2ee; font-size:.9rem; }
.owner-link { color:#8d7fb8; font-size:.8rem; text-decoration:none; }
.owner-link:hover { color:var(--gold); }
@media (max-width:640px) { .top { flex-direction:column; align-items:flex-start; } section { padding:2.2rem 1rem; } }
.brand img { border-radius: 22%; background: #fff; box-shadow: 0 0 0 2px rgba(224,176,32,.85); }

.signup { display:grid; gap:.9rem; max-width:520px; margin-top:1rem; }
.signup label { display:flex; flex-direction:column; gap:.3rem; font-weight:600; font-size:.92rem; }
.signup label b { color:#b42318; }
.signup input { font:inherit; padding:.65rem .8rem; border:1px solid var(--line); border-radius:10px; width:100%; }
.signup input:focus { outline:2px solid var(--p2); outline-offset:1px; }
.signup .hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.signup button.cta { border:0; cursor:pointer; font:inherit; font-weight:700; justify-self:start; }
.signup button.cta[disabled] { opacity:.6; cursor:wait; }
.form-msg { margin:0; color:#b42318; font-weight:600; }
.signup-done { max-width:640px; margin-top:1rem; padding:1.2rem 1.4rem; border:2px solid var(--gold); border-radius:14px; background:#fffaf0; }
.signup-done h3 { margin-top:0; color:#17623a; }
.code-box { display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; margin:.6rem 0 1rem; }
.code-box code { font-size:1.25rem; font-weight:800; letter-spacing:.04em; background:#fff; border:1px dashed var(--p2); padding:.5rem .8rem; border-radius:8px; overflow-wrap:anywhere; }
.cta.small { padding:.45rem 1rem; }
.doc-link { color:var(--p2); font-weight:600; }

/* Hero: chữ bên trái + bộ nhận diện thương hiệu bên phải, nền có họa tiết logo */
.hero { max-width:none; padding:3.2rem 1.2rem; color:#fff; position:relative; overflow:hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(224,176,32,.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(120,70,230,.45), transparent 50%),
    linear-gradient(160deg,var(--p) 0%,var(--p2) 100%); }
.hero::before { content:""; position:absolute; inset:0; opacity:.07; pointer-events:none;
  background-image:url("/nexroom-logo.png"); background-size:84px 84px; background-repeat:repeat; transform:rotate(-12deg) scale(1.4); }
.hero-in { position:relative; max-width:1400px; margin:0 auto; display:grid; grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr); gap:2.2rem; align-items:center; }
.hero h1 { margin:0 0 .9rem; font-size:clamp(1.9rem,3.6vw,2.7rem); line-height:1.15; }
.hero p { margin:0 0 1.6rem; color:#e8defa; font-size:1.05rem; max-width:56ch; }
.hero-cta { display:flex; flex-wrap:wrap; gap:.8rem; }
.cta.ghost { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.55); padding:calc(.8rem - 2px) 1.5rem; }
.cta.ghost:hover { border-color:var(--gold); color:var(--gold); }
@media (max-width:820px) { .hero-in { grid-template-columns:1fr; gap:1.6rem; } }
@media (max-width:640px) {
  .top { flex-direction:row; align-items:center; gap:.6rem; padding:.5rem .8rem; }
  .top nav { flex-wrap:nowrap; overflow-x:auto; gap:.9rem; white-space:nowrap; scrollbar-width:none; }
  .top nav::-webkit-scrollbar { display:none; }
  .hero { padding:2rem 1rem; }
}


/* Ảnh chụp giao diện app thật */
.shots { position:relative; padding-bottom:3.2rem; }
.shot-main { display:block; width:100%; height:auto; border-radius:12px; border:3px solid #e0b020; box-shadow:0 24px 54px rgba(15,0,50,.5); }
.shot-side { position:absolute; width:44%; height:auto; right:-2%; bottom:0; border-radius:10px; border:3px solid #fff; box-shadow:0 14px 34px rgba(15,0,50,.55); }
@media (max-width:900px) { .shot-side { right:0; width:60%; } }
