/* Elite Digital Essentials — shared design system (blog + future pages).
   Mirrors the homepage tokens. Dark, red accent, Inter, sharp/technical. */
:root {
  --bg: #0A0A0F;
  --bg-2: #0D0E14;
  --panel: rgba(255,255,255,0.025);
  --panel-2: rgba(255,255,255,0.04);
  --line: rgba(255,255,255,0.08);
  --line-soft: rgba(255,255,255,0.05);
  --ink: #F4F4F6;
  --ink-soft: #A0A0AB;
  --ink-dim: #6B6B78;
  --red: #FF3B47;
  --red-bright: #FF5A64;
  --red-deep: #E11D2E;
  --radius: 18px;
  --maxw: 1140px;
  --readw: 720px;
  --ease: cubic-bezier(.16,1,.3,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  opacity: .5;
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-size: 16.5px; }
.brand .mark { width: 32px; height: 32px; flex: none; border-radius: 9px; box-shadow: 0 4px 14px rgba(225,29,46,.32); }
.brand .mark svg { display: block; width: 100%; height: 100%; }
.brand .sub { color: var(--ink-dim); font-weight: 500; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.nav-cta) { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
  color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 20px rgba(225,29,46,.28), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(225,29,46,.42), inset 0 1px 0 rgba(255,255,255,.22); }
@media (max-width: 700px) { .nav-links a:not(.nav-cta) { display: none; } .brand .sub { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red-deep)); color: #fff;
  box-shadow: 0 10px 30px rgba(225,29,46,.36), inset 0 1px 0 rgba(255,255,255,.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(225,29,46,.5), inset 0 1px 0 rgba(255,255,255,.24); }
.btn-ghost { color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); transform: translateY(-2px); }

/* ---------- Blog index ---------- */
main { position: relative; z-index: 1; }
.blog-hero { padding: 86px 0 26px; text-align: center; }
.blog-hero .tag { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.05; font-weight: 800; margin: 14px auto 16px; max-width: 18ch; }
.blog-hero p { color: var(--ink-soft); font-size: 1.12rem; max-width: 56ch; margin: 0 auto; }

.pillars { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 8px; }
.pillars button, .pillars .chip {
  font: inherit; font-size: 13px; font-weight: 600; cursor: default;
  color: var(--ink-soft); background: var(--panel-2); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px;
}

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding: 40px 0 96px; }
@media (max-width: 820px) { .post-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,59,71,.34); background: var(--panel-2); }
.card .pillar { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.card h2 { font-size: 1.32rem; line-height: 1.18; letter-spacing: -.018em; font-weight: 700; margin-bottom: 10px; }
.card .card-dek { color: var(--ink-soft); font-size: .99rem; flex: 1; }
.card .card-meta { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--ink-dim); display: flex; gap: 14px; }
.card .card-link { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--red-bright); display: inline-flex; align-items: center; gap: 7px; }
.card .card-link svg { width: 15px; height: 15px; }
.card.upcoming { opacity: .62; }
.card.upcoming .pillar { color: var(--ink-dim); }

/* ---------- Article ---------- */
.article-wrap { max-width: var(--readw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.article-head { padding: 70px 0 34px; }
.crumb { font-size: 13px; color: var(--ink-dim); margin-bottom: 22px; }
.crumb a { color: var(--ink-soft); } .crumb a:hover { color: var(--ink); }
.article-head .pillar { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 14px 0 18px; }
.article-head .dek { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.5; }
.article-head .byline { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--ink-dim); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.article-head .byline .ai-label { color: var(--ink-soft); }

.prose { padding: 8px 0 80px; font-size: 1.075rem; color: #D7D7DE; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.2; font-weight: 800; color: var(--ink); margin-top: 2.2em; }
.prose h3 { font-size: 1.22rem; letter-spacing: -.012em; font-weight: 700; color: var(--ink); margin-top: 1.8em; }
.prose p { line-height: 1.72; }
.prose a { color: var(--red-bright); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255,90,100,.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--red-bright); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .5em; }
.prose li { line-height: 1.65; }
.prose li::marker { color: var(--red); }
.prose blockquote {
  border-left: 3px solid var(--red); padding: 4px 0 4px 20px; color: var(--ink-soft);
  font-style: normal;
}
.prose code {
  font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.06);
  border: 1px solid var(--line-soft); border-radius: 6px; padding: 1.5px 6px; color: #FFB3B8;
}
.prose pre {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px; overflow-x: auto; font-size: .9rem; line-height: 1.6;
}
.prose pre code { background: none; border: 0; padding: 0; color: #C9D1D9; font-size: inherit; }

.article-foot { border-top: 1px solid var(--line-soft); padding: 36px 0 0; margin-top: 8px; }
.article-cta {
  text-align: center; border: 1px solid rgba(255,59,71,.28); border-radius: 22px; padding: 44px 28px;
  margin: 8px 0 90px;
  background: radial-gradient(560px 280px at 50% -30%, rgba(255,59,71,.16), transparent 65%), linear-gradient(180deg, var(--bg-2), #08080C);
}
.article-cta h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.article-cta p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 22px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line-soft); padding: 56px 0 44px; position: relative; z-index: 1; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 36px; }
.foot-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 700; }
.foot-brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.foot-brand .mark svg { width: 100%; height: 100%; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-links a { color: var(--ink-soft); font-size: 14px; transition: color .2s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-bottom { font-size: 13px; line-height: 1.7; color: var(--ink-dim); border-top: 1px solid var(--line-soft); padding-top: 26px; }
.foot-bottom .parent { color: var(--ink-soft); }
