/* ============ DESIGN TOKENS ============ */
:root {
  --bg-deep: #eef2f7;
  --bg-base: #ffffff;
  --bg-elevated: #ffffff;
  --surface: rgba(15,23,42,0.03);
  --surface-hover: rgba(15,23,42,0.06);
  --fg: #0f172a;
  --fg-muted: #5b6573;
  --fg-subtle: rgba(15,23,42,0.55);
  --accent: #6670FF;
  --accent-bright: #7A3FF2;
  --accent-glow: rgba(102,112,255,0.25);
  --border: rgba(15,23,42,0.08);
  --border-hover: rgba(15,23,42,0.16);
  --border-accent: rgba(102,112,255,0.35);
  --card-bg: #ffffff;
  --card-shadow: 0 4px 12px rgba(15,23,42,0.06);
  --card-shadow-hover: 0 20px 30px rgba(15,23,42,0.12);
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.04);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ BACKGROUND SYSTEM ============ */
.bg-layers { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse at top, #ffffff 0%, #f6f8fc 50%, #eef2f7 100%); }

.noise { position: absolute; inset: 0; opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.blob { position: absolute; border-radius: 50%; filter: blur(140px); }
.blob-1 { top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 700px;
  background: radial-gradient(circle, rgba(102,112,255,0.16), transparent 70%); animation: float 9s var(--ease-expo) infinite; }
.blob-2 { top: 30%; left: -150px; width: 600px; height: 700px; filter: blur(120px);
  background: radial-gradient(circle, rgba(102,112,255,0.15), rgba(102,112,255,0.08), transparent 70%); animation: float 11s ease-in-out infinite; }
.blob-3 { top: 55%; right: -120px; width: 500px; height: 650px; filter: blur(100px);
  background: radial-gradient(circle, rgba(59,130,246,0.12), rgba(102,112,255,0.10), transparent 70%); animation: float 10s ease-in-out infinite reverse; }
.blob-4 { bottom: -150px; left: 40%; width: 700px; height: 500px; filter: blur(130px);
  background: radial-gradient(circle, rgba(102,112,255,0.10), transparent 70%); animation: pulse 8s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-24px) rotate(1deg); } }
@keyframes pulse { 0%,100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }

/* ============ LAYOUT ============ */
.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

h1,h2,h3 { letter-spacing: -0.02em; font-weight: 600; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 8px; font-weight: 500; font-size: 15px; transition: all 0.25s var(--ease-expo); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff;
  box-shadow: 0 0 0 1px rgba(102,112,255,0.5), 0 4px 12px rgba(102,112,255,0.3), inset 0 1px 0 0 rgba(255,255,255,0.2); }
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 0 0 1px rgba(102,112,255,0.6), 0 6px 20px rgba(102,112,255,0.45), inset 0 1px 0 0 rgba(255,255,255,0.25); transform: translateY(-2px); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: #ffffff; color: var(--fg); box-shadow: 0 0 0 1px var(--border), var(--shadow-sm); }
.btn-secondary:hover { background: #f8fafc; box-shadow: 0 0 0 1px var(--border-hover), 0 4px 14px rgba(15,23,42,0.08); transform: translateY(-2px); }
.btn-ghost { color: var(--fg-muted); padding: 8px 14px; }
.btn-ghost:hover { color: var(--fg); background: var(--surface); border-radius: 8px; }

/* ============ RESPONSIVE ============ */

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }

  * { scroll-behavior: auto; }
}

/* ============ BASECLOUD: gradient thương hiệu ============ */
:root { --brand-grad: linear-gradient(135deg, #26BAFF 0%, #A626FF 100%); --brand-grad-v: linear-gradient(180deg, #26BAFF 0%, #A626FF 100%); }
.btn-primary { background: var(--brand-grad); }
.btn-primary:hover { background: var(--brand-grad); filter: brightness(1.07); }

/* ngắt dòng theo ngữ nghĩa */
h1, h2, h3, .ab-lead { text-wrap: balance; }
p, li, td { text-wrap: pretty; }

/* ============ CÁC TRANG "VỀ CHÚNG TÔI" ============ */
:root { --brand-grad: linear-gradient(135deg, #26BAFF 0%, #A626FF 100%); --brand-grad-v: linear-gradient(180deg, #26BAFF 0%, #A626FF 100%); --brand-ink: #4b2fc9; }
.ab { position: relative; z-index: 1; }
.ab .container { max-width: 1320px; }
.ab :focus-visible { outline: 3px solid #6670FF; outline-offset: 3px; border-radius: 6px; }
.ab-rv { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo); }
.ab-rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ab-rv { opacity: 1; transform: none; transition: none; } }

.ab-top { padding: 44px 0 0; }
.ab-crumb { font-size: 13.5px; color: var(--fg-muted); margin-bottom: 18px; }
.ab-crumb a:hover { color: var(--accent-bright); }
.ab-crumb span { margin: 0 6px; opacity: .6; }
.ab-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); }
.ab-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-grad); }
.ab h1 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 16px; }
.ab-accent { background: linear-gradient(100deg, #0B8FE0 0%, #6A3BEA 55%, #8B2CE6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-lead { font-size: 18px; line-height: 1.7; color: var(--fg-muted); max-width: 680px; }
.ab-h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 12px; }
.ab-sub { font-size: 16.5px; line-height: 1.7; color: var(--fg-muted); max-width: 1000px; }
.ab-sec { padding: 64px 0 0; }
.ab-head { margin-bottom: 30px; }

/* thanh chuyển trang */

.ab-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }

.ab-two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.ab-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ab-tile { padding: 26px; border-radius: 20px; border: 1px solid var(--border-hover); background: #fff; box-shadow: var(--card-shadow); transition: transform .3s var(--ease-expo), box-shadow .3s var(--ease-expo), border-color .3s ease; }
.ab-tile.hov:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: 0 18px 40px rgba(102,112,255,0.16); }
.ab-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); margin-bottom: 16px; box-shadow: 0 10px 20px rgba(102,112,255,0.28); }
.ab-ic svg { width: 23px; height: 23px; }
.ab-tile h3 { font-size: 18px; margin-bottom: 8px; }
.ab-tile p { font-size: 15px; line-height: 1.65; color: var(--fg-muted); }

.ab-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--card-shadow); }
.ab-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.ab-table th, .ab-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.ab-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); background: #f8f8fd; font-weight: 600; }
.ab-table tr:last-child td { border-bottom: none; }
.ab-table td:first-child { font-weight: 600; width: 34%; }

.ab-note { margin-top: 18px; font-size: 13.5px; color: var(--fg-muted); line-height: 1.6; }
.ab-note a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

/* liên hệ */

.ab-cta { margin-top: 72px; padding: 40px; border-radius: 26px; color: #fff; background: var(--brand-grad); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; box-shadow: 0 30px 70px rgba(102,112,255,0.32); }
.ab-cta::before { content: ""; position: absolute; left: -80px; top: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.24), transparent 66%); }
.ab-cta > * { position: relative; }
.ab-cta h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; max-width: 560px; }
.ab-cta p { margin-top: 6px; opacity: .92; }
.ab-cta .row { display: flex; gap: 12px; flex-wrap: wrap; }
.ab-cta .btn-secondary { color: var(--fg); }
.ab-end { height: 88px; }

@media (max-width: 1000px) {
  .ab-hero-grid { grid-template-columns: 1fr; }
  .ab-four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ab-top { padding-top: 28px; }
  .ab-sec { padding-top: 48px; }
  .ab-two, .ab-four { grid-template-columns: 1fr; }

  .ab-cta { padding: 28px 22px; }
  .ab-cta .row .btn { width: 100%; justify-content: center; }
}

.ab-sub a { display: block; width: fit-content; margin-top: 8px; white-space: nowrap; color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ab-sub a:hover { color: var(--accent-bright); }

/* ===== Trang sản phẩm Cloud VPS ===== */
.pv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pv-actions .btn svg { width: 16px; height: 16px; }
.pv-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.pv-pills li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; color: #3b2e9e; background: linear-gradient(135deg, rgba(38,186,255,0.12), rgba(166,38,255,0.12)); }

/* khung terminal trang trí ở phần đầu */
.pv-term { border-radius: 18px; overflow: hidden; background: #12142b; box-shadow: 0 30px 60px rgba(40,30,120,0.28), 0 0 0 1px rgba(102,112,255,0.25); }
.pv-term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #1c1f3d; }
.pv-term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f6b; }
.pv-term-bar i:first-child { background: #ff6b6b; } .pv-term-bar i:nth-child(2) { background: #ffcc4d; } .pv-term-bar i:nth-child(3) { background: #4cd98a; }
.pv-term-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #9aa0d6; }
.pv-term pre { margin: 0; padding: 20px 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #d7dbff; white-space: pre-wrap; }
.pv-term .c { color: #26BAFF; } .pv-term .ok { color: #4cd98a; font-weight: 700; }
.pv-term .cur { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: #A626FF; animation: pvBlink 1s steps(1) infinite; }
@keyframes pvBlink { 50% { opacity: 0; } }

/* Cloud VPS là gì */
.pv-what { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.pv-what-l, .pv-feats { display: grid; gap: 14px; }
.pv-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-feat { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border-hover); background: #fff; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.pv-feat:hover { transform: translateY(-2px); border-color: var(--border-accent); box-shadow: 0 14px 30px rgba(102,112,255,0.14); }
.pv-fi { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); }
.pv-fi svg { width: 22px; height: 22px; }
.pv-feat h3 { font-size: 16px; margin: 0 0 4px; }
.pv-feat p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--fg-muted); }

/* hệ điều hành */
.pv-os-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.pv-os-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pv-os { padding: 22px; border-radius: 16px; border: 1px solid var(--border-hover); background: linear-gradient(135deg, rgba(38,186,255,0.06), rgba(166,38,255,0.08)); }
.pv-os b { display: block; font-size: 18px; }
.pv-os span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #5a2bd0; }

/* bảng giá */
.pv-goi-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.pv-cyc { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--border); background: #fff; }
.pv-cyc button { border: 0; background: none; padding: 9px 20px; border-radius: 999px; font: 600 14.5px/1 var(--font); color: #5b6573; cursor: pointer; }
.pv-cyc button.on { color: #fff; background: linear-gradient(135deg, #26BAFF, #6670FF 55%, #A626FF); box-shadow: 0 8px 18px rgba(102,112,255,0.35); }
.pv-cyc em { font-style: normal; font-size: 11px; margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: rgba(166,38,255,0.12); color: #8B2CE6; }

.pv-plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.pv-card { position: relative; display: flex; flex-direction: column; padding: 26px 20px 22px; border-radius: 20px; border: 1px solid var(--border-hover); background: #fff; box-shadow: var(--card-shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(102,112,255,0.16); border-color: var(--border-accent); }
.pv-card.feat { border: 2px solid transparent; background: linear-gradient(#fbfaff, #fff 40%) padding-box, var(--brand-grad) border-box; box-shadow: 0 16px 40px rgba(102,112,255,0.18); }
.pv-card h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; white-space: nowrap; }
.pv-hint { font-size: 13px; color: var(--fg-muted); min-height: 40px; line-height: 1.5; margin: 0 0 12px; }
.pv-price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; white-space: nowrap; }
.pv-price small { font-size: 13px; font-weight: 500; -webkit-text-fill-color: var(--fg-muted); margin-left: 3px; letter-spacing: 0; }
.pv-plans.yr .pv-price { font-size: 21px; }
.pv-plans.yr .pv-price small { font-size: 12px; }
.pv-year { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: #8B2CE6; }
.pv-spec { list-style: none; margin: 16px 0 20px; padding: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.pv-spec li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; font-size: 13.5px; border-top: 1px solid var(--border); }
.pv-spec li:first-child { border-top: 0; }
.pv-spec span { color: var(--fg-muted); } .pv-spec b { font-weight: 700; white-space: nowrap; }
.pv-btn { margin-top: auto; justify-content: center; width: 100%; padding-left: 8px; padding-right: 8px; }
.pv-tag { position: absolute; top: -12px; right: 14px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--brand-grad); box-shadow: 0 6px 14px rgba(102,112,255,0.32), 0 0 0 3px #fff; }
.pv-addon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 20px; padding: 16px 22px; border-radius: 16px; border: 1px dashed rgba(102,112,255,0.45); background: linear-gradient(135deg, rgba(38,186,255,0.06), rgba(166,38,255,0.08)); font-size: 14.5px; }
.pv-addon strong { color: #5a2bd0; }
.pv-addon em { font-style: normal; font-size: 13px; color: var(--fg-muted); }
.pv-addon a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-ink); }
.pv-addon a svg { width: 16px; height: 16px; }

/* so sánh */
.pv-cmp { min-width: 760px; }
.pv-cmp td:first-child { width: 20%; }
.pv-cmp th.hl, .pv-cmp td.hl { background: linear-gradient(180deg, rgba(38,186,255,0.08), rgba(166,38,255,0.10)); color: var(--fg); font-weight: 600; }
.pv-cmp th.hl { color: #4b2fc9; }

/* gợi ý chọn gói */
.pv-use { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.pv-u { display: block; padding: 20px 18px; border-radius: 16px; border: 1px solid var(--border-hover); background: #fff; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.pv-u:hover { transform: translateY(-3px); border-color: var(--border-accent); box-shadow: 0 14px 30px rgba(102,112,255,0.14); }
.pv-u b { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--brand-grad); }
.pv-u h3 { font-size: 16px; margin: 12px 0 6px; }
.pv-u p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--fg-muted); }

/* trách nhiệm */
.pv-resp { padding: 26px; border-radius: 20px; border: 1px solid var(--border-hover); background: #fff; box-shadow: var(--card-shadow); }
.pv-resp.you { background: linear-gradient(135deg, rgba(38,186,255,0.05), rgba(166,38,255,0.07)); }
.pv-resp h3 { font-size: 18px; margin: 0 0 14px; }
.pv-resp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pv-resp li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.pv-resp li svg { flex: 0 0 20px; width: 20px; height: 20px; padding: 3px; box-sizing: border-box; border-radius: 50%; color: #fff; background: var(--brand-grad); margin-top: 1px; }

/* câu hỏi thường gặp */
.pv-faqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pv-faq { border: 1px solid var(--border-hover); border-radius: 14px; background: #fff; padding: 0 20px; transition: border-color .2s ease; }
.pv-faq[open] { border-color: var(--border-accent); box-shadow: 0 10px 24px rgba(102,112,255,0.10); }
.pv-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 600; font-size: 15.5px; }
.pv-faq summary::-webkit-details-marker { display: none; }
.pv-faq summary::after { content: "+"; flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--brand-grad); transition: transform .2s ease; }
.pv-faq[open] summary::after { transform: rotate(45deg); }
.pv-faq p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.7; color: var(--fg-muted); }

@media (max-width: 1100px) { .pv-plans, .pv-use { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .pv-what, .pv-os-wrap { grid-template-columns: 1fr; gap: 28px; } .pv-feats, .pv-faqs { grid-template-columns: 1fr; } .pv-addon a { margin-left: 0; } }
@media (max-width: 680px) { .pv-plans, .pv-use { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .pv-plans, .pv-use, .pv-os-grid { grid-template-columns: 1fr; } .pv-actions .btn { width: 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .pv-term .cur { animation: none; } }

.ab-sub a.inl { display: inline; margin-top: 0; white-space: nowrap; }
