/* =========================================================
   ADC Media — Global Mobile App Publisher
   ========================================================= */
:root {
  --ink: #0d0f1f;
  --ink-2: #2a2d45;
  --muted: #646a82;
  --line: #e6e8f0;
  --bg: #ffffff;
  --soft: #f5f6fb;
  --violet: #6d5bff;
  --purple: #b84dff;
  --pink: #ff4d8d;
  --amber: #ffb547;
  --grad: linear-gradient(115deg, #6d5bff 0%, #b84dff 50%, #ff4d8d 100%);
  --grad-soft: linear-gradient(135deg, rgba(109, 91, 255, .12), rgba(255, 77, 141, .12));
  --night: #0a0a1f;
  --night-2: #12122e;
  --on-night: #f1efff;
  --on-night-2: #a9a7cc;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --sh-1: 0 1px 2px rgba(13, 15, 31, .04), 0 4px 14px rgba(13, 15, 31, .05);
  --sh-2: 0 24px 48px -20px rgba(40, 30, 110, .28);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { flex-shrink: 0; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.center { display: flex; justify-content: center; margin-top: 40px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgba(184, 77, 255, .7); }
.btn-primary:hover { box-shadow: 0 18px 38px -12px rgba(184, 77, 255, .85); }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .3); }
.btn-outline { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.btn-outline:hover { border-color: var(--violet); color: var(--violet); }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); color: #fff; transition: background .35s, box-shadow .35s, height .35s; }
.nav.scrolled { background: rgba(10, 10, 31, .78); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 6px 14px rgba(184, 77, 255, .45)); }
.wordmark { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.wordmark b { font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 10px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .72); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.current { color: #fff; }
.nav-links a.current:not(.nav-cta)::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--pink); }
.nav-links .nav-cta { margin-left: 12px; padding: 10px 22px; color: #fff; background: var(--grad); box-shadow: 0 8px 22px -10px rgba(184, 77, 255, .9); }
.nav-links .nav-cta:hover { filter: brightness(1.08); }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 25px; }
.nav-toggle.open span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav-toggle.open span:last-child { top: 20.5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-night); padding: calc(var(--nav-h) + 72px) 0 150px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); }
.g1 { width: 620px; height: 620px; left: -220px; top: -260px; background: #5b3dff; opacity: .55; }
.g2 { width: 560px; height: 560px; right: -140px; bottom: -240px; background: #ff3d8b; opacity: .35; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em; color: #fff;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
h1 { margin: 24px 0 22px; font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.07; letter-spacing: -.035em; font-weight: 800; color: #fff; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 580px; margin: 0 0 36px; font-size: 1.1rem; line-height: 1.75; color: var(--on-night-2); }
.lead b { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.store-note { display: flex; align-items: center; gap: 12px; margin-top: 36px; font-size: .9rem; color: var(--on-night-2); }
.store-note b { color: #fff; }
.gp-logo { width: 26px; height: 26px; padding: 6px; box-sizing: content-box; border-radius: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }

/* Hero art */
.hero-art { position: relative; height: 600px; display: grid; place-items: center; }
.ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08); }
.r1 { width: 460px; height: 460px; } .r2 { width: 620px; height: 620px; border-style: dashed; border-color: rgba(255, 255, 255, .06); animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; width: 290px; height: 590px; padding: 12px; border-radius: 48px;
  background: linear-gradient(160deg, #2b2b4a, #0e0e22 60%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 50px 90px -30px rgba(0, 0, 0, .8), 0 0 80px -10px rgba(140, 90, 255, .45);
  transform: rotate(-4deg); animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 50% { translate: 0 -12px; } }
.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden; padding: 14px 16px 0;
  background: radial-gradient(120% 70% at 0% 0%, #6d5bff 0%, transparent 60%), radial-gradient(120% 70% at 100% 100%, #ff4d8d 0%, transparent 55%), #1a1240;
}
.status { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; height: 26px; font-size: .74rem; font-weight: 700; color: #fff; }
.notch { width: 86px; height: 24px; border-radius: 14px; background: #000; }
.sig { display: flex; gap: 2px; align-items: flex-end; }
.sig i { width: 3px; background: #fff; border-radius: 1px; } .sig i:nth-child(1) { height: 5px; } .sig i:nth-child(2) { height: 8px; } .sig i:nth-child(3) { height: 11px; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; margin-top: 22px; }
.h-app { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.h-app img { width: 100%; aspect-ratio: 1; border-radius: 26%; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); background: rgba(255, 255, 255, .1); }
.h-app i { font-style: normal; font-size: .6rem; font-weight: 500; color: rgba(255, 255, 255, .9); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 11px; border-radius: 26px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(14px); }
.dock img { width: 100%; aspect-ratio: 1; border-radius: 26%; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  color: var(--ink); background: rgba(255, 255, 255, .96); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .55);
  animation: floatY 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .95rem; line-height: 1.25; }
.float-card small { display: block; font-size: .76rem; color: var(--muted); }
.fc1 { top: 70px; left: -10px; animation-delay: -1s; }
.fc2 { top: 46%; right: -18px; animation-delay: -3s; }
.fc3 { bottom: 64px; left: 10px; animation-delay: -5s; }
.stack { display: flex; }
.stack img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #fff; margin-left: -10px; }
.stack img:first-child { margin-left: 0; }
.fc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.fc-ic svg { width: 20px; height: 20px; }
.fc-ic.pink { background: linear-gradient(135deg, #ff4d8d, #ff7a59); } .fc-ic.pink svg { fill: #fff; }
.fc-ic.violet { background: linear-gradient(135deg, #6d5bff, #b84dff); } .fc-ic.violet svg { fill: none; stroke: #fff; stroke-width: 1.8; }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 5; margin-top: -76px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 34px 12px;
  background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 60px -30px rgba(30, 20, 90, .35), 0 0 0 1px rgba(13, 15, 31, .04);
}
.stats div { margin: 0; text-align: center; padding: 0 16px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.section-head p { margin: 0; font-size: 1.06rem; color: var(--muted); }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; text-align: left; }
.section-head.split > div:first-child { max-width: 640px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.kicker.light { color: #c9b8ff; }

/* Reveal */
.will-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.will-reveal.in { opacity: 1; transform: none; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--sh-2); border-color: rgba(109, 91, 255, .35); }
.cat-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-soft); color: var(--violet); transition: background .35s, color .35s; }
.cat-ic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-card:hover .cat-ic { background: var(--grad); color: #fff; }
.cat-text b { display: block; font-size: 1.06rem; line-height: 1.3; }
.cat-text small { color: var(--muted); font-size: .88rem; }
.cat-stack { display: flex; margin-top: auto; }
.cat-stack img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #fff; margin-left: -8px; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); }
.cat-stack img:first-child { margin-left: 0; }
.cat-arrow { position: absolute; right: 22px; bottom: 26px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink-2); transition: background .3s, color .3s, transform .3s var(--ease); }
.cat-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cat-card:hover .cat-arrow { background: var(--ink); color: #fff; transform: translateX(3px); }

/* ---------- Drama ---------- */
.section.dark { background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.dark-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 400px at 85% 0%, rgba(255, 77, 141, .28), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(109, 91, 255, .3), transparent 70%); }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: var(--on-night-2); }
.dark .section-head p b { color: #fff; }
.rail-nav { display: flex; gap: 10px; }
.round-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); transition: background .25s, border-color .25s; }
.round-btn:hover { background: var(--grad); border-color: transparent; }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 20px) / 6); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.d-card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.d-img { position: relative; display: block; padding: 16px; border-radius: 24px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); margin-bottom: 14px; transition: background .3s, border-color .3s, transform .35s var(--ease); }
.d-img img { width: 100%; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 18px 32px -14px rgba(0, 0, 0, .9); }
.d-card:hover .d-img { transform: translateY(-6px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 77, 141, .55); }
.d-card b { color: #fff; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-card small { color: var(--on-night-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Apps ---------- */
.toolbar { display: flex; gap: 12px; margin-bottom: 16px; }
.search, .select { position: relative; display: flex; align-items: center; }
.search { flex: 1; }
.search svg, .select svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search svg { left: 18px; } .select svg { right: 16px; }
.search input, .select select {
  width: 100%; height: 54px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s, box-shadow .2s;
}
.search input { padding: 0 18px 0 50px; }
.select select { min-width: 280px; padding: 0 46px 0 18px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.search input::placeholder { color: #9aa0b5; }
.search input:focus, .select select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(109, 91, 255, .14); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line); transition: all .2s;
}
.chip svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chip em { font-style: normal; font-size: .76rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.chip:hover { border-color: rgba(109, 91, 255, .5); color: var(--violet); }
.chip.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.chip.active em { background: rgba(255, 255, 255, .16); color: #fff; }
.result-count { margin: 0 0 18px; font-size: .9rem; color: var(--muted); }
.result-count b { color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; gap: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  animation: cardIn .5s var(--ease) both; animation-delay: var(--d, 0ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(109, 91, 255, .3); }
.app-icon { width: 68px; height: 68px; border-radius: 24%; flex-shrink: 0; background: var(--soft); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); }
.card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding-right: 26px; }
.card h3 { margin: 0; font-size: 1.06rem; line-height: 1.3; letter-spacing: -.01em; }
.sub { margin: 2px 0 0; font-size: .82rem; font-weight: 600; color: var(--violet); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.desc { margin: 8px 0 14px; font-size: .9rem; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: .76rem; font-weight: 500; color: var(--ink-2); background: var(--soft); }
.tag svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.go { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--soft); transition: background .3s, color .3s, transform .3s var(--ease); }
.go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .go, .pub:hover .go { background: var(--grad); color: #fff; transform: rotate(45deg); }
.empty { text-align: center; color: var(--muted); padding: 56px 0; }

/* ---------- Publishers ---------- */
.pubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pub { position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.pub:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: rgba(109, 91, 255, .3); }
.pub-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; }
.pub .go { position: static; }
.pub-icons { display: flex; }
.pub-icons img { width: 50px; height: 50px; border-radius: 15px; border: 3px solid #fff; margin-left: -12px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .4); }
.pub-icons img:first-child { margin-left: 0; }
.pub h3 { margin: 0 0 14px; font-size: 1.1rem; line-height: 1.35; }
.pub-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.pub-meta span { padding: 6px 12px; border-radius: 10px; font-size: .84rem; color: var(--muted); background: var(--soft); }
.pub-meta b { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-panel {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; padding: 56px;
  border-radius: 36px; background: var(--night); color: var(--on-night);
}
.contact-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 360px at 0% 0%, rgba(109, 91, 255, .5), transparent 70%), radial-gradient(500px 360px at 100% 100%, rgba(255, 77, 141, .35), transparent 70%); }
.contact-info h2 { margin: 0 0 14px; font-size: clamp(1.85rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em; color: #fff; }
.contact-info > p { margin: 0 0 30px; color: var(--on-night-2); font-size: 1.04rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.ci { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); }
.ci svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: .78rem; color: var(--on-night-2); text-transform: uppercase; letter-spacing: .08em; }
.contact-list a { font-weight: 600; color: #fff; line-height: 1.5; }
.contact-list a:hover { color: #d9c9ff; }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.soc { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 12px; border-radius: 18px; color: #fff; font-size: 1.05rem; transition: transform .25s var(--ease), box-shadow .25s; }
.soc:hover { transform: translateY(-3px); }
.soc.zalo { background: linear-gradient(135deg, #0068ff, #1a8cff); box-shadow: 0 14px 30px -14px rgba(0, 104, 255, .9); }
.soc.tele { background: linear-gradient(135deg, #229ed9, #37b4ee); box-shadow: 0 14px 30px -14px rgba(34, 158, 217, .9); }
.soc-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.soc-logo svg { width: 22px; height: 22px; fill: #fff; }
.zalo-logo { font-weight: 800; font-size: .8rem; letter-spacing: -.01em; color: #fff; }
.map { min-height: 440px; border-radius: 24px; overflow: hidden; background: #1c1c3a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--on-night-2); padding: 80px 0 30px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .brand { color: #fff; }
.f-brand p { max-width: 320px; margin: 18px 0 22px; }
.f-social { display: flex; gap: 10px; }
.f-social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: background .25s; }
.f-social a:hover { background: var(--grad); }
.f-social svg { width: 20px; height: 20px; fill: #fff; }
.zalo-logo.sm { font-size: .7rem; }
.footer h4 { margin: 4px 0 16px; color: #fff; font-size: 1rem; }
.footer-grid a:not(.brand):not(.zalo-logo):not([id="fTele"]) { display: block; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { margin: 0 0 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 26px; font-size: .84rem; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fbtn { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.fbtn:hover { transform: scale(1.08); }
.fbtn svg { width: 24px; height: 24px; fill: #fff; }
.fbtn.zalo { background: #0068ff; font-size: .8rem; }
.fbtn.zalo::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #0068ff; animation: ring 2s ease-out infinite; }
.fbtn.tele { background: #229ed9; }
.fbtn.phone { background: linear-gradient(135deg, #10b981, #059669); }
.fbtn.phone svg { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.fbtn.top { width: 46px; height: 46px; background: var(--ink); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); }
.fbtn.top.show { opacity: 1; pointer-events: auto; transform: none; }
.fbtn.top svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%); padding: 6px 12px; border-radius: 8px; white-space: nowrap; font-size: .82rem; font-weight: 600; color: #fff; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.fbtn:hover .tip { opacity: 1; transform: translate(0, -50%); }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.65); opacity: 0; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1140px) {
  .rail { grid-auto-columns: calc((100% - 4 * 20px) / 5); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { flex-direction: row; align-items: center; }
  .cat-stack { margin: 0 52px 0 auto; }
  .cat-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
  .cat-card:hover .cat-arrow { transform: translate(3px, -50%); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .container { width: calc(100% - 40px); }
  .nav { background: rgba(10, 10, 31, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100dvh - var(--nav-h));
    flex-direction: column; align-items: stretch; gap: 6px; padding: 24px 20px;
    background: var(--night); opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 18px 20px; font-size: 1.15rem; border-radius: 16px; background: rgba(255, 255, 255, .04); }
  .nav-links a.current::after { display: none; }
  .nav-links .nav-cta { margin: 10px 0 0; text-align: center; }

  .hero { padding: calc(var(--nav-h) + 48px) 0 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-art { height: 540px; }
  .fc1 { left: calc(50% - 250px); } .fc2 { right: calc(50% - 250px); } .fc3 { left: calc(50% - 230px); }

  .stats { grid-template-columns: repeat(2, 1fr); padding: 8px; }
  .stats div { padding: 22px 12px; }
  .stats div + div { border-left: 0; }
  .stats div:nth-child(even) { border-left: 1px solid var(--line); }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .section { padding: 88px 0; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
  .rail-nav { display: none; }
  .rail { grid-auto-columns: 30%; }
  .pubs { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; padding: 40px; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  body { font-size: 15px; }
  .wordmark { font-size: 1.18rem; }
  .brand img { width: 36px; height: 36px; }
  h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); margin: 20px 0 18px; }
  .lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .store-note { margin-top: 28px; font-size: .84rem; text-align: left; }
  .hero-art { height: 470px; margin-top: 8px; }
  .phone { width: 236px; height: 480px; border-radius: 40px; padding: 10px; }
  .phone-screen { border-radius: 31px; padding: 12px 12px 0; }
  .home-grid { gap: 10px 8px; margin-top: 16px; }
  .h-app i { font-size: .52rem; }
  .notch { width: 70px; height: 20px; }
  .dock { padding: 8px; gap: 8px; border-radius: 22px; left: 10px; right: 10px; bottom: 10px; }
  .ring.r1 { width: 340px; height: 340px; } .ring.r2 { width: 440px; height: 440px; }
  .float-card { padding: 9px 13px 9px 9px; gap: 9px; border-radius: 14px; }
  .float-card b { font-size: .8rem; } .float-card small { font-size: .68rem; }
  .fc-ic { width: 32px; height: 32px; border-radius: 10px; } .fc-ic svg { width: 16px; height: 16px; }
  .stack img { width: 26px; height: 26px; border-radius: 8px; margin-left: -8px; }
  .fc1 { top: 40px; left: -4px; } .fc2 { right: -4px; top: 50%; } .fc3 { left: 0; bottom: 36px; }

  .stats-wrap { margin-top: -64px; }
  .stats { border-radius: 22px; }
  .stats div { padding: 18px 8px; }
  .stats dd { font-size: .8rem; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p { font-size: .98rem; }

  .cat-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { padding: 16px 18px; gap: 14px; border-radius: 18px; }
  .cat-ic { width: 46px; height: 46px; border-radius: 14px; }
  .cat-stack { display: none; }
  .cat-arrow { right: 16px; }

  .rail { grid-auto-columns: 37%; gap: 14px; }
  .d-img { padding: 12px; border-radius: 20px; }

  .toolbar { flex-direction: column; gap: 10px; }
  .select select { min-width: 0; }
  .search input, .select select { height: 50px; border-radius: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 20px; padding: 2px 16px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; height: 40px; scroll-snap-align: start; }

  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 16px; gap: 14px; border-radius: 18px; }
  .app-icon { width: 60px; height: 60px; }
  .go { top: 14px; right: 14px; width: 28px; height: 28px; }

  .pub { padding: 22px; }
  .contact-panel { padding: 28px 20px; border-radius: 28px; margin-inline: -4px; }
  .social { grid-template-columns: 1fr 1fr; }
  .soc { height: 58px; font-size: .98rem; gap: 10px; }
  .soc-logo { width: 38px; height: 38px; }
  .map, .map iframe { min-height: 300px; }

  .footer { padding-top: 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }

  .float-contact { right: 14px; bottom: 14px; gap: 10px; }
  .fbtn { width: 50px; height: 50px; }
  .tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .will-reveal { opacity: 1; transform: none; }
}
