/* ===================================================================
   Techwem v3.0 — Industrial OS visual system
   Dark-default. Training OS shell: left rail + topbar.
   Space Grotesk + Geist Mono. Orange accent #FF5722.
=================================================================== */

/* ============ DESIGN TOKENS ============ */
:root {
  /* Surfaces — dark blue-gray industrial */
  --bg:           #0d1117;
  --bg-2:         #131b24;
  --bg-3:         #1a2332;
  --bg-4:         #212d3d;
  --surface:      #131b24;
  --surface-2:    #1a2332;
  --bg-glass:     rgba(13,17,23,0.88);

  /* Ink */
  --ink:          #ffffff;
  --ink-2:        #eaeef4;
  --ink-soft:     #9faab8;
  --ink-mute:     #636e7e;
  --ink-faint:    #434d5a;

  /* Brand */
  --primary:      #eaeef4;
  --accent:       #FF5722;
  --accent-2:     #FF7A4A;
  --accent-glow:  rgba(255,87,34,0.22);
  --accent-ink:   #3E1000;
  --highlight:    #F5A524;

  /* Lines */
  --line:         #1e2d3d;
  --line-2:       #263548;
  --line-strong:  #344560;

  /* Signals */
  --sig-alarm:    #F04047;
  --sig-warn:     #F5A524;
  --sig-ok:       #22C55E;
  --sig-info:     #4FB6E0;

  /* Radius */
  --r-pill:       999px;
  --r-card:       10px;
  --r-card-lg:    14px;
  --r-ui:         6px;
  --r-sm:         4px;

  /* Shadow */
  --sh-sm:        0 1px 2px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03);
  --sh-md:        0 4px 16px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.35);
  --sh-lg:        0 12px 40px rgba(0,0,0,.65), 0 4px 12px rgba(0,0,0,.45);
  --sh-xl:        0 24px 60px rgba(0,0,0,.8);
  --sh-glow:      0 0 0 1px var(--accent), 0 0 32px var(--accent-glow);

  /* Layout */
  --max:          1280px;
  --max-narrow:   720px;
  --max-text:     680px;
  --rail-w:       48px;

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Space Grotesk", system-ui, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Motion */
  --t-quick:      0.12s cubic-bezier(.4,0,.2,1);
  --t-norm:       0.22s cubic-bezier(.16,1,.3,1);
  --t-slow:       0.4s cubic-bezier(.16,1,.3,1);

  --grid-color:   rgba(255,87,34,0.04);
}

/* LIGHT MODE */
[data-theme="light"] {
  --bg:           #f8f7f3;
  --bg-2:         #f1f0ea;
  --bg-3:         #e8e7e0;
  --bg-4:         #dddcd4;
  --surface:      #f8f7f3;
  --surface-2:    #f1f0ea;
  --bg-glass:     rgba(248,247,243,0.9);
  --ink:          #000000;
  --ink-2:        #111318;
  --ink-soft:     #3e444f;
  --ink-mute:     #666d7a;
  --ink-faint:    #9099a5;
  --line:         #e0dfd8;
  --line-2:       #d0cfc6;
  --line-strong:  #b8b7af;
  --sh-sm:        0 1px 3px rgba(20,20,15,.07), 0 0 0 1px rgba(0,0,0,.04);
  --sh-md:        0 4px 16px rgba(20,20,15,.10), 0 1px 3px rgba(20,20,15,.06);
  --sh-lg:        0 12px 40px rgba(20,20,15,.14), 0 4px 12px rgba(20,20,15,.08);
  --sh-xl:        0 24px 60px rgba(20,20,15,.20);
  --grid-color:   rgba(10,10,10,0.04);
}

/* DARK MODE */
[data-theme="dark"] {
  --bg:           #0d1117;
  --bg-2:         #131b24;
  --surface:      #1a2332;
  --surface-2:    #212d3d;
  --ink:          #e8edf4;
  --ink-2:        #c8d0dc;
  --ink-soft:     #8a96a8;
  --ink-mute:     #5a6478;
  --ink-faint:    #344560;
  --primary:      #e8edf4;
  --line:         rgba(100,140,180,0.12);
  --line-2:       rgba(100,140,180,0.20);
  --line-strong:  rgba(100,140,180,0.35);
  --sh-sm:        0 1px 2px rgba(0,0,0,.40), 0 0 0 1px rgba(100,140,180,.06);
  --sh-md:        0 4px 12px rgba(0,0,0,.50), 0 0 0 1px rgba(100,140,180,.06);
  --sh-lg:        0 12px 40px rgba(0,0,0,.60), 0 0 0 1px rgba(100,140,180,.06);
  --sh-xl:        0 24px 60px rgba(0,0,0,.70);
  --grid-color:   rgba(100,140,180,0.06);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "ss01", "cv11";
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--t-norm), color var(--t-norm);
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t-quick); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
}
::selection { background: var(--ink); color: var(--bg); }

/* ============ UTILITIES ============ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: var(--max-narrow); }
.container--text { max-width: var(--max-text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft);
  padding: 6px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 8px var(--accent); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

.grad-text {
  background: linear-gradient(95deg, var(--accent) 0%, #FF8C42 50%, var(--accent) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: 200% 0; } }

.text-ink-soft { color: var(--ink-soft); }
.text-ink-mute { color: var(--ink-mute); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 15px; line-height: 1; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-pill);
  white-space: nowrap;
  transition: all var(--t-quick);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: #FFF;
  transform: translateY(-1px);
  box-shadow: var(--sh-glow);
}

.btn-accent {
  background: var(--accent);
  color: #FFF;
  box-shadow: 0 6px 16px rgba(255,87,34,0.25);
}
.btn-accent:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.20);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent); transform: translateX(2px); }

.btn .arr { transition: transform var(--t-quick); }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   SITE LAYOUT — top nav + left subscriber rail + main
============================================================ */

/* Full-page wrapper: flex column — topnav, then body row, then ribbon */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Body row: left rail + content */
.site-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.site-main { flex: 1; min-width: 0; }

/* ── Pulse dot ── */
.pulse-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============================================================
   TOP NAV BAR
============================================================ */
.site-topnav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.topnav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 52px;
  padding: 0 20px;
}

/* Brand */
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 24px;
}
.topnav-brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.topnav-brand-name span { color: var(--accent); }

/* Nav links */
.topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.topnav-link {
  position: relative;
  padding: 6px 11px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color var(--t-quick);
  letter-spacing: -0.01em;
}
.topnav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.25s cubic-bezier(.4,0,.2,1);
}
.topnav-link:hover { color: var(--ink); }
.topnav-link:hover::after { width: calc(100% - 16px); }
.topnav-link--active { color: var(--ink); }
.topnav-link--active::after { width: calc(100% - 16px); }

/* Right actions */
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.topnav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--t-quick);
  letter-spacing: -0.01em;
}
.topnav-btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-2);
}
.topnav-btn--ghost:hover { color: var(--ink); border-color: var(--ink); }
.topnav-btn--primary {
  background: var(--accent);
  color: #FFF;
}
.topnav-btn--primary:hover { background: var(--ink); color: var(--bg); }
.topnav-btn--tutor {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.topnav-btn--tutor:hover { background: var(--accent); color: #FFF; }

/* Theme toggle in topnav */
.topnav-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: all var(--t-quick);
  border: 1px solid var(--line);
}
.topnav-icon-btn:hover { color: var(--ink); background: var(--bg-3); border-color: var(--line-2); }

/* Sun/moon state in topnav */
.topnav-theme-btn .th-sun { display: none; }
.topnav-theme-btn .th-moon { display: block; }
[data-theme="light"] .topnav-theme-btn .th-sun { display: block; }
[data-theme="light"] .topnav-theme-btn .th-moon { display: none; }

/* Mobile hamburger */
.topnav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
}
.topnav-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--t-quick);
}

/* Mobile nav drawer */
.topnav-mobile-drawer {
  display: none;
  flex-direction: column;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  gap: 2px;
}
.topnav-mobile-drawer.open { display: flex; }

/* ============================================================
   LEFT SUBSCRIBER RAIL
   Collapsed = icon-only (48px). Expanded = 220px.
   Pop-out arrow + orbit glow ring on the expand button.
============================================================ */
.site-rail {
  position: sticky;
  top: 52px; /* below topnav */
  height: calc(100vh - 52px);
  width: var(--rail-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: width var(--t-norm);
  z-index: 200;
}

/* When expanded (JS adds .rail--open) */
.site-rail.rail--open { width: 220px; }

/* Expand button — the arrow + orbit effect */
.rail-expand-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  flex-shrink: 0;
  color: var(--ink-mute);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: color var(--t-quick);
  overflow: visible;
}
.rail-expand-btn:hover { color: var(--accent); }
.rail-expand-btn svg { transition: transform var(--t-norm); flex-shrink: 0; }
.rail--open .rail-expand-btn svg { transform: rotate(180deg); }

/* Orbit ring — shining circle spinning around the expand button */
.rail-orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.rail-expand-btn:hover .rail-orbit-ring {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow), inset 0 0 8px var(--accent-glow);
  animation: orbit-spin 2s linear infinite;
}
@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Orbiting dot on the ring */
.rail-orbit-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.rail-orbit-dot::before {
  content: '';
  position: absolute;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent-glow);
}
.rail-expand-btn:hover .rail-orbit-dot {
  opacity: 1;
  animation: orbit-spin 2s linear infinite;
}

/* Rail items container */
.rail-items {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  gap: 2px;
  overflow: hidden;
}

.rail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  height: 44px;
  color: var(--ink-mute);
  border-radius: 0;
  cursor: pointer;
  transition: color var(--t-quick), background var(--t-quick);
  white-space: nowrap;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
.rail-item:hover { color: var(--ink); background: var(--bg-3); }
.rail-item--active { color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.rail-item--active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 24px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px var(--accent);
}
.rail-item svg { flex-shrink: 0; }

/* Locked items */
.rail-item--locked { cursor: not-allowed; opacity: 0.5; }
.rail-item--locked:hover { opacity: 0.7; background: none; color: var(--ink-mute); }
.rail-lock { margin-left: auto; flex-shrink: 0; color: var(--ink-faint); }

/* Label — hidden when collapsed, shown when expanded */
.rail-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  opacity: 0;
  transition: opacity var(--t-norm);
  pointer-events: none;
  letter-spacing: -0.01em;
}
.rail--open .rail-label { opacity: 1; }

/* Subscribe CTA — only visible when expanded */
.rail-sub-cta {
  margin: 8px 12px;
  padding: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg-3));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-norm);
}
.rail--open .rail-sub-cta { opacity: 1; pointer-events: auto; }
.rail-sub-cta p {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.rail-sub-btn {
  display: block;
  text-align: center;
  padding: 7px 12px;
  background: var(--accent);
  color: #FFF;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  transition: background var(--t-quick);
}
.rail-sub-btn:hover { background: var(--ink); color: var(--bg); }

.rail-spacer { flex: 1; }

/* Bottom section */
.rail-bottom {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  gap: 2px;
}

/* Avatar button */
.rail-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

/* ── Status ribbon (footer) ── */
.site-ribbon {
  display: flex;
  align-items: center;
  height: 32px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  flex-shrink: 0;
  overflow: hidden;
}
.ribbon-seg {
  padding: 0 16px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
}
.ribbon-seg a { color: inherit; transition: color var(--t-quick); }
.ribbon-seg a:hover { color: var(--ink); }
.ribbon-seg--live { color: var(--accent); font-weight: 700; }
.ribbon-seg--version { color: var(--ink-faint); }
.ribbon-spacer { flex: 1; }

/* ── WhatsApp float ── */
.float-whatsapp {
  position: fixed;
  bottom: 48px; right: 20px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  z-index: 500;
  transition: transform var(--t-quick), box-shadow var(--t-quick);
}
.float-whatsapp:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }

/* ── Legacy compat ── */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: all var(--t-quick);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.badge-mini {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #FFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============ HERO V3 — premium editorial ============ */
.hero-v2 {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-v2__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-v2__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
}
.hero-v2__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-v2__blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,87,34,0.18), transparent 70%);
  top: -200px; left: -150px;
  animation: blob-float-1 24s ease-in-out infinite;
}
.hero-v2__blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,182,224,0.12), transparent 70%);
  bottom: -200px; right: -100px;
  animation: blob-float-2 28s ease-in-out infinite;
}
@keyframes blob-float-1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.1); }
}
@keyframes blob-float-2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-60px, -40px) scale(1.15); }
}

.hero-v2__inner {
  position: relative;
  text-align: center;
  max-width: 1080px;
  margin: 0 auto;
}

.hero-v2__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 32px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.dot-pulse { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px rgba(255,87,34,0.6); animation: pulse-dot 1.8s ease-in-out infinite; }

.hero-v2__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin: 0 0 32px;
}
.hero-v2__sub-headline {
  display: block;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  margin-top: 24px;
  font-family: var(--font-body);
}

/* Hero capture — premium card */
.hero-v2__capture {
  max-width: 580px;
  margin: 48px auto 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-card);
  box-shadow: var(--sh-lg);
  text-align: left;
  position: relative;
}
.hero-v2__capture::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 30%, transparent 70%, var(--highlight));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  opacity: 0.6;
}
.hero-v2__capture-text {
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--ink-2);
}
.hero-v2__capture-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-v2__capture-text small {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
  font-family: var(--font-mono);
}
.hero-v2__form {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.hero-v2__form input {
  flex: 1; min-width: 200px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-size: 15px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: all var(--t-quick);
}
.hero-v2__form input:focus {
  border-color: var(--accent);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px rgba(255,87,34,0.15);
}
.hero-v2__form button {
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--t-quick);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-v2__form button:hover {
  background: var(--accent);
  color: #FFF;
  transform: translateY(-1px);
}
.hero-v2__form-msg {
  flex-basis: 100%;
  font-size: 13px;
  padding: 6px 0 0;
  min-height: 20px;
  font-family: var(--font-mono);
}
.hero-v2__form-msg.success { color: #10B981; font-weight: 500; }
.hero-v2__form-msg.error { color: #EF4444; }
.hero-v2__form-fineprint {
  display: block;
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ============ MARQUEE TRUST STRIP ============ */
.marquee {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.marquee__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.marquee__track {
  display: flex;
  gap: 56px;
  animation: marquee-scroll 50s linear infinite;
  width: max-content;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-soft);
  letter-spacing: -0.04em;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity var(--t-quick);
}
.marquee__item:hover { opacity: 1; color: var(--ink); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ PROOF STRIP ============ */
.proof-strip {
  padding: 80px 0;
  position: relative;
}
.proof-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-item {
  padding: 32px 24px;
  text-align: left;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background var(--t-quick);
}
.proof-item:last-child { border-right: none; }
.proof-item:hover { background: var(--surface-2); }
.proof-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.045em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}
.proof-label {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

/* ============ SECTION HEAD ============ */
.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section__head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: none;
  text-align: left;
  gap: 24px;
  flex-wrap: wrap;
}
.section__title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 16px 0;
}
.section__sub {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.section__cta { text-align: center; margin-top: 56px; }

/* ============ THREE PILLARS — BENTO GRID ============ */
.pillars {
  padding: 100px 0;
  position: relative;
}
.pillar-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  min-height: 560px;
}
.pillar {
  display: flex; flex-direction: column;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  transition: all var(--t-norm);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,87,34,0.06), transparent 50%);
  opacity: 0;
  transition: opacity var(--t-norm);
  pointer-events: none;
}
.pillar:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--sh-xl);
}
.pillar:hover::before { opacity: 1; }

/* First pillar: takes full left column (2 rows) */
.pillar--challenge {
  grid-column: 1;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, var(--ink) 0%, #1A1A1A 100%);
  color: #FAFAFA;
  padding: 48px 40px;
}
.pillar--challenge h3 { color: #FAFAFA; font-size: 36px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; }
.pillar--challenge p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.5; }
.pillar--challenge .pillar__icon { background: rgba(255,255,255,0.10); color: var(--highlight); }
.pillar--challenge .pillar__cta { color: var(--highlight); border-top-color: rgba(255,255,255,0.10); }
.pillar--challenge:hover { border-color: var(--accent); transform: translateY(-2px); }
.pillar--challenge::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(199,255,61,0.20), transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

/* Articles & YouTube — right column */
.pillar--articles { grid-column: 2; grid-row: 1 / 3; }
.pillar--youtube { grid-column: 3; grid-row: 1 / 3; }

.pillar__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-ui);
  background: var(--surface-2);
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.pillar h3 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  position: relative;
  z-index: 1;
}
.pillar p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
  flex: 1;
  position: relative;
  z-index: 1;
}
.pillar__meta {
  display: flex; flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.tag--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pillar__cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  transition: gap var(--t-quick);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pillar:hover .pillar__cta { gap: 10px; }


/* ============ POSTS GRID ============ */
.latest-posts { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), border-color 0.25s ease, box-shadow 0.35s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  will-change: transform;
}
.post::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  box-shadow: 0 0 0 0 rgba(255,87,34,0);
  transition: box-shadow 0.35s ease;
  pointer-events: none;
  z-index: 1;
}
.post:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(255,87,34,0.5);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45), 0 8px 16px rgba(0,0,0,0.25);
}
.post:hover::before {
  box-shadow: 0 0 0 1px rgba(255,87,34,0.3) inset;
}
[data-theme="light"] .post:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(255,87,34,0.1);
}
.post__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1), filter 0.3s ease;
}
.post__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-130%);
  transition: transform 0.75s cubic-bezier(.16,1,.3,1);
}
.post:hover .post__media {
  transform: scale(1.06);
  filter: saturate(1.12) brightness(1.04);
}
.post:hover .post__media::after {
  transform: translateX(130%);
}
.post__media--ai              { background: linear-gradient(135deg, #FF5722 0%, #6B21A8 100%); }
.post__media--cyber           { background: linear-gradient(135deg, #DC2626 0%, #1E1B4B 100%); }
.post__media--cybersecurity   { background: linear-gradient(135deg, #DC2626 0%, #1E1B4B 100%); }
.post__media--plc             { background: linear-gradient(135deg, #0F172A 0%, #1E40AF 100%); }
.post__media--scada           { background: linear-gradient(135deg, #06B6D4 0%, #0F172A 100%); }
.post__media--iiot            { background: linear-gradient(135deg, #1E40AF 0%, #6B21A8 100%); }
.post__media--dcs             { background: linear-gradient(135deg, #DC2626 0%, #0F172A 100%); }
.post__media--industrial-networking { background: linear-gradient(135deg, #0369A1 0%, #0F172A 100%); }
.post__media--functional-safety     { background: linear-gradient(135deg, #B45309 0%, #1E1B4B 100%); }
.post__media--instrumentation       { background: linear-gradient(135deg, #047857 0%, #0F172A 100%); }
.post__media--alarm-management      { background: linear-gradient(135deg, #B45309 0%, #DC2626 100%); }
.post__cat {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease;
  position: relative; z-index: 2;
}
.post:hover .post__cat {
  transform: scale(1.05);
  background: #fff;
}
.post__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.post h3 a, .post__body h3 a, .post__body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.post:hover .post__body h3 { color: #FF5722; }
.post__body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1;
}
.post__link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease, color 0.2s ease;
}
.post:hover .post__link {
  gap: 8px;
  color: var(--ink);
}
.post__link:hover { color: var(--ink); }


/* ============ TESTIMONIALS V2 ============ */
.testimonials-v2 {
  padding: 100px 0;
  position: relative;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.testi-v2 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
  transition: all var(--t-norm);
  position: relative;
}
.testi-v2:hover {
  border-color: var(--ink);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.testi-v2__stars {
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 1px;
  font-size: 16px;
}
.testi-v2 p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.01em;
}
.testi-v2__author { display: flex; align-items: center; gap: 14px; }
.testi-v2__author strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
}
.testi-v2__author small { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); letter-spacing: 0.02em; }
.testi-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  flex-shrink: 0;
  font-size: 16px;
  color: #FFF;
}
.avatar--orange { background: var(--accent); }
.avatar--green  { background: var(--ink); color: var(--highlight); }
.avatar--dark   { background: #1A1A1A; }


/* ============ AUTHOR CTA ============ */
.author-cta {
  padding: 120px 0;
  background: var(--ink);
  color: #FAFAFA;
  position: relative;
  overflow: hidden;
}
.author-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,87,34,0.20), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(199,255,61,0.10), transparent 60%);
  pointer-events: none;
}
.author-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.author-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
  z-index: 1;
}
.avatar-lg {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #FF8C42);
  display: grid; place-items: center;
  color: #FFF;
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  box-shadow: 0 24px 60px rgba(255,87,34,0.40);
  position: relative;
}
.avatar-lg::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255,87,34,0.40);
  border-radius: 50%;
  animation: ring-pulse 3s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.05); opacity: 0; }
}
.author-cta__text .eyebrow {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.08);
}
.author-cta__text .eyebrow::before { background: var(--highlight); box-shadow: 0 0 10px var(--highlight); }
.author-cta__text h2 {
  color: #FAFAFA;
  font-size: clamp(36px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.0;
  margin: 20px 0 24px;
  letter-spacing: -0.045em;
}
.author-cta__text p {
  color: rgba(255,255,255,0.7);
  font-size: 19px;
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 640px;
}
.author-cta__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.author-cta .btn-outline {
  border-color: rgba(255,255,255,0.20);
  color: #FAFAFA;
}
.author-cta .btn-outline:hover {
  background: #FAFAFA;
  color: var(--ink);
  border-color: #FAFAFA;
}


/* ============ SECONDARY HERO (page-hero, post-hero, archive-hero) ============ */
.archive-hero, .page-hero, .post-hero {
  padding: 26px 0 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.archive-hero::before, .page-hero::before, .post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at center, black, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.page-hero h1, .archive-hero h1 {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 8px 0 0;
}


/* ============ POST SINGLE ============ */
.post-single { padding-bottom: 100px; }
.post-hero { padding: 80px 0 32px; }
.post-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.post-hero__breadcrumb a { color: var(--ink-mute); }
.post-hero__breadcrumb a:hover { color: var(--accent); }
.post-hero__cat { margin: 16px 0 8px; }
.post-hero__cat .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-hero h1 {
  font-size: clamp(32px, 4.8vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 820px;
  margin: 18px auto;
}
.post-hero__meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.post-feature {
  padding: 16px 0 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.post-feature img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--r-card);
}

/* Article body — premium reading experience */
.post-content {
  padding: 56px 0 80px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.post-content > * { max-width: 720px; }
.post-content p { margin: 0 0 28px; }
.post-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4.5em;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin: 0.05em 12px 0 0;
  color: var(--accent);
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 56px 0 20px;
  line-height: 1.15;
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
}
.post-content ul, .post-content ol { margin: 0 0 28px; padding-left: 24px; }
.post-content ul li { margin-bottom: 10px; list-style-type: none; position: relative; padding-left: 4px; }
.post-content ul li::before { content: '—'; position: absolute; left: -22px; color: var(--accent); font-weight: 700; }
.post-content ol { padding-left: 32px; }
.post-content ol li { margin-bottom: 10px; padding-left: 4px; }
.post-content a {
  color: var(--ink);
  font-weight: 500;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  transition: background-size var(--t-quick);
}
.post-content a:hover { background-size: 100% 100%; color: var(--bg); padding: 0 2px; border-radius: 2px; }
.post-content blockquote {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
  margin: 40px 0;
  font-style: normal;
}
.post-content code {
  padding: 2px 7px;
  background: var(--surface-2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent);
  border: 1px solid var(--line);
}
.post-content pre {
  padding: 24px;
  background: var(--ink);
  color: #FAFAFA;
  border-radius: var(--r-ui);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--ink);
}
.post-content pre code { background: none; border: 0; color: inherit; padding: 0; font-size: inherit; }
.post-content img {
  width: 100%;
  border-radius: var(--r-card);
  margin: 32px 0;
}
.article-infographic {
  margin: 42px auto 38px;
  padding: 18px;
  border-radius: var(--r-card-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-2), var(--surface));
  box-shadow: var(--sh-md);
}
.article-infographic img {
  width: 100%;
  margin: 0;
  border-radius: calc(var(--r-card-lg) - 3px);
  border: 1px solid var(--line);
}
.article-infographic figcaption {
  margin-top: 12px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.post-content th {
  background: var(--ink);
  color: var(--bg);
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.post-content td { padding: 14px 16px; border-bottom: 1px solid var(--line); }

.post-tags {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  color: var(--ink-mute);
}
.post-tags a {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-soft);
}
.post-tags a:hover { background: var(--ink); color: var(--bg); }
.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-share a {
  width: 36px; height: 36px;
  background: var(--surface-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all var(--t-quick);
}
.post-share a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }


/* ============ COURSE SINGLE ============ */
.course-single { background: var(--bg); }
.course-hero { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
.course-hero__inner { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 40px; align-items: start; }
@media(max-width:1100px){.course-hero__inner{grid-template-columns:minmax(0,1fr) 320px;gap:28px}}
.course-hero__breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); margin-bottom: 20px; letter-spacing: 0.02em; }
.course-hero__breadcrumb a { color: var(--ink-mute); }
.course-hero__breadcrumb a:hover { color: var(--accent); }
.course-hero__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.course-hero__cats .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.course-hero h1 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}
.course-hero__excerpt {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 18px;
}
.course-hero__meta {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.course-hero__meta strong { color: var(--ink); font-family: var(--font-display); }
.course-hero__instructor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.course-hero__instructor small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase; }
.course-hero__instructor strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.course-hero__card {
  position: sticky;
  top: 72px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
}
.cm-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.cm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cm-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.cm-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cm-card__price strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.cm-card__price s { font-size: 18px; color: var(--ink-mute); font-family: var(--font-mono); }
.cm-card__list {
  display: flex; flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.course-body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 80px 0;
}
.course-body__main { min-width: 0; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.course-body__main h2, .course-body__main h3 { font-family: var(--font-display); }
.course-body__main h2 { font-size: 28px; margin: 40px 0 16px; }
.course-body__main h3 { font-size: 22px; margin: 32px 0 14px; }
.course-body__main p { margin: 0 0 20px; }
.course-body__main ul, .course-body__main ol { margin: 0 0 24px; padding-left: 24px; }
.course-body__main ul li { margin-bottom: 8px; list-style-type: none; position: relative; padding-left: 4px; }
.course-body__main ul li::before { content: '—'; position: absolute; left: -22px; color: var(--accent); font-weight: 700; }
.course-body__main strong { color: var(--ink); }

.course-tools {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  margin-bottom: 40px;
}
.course-tools h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px; color: var(--ink-soft); }
.panel-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.tool {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--ink);
  letter-spacing: 0.02em;
}

.course-side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  margin-bottom: 16px;
}
.course-side-card h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.course-side-card ul { display: flex; flex-direction: column; gap: 12px; }
.course-side-card li { font-size: 14px; display: flex; justify-content: space-between; }
.course-side-card li strong { color: var(--ink); font-family: var(--font-display); font-weight: 500; }
.share-row { display: flex; gap: 8px; }
.share-row a {
  width: 38px; height: 38px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: all var(--t-quick);
  font-size: 14px;
}
.share-row a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }


/* ============ ARCHIVE / GENERIC ============ */
.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 56px;
}
.filter {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--t-quick);
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter small { opacity: 0.6; margin-left: 6px; }

.pagination-wrap { display: flex; justify-content: center; margin-top: 56px; }
.pagination-wrap .nav-links { display: flex; gap: 6px; }
.pagination-wrap .page-numbers {
  display: grid; place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.pagination-wrap .page-numbers:hover, .pagination-wrap .page-numbers.current {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}

.empty { text-align: center; padding: 100px 20px; }
.empty h3 { font-size: 24px; margin-bottom: 16px; }
.empty p { color: var(--ink-soft); margin-bottom: 28px; }


/* ============ COURSE GRID (archive page) ============ */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.course {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  transition: all var(--t-norm);
  display: flex;
  flex-direction: column;
}
.course:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--sh-lg);
}
.course--featured::before, .course--new::before {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.08em;
  z-index: 2;
}
.course--featured::before { content: 'BESTSELLER'; background: var(--accent); color: #FFF; }
.course--new::before { content: 'NEW'; background: var(--ink); color: var(--highlight); }

.course__media {
  aspect-ratio: 16/10;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #FFF;
  overflow: hidden;
}
.course__media--plc    { background: linear-gradient(135deg, #0F172A 0%, #1E40AF 100%); }
.course__media--green  { background: linear-gradient(135deg, #064E3B 0%, #10B981 100%); }
.course__media--orange { background: linear-gradient(135deg, var(--accent) 0%, #C2410C 100%); }
.course__media--dark   { background: linear-gradient(135deg, #1A1A1A 0%, #0F172A 100%); }
.course__media--dcs    { background: linear-gradient(135deg, #DC2626 0%, #1E1B4B 100%); }
.course__media--blue   { background: linear-gradient(135deg, #1E40AF 0%, #1E3A8A 100%); }
.course__media--purple { background: linear-gradient(135deg, #7C3AED 0%, #4C1D95 100%); }
.course__media--ai     { background: linear-gradient(135deg, var(--accent) 0%, #6B21A8 100%); }
.course__media--twin   { background: linear-gradient(135deg, #06B6D4 0%, #0F172A 100%); }

.course__category {
  position: absolute;
  top: 18px; left: 18px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.2);
  color: #FFF;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
  z-index: 2;
}
.course__bookmark {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: grid; place-items: center;
  color: #FFF;
  cursor: pointer;
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: background var(--t-quick);
  font-size: 16px;
}
.course__bookmark:hover { background: var(--accent); }
.course__media h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: inherit;
  position: relative;
  z-index: 1;
}
.course__media h3 small { display: block; font-size: 13px; font-weight: 400; opacity: 0.85; margin-top: 4px; font-family: var(--font-mono); }

.course__body { padding: 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course__instructor { display: flex; align-items: center; gap: 10px; }
.course__instructor strong { display: block; font-family: var(--font-display); font-size: 14px; color: var(--ink); font-weight: 500; }
.course__instructor small { font-size: 12px; color: var(--ink-mute); font-family: var(--font-mono); }
.course__meta {
  display: flex;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  letter-spacing: 0.02em;
}
.course__rating { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); }
.stars { color: var(--accent); letter-spacing: 1px; }
.course__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.price strong { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); letter-spacing: -0.03em; }
.price s { font-size: 14px; color: var(--ink-mute); margin-left: 6px; font-family: var(--font-mono); }


/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 100px 0 32px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent 80%);
  pointer-events: none;
}
.footer .container { position: relative; z-index: 1; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 56px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h5 {
  color: #FAFAFA;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer ul { display: flex; flex-direction: column; gap: 12px; }
.footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-quick);
}
.footer ul a:hover { color: #FAFAFA; }
.footer p { font-size: 14px; line-height: 1.6; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer__contact p { margin-bottom: 10px; max-width: none; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.01em; }
.footer__contact a { color: rgba(255,255,255,0.7); }
.footer__contact a:hover { color: var(--accent); }

.brand--footer {
  color: #FAFAFA;
  margin-bottom: 18px;
}
.brand--footer .brand__mark { background: #FAFAFA; color: var(--ink); }

.footer__social { display: flex; gap: 8px; margin-top: 24px; }
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: all var(--t-quick);
}
.footer__social a:hover { background: var(--accent); color: #FFF; transform: translateY(-2px); border-color: var(--accent); }

.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}


/* ============ FLOATING ELEMENTS ============ */
.float-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 12px 32px rgba(37,211,102,0.40);
  z-index: 90;
  transition: all var(--t-quick);
}
.float-whatsapp:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(37,211,102,0.55); }

.float-top {
  position: fixed;
  bottom: 96px; right: 28px;
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-size: 20px;
  font-family: var(--font-mono);
  box-shadow: var(--sh-lg);
  z-index: 90;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all var(--t-norm);
}
.float-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.float-top:hover { background: var(--accent); color: #FFF; }

/* Badge — for post-hero__cat and course-hero__cats spans */
.post-hero__cat .badge,
.course-hero__cats .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.course-hero__cats .badge {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  margin-right: 4px;
}


/* ============ FORMS / SEARCH ============ */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  display: none;
  place-items: center;
  z-index: 200;
  padding: 28px;
}
.search-overlay.open { display: grid; }
.search-overlay__inner {
  width: 100%;
  max-width: 720px;
  position: relative;
}
.search-input {
  width: 100%;
  padding: 24px 28px;
  font: 500 22px/1.3 var(--font-display);
  background: #FAFAFA;
  color: var(--ink);
  border: 0;
  border-radius: var(--r-card);
  outline: none;
  letter-spacing: -0.02em;
}
.search-suggestions {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.search-suggestions a {
  color: rgba(255,255,255,0.85);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.20);
  margin: 0 4px;
  display: inline-block;
}
.search-suggestions a:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.40); }
.search-close {
  position: absolute;
  top: -50px; right: 0;
  color: #FFF;
  font-size: 32px;
  line-height: 1;
}
.search-form { display: flex; gap: 8px; align-items: stretch; }
.search-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}

/* ============ ARTICLE BROWSER ============ */
.page-hero--articles {
  padding: 42px 0 56px;
  background:
    radial-gradient(circle at top center, rgba(255,87,34,0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.page-hero--articles .container {
  max-width: 1100px;
}

.articles-hero__eyebrow {
  margin-bottom: 18px;
}

.page-hero--articles .section__title {
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
}

.page-hero--articles .section__sub {
  max-width: 720px;
  margin: 12px auto 0;
}

.articles-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.articles-hero__stat {
  min-width: 170px;
  padding: 18px 22px;
  border: 1px solid rgba(30,45,61,0.14);
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--sh-sm);
  text-align: center;
}

.articles-hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  color: var(--ink);
}

.articles-hero__stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.articles-browser {
  display: grid;
  gap: 28px;
}

.articles-browser__controls {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  margin: -8px auto 8px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(30,45,61,0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255,87,34,0.10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.74));
  box-shadow: var(--sh-md);
  backdrop-filter: blur(14px);
}

.articles-browser__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  align-items: center;
}

.articles-browser__search input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(30,45,61,0.14);
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
  font-size: 15px;
}

.articles-browser__search input:focus {
  outline: none;
  border-color: rgba(255,87,34,0.5);
  box-shadow: 0 0 0 4px rgba(255,87,34,0.12);
}

.articles-browser__search .btn {
  min-width: 124px;
  height: 54px;
  justify-content: center;
}

.articles-browser__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.articles-browser__filters .filter {
  background: rgba(255,255,255,0.88);
  border-color: rgba(30,45,61,0.14);
}

.articles-browser__status {
  min-height: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-align: center;
}

.articles-browser__sentinel {
  height: 2px;
}

.articles-browser.is-loading .articles-browser__status::after {
  content: ' ';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-top-color: var(--accent);
  animation: tw-spin 0.9s linear infinite;
  vertical-align: -1px;
}

@keyframes tw-spin {
  to { transform: rotate(360deg); }
}

body.single-post .post-hero {
  padding: 52px 0 20px;
}

body.single-post .post-hero h1 {
  font-size: clamp(30px, 3.2vw, 42px);
  max-width: 15ch;
}

body.single-post .post-hero__meta {
  margin-top: 18px;
}

[data-theme="dark"] .articles-hero__stat,
[data-theme="dark"] .articles-browser__controls,
[data-theme="dark"] .articles-browser__search input,
[data-theme="dark"] .articles-browser__filters .filter {
  background: rgba(19,27,36,0.88);
  border-color: rgba(100,140,180,0.16);
}


/* ============ ACCESSIBILITY ============ */
.skip-link.screen-reader-text { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; padding: 8px 14px; background: var(--accent); color: #FFF; z-index: 9999; border-radius: var(--r-sm); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }


/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .hide-mobile { display: none !important; }
  .pillar-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .pillar--challenge, .pillar--articles, .pillar--youtube {
    grid-column: 1; grid-row: auto;
  }
  .pillar--challenge { padding: 40px 32px; }
  .pillar--challenge h3 { font-size: 28px; }
  .post-grid, .course-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .author-cta__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .author-cta__photo { justify-self: center; }
  .author-cta__buttons { justify-content: center; }
  .avatar-lg { width: 120px; height: 120px; font-size: 56px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .course-hero__inner, .course-body { grid-template-columns: 1fr; gap: 40px; }
  .course-hero__card { position: relative; top: 0; }
}

/* Mobile */
@media (max-width: 767px) {
  .topnav-links { display: none; }
  .topnav-hamburger { display: flex; }

  /* Hide rail on mobile — use mobile drawer instead */
  .site-rail { display: none; }
  .site-ribbon { display: none; }
  .float-whatsapp { bottom: 20px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-v2 { padding: 56px 0 72px; }
  .hero-v2__capture { padding: 24px; margin-top: 32px; }
  .hero-v2__form { flex-direction: column; }
  .hero-v2__form button { width: 100%; justify-content: center; }
  .proof-strip__inner { grid-template-columns: 1fr 1fr; border-bottom: 0; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .post-grid, .course-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .pillars, .testimonials-v2, .latest-posts { padding: 64px 0; }
  .author-cta { padding: 80px 0; }
  .post-content { padding-left: 0; padding-right: 0; font-size: 17px; }
  .post-content p:first-of-type::first-letter { font-size: 3.5em; }
  .articles-hero__stats { grid-template-columns: 1fr; }
  .articles-browser__controls { padding: 18px; }
  .articles-browser__search { grid-template-columns: 1fr; }
  .articles-browser__search .btn { width: 100%; justify-content: center; }
}

/* ============================================================
 * Video Library page (.vlib)
 * ============================================================ */
.vlib__count {
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 36px;
}
.vlib__count strong { color: var(--ink); font-weight: 600; }

.vlib__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.vlib__card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-ui);
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.vlib__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2));
}

/* 16:9 responsive embed */
.vlib__embed {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.vlib__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.vlib__meta {
  padding: 18px 20px 22px;
}
.vlib__topic {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.vlib__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 8px;
}
.vlib__desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .vlib__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   TRAINING OS PREVIEW — front page section
============================================================ */
.training-os-preview {
  padding: 88px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.training-os-preview__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.training-os-preview__text .eyebrow {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.training-os-preview__actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.training-os-preview__stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.training-os-stat__num {
  display: block;
  font: 700 28px/1 var(--font-h);
  color: var(--primary);
  letter-spacing: -0.02em;
}
.training-os-stat__label {
  display: block;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: 6px;
}

/* The simulator console card */
.tos-console {
  background: #08090b;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  font-family: "Space Grotesk", ui-sans-serif, sans-serif;
}
.tos-console__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #0e1014;
}
.tos-dot { width: 10px; height: 10px; border-radius: 50%; }
.tos-dot--red    { background: #F04047; }
.tos-dot--yellow { background: #F5A524; }
.tos-dot--green  { background: #22C55E; }
.tos-console__label {
  font: 500 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #636e7e;
  flex: 1;
}
.tos-console__live {
  font: 700 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.16em;
  color: #FF6A1A;
}
.tos-console__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tos-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tos-kpi {
  background: #0e1014;
  border: 1px solid #1e2229;
  border-radius: 6px;
  padding: 10px 12px;
}
.tos-kpi--warn { border-color: #F5A524; }
.tos-kpi__label { font: 600 10px/1 "Geist Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; color: #636e7e; margin-bottom: 6px; }
.tos-kpi__value { font: 600 22px/1 "Space Grotesk", sans-serif; color: #eaeef4; letter-spacing: -0.01em; }
.tos-kpi__value span { font-size: 12px; color: #636e7e; margin-left: 3px; }
.tos-kpi__delta { font: 500 11px/1 "Geist Mono", monospace; color: #636e7e; margin-top: 5px; }
.tos-kpi--warn .tos-kpi__delta { color: #F5A524; }
.tos-alarm {
  background: #0e1014;
  border: 1px solid #1e2229;
  border-radius: 6px;
  padding: 12px;
}
.tos-alarm__label { font: 700 10px/1 "Geist Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #FF6A1A; margin-bottom: 6px; }
.tos-alarm__msg   { font: 500 12px/1.4 "Geist Mono", monospace; color: #eaeef4; margin-bottom: 4px; }
.tos-alarm__sub   { font: 500 10px/1.4 "Geist Mono", monospace; color: #636e7e; }
.tos-advisor {
  background: #0e1014;
  border-left: 3px solid #FF6A1A;
  border-radius: 0 6px 6px 0;
  padding: 12px;
}
.tos-advisor__label { font: 700 10px/1 "Geist Mono", monospace; letter-spacing: 0.1em; color: #FF6A1A; margin-bottom: 6px; }
.tos-advisor__msg   { font: 500 12px/1.5 "Space Grotesk", sans-serif; color: #eaeef4; margin-bottom: 10px; }
.tos-advisor__btns  { display: flex; gap: 8px; }
.tos-btn { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 4px; font: 600 11px/1 "Space Grotesk", sans-serif; cursor: default; }
.tos-btn--primary { background: #FF6A1A; color: #1a0800; }
.tos-btn--ghost   { background: transparent; border: 1px solid rgba(255,255,255,0.12); color: #9faab8; }
.tos-sandbox { font: 500 9px/1 "Geist Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #434d5a; text-align: center; padding-top: 4px; }

/* Light mode: keep console dark always */
[data-theme="light"] .tos-console { box-shadow: 0 24px 64px rgba(0,0,0,0.18); }

@media (max-width: 900px) {
  .training-os-preview__inner { grid-template-columns: 1fr; gap: 40px; }
}
