/*
Theme Name: Markee TechLab PBN
Theme URI: https://markeetechlab.vn
Author: Markee TechLab
Description: Theme WordPress riêng cho site PBN chủ đề công nghệ "Markee TechLab" — giao diện "Cyber Neon": nền đen xanh navy, lưới kỹ thuật, glow cyan/xanh dương/lime, font mono cho chi tiết kỹ thuật. Có chuyển đổi sáng/tối thật, mỗi chuyên mục 1 màu neon riêng. Thông số site (tên, màu, liên hệ...) chỉnh trong theme-config.php.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: markee-technology
*/

/* ==========================================================================
   0. Design tokens — "Cyber Neon"
   Chế độ TỐI là mặc định (:root). Primary = cyan (#22d3ee), Secondary = xanh
   dương (#3b82f6), Accent = lime (#a3e635). Nút chính dùng gradient
   cyan→xanh với chữ tối (--on-brand) để đạt tương phản cao.
   --brand/--brand-2/--accent/--device/--software được theme-config.php > colors
   ghi đè qua wp_add_inline_style() (xem functions.php).
   --navy/--navy-2/--on-navy là bề mặt "luôn tối" (header, footer, banner...)
   cố định ở cả 2 chế độ. --link là màu chữ liên kết/nhấn (tối hơn ở chế độ
   sáng để đủ tương phản trên nền trắng).
   ========================================================================== */
:root {
  --bg: #050a14;
  --bg-2: #08101f;
  --paper: #0b1424;
  --paper-2: #111d33;
  --ink: #e8f1ff;
  --muted: #8397b8;
  --line: rgba(120, 170, 255, .14);
  --link: #22d3ee;

  --navy: #050a14;
  --navy-2: #0b1424;
  --on-navy: #e8f1ff;
  --on-navy-muted: #8397b8;

  --brand: #22d3ee;
  --brand-2: #3b82f6;
  --accent: #a3e635;
  --device: #22d3ee;
  --software: #a3e635;
  --on-brand: #03121a;

  --grad-brand: linear-gradient(135deg, var(--brand), var(--brand-2));
  --grad-spectrum: linear-gradient(100deg, var(--brand), var(--brand-2) 55%, var(--accent));
  --glow: 0 0 0 1px rgba(34, 211, 238, .35), 0 0 28px rgba(34, 211, 238, .25);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .55);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1280px;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f1f5fb;
  --bg-2: #e8eef8;
  --paper: #ffffff;
  --paper-2: #f3f6fc;
  --ink: #08111f;
  --muted: #52627d;
  --line: #d8e2f0;
  --link: #0369a1;
  --glow: 0 0 0 1px rgba(3, 105, 161, .25), 0 8px 24px rgba(3, 105, 161, .15);
  --shadow-sm: 0 2px 10px rgba(8, 17, 31, .06);
  --shadow-md: 0 14px 34px rgba(8, 17, 31, .1);
  --shadow-lg: 0 26px 64px rgba(8, 17, 31, .16);
  color-scheme: light;
}
:root[data-theme="light"] body { background-image: none; }
:root[data-theme="light"] body::before { opacity: .5; }

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}
/* Lưới kỹ thuật mờ toàn trang */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: .55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
::selection { background: var(--brand); color: var(--on-brand); }
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.mk-icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.grad-text {
  background: var(--grad-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ==========================================================================
   2. Utility bits (kicker, pills, buttons, links)
   ========================================================================== */
.kicker {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin-bottom: 10px;
}
.kicker.light { color: var(--brand); }

/* Badge chuyên mục — nền màu neon của chuyên mục, chữ tối */
.category-pill {
  --cat: var(--brand);
  display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .02em; padding: 4px 10px; border-radius: 6px;
  background: var(--cat); color: #04121a; width: fit-content;
}
.category-pill.on-image {
  background: rgba(5, 10, 20, .6); color: #fff; border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
}

.post-meta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 500;
}
.post-meta span { display: inline-flex; align-items: center; gap: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 14.5px;
  border: 0; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand); color: var(--on-brand); box-shadow: 0 6px 20px rgba(34,211,238,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(34,211,238,.4), 0 0 30px rgba(59,130,246,.35); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--link); box-shadow: var(--glow); }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px;
  color: var(--link); transition: gap .15s ease;
}
.text-link:hover { gap: 10px; }

.device, .device .accent-dot { color: var(--device); }
.software, .software .accent-dot { color: var(--software); }

/* ==========================================================================
   3. Sections & reveal animation
   ========================================================================== */
.section { padding: 72px 0; }
.section.soft { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
/* Reveal tự động (main.js gắn .rv): chỉ ẩn khi JS chạy (html.js) để không mất nội dung nếu JS lỗi.
   Dùng animation + thuộc tính `translate` riêng nên không đè hover/transform của từng thẻ. */
html.js .rv:not(.in) { opacity: 0; translate: 0 24px; }
.rv.in { animation: mk-rise .65s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes mk-rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
html.js .reveal.rv:not(.in) { transform: none; }
html.js .reveal.rv.in { transition: none; }

@keyframes mk-fade { from { opacity: 0; } to { opacity: 1; } }
html.js body { animation: mk-fade .45s ease both; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; transform: scaleX(0); transform-origin: 0 50%;
  background: var(--grad-spectrum); box-shadow: 0 0 12px var(--brand); pointer-events: none;
}
.site-header { transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.site-header .nav { transition: height .25s ease; }
.site-header.scrolled .nav { height: 62px; }

/* ==========================================================================
   4. Header — thanh kính mờ, luôn tối
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--navy); border-bottom: 1px solid #111d33; /* viền ĐẶC: viền trong suốt sẽ để lộ nền sáng của trang ở chế độ sáng */
}
/* Kính mờ đặt ở pseudo-element: backdrop-filter trên chính header sẽ làm menu mobile (position: fixed) bị kẹt trong header. */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(5, 10, 20, .94);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
}
:root[data-theme="light"] .site-header::before { background: var(--navy); }
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent); opacity: .55;
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; flex-shrink: 0; }
.brand-mark { flex-shrink: 0; display: inline-flex; align-items: center; }
/* Ảnh logo đã xoá nền (PNG trong suốt) nên đặt trực tiếp lên header/footer, sáng hay tối đều được. */
.brand-mark img { display: block; transition: transform .25s ease; }
.brand:hover .brand-mark img { transform: scale(1.06); }
.brand b {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700;
  letter-spacing: -.01em; color: var(--on-navy);
}
.brand small { display: block; white-space: nowrap; font-family: var(--mono); font-size: 10.5px; color: var(--on-navy-muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a {
  position: relative; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--on-navy-muted);
  transition: color .15s ease, background-color .15s ease; white-space: nowrap;
}
.nav-links > a:hover { color: var(--on-navy); }
.nav-links > a.active { color: var(--brand); font-weight: 700; }
.mobile-search { display: none; }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  position: relative; display: inline-flex; align-items: center; gap: 5px; background: none; border: 0;
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--on-navy-muted);
  transition: color .15s ease, background-color .15s ease; white-space: nowrap;
}
.nav-dropdown-trigger:hover { color: var(--on-navy); }
.nav-dropdown-trigger.active { color: var(--brand); font-weight: 700; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 0; min-width: 220px;
  background: var(--navy-2); border: 1px solid rgba(120,170,255,.16); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 8px; display: none; flex-direction: column; gap: 2px;
}
.nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--on-navy); }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-dropdown-all { border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 4px; padding-bottom: 10px !important; color: var(--on-navy-muted) !important; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(120,170,255,.2); color: var(--on-navy);
  transition: background-color .15s ease, border-color .15s ease; flex-shrink: 0;
}
.icon-btn:hover, .menu-btn:hover { border-color: var(--brand); }
.menu-btn { display: none; }

.theme-toggle {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; padding: 3px;
  border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(120,170,255,.2);
}
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 7px; background: transparent; border: 0; color: var(--on-navy-muted);
  transition: background .15s ease, color .15s ease;
}
.theme-toggle-btn:hover { color: var(--on-navy); }
.theme-toggle-btn.active { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 14px rgba(34,211,238,.45); }

.header-search { display: none; }
.header-search-bar {
  display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(120,170,255,.2);
  border-radius: 10px; padding: 3px 4px 3px 14px; width: 200px; transition: width .18s ease, border-color .15s ease;
}
.header-search-bar:focus-within { width: 270px; border-color: var(--brand); }
.header-search-bar input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; color: var(--on-navy); min-width: 0; }
.header-search-bar input::placeholder { color: var(--on-navy-muted); }
.header-search-bar button {
  width: 30px; height: 30px; border-radius: 7px; background: none; color: var(--on-navy-muted); border: 0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Mega-menu "Chuyên mục" */
.nav-mega-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 500px; background: var(--navy-2); border: 1px solid rgba(120,170,255,.16);
  border-radius: var(--radius); box-shadow: var(--shadow-lg), 0 0 40px rgba(34,211,238,.08); padding: 18px;
  display: none; grid-template-columns: 1fr 1fr; gap: 4px 24px;
}
.nav-mega.open .nav-mega-menu, .nav-dropdown.open .nav-mega-menu { display: grid; }
.nav-mega-col { display: flex; flex-direction: column; gap: 2px; }
.nav-mega-col-title {
  display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--on-navy-muted); padding: 6px 10px 10px; border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 6px;
}
.nav-mega-col-title:hover { color: var(--brand); }
.nav-mega-item {
  --cat: var(--brand);
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--on-navy);
}
.nav-mega-item:hover { background: rgba(255,255,255,.07); color: var(--cat); }
.nav-mega-icon {
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cat) 18%, transparent); color: var(--cat); flex-shrink: 0;
}
.nav-mega-all {
  grid-column: 1 / -1; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--brand);
}

/* ==========================================================================
   5. Footer — luôn nền tối
   ========================================================================== */
.footer {
  position: relative; background: var(--navy); color: var(--on-navy-muted); padding: 64px 0 0; margin-top: 40px;
  border-top: 1px solid rgba(120,170,255,.14);
  background-image: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(34,211,238,.09), transparent 70%);
}
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--brand-2), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { margin-bottom: 16px; }
.footer-brand b { color: var(--on-navy); }
.footer-brand small { color: var(--on-navy-muted); }
.footer-about p { font-size: 14px; line-height: 1.7; color: var(--on-navy-muted); margin-bottom: 18px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(120,170,255,.16);
  display: flex; align-items: center; justify-content: center; color: var(--on-navy-muted);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.social-icons a:hover { background: var(--grad-brand); color: var(--on-brand); box-shadow: 0 0 18px rgba(34,211,238,.4); }

.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer-links a, .footer-links-grid a {
  display: block; padding: 6px 0; font-size: 14px; color: var(--on-navy-muted); font-weight: 600; transition: color .15s ease, transform .15s ease;
}
.footer-links a:hover, .footer-links-grid a:hover { color: var(--brand); transform: translateX(3px); }

.footer-recent-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-recent-item:last-child { border-bottom: 0; }
.footer-recent-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(120,170,255,.16); }
.footer-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.footer-recent-item b { display: block; font-size: 13.5px; color: var(--on-navy); line-height: 1.4; font-weight: 700; }
.footer-recent-item:hover b { color: var(--brand); }
.footer-recent-item small { color: #5d7194; font-family: var(--mono); font-size: 11.5px; }

.footer-contact p { display: flex; gap: 8px; font-size: 13.5px; color: var(--on-navy-muted); margin-bottom: 12px; align-items: flex-start; }
.footer-contact .mk-icon { color: var(--brand); margin-top: 3px; }
.footer-hotline { color: var(--accent) !important; font-weight: 700; }
.footer-hotline .mk-icon { color: var(--accent) !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 20px; text-align: center;
  font-family: var(--mono); font-size: 12px; color: #5d7194;
}

/* ==========================================================================
   6. Trang chủ — hero, ticker, bento
   ========================================================================== */
.hero { position: relative; padding: 88px 0 80px; overflow: hidden; display: flex; align-items: center;
  /* Hero luôn nằm trên ảnh nền tối -> dùng màu chữ "trên nền tối" ở cả chế độ sáng */
  --ink: var(--on-navy); --muted: #b3c2dc; --paper: rgba(8, 16, 31, .72); --line: rgba(150, 190, 255, .28); --link: #22d3ee;
  color: var(--on-navy); }
/* Ảnh nền + lớp phủ tối: chỉnh độ hiện của ảnh bằng opacity của ::before
   (thấp hơn = ảnh mờ hơn). Lớp phủ ::after làm tối bên trái để chữ dễ đọc. */
.hero-bg { position: absolute; inset: 0; pointer-events: none; background: var(--navy); }
.hero-bg::before {
  content: ''; position: absolute; inset: 0; opacity: .95;
  background: url('assets/images/hero-bg.jpg') center 40% / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at var(--mx, 70%) var(--my, 40%), rgba(34,211,238,.16), transparent 40%),
    linear-gradient(90deg, rgba(5,10,20,.86) 0%, rgba(5,10,20,.6) 38%, rgba(5,10,20,0) 72%),
    linear-gradient(180deg, rgba(5,10,20,.3) 0%, transparent 25%, transparent 78%, rgba(5,10,20,.75) 100%);
}
.hero-inner { position: relative; width: 100%; }
.hero-copy { max-width: 600px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--link); padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); margin-bottom: 16px;
}
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: mk-pulse 1.8s ease-in-out infinite; }
@keyframes mk-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 14px; }
.hero-lead { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 520px; margin-bottom: 20px; }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 520px; padding: 6px 6px 6px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
  box-shadow: var(--shadow-sm); transition: border-color .15s ease, box-shadow .15s ease;
}
.hero-search:focus-within { border-color: var(--brand); box-shadow: var(--glow); }
.hero-search input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); min-width: 0; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin: 24px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); flex-wrap: wrap;
}
.hero-stats dt { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--ink); }
.hero-stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* Dải chuyên mục chạy ngang */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2);
  overflow: hidden; padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: mk-ticker 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; gap: 12px; padding-right: 12px; }
@keyframes mk-ticker { to { transform: translateX(-50%); } }
.ticker-item {
  --cat: var(--brand);
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.ticker-item .mk-icon { color: var(--cat); }
.ticker-item:hover { border-color: var(--cat); box-shadow: 0 0 20px color-mix(in srgb, var(--cat) 30%, transparent); }

/* Bento nổi bật */
.hero-mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 210px);
  gap: 14px;
}
.mosaic-tile {
  position: relative; display: flex; align-items: flex-end;
  background-color: var(--navy-2); background-size: cover; background-position: center;
  /* Bo góc bằng clip-path (cắt 1 lần trên kết quả đã ghép) thay cho border-radius + overflow:hidden:
     cách cũ cắt riêng từng lớp (màu nền, ảnh, lớp phủ) nên để lại vệt sáng 1px ở mép khi toạ độ lẻ/zoom lẻ. */
  border: 0; border-radius: 0; clip-path: inset(0 round var(--radius));
  transition: transform .25s ease;
}
.mosaic-tile:hover { transform: translateY(-4px); }
/* Viền cyan khi hover vẽ ở lớp trên cùng, nằm trong vùng đã cắt */
.mosaic-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: var(--radius);
  box-shadow: inset 0 0 0 0 var(--brand); transition: box-shadow .25s ease;
}
.mosaic-tile:hover::after { box-shadow: inset 0 0 0 1px var(--brand); }
.mosaic-tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3,7,14,.94) 6%, rgba(3,7,14,.55) 48%, rgba(3,7,14,.08) 85%);
}
.mosaic-feature { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic-tile-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; width: 100%; }
.mosaic-feature .mosaic-tile-body { padding: 30px; gap: 12px; }
.mosaic-tile-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; line-height: 1.3;
  font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mosaic-tile-title:not(.sm) { font-size: clamp(22px, 2.6vw, 32px); -webkit-line-clamp: 3; }
.mosaic-tile .post-meta, .mosaic-tile .post-meta span { color: rgba(255,255,255,.72); }
.category-pill.sm { font-size: 10px; padding: 3px 8px; }

/* ==========================================================================
   7. Benefits
   ========================================================================== */
.benefits { padding: 40px 0 0; }
.benefits-home { padding: 56px 0 8px; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefits-grid.static-grid { grid-template-columns: repeat(4, 1fr); }
.benefit {
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; transition: border-color .2s ease, transform .2s ease;
}
.benefit:hover { border-color: var(--brand); transform: translateY(-3px); }
.benefit-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--link);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.benefit b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.benefit p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ==========================================================================
   8. Post grid & card
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid.blog-grid { grid-template-columns: repeat(3, 1fr); }

.post-card {
  --cat: var(--brand);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.post-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--cat), transparent);
}
.post-card:hover { box-shadow: var(--shadow-md), 0 0 30px color-mix(in srgb, var(--cat) 20%, transparent); transform: translateY(-4px); border-color: var(--cat); }
.post-image { display: block; position: relative; aspect-ratio: 4/2.7; overflow: hidden; }
.post-image::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5,10,20,.5)), linear-gradient(135deg, color-mix(in srgb, var(--cat) 16%, transparent), transparent 60%);
}
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-image img { transform: scale(1.06); }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.post-card-title { font-size: 17px; line-height: 1.35; }
.post-card-title a:hover { color: var(--link); }
.post-body > p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.post-card-foot { margin-top: 4px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--link); transition: gap .15s ease; }
.read-more:hover { gap: 10px; }

/* ==========================================================================
   9. Trending grid + feed
   ========================================================================== */
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.trend-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trend-card {
  --cat: var(--brand);
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.trend-card:hover { transform: translateY(-4px); border-color: var(--cat); box-shadow: 0 0 28px color-mix(in srgb, var(--cat) 22%, transparent); }
.trend-card-media { display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.trend-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.trend-card:hover .trend-card-media img { transform: scale(1.07); }
.trend-card-rank {
  position: absolute; top: -10px; right: 12px; z-index: 2; font-family: var(--mono); font-weight: 700; font-size: 34px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--cat); text-shadow: 0 0 18px color-mix(in srgb, var(--cat) 45%, transparent);
  background: var(--bg-2); padding: 0 6px; border-radius: 6px;
}
.trend-card-title { padding: 0 4px; font-size: 14.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trend-card:hover .trend-card-title { color: var(--cat); }
.trend-card-meta { padding: 0 4px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

.feed-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.feed-feature {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.feed-feature:hover { box-shadow: var(--shadow-md), 0 0 30px rgba(34,211,238,.14); border-color: var(--brand); transform: translateY(-3px); }
.feed-feature-media { aspect-ratio: 16/10; overflow: hidden; }
.feed-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.feed-feature:hover .feed-feature-media img { transform: scale(1.04); }
.feed-feature-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; align-items: flex-start; }
.feed-feature-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.25; }
.feed-feature:hover .feed-feature-title { color: var(--link); }
.feed-feature-excerpt { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.feed-list { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 22px; }
.feed-list::before { content: ''; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, var(--brand), var(--brand-2), transparent); opacity: .6; }
.feed-row {
  --cat: var(--brand);
  position: relative; display: flex; gap: 14px; align-items: center; padding: 14px 12px; margin-bottom: 6px;
  border-radius: var(--radius-sm); border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease;
}
.feed-row::before {
  content: ''; position: absolute; left: -22px; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cat); box-shadow: 0 0 10px color-mix(in srgb, var(--cat) 60%, transparent);
}
.feed-row:hover { background: var(--paper); border-color: var(--line); }
.feed-row-media { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.feed-row-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feed-row-cat { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--cat); text-transform: uppercase; letter-spacing: .05em; }
.feed-row-title { font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-row:hover .feed-row-title { color: var(--cat); }

/* ==========================================================================
   10. Pillars
   ========================================================================== */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pillar-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
}
.pillar-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--device), transparent); }
.pillar-card:nth-child(2)::before { background: linear-gradient(90deg, var(--software), transparent); }
.pillar-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.pillar-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #04121a;
}
.pillar-icon.device { background: var(--device); box-shadow: 0 0 20px color-mix(in srgb, var(--device) 40%, transparent); }
.pillar-icon.software { background: var(--software); box-shadow: 0 0 20px color-mix(in srgb, var(--software) 40%, transparent); }
.pillar-head h3 { font-size: 19px; margin-bottom: 4px; }
.pillar-head p { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.pillar-card > p { color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.pillar-card > p b { color: var(--ink); }
.pillar-posts { display: flex; flex-direction: column; margin-bottom: 16px; }
.pillar-post { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pillar-post:hover b { color: var(--link); }
.pillar-post b { font-size: 14px; font-weight: 700; line-height: 1.4; }
.pillar-post span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); flex-shrink: 0; }

/* ==========================================================================
   11. Services (home + full page + detail)
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.service-card::after {
  content: ''; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(34,211,238,.18), transparent 65%); opacity: 0; transition: opacity .3s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--brand); }
.service-card:hover::after { opacity: 1; }
.service-card-num { position: absolute; top: 20px; right: 24px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); opacity: .7; }
.service-card-icon, .service-card > span:first-child:not(.service-card-num) {
  width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--link);
  border: 1px solid color-mix(in srgb, var(--brand) 32%, transparent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
}
.service-card h3 { font-size: 18px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.service-card > a, .service-card-link { font-weight: 700; font-size: 13.5px; color: var(--link); display: inline-flex; align-items: center; gap: 6px; }

.service-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-summary-card {
  display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.service-summary-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--brand); }
.service-summary-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--grad-brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px; box-shadow: 0 0 22px rgba(34,211,238,.3);
}
.service-detail-tag { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--link); }
.service-summary-card h2 { font-size: 18px; }
.service-summary-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; flex: 1; }
.service-summary-link { font-weight: 700; font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.service-summary-card:hover .service-summary-link { color: var(--link); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.process-num {
  display: inline-block; font-family: var(--mono); font-size: 28px; font-weight: 700;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px;
}
.process-step b { display: block; font-size: 15px; margin-bottom: 6px; }
.process-step p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pricing-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; position: relative;
}
.pricing-card.highlight { border-color: var(--brand); box-shadow: var(--shadow-lg), 0 0 40px rgba(34,211,238,.18); transform: scale(1.03); }
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: var(--on-brand);
  font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 6px;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 6px; }
.pricing-desc { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; min-height: 40px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.pricing-price strong { font-family: 'Space Grotesk', sans-serif; font-size: 26px; }
.pricing-price span { color: var(--muted); font-size: 13px; }
.pricing-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; flex: 1; }
.pricing-card li { display: flex; gap: 8px; font-size: 13.5px; color: var(--ink); align-items: flex-start; }
.pricing-card li .mk-icon { color: var(--link); margin-top: 2px; }
.pricing-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 20px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; transition: border-color .15s ease;
}
.faq-item[open], .faq-item:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.faq-item summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; margin-right: 10px; color: var(--link); font-family: var(--mono); font-weight: 700; }
.faq-item[open] summary::before { content: '−'; }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.service-detail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.service-detail-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.service-detail-main h2 { font-size: 22px; margin: 10px 0 20px; }
.service-includes { display: flex; flex-direction: column; gap: 14px; }
.service-includes li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.service-includes .mk-icon { color: var(--link); margin-top: 3px; flex-shrink: 0; }
.service-detail-highlight {
  background: linear-gradient(150deg, var(--navy), var(--navy-2) 120%); color: var(--on-navy); border-radius: var(--radius); padding: 30px; text-align: center;
  position: sticky; top: 96px; border: 1px solid rgba(34,211,238,.3); box-shadow: 0 0 40px rgba(34,211,238,.1);
}
.service-detail-icon {
  width: 60px; height: 60px; border-radius: 14px; background: var(--grad-brand); color: var(--on-brand); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 26px rgba(34,211,238,.4);
}
.service-detail-highlight-label { font-family: var(--mono); font-size: 11.5px; color: var(--on-navy-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.service-fit { margin: 10px 0 22px; font-size: 14.5px; line-height: 1.6; color: #c4d3ee; }

/* ==========================================================================
   12. Split spotlight / banner đăng ký
   ========================================================================== */
.split-spotlight { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; margin-top: 24px; }
.split-half {
  position: relative; display: flex; align-items: flex-end; padding: 40px; background-size: cover; background-position: center;
  background-color: var(--navy-2); overflow: hidden; color: #fff; transition: filter .3s ease;
}
.split-half + .split-half { border-left: 1px solid rgba(120,170,255,.2); }
.split-half::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cat);
  box-shadow: 0 0 24px var(--cat); transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.split-half:hover::after { transform: scaleX(1); }
.split-half-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3,7,14,.92) 8%, color-mix(in srgb, var(--cat) 28%, rgba(3,7,14,.55)) 100%);
}
.split-half-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.split-half-kicker { font-family: var(--mono); font-weight: 700; font-size: 38px; color: var(--cat); line-height: 1; text-shadow: 0 0 22px var(--cat); }
.split-half-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(24px, 2.8vw, 34px); }
.split-half-desc { color: rgba(255,255,255,.82); font-size: 14.5px; margin-bottom: 6px; }
.text-link.light { color: #fff; }

.services-strip { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.services-strip-item {
  display: flex; align-items: center; gap: 18px; padding: 22px 26px; border-bottom: 1px solid var(--line);
  background: var(--paper); transition: background-color .15s ease;
}
.services-strip-item:last-child { border-bottom: 0; }
.services-strip-item:hover { background: var(--paper-2); }
.services-strip-num { font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--muted); width: 30px; flex-shrink: 0; }
.services-strip-icon {
  width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--link); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.services-strip-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.services-strip-body b { font-size: 15.5px; }
.services-strip-body span { font-size: 13.5px; color: var(--muted); }
.services-strip-arrow { color: var(--muted); flex-shrink: 0; transition: color .15s ease, transform .15s ease; }
.services-strip-item:hover .services-strip-arrow { color: var(--link); transform: translate(2px,-2px); }

.newsletter-banner { background: transparent; padding: 56px 0 24px; margin-top: 8px; }
.newsletter-banner-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px;
  background: linear-gradient(135deg, #07101f, #0b1a33); border: 1px solid rgba(34,211,238,.28); border-radius: 24px;
  overflow: hidden; position: relative; padding: 0 !important; width: calc(100% - 40px); box-shadow: var(--shadow-lg), 0 0 60px rgba(34,211,238,.1);
}
.newsletter-banner-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 12% 20%, rgba(34,211,238,.2), transparent 45%);
}
.newsletter-banner-text { position: relative; z-index: 1; padding: 48px 10px 48px 48px; display: flex; flex-direction: column; gap: 14px; }
.newsletter-banner-text h2 { color: var(--on-navy); font-size: clamp(26px, 3.2vw, 36px); }
.newsletter-banner-text h2 span { background: var(--grad-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.newsletter-banner-text > p { color: var(--on-navy-muted); font-size: 14.5px; max-width: 440px; }
.newsletter-banner-form { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.newsletter-banner-form input {
  flex: 1; min-width: 220px; padding: 13px 18px; border-radius: 10px; border: 1px solid rgba(120,170,255,.25);
  background: rgba(255,255,255,.05); color: #fff; outline: none; transition: border-color .15s ease;
}
.newsletter-banner-form input:focus { border-color: var(--brand); }
.newsletter-banner-form input::placeholder { color: var(--on-navy-muted); }
.newsletter-banner-stats { display: flex; gap: 28px; margin-top: 10px; flex-wrap: wrap; }
.newsletter-banner-stats strong {
  display: block; font-family: 'Space Grotesk', sans-serif; font-size: 22px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.newsletter-banner-stats span { color: var(--on-navy-muted); font-size: 12px; }
.newsletter-banner-media { position: relative; z-index: 1; align-self: stretch; background-size: cover; background-position: center; min-height: 320px; }

/* ==========================================================================
   13. Page hero / hub hero
   ========================================================================== */
.page-hero { position: relative; padding: 60px 0 46px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 12px; }
.page-hero p { color: var(--muted); font-size: 15.5px; max-width: 640px; line-height: 1.6; }
.page-hero.gradient {
  background: linear-gradient(135deg, var(--navy), #0a1830); color: var(--on-navy);
  border-bottom: 1px solid rgba(120,170,255,.14);
  background-image: radial-gradient(circle at 85% 20%, rgba(34,211,238,.16), transparent 45%), linear-gradient(135deg, var(--navy), #0a1830);
}
.page-hero.gradient h1 { color: var(--on-navy); }
.page-hero.gradient p { color: var(--on-navy-muted); }
.page-hero.device .kicker { color: var(--device); }
.page-hero.software .kicker { color: var(--software); }

.hub-hero { padding: 64px 0; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--device) 45%, #050a14), #050a14 75%); border-bottom: 1px solid rgba(120,170,255,.14); }
.hub-hero.software { background: linear-gradient(135deg, color-mix(in srgb, var(--software) 40%, #050a14), #050a14 75%); }
.hub-hero-content h1 { color: #fff; font-size: clamp(30px, 4.4vw, 46px); margin: 8px 0 12px; }
.hub-hero-content p { color: rgba(255,255,255,.85); max-width: 620px; font-size: 15.5px; }

.hub-subcats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.hub-subcat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px;
  display: flex; flex-direction: column; gap: 6px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.hub-subcat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--brand); }
.hub-subcat b { font-size: 15px; }
.hub-subcat span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.hub-subcat.device b { color: var(--device); }
.hub-subcat.software b { color: var(--software); }
:root[data-theme="light"] .hub-subcat.device b, :root[data-theme="light"] .hub-subcat.software b { filter: brightness(.6); }

.hub-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hub-feature-image { position: relative; display: block; aspect-ratio: 4/3; }
.hub-feature-image img { width: 100%; height: 100%; object-fit: cover; }
.hub-feature-image .category-pill { position: absolute; top: 14px; left: 14px; }
.hub-feature-body { padding: 26px 28px 26px 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hub-feature-label { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--link); }
.hub-feature-body h2 { font-size: clamp(19px, 2.4vw, 25px); }
.hub-feature-body h2 a:hover { color: var(--link); }
.hub-feature-body > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.hub-feature-body .btn { align-self: flex-start; margin-top: 6px; }

/* ==========================================================================
   14. Blog listing
   ========================================================================== */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.blog-toolbar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.sort-tabs { display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); padding: 4px; border-radius: 10px; }
.sort-tabs a { padding: 7px 16px; border-radius: 7px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.sort-tabs a.active { background: var(--grad-brand); color: var(--on-brand); }

.filter-groups { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.pill {
  display: inline-flex; padding: 7px 14px; border-radius: 8px; background: var(--paper); font-size: 13px;
  font-weight: 600; color: var(--ink); border: 1px solid var(--line); transition: all .15s ease;
}
.pill:hover { border-color: var(--brand); color: var(--link); }
.pill.active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 10px 6px 0; border-right: 1px solid var(--line); margin-right: 4px; }
.filter-group:last-child { border-right: 0; }
.filter-group-label { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-group-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group.device .pill.active { background: var(--device); border-color: var(--device); color: #04121a; }
.filter-group.software .pill.active { background: var(--software); border-color: var(--software); color: #04121a; }

.search-result-info { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state p { color: var(--muted); margin-bottom: 16px; }

.blog-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.sidebar-search { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 14px; }
.sidebar-search-icon { color: var(--muted); }
.sidebar-search input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; color: var(--ink); }
.sidebar-search button { width: 34px; height: 34px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--link); }

.recent-list { display: flex; flex-direction: column; gap: 4px; }
.recent-item { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border-bottom: 0; }
.recent-thumb { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-text b { display: block; font-size: 13.5px; line-height: 1.4; }
.recent-item:hover b { color: var(--link); }
.recent-text small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }

.category-group { margin-bottom: 16px; }
.category-group:last-child { margin-bottom: 0; }
.category-group-label { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.category-group.device .category-group-label { color: var(--device); }
.category-group.software .category-group-label { color: var(--software); }
:root[data-theme="light"] .category-group.device .category-group-label, :root[data-theme="light"] .category-group.software .category-group-label { filter: brightness(.6); }
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-list a {
  display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 13.5px;
  font-weight: 600; color: var(--ink);
}
.category-list a:hover, .category-list a.active { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--link); }
.category-list a span { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.banner-ad { display: block; }
.banner-eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.banner-ad b { display: block; font-size: 15px; margin: 8px 0 6px; }
.banner-ad p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.banner-cta { font-size: 13px; font-weight: 700; color: var(--link); }

/* ==========================================================================
   15. Article / single post
   ========================================================================== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; padding: 40px 0 0; }
.article-wrap { min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { font-weight: 500; }
.breadcrumb a:hover { color: var(--link); }
.breadcrumb span:last-child { color: var(--ink); }

.article-head { margin-bottom: 22px; display: flex; flex-direction: column; gap: 14px; }
.article-head h1 { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.15; }
.article-head > p { color: var(--muted); font-size: 16px; line-height: 1.55; }

.article-cover { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/9; border: 1px solid var(--line); box-shadow: 0 0 50px rgba(34,211,238,.08); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-content { font-size: 17px; line-height: 1.85; color: var(--ink); }
.article-content p { margin-bottom: 20px; }
.article-content h2 { font-size: 26px; margin: 40px 0 16px; padding-left: 14px; border-left: 3px solid var(--brand); }
.article-content h3 { font-size: 20px; margin: 30px 0 12px; }
.article-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.article-content ul { margin-bottom: 20px; padding-left: 4px; }
.article-content li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.article-content li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.article-content blockquote {
  border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--paper)); padding: 16px 22px; border-radius: 0 12px 12px 0;
  margin: 26px 0; color: var(--ink); font-size: 16px;
}
.article-content blockquote p { margin: 0; }
.article-content code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line); }
.article-content pre { font-family: var(--mono); background: #060c18; color: #d5e6ff; padding: 18px 20px; border-radius: 12px; overflow-x: auto; border: 1px solid var(--line); line-height: 1.6; font-size: 14px; }

.author-bio {
  display: flex; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 36px 0;
}
.author-bio img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex-shrink: 0; border: 2px solid var(--brand); }
.author-bio-label { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.author-bio b { display: block; font-size: 15.5px; margin: 2px 0; }
.author-bio-role { font-size: 12.5px; color: var(--link); font-weight: 700; }
.author-bio p { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.post-nav-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s ease, box-shadow .15s ease;
}
.post-nav-item:hover { border-color: var(--brand); box-shadow: var(--glow); }
.post-nav-item.next { text-align: right; align-items: flex-end; }
.post-nav-label { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.post-nav-item b { font-size: 14px; }

.related-posts { margin: 40px 0; }

.article-cta {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, #07101f, #0b1a33); color: var(--on-navy); border-radius: var(--radius);
  border: 1px solid rgba(34,211,238,.28); padding: 34px; margin-top: 20px; box-shadow: 0 0 40px rgba(34,211,238,.08);
}
.article-cta h3 { color: var(--on-navy); font-size: 21px; margin-bottom: 8px; }
.article-cta p { color: var(--on-navy-muted); font-size: 14px; max-width: 480px; }

/* ==========================================================================
   16. About page
   ========================================================================== */
.timeline { display: flex; flex-direction: column; gap: 4px; max-width: 760px; margin: 0 auto; }
.timeline-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-year { font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--link); }
.timeline-item p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.team-card { text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px; transition: border-color .2s ease, transform .2s ease; }
.team-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.team-card img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; margin: 0 auto 12px; border: 2px solid var(--line); }
.team-card b { display: block; font-size: 14px; }
.team-card span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   17. Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
.prose-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.prose-card h2 { font-size: 20px; margin-bottom: 18px; }
.prose-card p { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-bottom: 14px; color: var(--ink); }
.prose-card p .mk-icon { color: var(--link); margin-top: 3px; }
.contact-socials { margin-top: 18px; }
.contact-socials a { background: var(--bg-2); color: var(--ink); }
.contact-socials a:hover { background: var(--grad-brand); color: var(--on-brand); }

.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
.contact-form input, .contact-form textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); outline: none; font-weight: 400;
  background: var(--bg-2); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); box-shadow: var(--glow); }
.contact-form .btn { align-self: flex-start; }
.form-notice { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.form-notice.success { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
:root[data-theme="light"] .form-notice.success { color: #3f6212; }
.form-notice.error { background: color-mix(in srgb, #ef4444 16%, transparent); color: #f87171; border: 1px solid color-mix(in srgb, #ef4444 35%, transparent); }

/* ==========================================================================
   18. 404
   ========================================================================== */
.notfound { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.notfound span {
  display: block; font-family: var(--mono); font-weight: 700; font-size: clamp(80px, 16vw, 160px);
  line-height: 1; background: var(--grad-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(34,211,238,.35));
}
.notfound h1 { font-size: 24px; margin: 10px 0 10px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }

/* ==========================================================================
   19. Responsive & motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .hero-dot, .rv.in, html.js body { animation: none; }
  .reveal, html.js .rv:not(.in) { opacity: 1; transform: none; translate: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1380px) {
  .brand small { display: none; }
}

@media (max-width: 1080px) {
  .blog-layout, .article-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; order: -1; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .hub-subcats { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail-highlight { position: static; }
  .trend-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-layout { grid-template-columns: 1fr; }
  .newsletter-banner-inner { grid-template-columns: 1fr; }
  .newsletter-banner-media { min-height: 220px; order: -1; }
  .newsletter-banner-text { padding: 32px; }
  .nav-cta { display: none; }
}

@media (max-width: 860px) {
  .benefits-grid, .benefits-grid.static-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid, .post-grid.blog-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid, .service-grid, .service-summary-grid, .process-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pricing-card.highlight { transform: none; }
  .hero-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: 220px repeat(2, 150px); }
  .mosaic-feature { grid-column: 1 / 3; grid-row: 1 / 2; }
  .split-spotlight { grid-template-columns: 1fr; }
  .split-half + .split-half { border-left: 0; border-top: 1px solid rgba(120,170,255,.2); }
}

@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .hero { padding: 44px 0 40px; }
  .hero-bg::before { background-position: 62% 30%; }
  .nav-links {
    position: fixed; inset: 72px 0 0 0; background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 18px; gap: 4px; overflow-y: auto; transform: translateX(100%); transition: transform .2s ease;
    z-index: 55;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a, .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: 0; padding-left: 14px; }
  .nav-mega-menu { position: static; transform: none; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: 0; background: none; padding: 6px 0 6px 14px; }
  .nav-mega-col-title { padding-left: 0; }
  .mobile-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(120,170,255,.2); border-radius: 10px; padding: 4px 4px 4px 16px; margin-bottom: 10px; }
  .mobile-search input { flex: 1; border: 0; background: none; outline: none; color: var(--on-navy); }
  .mobile-search button { width: 34px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); border: 0; color: var(--brand); }
  .header-search-bar { display: none; }
  .menu-btn { display: inline-flex; }
  .brand small { display: none; }
  .nav-actions .btn-primary { display: none; }

  .hero-search { flex-wrap: wrap; padding: 10px; }
  .hero-search input { min-width: 60%; }
  .hero-stats { gap: 24px; }
  .trend-grid { grid-template-columns: 1fr; }
  .benefits-grid, .benefits-grid.static-grid { grid-template-columns: 1fr; }
  .post-grid, .post-grid.blog-grid { grid-template-columns: 1fr; }
  .pillar-grid, .service-grid, .service-summary-grid, .process-grid, .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-subcats { grid-template-columns: 1fr; }
  .hub-feature { grid-template-columns: 1fr; }
  .hub-feature-body { padding: 0 22px 24px; }
  .post-nav { grid-template-columns: 1fr; }
  .article-cta { flex-direction: column; align-items: flex-start; }
  .split-half { padding: 28px; }

  .hero-mosaic { grid-template-columns: 1fr; grid-template-rows: 240px repeat(4, 160px); gap: 10px; }
  .mosaic-feature { grid-column: 1; grid-row: 1; }
  .services-strip-item { padding: 16px; gap: 12px; }
  .services-strip-num { display: none; }
  .newsletter-banner-form { flex-direction: column; }
  .newsletter-banner-form input { min-width: 0; }
}
