/* ============================================================
   djEnterprises.ai — Global Stylesheet v2
   Premium dark studio aesthetic — professional AI company feel.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --bg:           #09090b;
  --bg-card:      #111113;
  --bg-elevated:  #18181b;
  --accent:       #c8a96e;
  --accent-bright:#e2c07a;
  --accent-dim:   rgba(200, 169, 110, 0.10);
  --accent-border:rgba(200, 169, 110, 0.22);
  --text:         #e8e0d0;
  --text-muted:   #9a9080;
  --text-faint:   #5a5248;
  --danger:       #e05252;
  --success:      #52c07a;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow:  0 0 40px rgba(200,169,110,0.10);
  --transition:   0.25s ease;
  --max-width:    1100px;
  --nav-height:   68px;
}

/* ── Base typography ─────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-height);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
p  { color: var(--text-muted); line-height: 1.75; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(9,9,11,0.97);
  box-shadow: 0 1px 0 var(--accent-border), 0 4px 30px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* (Old .nav-logo rules removed — superseded by the v3 nav-logo block below.
   The old `.nav-logo span { color: var(--accent); }` rule was winning over
   .nav-logo-text via higher specificity and turning the entire wordmark gold.) */
.nav-logo { transition: opacity var(--transition); }
.nav-logo:hover { opacity: 0.85; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(200,169,110,0.08);
}

.nav-links a.active { color: var(--accent); background: var(--accent-dim); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200,169,110,0.8);
}

.nav-cta {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--bg) !important;
  background: linear-gradient(135deg, #c8a96e, #ddb96a) !important;
  padding: 0.5rem 1.125rem !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 12px rgba(200,169,110,0.25) !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, #ddb96a, #f0cd88) !important;
  box-shadow: 0 4px 20px rgba(200,169,110,0.45) !important;
  transform: translateY(-1px);
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,169,110,0.07) 0%, transparent 70%),
    var(--bg);
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(200,169,110,0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite;
}

.hero-content { max-width: 680px; position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--accent); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Page Hero (sub-pages) ───────────────────────────────── */
.page-hero {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(200,169,110,0.06) 0%, transparent 70%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero p { margin: 1rem auto 0; max-width: 560px; font-size: 1.05rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn:hover::after { opacity: 1; }

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-bright)); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(200,169,110,0.4); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--accent-border);
}
.btn-secondary:hover { background: var(--accent-dim); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--accent); padding: 0.8rem 0; }
.btn-ghost:hover { color: var(--accent-bright); }

/* ── App Store badge ─────────────────────────────────────── */
.app-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.25rem;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
  min-height: 44px;
}
.app-store-badge:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.app-store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.app-store-badge-text { display: flex; flex-direction: column; }
.app-store-badge-text small { font-size: 0.65rem; letter-spacing: 0.04em; opacity: 0.8; }
.app-store-badge-text span { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,169,110,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), var(--shadow-glow);
}
.card:hover::before { opacity: 1; }

.card-gradient {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(200,169,110,0.04) 100%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.card:hover .card-icon {
  background: rgba(200,169,110,0.18);
  box-shadow: 0 0 16px rgba(200,169,110,0.2);
}

.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.card p  { font-size: 0.9rem; }

/* ── Feature list ────────────────────────────────────────── */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.feature-list li:hover { border-color: var(--accent-border); color: var(--text); transform: translateY(-2px); }
.feature-list li::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ── Stats ───────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
  display: block;
}

/* ── Two-column layout ───────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child  { order: 1; }

/* ── Screenshot gallery ──────────────────────────────────── */
.screenshot-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1rem 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-border) transparent;
  -webkit-overflow-scrolling: touch;
}
.screenshot-scroll::-webkit-scrollbar { height: 4px; }
.screenshot-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshot-scroll::-webkit-scrollbar-thumb { background: var(--accent-border); border-radius: 2px; }

.screenshot-frame {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
  cursor: pointer;
}
.screenshot-frame:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 56px rgba(0,0,0,0.65), 0 0 0 2px var(--accent-border); }
.screenshot-frame img { width: 100%; height: auto; display: block; }

/* ── Dividers ────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0;
}

.gold-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent-bright) 50%, var(--accent) 70%, transparent 100%);
  background-size: 200% auto;
  animation: gold-flow 4s ease-in-out infinite;
  border: none;
  margin: 0;
}

/* ── Badges / pills ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}
.badge-live {
  background: rgba(82,192,122,0.12);
  color: var(--success);
  border: 1px solid rgba(82,192,122,0.3);
  animation: glow-pulse-green 2.5s ease-in-out infinite;
}
.badge-soon { background: rgba(200,169,110,0.1); color: var(--accent); border: 1px solid var(--accent-border); }
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dot-pulse 2s ease-in-out infinite;
}

/* ── Tags ────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  transition: all var(--transition);
}
.tag:hover { color: var(--accent); border-color: var(--accent-border); }

/* ── Pricing card ────────────────────────────────────────── */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright), var(--accent));
}
.pricing-price {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.pricing-price small { font-size: 1rem; color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 400; }

/* ── Timeline ────────────────────────────────────────────── */
.timeline { position: relative; display: flex; flex-direction: column; }
.timeline::before {
  content: '';
  position: absolute;
  left: 15px; top: 32px; bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(200,169,110,0.15) 100%);
}
.timeline-item { display: flex; gap: 1.5rem; padding: 1rem 0; position: relative; }
.timeline-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--accent-border);
  background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0; z-index: 1;
  transition: all var(--transition);
}
.timeline-dot.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.timeline-item:hover .timeline-dot { border-color: var(--accent); box-shadow: 0 0 12px rgba(200,169,110,0.3); }
.timeline-content { flex: 1; padding-top: 4px; }
.timeline-content h4 { font-size: 0.95rem; color: var(--text); margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.85rem; }

/* ── App strip ───────────────────────────────────────────── */
.app-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  max-width: 440px;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition);
}
.app-strip:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--shadow-glow); }
.app-strip-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a2a1a, #3d2a0a);
  border: 1px solid var(--accent-border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.app-strip-info { flex: 1; }
.app-strip-info h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 0.15rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0; text-transform: none; }
.app-strip-info p  { font-size: 0.775rem; }

/* ── Contact form ────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 560px; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.85rem; font-weight: 500; color: var(--text); letter-spacing: 0.02em; }
.form-input, .form-select, .form-textarea {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.1);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-faint); }
.form-select { appearance: none; cursor: pointer; }
.form-status { font-size: 0.875rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm); display: none; }
.form-status.success { background: rgba(82,192,122,0.12); color: var(--success); border: 1px solid rgba(82,192,122,0.25); display: block; }
.form-status.error   { background: rgba(224,82,82,0.12);  color: var(--danger);  border: 1px solid rgba(224,82,82,0.25);  display: block; }

/* ── Prose ───────────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: 1.35rem; }
.prose h3 { margin: 1.75rem 0 0.75rem; font-size: 1.1rem; color: var(--accent); }
.prose p  { margin-bottom: 1rem; }
.prose ul { padding-left: 1.5rem; color: var(--text-muted); margin-bottom: 1rem; }
.prose ul li { margin-bottom: 0.4rem; }
.prose a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 2rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3.5rem 0 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand h4 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: none;
  margin-bottom: 0.6rem;
}
.footer-brand p { font-size: 0.85rem; max-width: 260px; }
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-bottom a { color: var(--text-faint); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Notify form (inline) ────────────────────────────────── */
.notify-input {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.notify-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,169,110,0.1); }
.notify-input::placeholder { color: var(--text-faint); }

/* ════════════════════════════════════════════════════════════
   ANIMATION SYSTEM
   ════════════════════════════════════════════════════════════ */

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale { opacity: 0; transform: scale(0.92);        transition: opacity 0.6s ease, transform 0.6s ease; }

.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes gold-flow {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

@keyframes hero-glow {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

@keyframes glow-pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(82,192,122,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(82,192,122,0); }
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.5; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shimmer text */
.shimmer-text {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 40%, #f0d090 55%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}

/* Typewriter cursor */
.typewriter::after {
  content: '|';
  color: var(--accent);
  animation: cursor-blink 1.1s step-end infinite;
  margin-left: 2px;
}

/* Float element */
.float { animation: float 4s ease-in-out infinite; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(9,9,11,0.98);
    border-bottom: 1px solid var(--accent-border);
    padding: 1rem;
    gap: 0;
    backdrop-filter: blur(16px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.875rem 1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse > *:first-child { order: 0; }
  .two-col.reverse > *:last-child  { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding: 3rem 0; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: clamp(2.5rem, 7vw, 5rem) 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Disable reveals on mobile for performance */
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important; transform: none !important;
  }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .card-grid  { grid-template-columns: 1fr; }
  .screenshot-frame { width: 160px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── iOS / mobile polish ─────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }

.btn, .nav-links a, .nav-cta, .app-store-badge { min-height: 44px; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.btn, .nav-cta, .app-store-badge { touch-action: manipulation; }

@media (max-width: 600px) {
  [style*="minmax(320px"], [style*="minmax(280px"],
  [style*="minmax(260px"], [style*="minmax(220px"],
  [style*="minmax(200px"] { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════════════════════════
   ▼  V3 ADDITIONS — Phase 1 polish, drawer nav, screenshot carousel,
   GTA5-Heists style headings, stock imagery utilities
   ════════════════════════════════════════════════════════════════ */

/* ── Slide-out site drawer (sitemap) ──────────────────────── */
.drawer-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  margin-left: 0.75rem;
}
.drawer-trigger:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.drawer-trigger svg { width: 18px; height: 18px; stroke: var(--text); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,9,11,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  z-index: 1500;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.site-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(380px, 88vw);
  background: linear-gradient(180deg, #0d0d0f 0%, #0a0a0c 100%);
  border-left: 1px solid var(--accent-border);
  box-shadow: -20px 0 60px rgba(0,0,0,0.6);
  z-index: 1600;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.5rem 1.75rem 3rem;
}
.site-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}
.drawer-header .drawer-logo {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}
.drawer-header .drawer-logo span { color: var(--accent); }
.drawer-close {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.drawer-close:hover { color: var(--text); border-color: var(--accent-border); }

.drawer-group {
  margin-bottom: 1.5rem;
}
.drawer-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  padding-left: 0.5rem;
}
.drawer-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.drawer-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  transition: background var(--transition), color var(--transition);
}
.drawer-group a:hover {
  background: rgba(200,169,110,0.08);
  color: var(--accent-bright);
}
.drawer-group .drawer-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 100px;
  background: rgba(82,192,122,0.15);
  color: var(--success);
  text-transform: uppercase;
}
.drawer-group .drawer-badge.soon {
  background: rgba(200,169,110,0.12);
  color: var(--accent-bright);
}

.drawer-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: center;
}

/* lock body scroll when drawer open */
body.drawer-open { overflow: hidden; }

/* ── Hide cluttered nav-links on mobile, show only essentials ─ */
@media (max-width: 880px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: none !important; }
}

/* ── Screenshot carousel (looping iOS screenshot strip) ───── */
.screenshot-marquee {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.screenshot-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.screenshot-marquee:hover .screenshot-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.phone-frame {
  position: relative;
  width: 220px;
  flex-shrink: 0;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 8px #1a1a1c,
    0 0 0 9px rgba(200,169,110,0.15),
    0 20px 50px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.phone-frame:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 8px #222226,
    0 0 0 10px rgba(200,169,110,0.4),
    0 30px 70px rgba(0,0,0,0.75);
}
.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  width: 80px; height: 22px;
  background: #000;
  border-radius: 100px;
  transform: translateX(-50%);
  z-index: 2;
}

/* Bigger phone frames on desktop */
@media (min-width: 768px) {
  .phone-frame { width: 250px; }
}

/* ── GTA5-Heists-style section heading ──────────────────────── */
.heist-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.heist-heading .heist-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200,169,110,0.55);
  margin-bottom: 0.6rem;
}
.heist-heading .heist-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent) 60%, rgba(200,169,110,0.4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(200,169,110,0.25);
  margin-bottom: 0.5rem;
}
.heist-heading .heist-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* ── Stock-image hero ribbon (data center / AI vibe) ────────── */
.tech-ribbon {
  position: relative;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9,9,11,0.85) 0%, rgba(9,9,11,0.5) 50%, rgba(9,9,11,0.9) 100%),
    url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=80') center/cover;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-border);
}
.tech-ribbon::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(200,169,110,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.tech-ribbon-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}
.tech-ribbon-text h3 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.tech-ribbon-text p { color: var(--text-muted); font-size: 0.9rem; }

/* ── DeepThinkAI promo card ──────────────────────────────────── */
.deepthink-card {
  background: linear-gradient(135deg, rgba(120,80,200,0.10) 0%, rgba(200,169,110,0.06) 100%);
  border: 1px solid rgba(180,140,220,0.25);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  transition: transform var(--transition), box-shadow var(--transition);
}
.deepthink-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(120,80,200,0.18);
}
.deepthink-card .dt-emoji { font-size: 2.25rem; }
.deepthink-card .dt-content { flex: 1; min-width: 200px; }
.deepthink-card .dt-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.deepthink-card .dt-sub { font-size: 0.85rem; color: var(--text-muted); }
.deepthink-card .dt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  background: rgba(180,140,220,0.15);
  border: 1px solid rgba(180,140,220,0.35);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4b8f0;
  transition: all var(--transition);
}
.deepthink-card .dt-link:hover {
  background: rgba(180,140,220,0.25);
  color: #fff;
  transform: translateX(3px);
}

/* ── Tool / tech stack pill list ─────────────────────────────── */
.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tool-pill {
  font-size: 0.78rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tool-pill:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--text);
}

/* ── Reduce motion respect ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .screenshot-track { animation: none; }
  .phone-frame:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════════════
   ▼  BLOG POST STYLING (Phase 2 — CrowdStrike-modeled)
   ════════════════════════════════════════════════════════════════ */

.blog-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2rem);
  background:
    radial-gradient(ellipse 60% 80% at 30% 50%, rgba(200,169,110,0.05) 0%, transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--accent-border);
}
.blog-hero .category-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}
.blog-hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 1rem;
  max-width: 800px;
  line-height: 1.2;
}
.blog-hero .post-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.blog-hero .post-meta strong { color: var(--text); font-weight: 500; }
.blog-hero .post-meta .dot { color: var(--text-faint); }

/* ── Blog post body layout (TOC + content) ──────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2.5rem);
}
@media (max-width: 880px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-toc { position: relative !important; top: auto !important; max-height: none !important; }
}

.blog-toc {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  font-size: 0.85rem;
  max-height: calc(100vh - var(--nav-height) - 2rem);
  overflow-y: auto;
  padding-right: 0.5rem;
}
.blog-toc-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--accent-border);
}
.blog-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.blog-toc a {
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  display: block;
  transition: all var(--transition);
  line-height: 1.4;
}
.blog-toc a:hover, .blog-toc a.active {
  color: var(--accent-bright);
  border-left-color: var(--accent);
}

/* ── Article content ────────────────────────────────────────── */
.blog-content {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--text);
  max-width: 720px;
}
.blog-content > p { color: #cdc4b3; margin-bottom: 1.4rem; }
.blog-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
  color: var(--text);
}
.blog-content h2:first-child { margin-top: 0; }
.blog-content h3 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--accent-bright);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.blog-content ul, .blog-content ol {
  margin: 0.5rem 0 1.5rem 1.25rem;
  color: #cdc4b3;
}
.blog-content li { margin-bottom: 0.5rem; }
.blog-content a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition);
}
.blog-content a:hover { text-decoration-color: var(--accent); }
.blog-content strong { color: var(--text); font-weight: 600; }
.blog-content em { font-style: italic; color: #d8cebb; }

.blog-content blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(200,169,110,0.04);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #d8cebb;
  border-radius: 0 8px 8px 0;
}
.blog-content code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  background: rgba(255,255,255,0.06);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.88em;
  color: #e2c07a;
}
.blog-content pre {
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 1.1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.84rem;
  line-height: 1.55;
}
.blog-content pre code {
  background: transparent;
  padding: 0;
  color: #d8cebb;
}

/* Callout blocks */
.callout {
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0;
  border-left: 4px solid var(--accent);
  background: rgba(200,169,110,0.05);
}
.callout-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.callout-info    { border-left-color: #5d9ce0; background: rgba(93,156,224,0.06); }
.callout-info .callout-title { color: #7fb0e8; }
.callout-warn    { border-left-color: #e0a052; background: rgba(224,160,82,0.06); }
.callout-warn .callout-title { color: #e8b67c; }
.callout-success { border-left-color: var(--success); background: rgba(82,192,122,0.05); }
.callout-success .callout-title { color: var(--success); }

/* ── Sources & references ───────────────────────────────────── */
.blog-sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--accent-border);
}
.blog-sources-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.blog-sources ol {
  list-style: none;
  counter-reset: src;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}
.blog-sources li {
  counter-increment: src;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 2rem;
  position: relative;
}
.blog-sources li::before {
  content: '[' counter(src) ']';
  position: absolute;
  left: 0;
  font-family: 'SF Mono', monospace;
  color: var(--accent);
  font-weight: 700;
}
.blog-sources a {
  color: var(--accent-bright);
  text-decoration: underline;
  text-decoration-color: rgba(226,192,122,0.3);
  text-underline-offset: 2px;
}
.blog-sources a:hover { text-decoration-color: var(--accent); }

/* ── Related posts card grid ────────────────────────────────── */
.related-posts {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.related-posts-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  transition: all var(--transition);
  color: var(--text);
}
.related-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.related-card .rc-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.related-card .rc-title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* ── Blog hub: category card ────────────────────────────────── */
.cat-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(200,169,110,0.04) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.cat-card:hover::before { opacity: 1; }
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.cat-card .cat-emoji { font-size: 2rem; margin-bottom: 0.85rem; display: block; }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.cat-card .cat-count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--accent-dim);
  border-radius: 100px;
}

/* ── Blog post-list rows (for category pages) ──────────────── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.post-row {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--text);
  transition: padding var(--transition);
}
.post-row:hover { padding-left: 0.5rem; }
.post-row:last-child { border-bottom: none; }
.post-row .pr-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.45rem;
}
.post-row .pr-meta strong { color: var(--accent); font-weight: 600; }
.post-row .pr-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  line-height: 1.3;
  color: var(--text);
  transition: color var(--transition);
}
.post-row:hover .pr-title { color: var(--accent-bright); }
.post-row .pr-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 760px;
}

/* ════════════════════════════════════════════════════════════════
   ▼  LOGO + PREMIUM NAV (Phase 2)
   ════════════════════════════════════════════════════════════════ */

/* ── Nav logo with brand mark ─────────────────────────────── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  transition: opacity var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
  box-shadow:
    0 0 0 1px rgba(200,169,110,0.25),
    0 0 18px rgba(200,169,110,0.10);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nav-logo:hover .nav-logo-mark {
  box-shadow:
    0 0 0 1px rgba(200,169,110,0.5),
    0 0 28px rgba(200,169,110,0.25);
  transform: rotate(8deg);
}
/* Bulletproof specificity to win against any inherited rule */
.nav-logo .nav-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff !important;
  display: inline-block !important;
}
.nav-logo .nav-logo-text em {
  font-style: normal;
  color: var(--accent) !important;
}

/* Shrink wordmark slightly on small screens but keep it visible.
   Only hide on truly tiny screens (< 340px — vanishingly rare in 2026). */
@media (max-width: 600px) {
  .nav-logo-mark { width: 30px; height: 30px; }
  .nav-logo-text { font-size: 0.98rem; letter-spacing: 0.04em; }
  .nav-logo { gap: 0.5rem; }
}
@media (max-width: 380px) {
  .nav-logo-mark { width: 28px; height: 28px; }
  .nav-logo-text { font-size: 0.88rem; }
}
@media (max-width: 320px) {
  .nav-logo-text { display: none; }
}

/* Drawer logo also gets the mark */
.drawer-header {
  gap: 0.65rem;
}
.drawer-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(200,169,110,0.25);
}

/* ── Ehrlich mark (LOST homage easter egg) ────────────────── */
.ehrlich-mark {
  display: inline-block;
  width: 90px;
  height: 90px;
  border-radius: 6px;
  filter: brightness(0.7) saturate(0.5);
  transition: filter 0.4s ease, transform 0.4s ease;
  cursor: pointer;
}
.ehrlich-mark:hover {
  filter: brightness(1.0) saturate(1);
  transform: rotate(5deg) scale(1.05);
}
.ehrlich-mark-block {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.ehrlich-mark-block .em-text {
  flex: 1;
}
.ehrlich-mark-block .em-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.ehrlich-mark-block .em-title {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.ehrlich-mark-block .em-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ════════════════════════════════════════════════════════════════
   ▼  PREMIUM NAV: Mega-menu + Command Palette (Phase 2)
   ════════════════════════════════════════════════════════════════ */

/* ── Better breakpoint: keep horizontal nav until 720px ───── */
@media (max-width: 880px) and (min-width: 721px) {
  .nav-links { display: flex !important; }
}
@media (max-width: 720px) {
  .nav-links { display: none !important; }
}

/* ── Nav links polish ──────────────────────────────────────── */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.nav-links > li > a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.nav-links > li > a.active {
  color: var(--accent-bright);
}
.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  color: #0a0a0c !important;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  margin-left: 0.5rem;
  box-shadow: 0 0 0 1px rgba(200,169,110,0.3), 0 4px 14px rgba(200,169,110,0.18);
}
.nav-links .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(200,169,110,0.5), 0 8px 22px rgba(200,169,110,0.28);
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
}

/* ── Cmd-K button ──────────────────────────────────────────── */
.cmdk-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  margin-right: 0.25rem;
}
.cmdk-button:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--accent-border);
  color: var(--text);
}
.cmdk-button .cmdk-icon {
  font-size: 0.85rem;
  opacity: 0.6;
}
.cmdk-button .cmdk-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  font-family: 'SF Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
}
@media (max-width: 720px) {
  /* Mobile: search becomes a clean icon-only touch target.
     Minimum 44x44 per Apple HIG so iPhone users can actually hit it. */
  .cmdk-button .cmdk-label { display: none; }
  .cmdk-button .cmdk-shortcut { display: none; }
  .cmdk-button {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
  }
  .cmdk-button .cmdk-icon {
    font-size: 1.15rem;
    opacity: 0.95;
    color: var(--text);
  }
  .cmdk-button:active {
    background: rgba(255,255,255,0.1);
    transform: scale(0.96);
  }
}

/* ── Mega-menu (Blog dropdown) ─────────────────────────────── */
.mega-menu-wrap {
  position: relative;
}
.mega-menu {
  position: fixed;
  top: var(--nav-height);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(1080px, calc(100vw - 2rem));
  background: linear-gradient(180deg, #0e0e10 0%, #0a0a0c 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4),
    0 30px 70px rgba(0,0,0,0.65),
    inset 0 1px 0 rgba(255,255,255,0.04);
  padding: 1.75rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 1100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mega-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1000px) {
  .mega-menu-grid { grid-template-columns: repeat(3, 1fr); }
}

.mega-col {
  padding: 0.5rem;
  border-radius: 10px;
  transition: background var(--transition);
}
.mega-col:hover { background: rgba(200,169,110,0.04); }

.mega-col-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mega-col-head .mega-emoji { font-size: 1.1rem; }
.mega-col-head a {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.mega-col-head a:hover { color: var(--accent-bright); }

.mega-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mega-col li a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.32rem 0.5rem;
  border-radius: 6px;
  line-height: 1.4;
  transition: all var(--transition);
}
.mega-col li a:hover {
  color: var(--accent-bright);
  background: rgba(200,169,110,0.06);
  padding-left: 0.7rem;
}
.mega-col-foot {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.mega-col-foot a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.mega-menu-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.mega-menu-foot kbd {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  font-family: 'SF Mono', monospace;
  font-size: 0.72rem;
}

/* Hide mega-menu on small screens — drawer takes over */
@media (max-width: 880px) {
  .mega-menu { display: none !important; }
}

/* ── Command Palette ───────────────────────────────────────── */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(4rem, 12vh, 7rem);
  z-index: 2000;
  animation: cmdk-fade 0.18s ease-out;
}
.cmdk-backdrop.open { display: flex; }
@keyframes cmdk-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cmdk-panel {
  width: min(640px, calc(100vw - 2rem));
  max-height: min(560px, calc(100vh - 8rem));
  background: #0e0e10;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 40px 100px rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cmdk-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cmdk-pop {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cmdk-search {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmdk-search svg {
  width: 18px; height: 18px;
  stroke: var(--text-muted);
  flex-shrink: 0;
}
.cmdk-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.cmdk-search input::placeholder { color: var(--text-faint); }
.cmdk-search .cmdk-close {
  font-size: 0.72rem;
  font-family: 'SF Mono', monospace;
  padding: 2px 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  color: var(--text-muted);
}

.cmdk-results {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}
.cmdk-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.85rem 0.75rem 0.4rem;
}
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s ease;
}
.cmdk-item:hover, .cmdk-item.selected {
  background: rgba(200,169,110,0.10);
  color: var(--accent-bright);
}
.cmdk-item .cmdk-emoji {
  font-size: 1rem;
  width: 22px;
  text-align: center;
}
.cmdk-item .cmdk-text {
  flex: 1;
  line-height: 1.3;
}
.cmdk-item .cmdk-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1px;
}
.cmdk-item .cmdk-go {
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity var(--transition);
  color: var(--accent);
}
.cmdk-item:hover .cmdk-go, .cmdk-item.selected .cmdk-go { opacity: 1; }

.cmdk-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.cmdk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  font-size: 0.72rem;
  color: var(--text-faint);
}
.cmdk-foot kbd {
  display: inline-block;
  padding: 1px 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 3px;
  font-family: 'SF Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.cmdk-foot-key { display: inline-flex; align-items: center; gap: 0.4rem; }
.cmdk-foot-key + .cmdk-foot-key { margin-left: 1rem; }

/* ── Scroll progress bar (premium polish on blog posts) ────── */
.scroll-progress {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 1050;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
  width: 0%;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(200,169,110,0.5);
}

/* ════════════════════════════════════════════════════════════════
   ▼  LEFT-SIDE BLOG NAVIGATION (Stripe/Vercel docs style)
   ════════════════════════════════════════════════════════════════ */

/* Update blog-layout to be a 3-column grid on wide screens */
@media (min-width: 1240px) {
  .blog-layout {
    grid-template-columns: 240px 1fr 200px;
    grid-template-areas: "sidenav content toc";
    max-width: 1320px;
  }
  .blog-side-nav { grid-area: sidenav; }
  .blog-content  { grid-area: content; }
  .blog-toc      { grid-area: toc; }
}
@media (min-width: 1024px) and (max-width: 1239px) {
  .blog-layout {
    grid-template-columns: 220px 1fr;
    grid-template-areas: "sidenav content";
  }
  .blog-side-nav { grid-area: sidenav; }
  .blog-content  { grid-area: content; }
  .blog-toc      { display: none; }
}
@media (max-width: 1023px) {
  .blog-side-nav { display: none !important; }
}

/* ── Side nav container ─────────────────────────────────────── */
.blog-side-nav {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  align-self: start;
  max-height: calc(100vh - var(--nav-height) - 2rem);
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: 0.85rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.blog-side-nav::-webkit-scrollbar { width: 6px; }
.blog-side-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.blog-side-nav::-webkit-scrollbar-track { background: transparent; }

.bsn-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bsn-header .bsn-back {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.bsn-header .bsn-back:hover { color: var(--accent-bright); }

.bsn-cat {
  margin-bottom: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.bsn-cat-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.55rem 0.65rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  letter-spacing: 0.01em;
  transition: background var(--transition);
  border-radius: 6px;
}
.bsn-cat-toggle:hover { background: rgba(255,255,255,0.04); }
.bsn-cat-toggle .bsn-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.bsn-cat-toggle .bsn-emoji { font-size: 0.95rem; }
.bsn-cat-toggle .bsn-chevron {
  font-size: 0.72rem;
  color: var(--text-faint);
  transition: transform var(--transition);
}
.bsn-cat.expanded .bsn-chevron { transform: rotate(90deg); }

.bsn-posts {
  list-style: none;
  margin: 0.2rem 0 0.4rem;
  padding: 0 0 0 0.85rem;
  border-left: 1px solid rgba(255,255,255,0.06);
  margin-left: 0.95rem;
  display: none;
}
.bsn-cat.expanded .bsn-posts { display: block; }

.bsn-posts li a {
  display: block;
  padding: 0.32rem 0.5rem 0.32rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  border-radius: 5px;
  transition: all 0.12s ease;
  position: relative;
}
.bsn-posts li a:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.bsn-posts li a.active {
  color: var(--accent-bright);
  background: rgba(200,169,110,0.08);
  font-weight: 500;
}
.bsn-posts li a.active::before {
  content: '';
  position: absolute;
  left: -0.95rem;
  top: 0.45rem;
  bottom: 0.45rem;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.bsn-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.85rem 0.5rem 0;
}
.bsn-footer a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  border-radius: 5px;
  transition: all var(--transition);
}
.bsn-footer a:hover {
  background: rgba(200,169,110,0.06);
  color: var(--accent-bright);
}

/* ── Category index pages: 2-col layout when sidenav active ── */
@media (min-width: 1024px) {
  .blog-cat-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
    align-items: start;
  }
  .blog-cat-layout .blog-side-nav { position: sticky; top: calc(var(--nav-height) + 1rem); }
}

/* ════════════════════════════════════════════════════════════════
   ▼  OFFICIAL-STYLE BRAND BUTTONS — App Store + LinkedIn
   Per Apple Marketing Guidelines & LinkedIn Brand Guidelines.
   ════════════════════════════════════════════════════════════════ */

/* App Store badge — drop-in replacement for the old CSS-text version */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  line-height: 1;
  border-radius: 10px;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  background: transparent;
  padding: 0;
  border: 0;
}
.app-store-btn img,
.app-store-btn svg {
  display: block;
  height: 100%;
  width: auto;
}
.app-store-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.app-store-btn:active { transform: translateY(0); }

/* LinkedIn branded button */
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  line-height: 1;
  border-radius: 6px;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  background: transparent;
  padding: 0;
  border: 0;
}
.linkedin-btn img,
.linkedin-btn svg {
  display: block;
  height: 100%;
  width: auto;
}
.linkedin-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.32);
}
.linkedin-btn:active { transform: translateY(0); }

/* ── Optional: deprecated old badge class — keep as safety fallback ── */
.app-store-badge,
.app-store-badge-text { display: none !important; }

/* ════════════════════════════════════════════════════════════════
   ▼  VIDEO HERO (RDR2 App Store preview embed)
   ════════════════════════════════════════════════════════════════ */
.video-hero {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 8px #1a1a1c,
    0 0 0 9px rgba(200,169,110,0.18),
    0 30px 80px rgba(0,0,0,0.6);
}
.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}
.video-hero::before {
  content: '';
  position: absolute;
  top: 12px; left: 50%;
  width: 100px; height: 26px;
  background: #000;
  border-radius: 100px;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}
.video-hero-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}
.video-hero-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
}
.video-hero-btn:hover {
  background: rgba(200,169,110,0.4);
  border-color: var(--accent);
}

/* Two-column layout: text on left, video on right for desktop */
.video-hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 880px) {
  .video-hero-layout { grid-template-columns: 1.2fr 1fr; }
  .video-hero { max-width: 340px; }
}

/* ════════════════════════════════════════════════════════════════
   ▼  SHARE BUTTONS (auto-injected on every blog post)
   ════════════════════════════════════════════════════════════════ */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.share-bar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-right: 0.5rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.share-btn:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  color: var(--text);
  transform: translateY(-1px);
}
.share-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.share-btn.copied {
  background: rgba(82,192,122,0.12);
  border-color: rgba(82,192,122,0.35);
  color: var(--success);
}

/* Native share button (mobile-only — Web Share API) */
.share-btn-native { display: none; }
@media (max-width: 720px) {
  .share-btn-native.available { display: inline-flex; }
  /* On mobile, can simplify to native + copy only */
  .share-btn-x, .share-btn-li, .share-btn-email { display: none; }
  .share-btn-native.available + .share-btn-copy { display: inline-flex; }
}

/* Bottom share section (more prominent, closer to "did you like this?" CTA) */
.share-bottom {
  margin: 3rem 0 1rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(200,169,110,0.05) 0%, rgba(82,192,122,0.03) 100%);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
}
.share-bottom h4 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}
.share-bottom .share-bar {
  background: transparent;
  border: none;
  padding: 0;
  justify-content: center;
  margin: 0;
}

/* Mobile: cap video hero size so it doesn't dominate */
@media (max-width: 879px) {
  .video-hero {
    max-width: 240px;
    margin: 1rem auto 0;
  }
}

/* ════════════════════════════════════════════════════════════════
   ▼  ALUMNI BADGE BLOCK (About page)
   ════════════════════════════════════════════════════════════════ */
.alumni-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.alumni-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.alumni-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.alumni-badge {
  display: inline-flex;
  transition: transform var(--transition), filter var(--transition);
}
.alumni-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.alumni-badge img {
  display: block;
  height: 56px;
  width: auto;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   ▼  BLOG HUB v2 — CrowdStrike-inspired scannable grid
   ═══════════════════════════════════════════════════════════════ */
.blog-hub-hero {
  padding: 3rem 0 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-hub-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}
.blog-hub-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.blog-hub-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  margin: 0 0 0.6rem;
  line-height: 1.05;
}
.blog-hub-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}
.blog-hub-stats {
  display: flex;
  gap: 1.5rem;
}
.bh-stat {
  text-align: center;
  min-width: 60px;
}
.bh-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.bh-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.3rem;
}
.blog-hub-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.bh-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.bh-tool-btn:hover {
  border-color: var(--accent-border);
  background: rgba(200,169,110,0.08);
}
.bh-tool-primary {
  background: linear-gradient(135deg, rgba(200,169,110,0.18), rgba(82,192,122,0.1));
  border-color: var(--accent-border);
}
.bh-tool-btn kbd {
  padding: 1px 6px;
  font-size: 0.7rem;
  font-family: 'SF Mono', monospace;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}
.bh-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.bh-sort select {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
}
.blog-hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}
.bh-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.bh-chip:hover {
  border-color: var(--accent-border);
  color: var(--text);
}
.bh-chip.active {
  background: rgba(200,169,110,0.14);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.bh-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
  padding: 0;
}

/* ── Cards grid ───────────────────────────────────────────── */
.blog-hub-grid-section {
  padding: 2rem 0 3rem;
}
.blog-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.bh-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card, #0e0e10);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.bh-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.bh-card-art {
  position: relative;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  background: linear-gradient(135deg, rgba(200,169,110,0.18), rgba(82,192,122,0.08));
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bh-art-ai-companies   { background: linear-gradient(135deg, rgba(155,135,245,0.22), rgba(200,169,110,0.08)); }
.bh-art-ios-development{ background: linear-gradient(135deg, rgba(82,192,122,0.20), rgba(200,169,110,0.06)); }
.bh-art-infrastructure { background: linear-gradient(135deg, rgba(110,180,240,0.20), rgba(200,169,110,0.06)); }
.bh-art-engineering    { background: linear-gradient(135deg, rgba(240,160,90,0.20), rgba(200,169,110,0.06)); }
.bh-art-smart-home     { background: linear-gradient(135deg, rgba(245,200,100,0.22), rgba(200,169,110,0.06)); }
.bh-art-app-economics  { background: linear-gradient(135deg, rgba(200,169,110,0.25), rgba(82,192,122,0.08)); }
.bh-art-crypto-finance { background: linear-gradient(135deg, rgba(140,205,235,0.20), rgba(200,169,110,0.06)); }
.bh-card-featured {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,0,0,0.5);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
}
.bh-card-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bh-card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.bh-card-cat { color: var(--accent); font-weight: 700; }
.bh-card-dot { opacity: 0.5; }
.bh-card-title {
  font-size: 1.02rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  font-weight: 600;
  font-family: var(--font-display, inherit);
  font-variant: small-caps;
  letter-spacing: 0.02em;
}
.bh-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-hub-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

/* ── Hub CTA strip ────────────────────────────────────────── */
.blog-hub-cta {
  background: var(--bg-card);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.bh-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bh-cta-inner h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}
.bh-cta-inner p {
  margin: 0;
  color: var(--text-muted);
}

/* ── Mobile blog hub ──────────────────────────────────────── */
@media (max-width: 720px) {
  .blog-hub-top { grid-template-columns: 1fr; }
  .blog-hub-stats { gap: 1.25rem; }
  .blog-hub-toolbar { flex-direction: column; align-items: stretch; }
  .bh-tool-btn { justify-content: center; }
  .bh-sort { margin-left: 0; justify-content: space-between; }
  .blog-hub-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bh-card-art { height: 90px; font-size: 2.2rem; }
  .bh-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   ▼  WIKI INDEX (/blog/all.html)
   ═══════════════════════════════════════════════════════════════ */
.wiki-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}
.wiki-search {
  flex: 1 1 280px;
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.wiki-search:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.wiki-select {
  padding: 0.6rem 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.wiki-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.wiki-table thead th {
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 700;
}
.wiki-table tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
}
.wiki-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.wiki-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.wiki-link:hover { color: var(--accent); }
.wiki-star { color: var(--accent); }
.wiki-catlink {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.wiki-catlink:hover { color: var(--accent); }
.wiki-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.wiki-min {
  color: var(--text-faint);
  font-size: 0.8rem;
  white-space: nowrap;
}
.wiki-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  /* Table → card view on small screens */
  .wiki-table thead { display: none; }
  .wiki-table, .wiki-table tbody, .wiki-table tr, .wiki-table td { display: block; width: 100%; }
  .wiki-table tr {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    padding: 0.6rem;
  }
  .wiki-table td { border: none; padding: 0.25rem 0; }
  .wiki-table td.wiki-min::before { content: '⏱ '; }
  .wiki-controls { flex-direction: column; align-items: stretch; }
  .wiki-count { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   ▼  PRINT STYLESHEET — clean PDF export of any blog page
   ═══════════════════════════════════════════════════════════════ */
@media print {
  /* Page setup */
  @page {
    size: Letter;
    margin: 0.6in 0.75in;
  }
  html, body {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  /* Hide all chrome */
  .nav,
  .drawer-trigger,
  .mega-menu-wrap,
  .cmdk-button,
  .cmdk-overlay,
  .blog-toc,
  footer,
  .related-posts,
  .blog-hub-cta,
  .bh-tool-btn,
  .blog-hub-filters,
  .blog-hub-toolbar,
  .blog-hub-stats,
  .share-buttons,
  .wiki-controls,
  .scroll-progress,
  script,
  noscript {
    display: none !important;
  }

  /* Print-friendly content */
  .blog-hero,
  .blog-hub-hero {
    padding: 0 0 0.5in !important;
    border-bottom: 2px solid #333 !important;
  }
  .blog-hero h1,
  .blog-hub-title { color: #111 !important; font-size: 22pt; }
  .post-meta { color: #555 !important; }
  .blog-layout { display: block !important; }
  .blog-content {
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.55;
    max-width: 100% !important;
  }
  .blog-content h2 { color: #111 !important; font-size: 16pt; page-break-after: avoid; margin-top: 0.4in; }
  .blog-content h3 { color: #111 !important; font-size: 13pt; page-break-after: avoid; }
  .blog-content p, .blog-content li { color: #222 !important; orphans: 3; widows: 3; }
  .blog-content a { color: #0a4a7a !important; text-decoration: underline; }
  .blog-content a[href^="http"]::after {
    content: ' (' attr(href) ')';
    font-size: 9pt;
    color: #555;
    word-break: break-all;
  }
  .blog-content code, .blog-content pre {
    background: #f4f4f4 !important;
    color: #111 !important;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  .blog-content table { page-break-inside: avoid; border-color: #999 !important; }
  .blog-content table th, .blog-content table td { color: #111 !important; border-color: #ccc !important; }
  .callout {
    border: 2px solid #999 !important;
    background: #f4f4f4 !important;
    color: #111 !important;
    page-break-inside: avoid;
  }
  .blog-sources {
    border-top: 1px solid #999 !important;
    margin-top: 0.4in;
    padding-top: 0.2in;
    page-break-inside: avoid;
  }
  .blog-sources a { color: #0a4a7a !important; }

  /* Force background colors to print */
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  /* Print URL footer for context */
  body::after {
    content: 'djEnterprises.ai · ' attr(data-print-url);
    display: block;
    text-align: center;
    color: #888;
    font-size: 8pt;
    margin-top: 0.3in;
  }
}

/* ── Markdown download share button styling ─────────────── */
.share-btn-md {
  background: rgba(82,192,122,0.08);
  border-color: rgba(82,192,122,0.3) !important;
}
.share-btn-md:hover {
  background: rgba(82,192,122,0.18) !important;
  border-color: #62d68a !important;
  color: #62d68a !important;
}
