/*
Theme Name: FesAd2 — ขายเฟสยิงแอด
Theme URI: https://เฟสยิงแอด.com
Description: Custom theme สำหรับเว็บขายบัญชี Facebook โฆษณา เน้นความเร็วและ SEO
Author: 55
Version: 2.0.0
Text Domain: fesad2
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
*/

/* ───────────────────────────────────────────────
   DESIGN TOKENS
─────────────────────────────────────────────── */
:root {
  --bg:          #050812;
  --bg-2:        #090d1a;
  --bg-3:        #0d1424;
  --surface:     #111928;
  --border:      rgba(255,255,255,.06);
  --border-mid:  rgba(255,255,255,.1);

  --text:        #e8eeff;
  --text-2:      #7a8baa;
  --text-3:      #3d4f6e;

  /* Futuristic palette */
  --cyan:        #00e5ff;
  --cyan-dim:    rgba(0,229,255,.1);
  --cyan-glow:   0 0 28px rgba(0,229,255,.22);
  --purple:      #a855f7;
  --purple-dim:  rgba(168,85,247,.1);
  --purple-glow: 0 0 28px rgba(168,85,247,.22);

  /* Aliases so existing CSS auto-updates */
  --green:       #00e5ff;
  --green-dim:   rgba(0,229,255,.1);
  --green-glow:  0 0 28px rgba(0,229,255,.22);
  --blue:        #a855f7;
  --amber:       #fbbf24;
  --red:         #ef4444;
  --line:        #06c755;

  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:   12px;

  --max-w:       1200px;
  --gap:         1.5rem;

  --font:        "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --mono:        "JetBrains Mono", ui-monospace, monospace;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.5), 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 4px 20px rgba(0,0,0,.7);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.8);
}

/* ───────────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 40% at 100% 0%, rgba(168,85,247,.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 30% at 0% 100%, rgba(0,229,255,.03) 0%, transparent 60%);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; }

/* ───────────────────────────────────────────────
   LAYOUT UTILITIES
─────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.section { padding-block: 4.5rem; }
.section-sm { padding-block: 2.5rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }

.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;
}

/* ───────────────────────────────────────────────
   BUTTONS
─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 0 24px rgba(168,85,247,.4);
}
.btn-primary:hover { opacity: 1; box-shadow: 0 0 40px rgba(168,85,247,.6); }
.btn-line {
  background: var(--line);
  color: #fff;
  box-shadow: 0 0 20px rgba(6,199,85,.25);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-mid);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: .8125rem 1.75rem; font-size: 1rem; border-radius: var(--radius-sm); }
.btn-sm { padding: .4rem .875rem; font-size: .8125rem; }

/* ───────────────────────────────────────────────
   HEADER
─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,8,18,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,229,255,.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}
.brand-name {
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  max-width: 220px;
  line-height: 1.25;
}
.brand-logo { flex-shrink: 0; }

.nav-links { margin-left: auto; }
.nav-menu {
  display: flex;
  gap: .25rem;
}
.nav-menu a {
  display: block;
  padding: .4375rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-3);
}

.nav-cta { margin-left: .5rem; }

/* Mobile nav toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  color: var(--text-2);
  margin-left: auto;
}

/* ───────────────────────────────────────────────
   HERO
─────────────────────────────────────────────── */
.hero {
  padding-block: 5rem 4rem;
  overflow: hidden;
  position: relative;
}
/* Cyber grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 50%, black 20%, transparent 78%);
  pointer-events: none;
}
/* Glow blobs */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 78% 50%, rgba(168,85,247,.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 15% 35%, rgba(0,229,255,.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { max-width: 580px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .65rem;
  border-radius: 4px;
  font-size: .78rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: .02em;
  background: rgba(0,229,255,.05);
  border: 1px solid rgba(0,229,255,.15);
  color: var(--text-2);
}
.badge-green {
  background: rgba(168,85,247,.1);
  border-color: rgba(168,85,247,.3);
  color: #c084fc;
}
.badge-blue {
  background: rgba(0,229,255,.08);
  border-color: rgba(0,229,255,.25);
  color: var(--cyan);
}

.hero-title {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, #00e5ff 0%, #c084fc 60%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lede {
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 2rem;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .9375rem;
  color: var(--text-2);
}
.check-ic { color: var(--cyan); flex-shrink: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* Hero Mock — holographic terminal */
.hero-image-wrap { position: relative; }

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 40px rgba(0,229,255,.07), 0 20px 60px rgba(0,0,0,.8); }
  50%      { box-shadow: 0 0 70px rgba(0,229,255,.14), 0 20px 60px rgba(0,0,0,.8); }
}
.hero-mock {
  background: linear-gradient(160deg, rgba(9,13,26,.97) 0%, rgba(5,8,18,.99) 100%);
  border: 1px solid rgba(0,229,255,.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  animation: pulse-glow 4s ease-in-out infinite;
}
/* Top edge glow line */
.hero-mock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,.6) 50%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}
/* Scanlines */
.hero-mock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,.025) 3px, rgba(0,0,0,.025) 4px
  );
  pointer-events: none;
  z-index: 5;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1rem;
  background: rgba(0,229,255,.04);
  border-bottom: 1px solid rgba(0,229,255,.12);
  font-size: .75rem;
  color: rgba(0,229,255,.55);
  font-family: var(--mono);
  letter-spacing: .03em;
}
.mock-bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.mock-bar i:nth-child(1) { background: rgba(239,68,68,.6); }
.mock-bar i:nth-child(2) { background: rgba(251,191,36,.5); }
.mock-bar i:nth-child(3) { background: rgba(0,229,255,.5); }
.mock-body { padding: 1.125rem; position: relative; z-index: 2; }
.mock-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  color: var(--cyan);
  font-family: var(--mono);
  letter-spacing: .03em;
  margin-bottom: 1rem;
}
.dot-green {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,229,255,.9);
  animation: pulse-dot 2s infinite;
}
.dot-blue {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(168,85,247,.7);
}
@keyframes pulse-dot {
  0%,100% { opacity:1; box-shadow: 0 0 8px rgba(0,229,255,.9); }
  50% { opacity:.45; box-shadow: 0 0 3px rgba(0,229,255,.3); }
}
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .5rem;
  background: rgba(0,229,255,.03);
  border: 1px solid rgba(0,229,255,.08);
  border-radius: 6px;
  padding: .75rem;
  margin-bottom: .75rem;
}
.mock-kpis small {
  display: block;
  font-size: .65rem;
  color: rgba(0,229,255,.45);
  font-family: var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.mock-kpis b { font-size: 1.05rem; font-weight: 700; font-family: var(--mono); }
.mock-kpis b.up {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,229,255,.4);
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 52px;
  margin-bottom: .75rem;
}
.mock-chart span {
  flex: 1;
  background: linear-gradient(to top, rgba(0,229,255,.5), rgba(168,85,247,.2));
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}
.mock-chart span:last-child {
  background: linear-gradient(to top, #00e5ff, rgba(0,229,255,.35));
  box-shadow: 0 -4px 12px rgba(0,229,255,.5);
}

.mock-rows { display: flex; flex-direction: column; gap: .375rem; }
.mock-rows > div {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .73rem;
  color: var(--text-2);
  padding: .35rem .6rem;
  background: rgba(0,229,255,.03);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 4px;
  font-family: var(--mono);
}
.mock-rows em {
  font-style: normal;
  margin-left: auto;
  font-size: .68rem;
  color: var(--cyan);
  background: rgba(0,229,255,.1);
  border: 1px solid rgba(0,229,255,.2);
  padding: .1rem .4rem;
  border-radius: 3px;
  font-family: var(--mono);
  letter-spacing: .03em;
}

.hero-stats {
  display: flex;
  gap: .625rem;
  margin-top: .875rem;
}
.stat-item {
  flex: 1;
  text-align: center;
  background: rgba(0,229,255,.04);
  border: 1px solid rgba(0,229,255,.12);
  border-radius: var(--radius);
  padding: .75rem .5rem;
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.4), transparent);
}
.stat-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--cyan);
  font-family: var(--mono);
  text-shadow: 0 0 12px rgba(0,229,255,.4);
}
.stat-label {
  font-size: .68rem;
  color: rgba(0,229,255,.5);
  margin-top: .15rem;
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ───────────────────────────────────────────────
   TRUST BAR
─────────────────────────────────────────────── */
.trust-bar {
  background: var(--bg-2);
  border-block: 1px solid var(--border);
  padding-block: .875rem;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-2);
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* ───────────────────────────────────────────────
   SECTION HEADERS
─────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 2.75rem; }
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .625rem;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section-head .lede { max-width: 540px; margin-inline: auto; }

/* ───────────────────────────────────────────────
   PRODUCT CARDS
─────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.products-grid .pcard-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.pcard {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
}
.pcard:hover {
  border-color: rgba(0,229,255,.25);
  box-shadow: 0 0 32px rgba(0,229,255,.07), 0 8px 32px rgba(0,0,0,.5);
  transform: translateY(-3px);
}
.pcard-top {
  border-color: rgba(0,229,255,.3);
  box-shadow: 0 0 0 1px rgba(0,229,255,.08) inset, var(--cyan-glow);
}
.pcard-hot { border-color: rgba(239,68,68,.3); }
.pcard-hot::before {
  content: '🔥 ขายดี';
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  z-index: 2;
}

.pcard-crown {
  position: absolute;
  top: .75rem; left: .75rem;
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  z-index: 2;
}
.pcard-crown-top { background: #f59e0b; color: #000; }

.pcard-media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.pcard:hover .pcard-media img { transform: scale(1.03); }
.pcard-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,.7) 0%, transparent 60%);
}
.pcard-save-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: var(--green);
  color: #000;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
  z-index: 2;
}

.pcard-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pcard-top-tag {
  font-size: .75rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: .5rem;
}
.pcard-name {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .875rem;
}
.pcard-name a { color: var(--text); }
.pcard-name a:hover { color: var(--green); }

.pcard-pricing { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1rem; }
.pcard-price { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.pcard-price span { letter-spacing: -.02em; }
.pcard-price-old { font-size: .9rem; color: var(--text-3); text-decoration: line-through; }

.pcard-features {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.25rem;
  flex: 1;
}
.pcard-features li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-2);
}
.pcard-features li svg { color: var(--green); flex-shrink: 0; }

.pcard-actions { display: flex; flex-direction: column; gap: .625rem; }
.pcard-buy { justify-content: center; }
.pcard-detail-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .875rem;
  color: var(--text-3);
  padding: .4rem;
  border-radius: var(--radius-sm);
  transition: color .15s;
}
.pcard-detail-link:hover { color: var(--text); }

/* ───────────────────────────────────────────────
   FAQ SECTION
─────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  padding: 1.125rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: color .15s;
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: transform .2s, background .2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--green-dim); color: var(--green); }
.faq-a {
  padding-bottom: 1.125rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ───────────────────────────────────────────────
   BLOG GRID
─────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25rem;
}
.post-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: rgba(0,229,255,.2); box-shadow: 0 0 24px rgba(0,229,255,.05); transform: translateY(-2px); }

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(0,229,255,.07) 100%);
  color: var(--text-3);
  font-size: 2.5rem;
}

.post-card-body { padding: 1.125rem; display: flex; flex-direction: column; flex: 1; }

.post-cat {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.post-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .625rem;
  flex: 1;
}
.post-title a { color: var(--text); }
.post-title a:hover { color: var(--green); }
.post-excerpt {
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: .875rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-size: .78rem;
  color: var(--text-3);
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.post-read-more {
  margin-left: auto;
  color: var(--blue);
  font-weight: 600;
  font-size: .78rem;
}
.post-read-more:hover { color: var(--green); }

/* ───────────────────────────────────────────────
   SINGLE ARTICLE
─────────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  padding-block: 2.5rem;
}
.article-main {}

.article-header { margin-bottom: 2rem; }
.article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .875rem;
}
.article-cat-badge {
  font-size: .73rem;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0,229,255,.08);
  border: 1px solid rgba(0,229,255,.2);
  padding: .2rem .6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-family: var(--mono);
}
.article-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: .875rem;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
  color: var(--text-3);
}
.article-byline-sep { width: 3px; height: 3px; background: currentColor; border-radius: 50%; }

.article-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Article Content Typography */
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--text);
  padding-bottom: .625rem;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
  color: var(--text);
}
.article-content p { margin-bottom: 1.25rem; color: var(--text-2); }
.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-2);
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .4rem; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--green); }
.article-content blockquote {
  border-left: 3px solid var(--green);
  padding: 1rem 1.25rem;
  background: var(--green-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: italic;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .9rem;
}
.article-content th, .article-content td {
  padding: .625rem .875rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-content th {
  background: var(--bg-3);
  color: var(--text);
  font-weight: 700;
}
.article-content td { color: var(--text-2); }
.article-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

/* Article CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(168,85,247,.06) 100%);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta-box h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.article-cta-box p { color: var(--text-2); font-size: .9375rem; margin-bottom: 1.25rem; }

/* Sidebar */
.article-sidebar {}
.sidebar-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.widget-title {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.sidebar-posts { display: flex; flex-direction: column; gap: .875rem; }
.sidebar-post { display: flex; gap: .75rem; align-items: flex-start; }
.sidebar-post-thumb {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-3);
}
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-title { font-size: .875rem; font-weight: 600; color: var(--text-2); line-height: 1.4; }
.sidebar-post-title a:hover { color: var(--green); }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,229,255,.07) 0%, rgba(168,85,247,.05) 100%);
  border: 1px solid rgba(0,229,255,.18);
  text-align: center;
}
.sidebar-cta p { font-size: .875rem; color: var(--text-2); margin-bottom: 1rem; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  color: var(--text-3);
  padding-block: 1rem;
}
.breadcrumb a:hover { color: var(--text-2); }
.breadcrumb-sep { opacity: .4; }

/* ───────────────────────────────────────────────
   PAGINATION
─────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .375rem;
  padding-top: 2.5rem;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--border-mid); color: var(--text); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ───────────────────────────────────────────────
   FOOTER
─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(0,229,255,.07);
  background: var(--bg-2);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .brand-name { font-size: 1rem; }
.footer-desc {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.65;
  margin: .875rem 0 1.25rem;
}
.footer-col-title {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .875rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  font-size: .875rem;
  color: var(--text-3);
  transition: color .15s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-3);
}

/* footer related links */
.footer-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem 1rem;
  padding-top: .875rem;
  font-size: .75rem;
  color: var(--text-3);
}
.footer-related-label { color: var(--text-3); }
.footer-related a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s;
}
.footer-related a:hover { color: var(--text-2); }

/* ───────────────────────────────────────────────
   ARCHIVE
─────────────────────────────────────────────── */
.archive-layout { padding-block: 2.5rem; }
.archive-header { margin-bottom: 2rem; }
.archive-header h1 { font-size: 1.75rem; font-weight: 800; }
.archive-header p { color: var(--text-2); margin-top: .5rem; }

/* ───────────────────────────────────────────────
   CATEGORY CHIPS
─────────────────────────────────────────────── */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: .4rem .875rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all .15s;
}
.cat-chip:hover, .cat-chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ───────────────────────────────────────────────
   404
─────────────────────────────────────────────── */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}
.notfound-num { font-size: 7rem; font-weight: 900; color: var(--border-mid); line-height: 1; }
.notfound h1 { font-size: 1.75rem; margin: .5rem 0 .875rem; }
.notfound p { color: var(--text-2); margin-bottom: 1.75rem; }

/* ───────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid .pcard-featured { grid-column: auto; display: flex; flex-direction: column; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image-wrap { display: none; }
  .hero { padding-block: 3rem 2.5rem; }
  .nav-links { display: none; position: fixed; inset: 60px 0 0; background: var(--bg); padding: 1.5rem; flex-direction: column; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-links .nav-menu { flex-direction: column; gap: .25rem; }
  .nav-toggle-label { display: flex; }
  .nav-cta { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: .625rem; text-align: center; }
  .trust-items { flex-direction: column; align-items: flex-start; padding-inline: 1rem; }
}

/* ───────────────────────────────────────────────
   PRINT
─────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .article-sidebar, .article-cta-box { display: none; }
  body { background: #fff; color: #000; }
  .article-content { color: #111; }
}

/* ───────────────────────────────────────────────
   PERFORMANCE: PAINT & ANIMATION
─────────────────────────────────────────────── */
/* Avoid layout recalculation for card hover animations */
.pcard, .post-card { will-change: transform; }

/* Contain paint for the article reading area */
.article-content { contain: layout style; }

/* Scroll margin so anchor links aren't hidden under the sticky header */
h2, h3, h4 { scroll-margin-top: 76px; }

/* Respect prefers-reduced-motion — accessibility + small perf win */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .dot-green { animation: none; }
}
