/* ── VigilDigital Design System ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

:root {
  --bg:           #090d1a;
  --bg-card:      #07091c;
  --bg-surface:   #0d1030;
  --accent:       #5b72f7;
  --accent-teal:  #10d4a0;
  --text:         #ffffff;
  --text-muted:   rgba(255,255,255,0.55);
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(91,114,247,0.4);
  --nav-height:   72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(91,114,247,0.35); border-radius: 3px; }

/* ── Navigation ──────────────────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
}
#main-nav.sc {
  background: rgba(9,13,26,0.90);
  backdrop-filter: blur(28px) saturate(1.8); -webkit-backdrop-filter: blur(28px) saturate(1.8);
  border-bottom: 1px solid rgba(91,114,247,0.10);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-text {
  font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: #fff;
}
.nav-logo-text span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  text-decoration: none; color: rgba(255,255,255,0.65);
  position: relative; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link.active { font-weight: 700; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  border-radius: 2px;
}

/* WA button nav */
.btn-nav-glass {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); text-decoration: none; border-radius: 999px; padding: 9px 20px;
  position: relative; overflow: hidden;
  background: rgba(91,114,247,0.08);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.20), 0 2px 14px rgba(91,114,247,0.12);
  transition: background 0.22s, box-shadow 0.22s;
}
.btn-nav-glass::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: 999px;
  background: linear-gradient(150deg, rgba(255,255,255,0.28) 0%, rgba(91,114,247,0.50) 30%, rgba(255,255,255,0.04) 65%, rgba(16,212,160,0.10) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.btn-nav-glass:hover { background: rgba(91,114,247,0.15); box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.24), 0 4px 22px rgba(91,114,247,0.22); }

/* Hamburger */
#menu-btn {
  background: none; border: none; color: #fff; cursor: pointer; padding: 8px;
  display: none;
}
@media (max-width: 767px) {
  #main-nav { padding: 14px 20px; background: rgba(9,13,26,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(91,114,247,0.10); }
  #main-nav.sc { background: rgba(9,13,26,0.95); }
  .nav-links { display: none !important; }
  #menu-btn { display: flex !important; align-items: center; justify-content: center; }
}
@media (min-width: 768px) { #menu-btn { display: none; } }

/* Mobile menu */
#mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(9,13,26,0.97); backdrop-filter: blur(28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
#mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
#close-menu-btn { position: absolute; top: 24px; right: 24px; background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.mobile-link {
  font-size: 26px; font-weight: 700; color: rgba(255,255,255,0.7);
  text-decoration: none; letter-spacing: 0.04em; transition: color 0.2s;
}
.mobile-link:hover, .mobile-link.active { color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-glass {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; text-decoration: none; border-radius: 999px; padding: 14px 32px;
  position: relative; overflow: hidden;
  background: rgba(91,114,247,0.12);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.22), 0 4px 24px rgba(91,114,247,0.18);
  transition: background 0.22s, box-shadow 0.22s; border: none; cursor: pointer;
}
.btn-glass::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: 999px;
  background: linear-gradient(150deg, rgba(255,255,255,0.28) 0%, rgba(91,114,247,0.55) 30%, rgba(255,255,255,0.04) 65%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.btn-glass:hover { background: rgba(91,114,247,0.20); box-shadow: inset 0 1.5px 1px rgba(255,255,255,0.28), 0 6px 32px rgba(91,114,247,0.28); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--text-muted); text-decoration: none; border-radius: 999px; padding: 11px 22px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: color 0.2s, background 0.2s, border-color 0.2s; cursor: pointer;
}
.btn-ghost:hover { color: var(--accent); background: rgba(91,114,247,0.08); border-color: rgba(91,114,247,0.40); }

/* ── Glass card ──────────────────────────────────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(91,114,247,0.14);
  transform: translateY(-4px);
}

/* ── Section helpers ─────────────────────────────────────────────────────── */
.page-wrap { padding-top: var(--nav-height); min-height: 100vh; }
.container  { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.sect-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.sect-title {
  font-size: clamp(28px, 3.5vw, 52px); font-weight: 900; line-height: 1.05;
  letter-spacing: -0.035em; color: #fff;
}
.sect-sub {
  font-size: 15px; color: var(--text-muted); line-height: 1.75;
  max-width: 540px; margin-top: 14px;
}
.gtext {
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Blog post card ──────────────────────────────────────────────────────── */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.post-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(91,114,247,0.16);
  transform: translateY(-6px);
}
.post-card-cover {
  aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, #0d1030 0%, #1a1f4e 100%);
  position: relative;
}
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.post-card:hover .post-card-cover img { transform: scale(1.05); }
.post-card-cover-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.post-card-cover-placeholder svg { opacity: 0.15; }
.post-card-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.post-category {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(91,114,247,0.10); border-radius: 999px;
  padding: 4px 12px; margin-bottom: 14px; border: 1px solid rgba(91,114,247,0.20);
}
.post-card-title {
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25;
  color: #fff; margin-bottom: 10px;
}
.post-card-excerpt {
  font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1;
}
.post-card-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
  font-size: 12px; color: rgba(255,255,255,0.35);
}
.post-card-meta svg { flex-shrink: 0; }
.post-read-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent); text-decoration: none; transition: gap 0.2s;
}
.post-read-link:hover { gap: 10px; }

/* ── Blog post content (typography) ─────────────────────────────────────── */
.post-content {
  font-size: 17px; line-height: 1.85; color: rgba(255,255,255,0.82);
  max-width: 720px; margin: 0 auto;
}
.post-content h1, .post-content h2, .post-content h3 {
  color: #fff; font-weight: 800; letter-spacing: -0.025em; margin: 2em 0 0.6em;
  line-height: 1.2;
}
.post-content h1 { font-size: 2em; }
.post-content h2 { font-size: 1.45em; }
.post-content h3 { font-size: 1.15em; }
.post-content p { margin-bottom: 1.4em; }
.post-content strong { color: #fff; font-weight: 700; }
.post-content em { color: rgba(255,255,255,0.9); }
.post-content ul, .post-content ol { margin: 0 0 1.4em 1.5em; }
.post-content li { margin-bottom: 0.4em; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  border-left: 3px solid var(--accent); padding: 12px 0 12px 24px;
  margin: 1.5em 0; color: rgba(255,255,255,0.6); font-style: italic;
}
.post-content code {
  background: rgba(91,114,247,0.12); border: 1px solid rgba(91,114,247,0.2);
  border-radius: 6px; padding: 2px 7px; font-size: 0.88em; font-family: 'JetBrains Mono', monospace;
}
.post-content pre {
  background: #060818; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 24px; overflow-x: auto; margin: 1.5em 0;
}
.post-content pre code { background: none; border: none; padding: 0; font-size: 0.9em; }
.post-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 2.5em 0; }
.post-content img { max-width: 100%; border-radius: 16px; margin: 1.5em 0; display: block; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }

@media (max-width: 767px) {
  .container { padding: 0 20px; }
  #main-nav  { padding: 14px 20px; }
}

/* ── Fade-in animation ───────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.2s; }
.fade-up.d3 { animation-delay: 0.3s; }

/* ── Scroll progress bar ─────────────────────────────────────────────────── */
#scroll-bar {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 1000;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  width: 0%; transition: width 0.08s linear;
}
