/* ============================================================
   VShare — Landing Page
   Kế thừa design tokens từ styles.css. Chỉ bổ sung phần
   layout & thành phần riêng của trang giới thiệu.
   ============================================================ */

:root {
  --lp-max: 1160px;
  --lp-ink: #0b1220;
  --lp-hero-1: #eef4ff;
  --lp-hero-2: #f8fafc;
  --lp-ring: rgba(37, 99, 235, .12);
}

html { scroll-behavior: smooth; }
body.lp { background: var(--surface); color: var(--text); }
.lp img { max-width: 100%; display: block; }
.lp section { scroll-margin-top: 84px; }

.lp .wrap-c { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 24px; }

.lp .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 12px; border-radius: 999px;
}

/* ---------- Header ---------- */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.lp-header.scrolled { border-color: var(--border); box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.lp-header .wrap-c { display: flex; align-items: center; gap: 20px; }
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
/* Giữ đúng tỷ lệ logo (chữ V node): cố định chiều cao, rộng tự động, không bo góc, không méo */
.lp-brand img { height: 30px; width: auto; display: block; object-fit: contain; }
.lp-brand span b { color: var(--primary); }
html[data-theme="dark"] .lp-brand img { filter: drop-shadow(0 0 6px rgba(56, 130, 246, .35)); }
.lp-nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.lp-nav a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 14px;
  transition: color .15s, background .15s;
}
.lp-nav a:hover { color: var(--text); background: var(--surface-2); }
.lp-header .cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.lp-burger {
  display: none; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); align-items: center; justify-content: center;
}
.lp-burger svg { width: 20px; height: 20px; }

/* Buttons — mở rộng từ .btn của design system */
.lp .btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.lp .btn.arrow svg { transition: transform .18s; }
.lp .btn.arrow:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.lp-hero { position: relative; overflow: hidden; padding: 132px 0 84px;
  background: linear-gradient(180deg, var(--lp-hero-1), var(--lp-hero-2) 62%, var(--surface)); }
.lp-hero .bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lp-hero .bg svg { width: 100%; height: 100%; }
.lp-hero .glow { position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(90px); opacity: .5; z-index: 0; }
.lp-hero .glow.a { top: -160px; right: -120px; background: radial-gradient(circle, #bfdbfe, transparent 70%); }
.lp-hero .glow.b { bottom: -220px; left: -160px; background: radial-gradient(circle, #ddd6fe, transparent 70%); }

.lp-hero .wrap-c { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center; }
.lp-hero h1 { font-size: 50px; line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin-top: 20px;
  color: var(--lp-ink); }
.lp-hero h1 .grad { background: linear-gradient(120deg, var(--primary), #6d28d9);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .sub { font-size: 17.5px; color: var(--muted); margin-top: 20px; max-width: 560px; line-height: 1.6; }
.lp-hero .sub strong { color: var(--text); font-weight: 700; }
.lp-hero .sub a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lp-hero .sub a:hover { color: color-mix(in srgb, var(--primary) 80%, #000); }
.lp-hero .hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.lp-hero .trust { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.lp-hero .trust > div { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.lp-hero .trust svg { width: 18px; height: 18px; color: var(--success); }
.lp-hero .hero-cred { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.lp-hero .hero-cred a { display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  padding: 7px 13px; border-radius: 999px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lp-hero .hero-cred a:hover { border-color: var(--primary); box-shadow: 0 6px 16px -10px var(--primary); transform: translateY(-1px); }
.lp-hero .hero-cred svg { width: 15px; height: 15px; }

/* ---------- Dashboard mockup ---------- */
.mock { border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .28), 0 8px 20px -12px rgba(15, 23, 42, .12);
  overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); }
.mock .bar { height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock .bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mock .bar i:nth-child(1){ background:#f87171 } .mock .bar i:nth-child(2){ background:#fbbf24 } .mock .bar i:nth-child(3){ background:#34d399 }
.mock .bar .url { margin-left: 12px; font-size: 11.5px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; }
.mock .bar .onprem { margin-left: auto; font-size: 10.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.mock .body { padding: 16px; display: grid; gap: 12px; }
.mock .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock .k { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.mock .k .l { font-size: 10.5px; color: var(--muted); }
.mock .k .v { font-size: 18px; font-weight: 800; margin-top: 3px; }
.mock .k .d { font-size: 10.5px; color: var(--success); margin-top: 2px; }
.mock .chart { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: var(--surface); }
.mock .chart .ct { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.mock .bars { display: flex; align-items: flex-end; gap: 8px; height: 96px; }
.mock .bars span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--primary), #93c5fd); opacity: .9; }
.mock .rows { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mock .rows .r { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 11.5px; border-bottom: 1px solid var(--border); }
.mock .rows .r:last-child { border-bottom: none; }
.mock .rows .r .dot { width: 22px; height: 22px; border-radius: 6px; background: var(--primary-soft); }
.mock .rows .r .fill { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); }
.mock .rows .r .tag { font-size: 10px; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; }

/* ---------- Section shell ---------- */
.lp-sec { padding: 84px 0; }
.lp-sec.alt { background: var(--surface-2); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-head h2 { font-size: 34px; letter-spacing: -.02em; font-weight: 800; margin-top: 14px; color: var(--lp-ink); }
.sec-head p { color: var(--muted); font-size: 16px; margin-top: 14px; line-height: 1.6; }

/* ---------- Pain cards ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pain:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(15,23,42,.25); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.pain .ic { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--danger-soft); color: var(--danger); margin-bottom: 16px; }
.pain .ic svg { width: 22px; height: 22px; }
.pain h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.pain p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.pain .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pain .tags span { font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; }

/* ---------- Timeline (giải pháp) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.flow .step { text-align: center; position: relative; padding: 0 10px; }
.flow .step::after { content: ""; position: absolute; top: 30px; left: 50%; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--primary-soft), var(--border)); z-index: 0; }
.flow .step:last-child::after { display: none; }
.flow .num { position: relative; z-index: 1; width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
  background: linear-gradient(135deg, var(--primary), #3b82f6); box-shadow: 0 8px 20px -8px var(--primary); }
.flow .step h4 { font-size: 15.5px; margin-bottom: 6px; }
.flow .step p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Solution showcase (brand.png) ---------- */
.brand-sec { background: linear-gradient(180deg, #0b1224, #0a1020); }
.brand-sec .sec-head h2 { color: #fff; }
.brand-sec .sec-head p { color: #b6c2da; }
.brand-sec .eyebrow { background: rgba(96, 165, 250, .16); color: #93c5fd; }
.brand-figure {
  margin: 0; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
  background: #0a1020;
}
.brand-figure img { width: 100%; height: auto; display: block; }

/* ---------- Platform diagram ---------- */
.plat { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 860px; margin: 0 auto; }
.plat .depts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.plat .node {
  border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 16px 12px;
  text-align: center; transition: transform .15s, border-color .15s;
}
.plat .node:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.plat .node .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; margin: 0 auto 10px;
  background: var(--primary-soft); color: var(--primary); }
.plat .node .ic svg { width: 20px; height: 20px; }
.plat .node .t { font-size: 13.5px; font-weight: 600; }
.plat .arrow-down { display: grid; place-items: center; color: var(--muted); }
.plat .arrow-down svg { width: 22px; height: 22px; }
.plat .core {
  border-radius: 14px; padding: 22px; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--primary), #4f46e5);
  box-shadow: 0 18px 40px -18px var(--primary);
}
.plat .core .t { font-size: 20px; font-weight: 800; }
.plat .core .d { opacity: .9; font-size: 14px; margin-top: 4px; }
.plat .chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plat .chain .node .ic { background: #ede9fe; color: var(--purple); }
html[data-theme="dark"] .plat .chain .node .ic { background: #241a4d; }

/* ---------- Features grid ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(15,23,42,.28);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.feat .ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 16px; margin-bottom: 7px; letter-spacing: -.01em; }
.feat p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ---------- KPI stats ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi-c { text-align: center; padding: 34px 20px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); }
.kpi-c .n { font-size: 46px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--primary), #6d28d9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi-c .l { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.5; }

/* ---------- Section lead (paragraph dưới sec-head) ---------- */
.sec-lead { text-align: center; color: var(--muted); font-size: 16px; line-height: 1.7;
  max-width: 820px; margin: -22px auto 40px; }
.sec-lead strong { color: var(--text); font-weight: 700; }
.sec-lead a { color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.sec-lead a:hover { color: color-mix(in srgb, var(--primary) 80%, #000); }

/* ---------- Research credibility (creds strip) ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
.cred { text-align: center; padding: 24px 16px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); transition: transform .18s, border-color .18s; }
.cred:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.cred .n { font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--primary); line-height: 1.2; }
.cred .n small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 5px; letter-spacing: 0; }
.cred .l { color: var(--muted); font-size: 12.5px; margin-top: 10px; line-height: 1.5; }

/* ---------- Ecosystem strip ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--surface);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.eco:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(15,23,42,.28);
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.eco.current { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); background: var(--primary-soft); }
.eco .name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.eco .name .badge { font-size: 10.5px; font-weight: 600; color: var(--primary); background: var(--surface);
  border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.eco p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: 8px; }
.eco-note { text-align: center; margin-top: 30px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.eco-note a { color: var(--primary); font-weight: 600; }

/* ---------- Demo CTA ---------- */
.demo-cta { position: relative; overflow: hidden; border-radius: 22px; padding: 60px; text-align: center;
  background: linear-gradient(125deg, #1d4ed8, #4f46e5 55%, #7c3aed);
  box-shadow: 0 30px 70px -30px rgba(37,99,235,.6); }
.demo-cta::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px); background-size: 22px 22px; opacity: .5; }
.demo-cta * { position: relative; z-index: 1; }
.demo-cta .eyebrow { background: rgba(255,255,255,.18); color: #fff; }
.demo-cta h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-top: 16px; }
.demo-cta p { color: rgba(255,255,255,.9); font-size: 16.5px; max-width: 620px; margin: 16px auto 0; line-height: 1.6; }
.demo-cta .btn { background: #fff; color: var(--primary); margin-top: 30px; }
.demo-cta .btn:hover { background: #fff; filter: brightness(.96); }

/* ---------- Footer ---------- */
.lp-footer { border-top: 1px solid var(--border); padding: 54px 0 30px; background: var(--surface); }
.lp-footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.lp-footer .brandcol { max-width: 320px; }
.lp-footer .brandcol .lp-brand { margin-bottom: 12px; }
.lp-footer .brandcol p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.lp-footer .brandcol .rnd { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.55; }
.lp-footer .brandcol .rnd strong { color: var(--primary); font-weight: 600; }
.lp-footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.lp-footer .col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 14px; }
.lp-footer .col a { display: block; color: var(--text); font-size: 14px; padding: 5px 0; transition: color .15s; }
.lp-footer .col a:hover { color: var(--primary); }
.lp-footer .bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Reveal animation (chỉ ẩn khi JS bật để không hại SEO/no-JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lp-nav { display: none; }
  .lp-burger { display: inline-flex; }
  .lp-header .cta .btn:not(.burger-keep) { display: none; }
  .lp-hero { padding: 112px 0 64px; }
  .lp-hero .wrap-c { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero h1 { font-size: 38px; }
  .mock { transform: none; }
  .pain-grid, .feat-grid, .creds, .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .flow .step::after { display: none; }
  .plat .depts, .plat .chain { grid-template-columns: repeat(2, 1fr); }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-head h2, .demo-cta h2 { font-size: 27px; }

  /* mobile nav panel */
  .lp-mobile { position: fixed; inset: 68px 0 auto 0; z-index: 99; background: var(--surface);
    border-bottom: 1px solid var(--border); padding: 12px 24px 18px; display: none; box-shadow: var(--shadow); }
  .lp-mobile.open { display: block; }
  .lp-mobile a { display: block; padding: 12px 6px; font-weight: 500; border-bottom: 1px solid var(--border); }
  .lp-mobile a:last-of-type { border-bottom: none; }
  .lp-mobile .btn { width: 100%; margin-top: 12px; }
}
@media (min-width: 961px) { .lp-mobile { display: none !important; } }
@media (max-width: 560px) {
  .lp .wrap-c { padding: 0 18px; }
  .pain-grid, .feat-grid, .plat .depts, .plat .chain, .kpi-grid, .creds, .eco-grid { grid-template-columns: 1fr; }
  .lp-hero h1 { font-size: 32px; }
  .demo-cta { padding: 40px 24px; }
  .lp-sec { padding: 60px 0; }
}
