﻿/* ============================================================
   Page247 — Landing v3 "đêm & ánh đèn"
   Motif: đêm sâu tĩnh lặng + một ngọn đèn vàng (lễ tân AI thức
   khi bạn ngủ). Accent gold duy nhất cho brand/CTA; xanh lạnh
   chỉ dùng cho chi tiết kỹ thuật. Bricolage Grotesque (display)
   + Be Vietnam Pro (body) · zero framework
   ============================================================ */

:root {
  --bg: #04060c;
  --bg-soft: #070b14;
  --panel: rgba(255, 255, 255, 0.032);
  --panel-2: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #eaf0fa;
  --muted: #a7b3c8;
  --faint: #76839b;

  --gold: #f6c453;
  --gold-deep: #e8a63d;
  --gold-ink: #221503; /* chữ trên nền gold */
  --sky: #38bdf8;
  --grad: linear-gradient(100deg, #ffe3a0, var(--gold) 45%, var(--gold-deep));
  --grad-btn: linear-gradient(120deg, #f8cf6d, #eda43e);
  --green: #34d399;
  --amber: #fbbf24;
  --zalo: #0068ff;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }
::selection { background: rgba(246, 196, 83, 0.3); }

/* ============ NỀN: aurora + grid + noise ============ */
.bg-aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.bg-aurora i {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
}
.bg-aurora i:nth-child(1) { background: #14346e; top: -25vmax; left: -12vmax; animation: drift1 26s ease-in-out infinite alternate; opacity: 0.14; }
.bg-aurora i:nth-child(2) { background: #8a5a16; top: 12vh; right: -25vmax; animation: drift2 32s ease-in-out infinite alternate; opacity: 0.1; }
.bg-aurora i:nth-child(3) { background: #1c2a5e; bottom: -30vmax; left: 20vw; animation: drift3 38s ease-in-out infinite alternate; opacity: 0.08; }
@keyframes drift1 { to { transform: translate(8vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-10vmax, -6vmax) scale(0.9); } }
@keyframes drift3 { to { transform: translate(6vmax, -8vmax) scale(1.1); } }

.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.04'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ scroll progress ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad);
  z-index: 200;
}

/* ============ layout ============ */
.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(840px, 92%); }
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section-alt {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(246, 196, 83, 0.035), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
section[id], [id="demo"] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ============ type ============ */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 3.7rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h1-line { display: block; }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.14rem; font-weight: 700; line-height: 1.35; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow i {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  padding-right: 10px;
  border-right: 1px solid rgba(246, 196, 83, 0.3);
  font-variant-numeric: tabular-nums;
}

.hl-amber { color: var(--amber); text-shadow: 0 0 34px rgba(251, 191, 36, 0.35); }
.hl-shimmer {
  background: linear-gradient(100deg, #ffe9b8, var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.caret {
  display: inline-block;
  width: 3px; height: 0.9em;
  margin-left: 8px;
  vertical-align: -0.1em;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(246, 196, 83, 0.8);
  animation: blinkCaret 1.1s steps(1) infinite;
}
@keyframes blinkCaret { 50% { opacity: 0; } }

.section-head { text-align: center; max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head--left { text-align: left; margin-left: 0; max-width: 760px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.06rem; }
.section-cta { text-align: center; margin-top: 40px; }

/* ============ glass & spotlight ============ */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.glow-amber { box-shadow: 0 0 70px rgba(251, 191, 36, 0.07), 0 30px 60px rgba(0,0,0,0.35); }

.spotlight { overflow: hidden; }
.spotlight::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(246, 196, 83, 0.08), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* ============ buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.97rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-primary {
  background: var(--grad-btn);
  color: var(--gold-ink);
  box-shadow: 0 8px 28px rgba(237, 164, 62, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn-primary::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover { box-shadow: 0 12px 44px rgba(237, 164, 62, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

.btn-zalo { background: var(--zalo); color: #fff; box-shadow: 0 8px 26px rgba(0, 104, 255, 0.4); }
.btn-zalo:hover { box-shadow: 0 12px 36px rgba(0, 104, 255, 0.55); transform: translateY(-2px); }

.btn-lg { padding: 17px 32px; font-size: 1.05rem; border-radius: 15px; }
.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; flex-shrink: 0; }

/* ============ header pill ============ */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: top 0.3s ease;
}
.header-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 34px);
  width: min(1180px, 94%);
  padding: 10px 12px 10px 20px;
  border-radius: 20px;
  background: rgba(6, 10, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled .header-pill {
  background: rgba(6, 10, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo {
  height: 42px; width: auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s var(--ease-out);
}
.brand:hover .brand-logo { transform: translateY(-1px); }

.site-nav { display: flex; gap: clamp(16px, 2.4vw, 30px); }
.site-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; border-radius: 2px;
  background: var(--grad);
  transition: right 0.3s var(--ease-out);
}
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 11px;
}
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ hero ============ */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(48px, 8vh, 90px)) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.84rem; font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge time { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-copy .lead {
  margin-top: 22px;
  font-size: 1.11rem;
  color: var(--muted);
  max-width: 54ch;
}
.hero-copy .lead strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats {
  display: flex;
  gap: clamp(26px, 4vw, 48px);
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span { font-size: 0.85rem; color: var(--faint); }
.hero-stats strong span { font: inherit; background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-proofline { margin-top: 22px; font-size: 0.94rem; color: var(--faint); }

/* ============ chat demo ============ */
.hero-demo { position: relative; perspective: 1400px; }

/* quầng sáng "ngọn đèn" tĩnh phía sau khung chat */
.demo-orbit {
  position: absolute; inset: -10%;
  border-radius: 40px;
  background: radial-gradient(55% 50% at 72% 12%, rgba(246, 196, 83, 0.14), transparent 70%);
  filter: blur(36px);
  pointer-events: none;
}

.chat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: min(580px, 72vh);
  min-height: 470px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.92), rgba(9, 13, 22, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(246, 196, 83, 0.05),
    0 0 90px rgba(246, 196, 83, 0.07);
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease-out);
  will-change: transform;
}
.tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(246, 196, 83, 0.3);
  box-shadow: 0 0 20px rgba(246, 196, 83, 0.2);
  flex-shrink: 0;
}
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-name { font-weight: 700; font-size: 0.98rem; }
.chat-status { font-size: 0.8rem; color: var(--green); display: flex; align-items: center; gap: 6px; }
.chat-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
.chat-head-meta { margin-left: auto; display: flex; gap: 6px; }
.chip-mini {
  font-size: 0.68rem; font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 3px 8px;
  border-radius: 999px;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.msg {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.55;
  white-space: pre-line;
  animation: msgIn 0.32s var(--ease-out) both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.msg-user {
  align-self: flex-end;
  background: linear-gradient(120deg, #0ea5e9, #6366f1);
  color: #fff;
  font-weight: 500;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}
.msg .ok-card {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--text);
  font-size: 0.88rem;
}

.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink {
  0%, 70%, 100% { opacity: 0.25; transform: none; }
  35% { opacity: 1; transform: translateY(-3px); }
}

.chat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  min-height: 20px;
}
.chip {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
  animation: msgIn 0.35s var(--ease-out) both;
}
.chip:hover {
  background: rgba(56, 189, 248, 0.16);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.18);
}

.chat-input {
  display: flex; gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.chat-input input {
  flex: 1;
  font-family: inherit;
  font-size: 1rem; /* ≥16px: chặn iOS Safari tự zoom khi focus */
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14); }
.chat-input input::placeholder { color: var(--faint); }
.chat-input button {
  width: 48px;
  border: none;
  border-radius: 13px;
  background: var(--grad-btn);
  color: var(--gold-ink);
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}
.chat-input button svg { width: 20px; height: 20px; }
.chat-input button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(237, 164, 62, 0.45); }

.chat-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--faint);
  text-align: center;
  max-width: 46ch;
  margin-inline: auto;
}

/* floating cards quanh demo */
.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid var(--border-2);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
  pointer-events: none;
  z-index: 2;
}
.float-card strong { color: var(--text); font-size: 0.84rem; }
.float-card i { font-style: normal; font-size: 0.68rem; color: var(--faint); }
.fc-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
}
.fc-icon svg { width: 16px; height: 16px; }
.float-b .fc-icon { color: var(--sky); }
.float-a { top: 6%; right: -26px; animation: floatY 5.5s ease-in-out infinite; }
.float-b { bottom: 16%; left: -30px; animation: floatY 6.5s ease-in-out 1.2s infinite; }
.float-b .fc-icon { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.35); }
@keyframes floatY { 50% { transform: translateY(-12px); } }

/* ============ marquee ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-track i { color: rgba(246, 196, 83, 0.5); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ calculator ============ */
.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}
.calc-inputs { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 24px; }

.calc-field { display: flex; flex-direction: column; gap: 11px; }
.calc-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 0.94rem;
  color: var(--muted);
}
.calc-label output {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold) var(--fill, 20%), rgba(255, 255, 255, 0.09) var(--fill, 20%));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(246, 196, 83, 0.14), 0 2px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(246, 196, 83, 0.18), 0 2px 10px rgba(0,0,0,0.45); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(246, 196, 83, 0.14);
}

.calc-breakdown {
  font-size: 0.87rem;
  color: var(--faint);
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  font-variant-numeric: tabular-nums;
}

.calc-result {
  padding: clamp(26px, 3vw, 38px);
  display: flex; flex-direction: column; gap: 18px;
  background:
    radial-gradient(420px 240px at 80% 0%, rgba(251, 191, 36, 0.08), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.calc-result-label {
  font-size: 0.83rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted);
}
.calc-lost {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  color: var(--amber);
  text-shadow: 0 0 44px rgba(251, 191, 36, 0.3);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.calc-lost .per { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 6px; text-shadow: none; }

.calc-compare { display: flex; flex-direction: column; gap: 10px; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.94rem; color: var(--muted); }
.calc-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.calc-row-gain strong { color: var(--green); font-size: 1.08rem; text-shadow: 0 0 24px rgba(52, 211, 153, 0.35); }

.calc-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-top: 4px; }
.calc-bar span {
  display: block; height: 100%; width: 83%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), #6ee7b7);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.5);
  transition: width 0.45s var(--ease-out);
}
.calc-multiple { font-size: 0.9rem; color: var(--muted); padding-top: 4px; }
.calc-multiple strong { color: var(--green); }
.calc-result .btn { margin-top: auto; }

/* ============ industries ============ */
.industry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.industry-card {
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ind-head { display: flex; align-items: center; gap: 12px; }
.ind-icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 15px;
}
.ind-icon svg { width: 26px; height: 26px; }

.ind-chat { display: flex; flex-direction: column; gap: 8px; }
.bubble {
  position: relative;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 14px;
  max-width: 92%;
}
.bubble time { display: block; font-size: 0.72rem; color: var(--faint); margin-top: 4px; }
.bubble-them {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.bubble-bot {
  align-self: flex-end;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-bottom-right-radius: 5px;
}
.bubble-bot time { color: rgba(56, 189, 248, 0.65); }

.ind-list { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.ind-list li { position: relative; padding-left: 24px; font-size: 0.92rem; color: var(--muted); }
.ind-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.ind-more { margin-top: 16px; font-size: 0.9rem; font-weight: 700; color: var(--gold); align-self: flex-start; transition: gap 0.2s ease; }
.ind-more:hover { text-decoration: underline; }

/* ============ bento ============ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bento-cell {
  padding: 28px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.bento-cell:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38); }
.bento-wide { grid-column: span 2; }
.bento-cell p { margin-top: 8px; font-size: 0.93rem; color: var(--muted); }

.cap-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  margin-bottom: 16px;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}
.cap-icon svg { width: 24px; height: 24px; }

.firewall-viz {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--faint);
}
.firewall-viz b {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  font-size: 0.75rem;
  color: var(--sky);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  animation: fwPulse 3s ease-in-out infinite;
}
.firewall-viz b:nth-of-type(2) { animation-delay: 0.3s; }
.firewall-viz b:nth-of-type(3) { animation-delay: 0.6s; }
.firewall-viz b:nth-of-type(4) { animation-delay: 0.9s; }
@keyframes fwPulse { 50% { box-shadow: 0 0 16px rgba(56, 189, 248, 0.45); border-color: rgba(56, 189, 248, 0.6); } }
.firewall-viz i { font-style: normal; color: var(--faint); }
.fw-ok { color: var(--green); font-weight: 700; }

/* ============ proof ============ */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proof-card {
  padding: 30px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.proof-card:hover { transform: translateY(-5px); border-color: var(--border-2); }
.proof-tag {
  align-self: flex-start;
  font-size: 0.73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--green);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
}
.proof-card > p { font-size: 0.94rem; color: var(--muted); }
.proof-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 0.86rem !important;
  color: var(--faint) !important;
}

.status-panel {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}
.status-panel b { color: var(--text); font-weight: 600; }
.st-ok { color: var(--green); animation: blink 2.4s infinite; }

.tech-strip {
  margin-top: 44px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px;
}
.tech-strip span {
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 7px 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.tech-strip span:hover { border-color: rgba(246, 196, 83, 0.4); color: var(--text); }

/* ============ process ============ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 10px;
}
.steps-line {
  position: absolute;
  top: 40px; left: 6%; right: 6%;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 2px;
  overflow: hidden;
}
.steps-line i {
  display: block; height: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.6s var(--ease-out) 0.2s;
}
.steps.drawn .steps-line i { transform: scaleX(1); }

.step {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.step:hover { transform: translateY(-5px); border-color: var(--border-2); }
.step-num {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-ink);
  background: var(--grad-btn);
  margin-bottom: 16px;
  box-shadow: 0 6px 22px rgba(237, 164, 62, 0.35);
}
.step p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* ============ pricing ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 6px;
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.price-card:hover { transform: translateY(-6px); }

.price-featured {
  position: relative;
  background:
    linear-gradient(180deg, rgba(30, 24, 12, 0.92), rgba(14, 11, 6, 0.97)) padding-box,
    linear-gradient(160deg, rgba(255, 227, 160, 0.8), rgba(246, 196, 83, 0.65), rgba(146, 94, 24, 0.6)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 70px rgba(246, 196, 83, 0.1), 0 30px 70px rgba(0, 0, 0, 0.5);
  transform: scale(1.03);
}
.price-featured:hover { transform: scale(1.03) translateY(-6px); }

.price-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.price-badge svg { width: 13px; height: 13px; }
.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-right: 4px; }
.price em { font-size: 1.15rem; font-weight: 700; color: var(--muted); margin-left: 2px; }
.price-sub { font-size: 0.88rem; color: var(--faint); margin-bottom: 18px; }

.price-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; }
.price-list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--muted); }
.price-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.price-list em { color: var(--text); font-weight: 600; }
.price-card .btn { margin-top: auto; }

.price-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.price-grid-4 .price-card { padding: 26px 22px; }
.price-grid-4 .price { font-size: 1.9rem; }
.price-grid-4 .price em { font-size: 1rem; }
.price-grid-4 h3 { font-size: 1.05rem; }
.price-grid-4 .price-list li { font-size: 0.88rem; }

.addons {
  margin-top: 26px;
  padding: 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  border-radius: var(--r-md);
}
.addons-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 6px;
}
.addons-list { display: flex; flex-wrap: wrap; gap: 10px; }
.addons-list li {
  font-size: 0.84rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 15px;
  border-radius: 999px;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.addons-list li:hover { border-color: rgba(246, 196, 83, 0.4); transform: translateY(-2px); }
.addons-list strong { color: var(--gold); font-weight: 700; margin-left: 4px; }

.price-note { text-align: center; max-width: 660px; margin: 34px auto 0; font-size: 0.92rem; color: var(--faint); }
.price-note strong { color: var(--muted); }
.price-note em { color: var(--muted); font-weight: 600; }

/* ============ guarantee ============ */
.guarantee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding: 34px 0;
}
.guarantee-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.g-item { display: flex; align-items: flex-start; gap: 14px; }
.g-item > span {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  color: var(--gold);
  background: rgba(246, 196, 83, 0.06);
  border: 1px solid rgba(246, 196, 83, 0.22);
  flex-shrink: 0;
}
.g-item svg { width: 20px; height: 20px; }
.g-item p { font-size: 0.88rem; color: var(--faint); line-height: 1.5; }
.g-item strong { color: var(--text); font-size: 0.92rem; }

/* ============ faq ============ */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border-radius: var(--r-md); overflow: hidden; transition: border-color 0.25s ease; }
.faq-item[open] { border-color: rgba(246, 196, 83, 0.3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 21px 58px 21px 26px;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold); }
.faq-body p {
  padding: 0 26px 24px;
  font-size: 0.95rem;
  color: var(--muted);
  animation: faqIn 0.35s var(--ease-out) both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============ final CTA ============ */
.section-cta-final { position: relative; overflow: hidden; }
.cta-beams {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 400px at 50% 12%, rgba(246, 196, 83, 0.08), transparent 65%),
    radial-gradient(520px 320px at 88% 92%, rgba(30, 58, 138, 0.12), transparent 60%),
    radial-gradient(420px 260px at 8% 80%, rgba(246, 196, 83, 0.04), transparent 60%);
}
.cta-box {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 4vw, 60px);
  padding: clamp(32px, 5vw, 60px);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(14, 20, 34, 0.92), rgba(8, 12, 21, 0.95)) padding-box,
    linear-gradient(140deg, rgba(255, 227, 160, 0.4), rgba(246, 196, 83, 0.3), rgba(30, 58, 138, 0.35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 90px rgba(246, 196, 83, 0.07), 0 40px 90px rgba(0, 0, 0, 0.5);
}
.cta-copy h2 { margin-bottom: 16px; }
.cta-copy > p { color: var(--muted); font-size: 1.03rem; }
.cta-direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta-nospam { margin-top: 18px; font-size: 0.85rem; color: var(--faint); }

.cta-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.form-field .optional { font-weight: 400; color: var(--faint); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 1rem; /* ≥16px: chặn iOS Safari tự zoom khi focus */
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  resize: vertical;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.14);
}
.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.form-field select:invalid { color: var(--faint); }
.form-field option { background: var(--bg-soft); color: var(--text); }

.trap { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; pointer-events: none; }

.form-status { min-height: 22px; font-size: 0.9rem; font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--amber); }

/* ============ footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 52px 0 38px;
  background: var(--bg-soft);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  gap: 30px 40px;
  align-items: start;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-title { font-size: 0.8rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.footer-nav a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-logo { height: 54px; width: auto; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5)); }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: var(--faint); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; font-size: 0.93rem; color: var(--muted); transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--text); }
.footer-contact svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.footer-copy {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  color: var(--faint);
}

/* ============ minh họa: cảnh đêm Đà Lạt (hero) ============ */
.night-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.ns-stars {
  position: absolute; top: 0; left: 0;
  width: 2px; height: 2px; border-radius: 50%;
  background: transparent;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.ns-stars-a {
  box-shadow:
    120px 60px #cfe0f7, 340px 140px #cfe0f7, 520px 40px rgba(207,224,247,0.8),
    640px 180px #cfe0f7, 760px 90px rgba(207,224,247,0.7), 900px 30px #cfe0f7,
    1040px 150px rgba(207,224,247,0.8), 1180px 70px #cfe0f7, 1290px 190px rgba(207,224,247,0.6),
    240px 220px rgba(207,224,247,0.7), 60px 160px #cfe0f7, 840px 240px rgba(207,224,247,0.6);
}
.ns-stars-b {
  animation-duration: 7s; animation-delay: 1.6s;
  box-shadow:
    200px 100px rgba(207,224,247,0.7), 430px 210px rgba(207,224,247,0.6), 580px 120px #cfe0f7,
    700px 40px rgba(207,224,247,0.6), 980px 200px #cfe0f7, 1100px 100px rgba(207,224,247,0.7),
    1350px 60px rgba(207,224,247,0.6), 460px 280px rgba(207,224,247,0.5), 1230px 280px rgba(207,224,247,0.5);
}
@keyframes twinkle { from { opacity: 0.3; } to { opacity: 0.95; } }

.ns-moon {
  position: absolute; top: 7%; right: 9%;
  width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #e8f1fd, #b9cbe4 60%, #93a9c8);
  box-shadow: 0 0 44px rgba(203, 222, 255, 0.22), 0 0 90px rgba(203, 222, 255, 0.1);
}
.ns-moon::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(8px 8px at 62% 58%, rgba(140, 160, 190, 0.5), transparent 60%),
    radial-gradient(5px 5px at 38% 68%, rgba(140, 160, 190, 0.45), transparent 60%),
    radial-gradient(6px 6px at 55% 30%, rgba(140, 160, 190, 0.4), transparent 60%);
}

.shooting-star {
  position: absolute; top: 12%; left: 66%;
  width: 110px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(223, 236, 255, 0.9));
  opacity: 0;
  animation: shoot 9s linear 3s infinite;
}
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-32deg) translateX(0); }
  2% { opacity: 0.9; }
  7% { opacity: 0; transform: rotate(-32deg) translateX(-340px); }
  100% { opacity: 0; transform: rotate(-32deg) translateX(-340px); }
}

.ns-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; will-change: transform; }
.ns-hills-far { height: 130px; }
.ns-hills-near { height: 88px; }
.ns-cabin { position: absolute; bottom: 46px; left: 15%; width: 170px; height: auto; }
.ns-window { animation: lampFlicker 3.4s ease-in-out infinite; }
.ns-glow { animation: lampFlicker 3.4s ease-in-out infinite; }
@keyframes lampFlicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.72; } }

/* ============ minh họa: ống rò rỉ tiền (calculator) ============ */
.leak-viz { position: absolute; top: 20px; right: 24px; width: 60px; height: auto; opacity: 0.95; }
.leak-viz .drop { animation: dripFall 2.2s linear infinite; }
.leak-viz .d2 { animation-delay: 0.7s; }
.leak-viz .d3 { animation-delay: 1.4s; }
@keyframes dripFall {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* ============ minh họa: sparkline (proof) ============ */
.status-panel .spark { width: 100%; height: 30px; margin-top: 6px; }
.spark-line { stroke-dasharray: 300; stroke-dashoffset: 300; }
[data-reveal].in .spark-line { animation: sparkDraw 1.8s var(--ease-out) 0.4s forwards; }
@keyframes sparkDraw { to { stroke-dashoffset: 0; } }
.spark-label { font-size: 0.7rem !important; color: var(--faint) !important; }

/* ============ minh họa: bình minh (final CTA) ============ */
.dawn-scene { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none; }
.dawn-scene::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(246, 196, 83, 0.14), transparent 75%);
}
.dawn-scene svg { position: absolute; bottom: 0; width: 100%; height: 64px; }

/* ============ mobile CTA bar ============ */
.mobile-cta {
  position: fixed;
  left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(8, 12, 20, 0.94);
  border: 1px solid var(--border-2);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45), 0 14px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(140%);
  transition: transform 0.35s var(--ease-out);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { padding: 12px 14px; font-size: 0.92rem; border-radius: 11px; }
.mobile-cta .btn svg { width: 16px; height: 16px; }

/* ============ trang ngành (landing pages) ============ */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--faint); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-style: normal; color: var(--faint); }

.lp-demo { padding: 22px; align-self: start; }
.lp-demo .ind-chat { gap: 10px; }
.lp-demo .bubble { font-size: 0.93rem; max-width: 100%; }
.lp-demo-cap { margin-top: 14px; font-size: 0.8rem; color: var(--faint); text-align: center; }

.lp-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lp-point { padding: 24px; }
.lp-point .cap-icon { margin-bottom: 14px; }
.lp-point h3 { margin-bottom: 6px; }
.lp-point p { font-size: 0.93rem; color: var(--muted); }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.related-card { padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: transform 0.3s var(--ease-out), border-color 0.3s ease; }
.related-card:hover { transform: translateY(-4px); border-color: var(--border-2); }
.related-card .rc-ico { width: 40px; height: 40px; display: grid; place-items: center; color: var(--sky); background: rgba(56, 189, 248, 0.07); border: 1px solid rgba(56, 189, 248, 0.2); border-radius: 12px; }
.related-card .rc-ico svg { width: 22px; height: 22px; }
.related-card strong { font-size: 0.98rem; }
.related-card span { font-size: 0.85rem; color: var(--faint); }
@media (max-width: 900px) { .lp-points { grid-template-columns: 1fr; } .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* ============ blog + bài viết ============ */
.blog-hero { padding: calc(var(--header-h) + clamp(36px, 6vh, 70px)) 0 8px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.blog-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: transform 0.3s var(--ease-out), border-color 0.3s ease; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--border-2); }
.blog-card h2 { font-size: 1.2rem; line-height: 1.35; }
.blog-card p { font-size: 0.93rem; color: var(--muted); flex: 1; }
.blog-card .read { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.blog-card time { font-size: 0.78rem; color: var(--faint); letter-spacing: 0.04em; }

.article { padding: clamp(16px, 3vw, 30px) 0 clamp(50px, 7vw, 90px); }
.article-lead { font-size: 1.12rem; color: var(--text); margin: 18px 0 6px; line-height: 1.7; }
.article-meta { font-size: 0.84rem; color: var(--faint); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.article-body { font-size: 1.02rem; color: var(--muted); line-height: 1.85; margin-top: 22px; }
.article-body h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--text); margin: 36px 0 14px; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.12rem; color: var(--text); margin: 26px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.article-body ul, .article-body ol { margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { position: relative; padding-left: 26px; }
.article-body ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.article-body ol { counter-reset: n; }
.article-body ol li { position: relative; padding-left: 32px; counter-increment: n; }
.article-body ol li::before { content: counter(n); position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; font-family: var(--font-display); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote { margin: 22px 0; padding: 14px 20px; border-left: 3px solid var(--gold); background: rgba(246, 196, 83, 0.05); border-radius: 0 12px 12px 0; color: var(--text); }
.article-cta { margin-top: 44px; padding: clamp(24px, 3vw, 36px); text-align: center; }
.article-cta h2 { margin-bottom: 12px; }
.article-cta p { color: var(--muted); margin-bottom: 20px; }
.article-cta .cta-direct { justify-content: center; }
@media (max-width: 760px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============ reveal ============ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.8s var(--ease-out) var(--d, 0s),
    transform 0.8s var(--ease-out) var(--d, 0s),
    filter 0.8s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform, filter;
}
html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .bg-aurora i, .marquee-track, .float-card,
  .caret, .pulse-dot, .chat-status .dot,
  .firewall-viz b, .st-ok,
  .ns-stars, .ns-window, .ns-glow { animation: none !important; }
  .msg, .chip, .faq-body p { animation: none; }
  .tilt { transform: none !important; }
  .mobile-cta { transition: none; }
  .shooting-star { display: none; }
  .leak-viz .drop { animation: none; opacity: 0; }
  .leak-viz .d1 { opacity: 0.9; }
  .spark-line { stroke-dashoffset: 0; animation: none !important; }
}

/* ============ responsive ============ */
@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .proof-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .price-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .price-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 780px; }
  .price-featured, .price-featured:hover { transform: none; }
  .guarantee-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-demo { max-width: 580px; margin-inline: auto; }
  .calc-grid { grid-template-columns: 1fr; }
  .cta-box { grid-template-columns: 1fr; }
  .float-a { right: -6px; }
  .float-b { left: -6px; }

  /* Giảm tải GPU cho máy tầm trung: bỏ aurora blur + backdrop-filter,
     reveal chỉ fade/slide (không blur) */
  .bg-aurora { display: none; }
  .glass, .faq-item { backdrop-filter: none; -webkit-backdrop-filter: none; }
  html.js [data-reveal] {
    filter: none;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out) var(--d, 0s), transform 0.6s var(--ease-out) var(--d, 0s);
  }
  .demo-orbit { display: none; }
  .shooting-star { display: none; }
  .ns-moon { width: 40px; height: 40px; top: 5%; right: 7%; }
  .ns-cabin { width: 128px; bottom: 40px; left: 8%; }
  .ns-hills-far { height: 96px; }
  .ns-hills-near { height: 64px; }

  .mobile-cta { display: grid; }

  .site-nav {
    position: fixed;
    top: calc(var(--header-h) + 6px);
    left: 3%; right: 3%;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 10, 18, 0.97);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px 22px 16px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { padding: 14px 0; font-size: 1.02rem; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .industry-grid { grid-template-columns: 1fr; }
  .price-grid-4 { grid-template-columns: 1fr; max-width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .guarantee-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero-stats { flex-wrap: wrap; gap: 18px 30px; }
  .hero-actions .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
  .chat-card { min-height: 430px; height: 500px; }
  .float-card { display: none; }
  .site-header { top: 8px; }
}
