/* Kiểu dáng dùng chung cho mọi trang AloGo.io.vn: màu, phông, thanh trên, nút, chân trang. */
:root {
  --ink: #072B33; --ink2: #3D6670; --muted: #6A8F97;
  --brand: #07A7B3; --brand-d: #0A7F8C; --glow: #2FE0D2; --lime: #F2C200;
  --bg: #F4FAFB; --card: #fff; --line: #D6ECEF; --tint: #EAF6F7;
  --dark1: #052A32; --dark2: #0A5A66;
  --ok: #0E9F6E; --danger: #C81E3A;
  --r: 20px;
  --sh: 0 1px 2px rgba(7,43,51,.05), 0 10px 30px rgba(7,43,51,.08);
  --sh2: 0 2px 4px rgba(7,43,51,.05), 0 18px 40px rgba(7,43,51,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-d); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.ic { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Thanh trên */
.site-head { position: sticky; top: 0; z-index: 30; background: linear-gradient(180deg, #FFFFFF 0%, #F6FCFC 100%); border-bottom: 1px solid #E3F1F2; }
.site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, rgba(18,196,200,.55) 30%, rgba(242,194,0,.45) 70%, transparent); opacity: 0; transition: opacity .25s; pointer-events: none; }
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.site-head .logo img { height: 38px; width: auto; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-head nav a { color: var(--ink2); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 13px; border-radius: 10px; transition: background .15s, color .15s; }
.site-head nav a:hover, .site-head nav a.on { background: var(--tint); color: var(--ink); }
.site-head nav a.btn { margin-left: 8px; color: #fff; background: linear-gradient(180deg, #12C4C8, #079AA6); }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-weight: 700; font-size: 16px; padding: 14px 24px; border-radius: 14px; color: #fff; background: linear-gradient(180deg, #12C4C8, #079AA6); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 24px rgba(7,154,166,.30); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.sm { font-size: 14.5px; padding: 10px 16px; border-radius: 11px; }
.btn.light { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; border: 1px solid rgba(255,255,255,.28); }
.btn.light:hover { background: rgba(255,255,255,.18); }
.btn.outline { background: #fff; color: var(--brand-d); box-shadow: none; border: 1.5px solid #BFE6EA; }
.btn.outline:hover { border-color: var(--brand); }

/* Dải đầu trang con (Bảng giá, chính sách…) */
.page-hero { position: relative; overflow: hidden; color: #fff; background:
    radial-gradient(800px 400px at 90% 0%, rgba(47,224,210,.32), transparent 60%),
    linear-gradient(160deg, var(--dark1), var(--dark2)); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 20%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 25%, transparent 75%); }
.page-hero .wrap { position: relative; padding-top: 56px; padding-bottom: 96px; }
.page-hero h1 { margin: 12px 0 10px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -1px; font-weight: 800; }
.page-hero p { margin: 0; color: #B9DEE2; font-size: 17px; max-width: 680px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand-d); background: #E1F5F6; padding: 5px 12px; border-radius: 999px; letter-spacing: .2px; }
.page-hero .eyebrow { background: rgba(255,255,255,.1); color: #9FF0E8; }
.lift { position: relative; margin-top: -60px; z-index: 2; }

/* Chân trang */
.site-foot { margin-top: 100px; background: var(--dark1); color: #9CC3C9; padding: 46px 0 30px; font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-foot .logo { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; }
.site-foot .logo img { height: 30px; }
.site-foot h4 { color: #fff; margin: 4px 0 12px; font-size: 14.5px; }
.site-foot a { color: #CFEFF1; text-decoration: none; display: block; margin: 6px 0; }
.site-foot a:hover { color: #fff; }
.site-foot .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-foot .copy b { color: #fff; }

@media (max-width: 980px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .site-head nav a:not(.btn) { display: none; }
  .site-head .logo img { height: 32px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .page-hero .wrap { padding-top: 40px; padding-bottom: 84px; }
}

/* ───────── Hiệu ứng & hoa văn (dùng chung mọi trang) ───────── */
.site-head { transition: box-shadow .25s, background .25s; }
.site-head.scrolled { box-shadow: 0 6px 22px rgba(7,43,51,.08); }
.site-head.scrolled::after { opacity: 1; }
/* Nhảy tới mục (#gia, #tai-ve…) không để tiêu đề mục bị thanh menu che */
[id] { scroll-margin-top: 80px; }

/* Nút có ánh lấp lánh chạy ngang */
.btn:not(.light):not(.outline), .primary { position: relative; overflow: hidden; isolation: isolate; }
.btn:not(.light):not(.outline)::after, .primary::after { content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; pointer-events: none; z-index: -1; }
@keyframes shine { 0%, 62% { left: -70%; } 100% { left: 140%; } }

/* Khối màu mờ trôi chậm */
.blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blobs i { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blobs i:nth-child(1) { background: #2FE0D2; top: -120px; left: -80px; }
.blobs i:nth-child(2) { background: #F2C200; width: 300px; height: 300px; bottom: -120px; right: 8%; opacity: .35; animation-duration: 22s; animation-delay: -6s; }
.blobs i:nth-child(3) { background: #07A7B3; width: 260px; height: 260px; top: 30%; right: -90px; opacity: .45; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 70px) scale(.92); } }

/* Hoa văn nền */
.pat-dots::before, .pat-net::before, .pat-grid::before, .pat-wave::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pat-dots::before { background-image: radial-gradient(rgba(7,127,140,.22) 1.4px, transparent 1.6px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 75%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 75%, transparent); animation: pan 40s linear infinite; }
.pat-grid::before { background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 40px 40px; animation: pan 30s linear infinite; }
.pat-net::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%232FE0D2' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M20 30 L110 70 L200 20 M110 70 L90 160 L200 130 L230 220 M90 160 L20 210 M20 30 L20 210 M200 20 L200 130'/%3E%3C/g%3E%3Cg fill='%232FE0D2' fill-opacity='.6'%3E%3Ccircle cx='20' cy='30' r='3'/%3E%3Ccircle cx='110' cy='70' r='3.5'/%3E%3Ccircle cx='200' cy='20' r='3'/%3E%3Ccircle cx='90' cy='160' r='3'/%3E%3Ccircle cx='200' cy='130' r='3.5'/%3E%3Ccircle cx='20' cy='210' r='3'/%3E%3Ccircle cx='230' cy='220' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); background-size: 240px 240px; opacity: .55; animation: pan 60s linear infinite; }
.pat-wave::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath d='M0 20 Q30 0 60 20 T120 20' fill='none' stroke='%23E0A800' stroke-opacity='.25' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 120px 40px; animation: pan 50s linear infinite; }
@keyframes pan { from { background-position: 0 0; } to { background-position: 240px 240px; } }

/* Sóng chia cắt giữa các phần: màu = phần kế tiếp (biến --next) */
.wavy { position: relative; }
.wavy::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 72px; background: var(--next, #fff); pointer-events: none; z-index: 1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 180 86 360 6 620 34 S 1080 84 1260 40 S 1400 18 1440 30 V80 H0 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 46 C 180 86 360 6 620 34 S 1080 84 1260 40 S 1400 18 1440 30 V80 H0 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.site-foot { position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -71px; height: 72px; background: var(--dark1); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0 480 70 760 44 S 1200 0 1440 36 V80 H0 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0 480 70 760 44 S 1200 0 1440 36 V80 H0 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }

/* Thẻ nghiêng theo chuột + viền sáng chạy theo con trỏ */
.fx-card { position: relative; will-change: transform; transition: transform .25s ease, box-shadow .25s, border-color .25s; }
.fx-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(47,224,210,.20), transparent 60%);
  box-shadow: inset 0 0 0 1.5px rgba(47,224,210,.6); }
.fx-card:hover::after { opacity: 1; }
.fx-card:hover { border-color: rgba(7,167,179,.45); box-shadow: 0 2px 4px rgba(7,43,51,.05), 0 22px 46px rgba(7,127,140,.18); }

/* Nổi nhẹ lên xuống */
.float-y { animation: floaty 6s ease-in-out infinite; }
.float-y.d2 { animation-delay: -3s; animation-duration: 7s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Hiện ra so le khi cuộn tới */
.rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* Trang con: nền có màu + hoa văn, dải đầu trang có khối màu trôi */
body.deco { background:
    radial-gradient(900px 500px at 100% 40%, rgba(47,224,210,.16), transparent 60%),
    radial-gradient(700px 500px at 0% 80%, rgba(242,194,0,.12), transparent 60%),
    radial-gradient(rgba(7,127,140,.14) 1.3px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(180deg, #EAF7F8, #F7FBF0); background-attachment: fixed; }
.page-hero .blobs i { opacity: .4; }
.page-hero.wavy { --next: #EAF7F8; }
.page-hero .wrap { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn::after, .primary::after { display: none; }
  .blobs i, .pat-dots::before, .pat-grid::before, .pat-net::before, .pat-wave::before, .float-y { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .fx-card { transition: none; }
}
@media (max-width: 720px) {
  .blobs i { width: 240px; height: 240px; filter: blur(48px); }
  .wavy::after, .site-foot::before { height: 40px; }
  .site-foot::before { top: -39px; }
}

/* Mục menu "Sửa Máy Tính AI tại nhà" nổi bật */
.site-head nav a.nav-ai { color: #6B4300; background: linear-gradient(90deg, #FFF1B8, #FFDD6E); font-weight: 700; position: relative; }
.site-head nav a.nav-ai::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #FF7A00; box-shadow: 0 0 0 0 rgba(255,122,0,.6); animation: navdot 1.8s infinite; }
.site-head nav a.nav-ai:hover { background: linear-gradient(90deg, #FFE9A0, #FFD24A); color: #4A2E00; }
@keyframes navdot { 70% { box-shadow: 0 0 0 7px rgba(255,122,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,122,0,0); } }
@media (prefers-reduced-motion: reduce) { .site-head nav a.nav-ai::after { animation: none; } }
