/* mepobim.com — kiểu dùng chung cho mọi trang (index.html, 404.html).
   Màu đặt thành biến ở :root, đổi sắc tối bằng prefers-color-scheme; data-theme ép sắc khi cần đo. */

:root{
  --paper:#F6F8F8;
  --surface:#FFFFFF;
  --surface-2:#F0F4F4;
  --text:#0E1B24;
  --text-2:#3B4A54;
  --text-3:#66757E;
  --line:#DCE4E6;
  --accent:#0E8277;
  --accent-ink:#FFFFFF;
  --accent-soft:#E2F3F0;
  --warn:#9A5B00;
  --warn-soft:#FFF4E0;
  --ok:#147A3F;
  --grid-line:rgba(14,130,119,.07);
  --shot-bg:#1B252D;
  --shadow:0 1px 2px rgba(10,30,40,.06), 0 12px 32px -12px rgba(10,30,40,.18);
  --radius:14px;
  --font:"Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:"IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --paper:#0B1319;
    --surface:#101B22;
    --surface-2:#14222B;
    --text:#E6EEF0;
    --text-2:#B4C2C8;
    --text-3:#8496A0;
    --line:#22333D;
    --accent:#3CC2B2;
    --accent-ink:#04201C;
    --accent-soft:rgba(60,194,178,.12);
    --warn:#F2B654;
    --warn-soft:rgba(242,182,84,.10);
    --ok:#5BD08C;
    --grid-line:rgba(60,194,178,.06);
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --paper:#0B1319;
  --surface:#101B22;
  --surface-2:#14222B;
  --text:#E6EEF0;
  --text-2:#B4C2C8;
  --text-3:#8496A0;
  --line:#22333D;
  --accent:#3CC2B2;
  --accent-ink:#04201C;
  --accent-soft:rgba(60,194,178,.12);
  --warn:#F2B654;
  --warn-soft:rgba(242,182,84,.10);
  --ok:#5BD08C;
  --grid-line:rgba(60,194,178,.06);
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme:dark;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%;}
body{
  margin:0; background:var(--paper); color:var(--text);
  font-family:var(--font); font-size:16px; line-height:1.6;
  overflow-wrap:break-word;
}
img{max-width:100%; height:auto; display:block;}
a{color:var(--accent); text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3,h4{line-height:1.2; margin:0; letter-spacing:-.015em; text-wrap:balance;}
h1{font-size:clamp(34px,5.6vw,62px); font-weight:800;}
h2{font-size:clamp(26px,3.4vw,38px); font-weight:750;}
h3{font-size:18px; font-weight:650;}
p{margin:0;}
.sub{color:var(--text-2); font-size:clamp(16px,1.6vw,18.5px);}
.mono{font-family:var(--font-mono);}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:6px;}

.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}
@media (max-width:600px){ .wrap{padding:0 16px;} }

section{padding:clamp(64px,8vw,104px) 0;}
section.tint{background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.section-head{max-width:760px; margin-bottom:44px; display:flex; flex-direction:column; gap:14px;}
.section-head.center{margin-inline:auto; text-align:center; align-items:center;}
.eyebrow{
  font-family:var(--font-mono); font-size:12.5px; font-weight:500; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent);
}

/* ── nút ─────────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font:600 15px/1 var(--font); padding:14px 22px; border-radius:10px;
  border:1px solid transparent; cursor:pointer; text-decoration:none !important;
  transition:background .15s, border-color .15s, transform .15s;
}
.btn-primary{background:var(--accent); color:var(--accent-ink);}
.btn-primary:hover{filter:brightness(1.07);}
.btn-ghost{background:transparent; color:var(--text); border-color:var(--line);}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent);}
.btn-sm{padding:10px 16px; font-size:14px;}

/* ── thanh đầu trang ─────────────────────────────────────────────────── */
nav.top{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter:saturate(1.4) blur(12px); -webkit-backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line);
}
nav.top .wrap{display:flex; align-items:center; gap:28px; height:66px;}
.brand{display:inline-flex; align-items:center; gap:10px; color:var(--text); font-weight:800; font-size:19px; letter-spacing:-.02em; text-decoration:none !important; flex:0 0 auto;}
.brand img{width:32px; height:32px; border-radius:8px;}
.brand b{color:var(--accent); font-weight:800;}
.navlinks{display:flex; gap:24px; flex:1; min-width:0;}
.navlinks a{color:var(--text-2); font-size:14.5px; font-weight:500; white-space:nowrap;}
.navlinks a:hover{color:var(--text); text-decoration:none;}
.navcta{display:flex; gap:10px; align-items:center; margin-inline-start:auto;}
@media (max-width:900px){ .navlinks{display:none;} }

/* ── thẻ ─────────────────────────────────────────────────────────────── */
.grid-3{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px;}
.grid-2{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px;}
@media (max-width:960px){ .grid-3{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:640px){ .grid-3,.grid-2{grid-template-columns:1fr;} }
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 24px; display:flex; flex-direction:column; gap:10px;
}
.tint .card{background:var(--surface-2);}
.card p{color:var(--text-2); font-size:15px;}
.card-ic{
  width:42px; height:42px; border-radius:10px; display:grid; place-items:center;
  background:var(--accent-soft); color:var(--accent); margin-bottom:6px;
}
.card-ic svg{width:22px; height:22px;}

/* ── khung ảnh chụp app ──────────────────────────────────────────────── */
.shot{
  margin:0; background:var(--shot-bg); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
}
.shot .bar{
  display:flex; align-items:center; gap:7px; padding:10px 14px;
  background:#121A20; border-bottom:1px solid #26323A;
}
.shot .bar i{width:10px; height:10px; border-radius:50%; background:#33424C; display:block;}
.shot .bar span{margin-inline-start:8px; font-family:var(--font-mono); font-size:12px; color:#8FA2AC; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.shot img{width:100%;}
.shot-cap{color:var(--text-3); font-size:14px; margin-top:14px; text-align:center;}

/* ── chân trang ──────────────────────────────────────────────────────── */
footer{border-top:1px solid var(--line); background:var(--surface); padding:48px 0 36px; font-size:14.5px; color:var(--text-2);}
.foot-top{display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap;}
.foot-cols{display:flex; gap:56px; flex-wrap:wrap;}
.foot-col{display:flex; flex-direction:column; gap:8px;}
.foot-col h4{font-size:13px; text-transform:uppercase; letter-spacing:.1em; color:var(--text-3); font-weight:600; margin-bottom:4px;}
.foot-col a{color:var(--text-2);}
.foot-col a:hover{color:var(--accent);}
.foot-note{margin-top:36px; padding-top:22px; border-top:1px solid var(--line); color:var(--text-3); font-size:13px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{transition:none !important; animation:none !important;}
}
