/* ==========================================================================
   Dark Sand Flow - Vercel & X Hybrid Quiet Luxury (2026 Pro Edition)
   Aesthetics: Deep Pitch Void (#020204) + Frosted Obsidian Glass + Refined Typography
   ========================================================================== */

:root {
  --bg-deep: #020204;
  
  /* Precision frosted panel surface (Crisp, clean obsidian glass) */
  --bg-card: rgba(14, 15, 20, 0.75);
  --bg-card-hover: rgba(22, 26, 36, 0.92);
  
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(56, 189, 248, 0.35);
  
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;

  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-deep);
  overflow-x: hidden;
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Background Flow Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Vignette Overlay */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 35%, transparent 45%, rgba(2, 2, 4, 0.92) 100%);
}

.shell {
  position: relative;
  z-index: 2;
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ==========================================================================
   Smart Auto-Hide Floating Header Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
  will-change: transform, opacity;
}

.site-header.header--hidden {
  transform: translate3d(0, -130%, 0) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.site-header.header--scrolled .header-inner {
  background: rgba(12, 13, 17, 0.92);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: rgba(14, 15, 20, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #27272a, #09090b);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #94a3b8;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 450;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.search-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.search-trigger kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.icon-link {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s;
}

.icon-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Hero Section (Vercel Style Console & Live Telemetry)
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 40px;
}

.hero-copy .eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal-prefix {
  color: #94a3b8;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: #ffffff;
}

.hero-description {
  font-size: clamp(14px, 1.3vw, 15.5px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #ffffff;
  color: #020204;
  font-weight: 600;
  font-size: 13px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.24);
}

.button-primary:active {
  transform: scale(0.97);
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.button-ghost:active {
  transform: scale(0.97);
}

.btn-subtext {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Telemetry Card */
.hero-stats-card {
  padding: 24px;
  border-radius: 16px;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.telemetry-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse-glow 2.4s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.telemetry-status {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-green);
}

.telemetry-tz {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.telemetry-headline {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.telemetry-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.telemetry-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.telemetry-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.telemetry-tag code {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Vercel Border Beam Effect
   ========================================================================== */

.border-beam {
  position: relative;
}

.border-beam::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

/* ==========================================================================
   Clean Headings & Sections
   ========================================================================== */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.section-kicker {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  font-weight: 500;
  color: #38bdf8;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #ededed;
}

.section-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   Spotlight Cards & Micro-interactions
   ========================================================================== */

.spotlight-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: 14px;
  border: 1px solid var(--panel-border);
  overflow: hidden;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    280px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(255, 255, 255, 0.5) 0%,
    rgba(226, 232, 240, 0.15) 40%,
    transparent 75%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--panel-border-hover);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.9),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-content {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Bento Showcase Grid (Enhanced Interactive Luxury Edition)
   ========================================================================== */

.bento-section {
  margin-top: 10px;
  margin-bottom: 50px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 15, 20, 0.75);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Left Laser Accent Line for Bento */
.bento-card-accent-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, #38bdf8, transparent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-card-accent-line {
  opacity: 1;
  transform: scaleY(1);
}

.bento-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.9),
              0 0 28px -6px rgba(56, 189, 248, 0.22),
              inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.bento-primary {
  grid-column: span 7;
  min-height: 260px;
  background: linear-gradient(135deg, rgba(20, 25, 36, 0.85), rgba(12, 13, 18, 0.9));
}

.bento-secondary {
  grid-column: span 5;
  min-height: 260px;
  background: linear-gradient(135deg, rgba(16, 18, 26, 0.8), rgba(10, 11, 15, 0.85));
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.badge-featured {
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  transition: all 0.2s ease;
}

.bento-card:hover .badge-featured {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.card-meta time {
  font-size: 11.5px;
  color: var(--text-faint);
  font-feature-settings: "tnum";
  font-family: var(--font-mono);
}

.bento-title {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 650;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.bento-title a {
  color: #ededed;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}

.bento-card:hover .bento-title a {
  color: #ffffff;
  transform: translateX(2px);
}

.bento-excerpt {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.bento-card:hover .bento-excerpt {
  color: #cbd5e1;
}

.bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.post-category-tag span {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  transition: all 0.2s ease;
}

.bento-card:hover .post-category-tag span {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.card-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-arrow-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .card-footer-link {
  color: #38bdf8;
}

.bento-card:hover .bento-arrow-circle {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(4px);
}

/* ==========================================================================
   Dual Column Layout (X Feed + Vercel Widgets)
   ========================================================================== */

.content-stream-section {
  margin-bottom: 70px;
}

.dual-column-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 28px;
  align-items: start;
}

/* Left: Filter Tabs with Smooth Indicator */
.feed-tabs-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px;
  margin-bottom: 20px;
  gap: 2px;
}

.tabs-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.tab-item {
  position: relative;
  z-index: 2;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tab-item:hover {
  color: #fff;
}

.tab-item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Post Stream List (Enhanced Interactive Dynamic Cards)
   ========================================================================== */

.post-stream-list {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.stream-post-card {
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 15, 20, 0.72);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Left Accent Light Bar (expands on Hover) */
.stream-card-accent-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, #38bdf8, transparent);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-post-card:hover .stream-card-accent-line {
  opacity: 1;
  transform: scaleY(1);
}

.stream-post-card:hover {
  transform: translateY(-3px) translateX(4px) !important;
  background: rgba(20, 24, 34, 0.92) !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.85),
              0 0 24px -6px rgba(56, 189, 248, 0.18),
              inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.stream-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.stream-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stream-post-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.author-pulse-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  margin-right: 5px;
  box-shadow: 0 0 6px var(--accent-cyan);
}

.stream-author-tag {
  font-weight: 500;
  color: #cbd5e1;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
}

.meta-dot {
  color: var(--text-faint);
}

.stream-category-pill span {
  font-size: 10.5px;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.stream-post-card:hover .stream-category-pill span {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.stream-post-title {
  font-size: 16.5px;
  font-weight: 600;
  color: #ededed;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: color 0.2s;
}

.title-text {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-post-card:hover .title-text {
  color: #ffffff;
  transform: translateX(2px);
}

.title-glow-badge {
  font-size: 9.5px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-faint);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.stream-post-card:hover .title-glow-badge {
  opacity: 1;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.stream-post-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.stream-post-card:hover .stream-post-excerpt {
  color: #cbd5e1;
}

.stream-post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.action-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.badge-doc-id code {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.stream-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-arrow-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.stream-post-card:hover .stream-read-more {
  color: #38bdf8;
}

.stream-post-card:hover .stream-arrow-circle {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(4px);
}

/* Empty State */
.empty-state {
  margin-bottom: 30px;
}

.empty-icon {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--text-muted);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.page-btn:active {
  transform: scale(0.97);
}

.page-info {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Right: Sidebar Widgets */
.stream-sidebar-col {
  display: grid;
  gap: 16px;
}

.sidebar-widget {
  padding: 20px;
  border-radius: 14px;
}

.widget-profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.widget-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #27272a, #09090b);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 18px;
  overflow: hidden;
}

.widget-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.widget-profile-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.widget-profile-info p {
  font-size: 11.5px;
  color: var(--text-muted);
}

.widget-bio {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.widget-quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.widget-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.widget-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.widget-title {
  margin-bottom: 12px;
}

.widget-kicker {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #38bdf8;
  letter-spacing: 0.08em;
}

.widget-title h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: #ededed;
  margin-top: 2px;
}

.system-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.system-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.system-list li:last-child {
  border-bottom: none;
}

.node-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.node-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.node-status-dot.online {
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

.node-val {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
}

.tags-cloud-pill {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud-item {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-cloud-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* ==========================================================================
   Archive & Timeline (GitHub Commit / Release Architecture with Dynamic Hover)
   ========================================================================== */

.archive-timeline-wrapper {
  position: relative;
  display: grid;
  gap: 36px;
  margin-bottom: 50px;
}

.archive-year-section {
  position: relative;
}

.year-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.year-marker-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: grid;
  place-items: center;
}

.marker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.year-title {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

.year-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.timeline-post-list {
  display: grid;
  gap: 10px;
  padding-left: 10px;
  border-left: 1px dashed rgba(255, 255, 255, 0.12);
  margin-left: 10px;
}

.timeline-post-card {
  padding: 16px 20px !important;
  border-radius: 12px !important;
  background: rgba(14, 15, 20, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.timeline-post-card:hover {
  transform: translateY(-2px) translateX(6px) !important;
  background: rgba(22, 26, 36, 0.92) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.85),
              0 0 20px -4px rgba(56, 189, 248, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.timeline-post-inner {
  display: grid;
  grid-template-columns: 85px 1fr 85px;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.post-commit-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.commit-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s ease;
}

.timeline-post-card:hover .commit-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.post-commit-info time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  font-feature-settings: "tnum";
}

.post-commit-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.post-commit-title {
  font-size: 15px;
  font-weight: 550;
  color: #ededed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.timeline-post-card:hover .post-commit-title {
  color: #ffffff;
}

.post-commit-meta {
  display: flex;
  gap: 6px;
}

.commit-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.post-commit-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-faint);
  transition: all 0.2s ease;
}

.arrow-btn-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-post-card:hover .arrow-btn-circle {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(3px);
}

.timeline-post-card:hover .post-commit-arrow {
  color: #38bdf8;
}

/* ==========================================================================
   Categories Matrix (Bento Grid - Vercel Geek Edition)
   ========================================================================== */

.categories-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 50px;
}

.category-bento-card {
  padding: 24px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

/* Vercel Geometric Layer Icon Badge */
.cat-tech-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: grid;
  place-items: center;
  color: #38bdf8;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-bento-card:hover .cat-tech-icon {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
  transform: scale(1.05);
}

.cat-count-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.category-bento-card:hover .cat-count-badge {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
}

.cat-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #ededed;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.category-bento-card:hover .cat-card-title {
  color: #ffffff;
}

.cat-card-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cat-card-arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.arrow-circle-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-bento-card:hover .cat-card-arrow {
  color: #ededed;
}

.category-bento-card:hover .arrow-circle-mini {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  transform: translateX(3px);
}

/* ==========================================================================
   Post Detail Page & Prose Typography
   ========================================================================== */

.post-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
  margin-top: 120px;
  margin-bottom: 80px;
}

.post-breadcrumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.post-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.post-breadcrumbs a:hover {
  color: #fff;
}

.post-header-card {
  padding: 32px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.post-title-main {
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: #fff;
}

.post-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Article Prose Typography */
.prose {
  color: #d4d4d8;
  font-size: 15.5px;
  line-height: 1.8;
  padding: 36px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #ffffff;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-top: 32px;
  margin-bottom: 14px;
}

.prose h2 { font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.prose h3 { font-size: 18px; }

.prose p { margin-bottom: 18px; }

.prose a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s;
}

.prose a:hover { opacity: 0.8; }

.prose blockquote {
  padding: 14px 20px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #38bdf8;
  border-radius: 0 10px 10px 0;
  color: #cbd5e1;
  font-style: normal;
}

.prose code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
}

.prose pre {
  position: relative;
  background: #0d0e13 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  margin: 22px 0 !important;
  overflow-x: auto;
}

/* Copy Code Button */
.code-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 11px;
  font-family: var(--font-mono);
  cursor: pointer;
  opacity: 0;
  transition: all 0.2s ease;
}

pre:hover .code-copy-btn {
  opacity: 1;
}

.code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* TOC Sidebar */
.toc-card {
  position: sticky;
  top: 90px;
  padding: 20px;
  border-radius: 14px;
}

.toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.toc-nav a {
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  padding: 3px 0;
  transition: all 0.2s ease;
}

.toc-nav a:hover, .toc-nav a.active {
  color: #38bdf8;
  transform: translateX(3px);
}

/* ==========================================================================
   Scroll-Triggered Reveal Animation (Stagger Fade-In)
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 30px 0 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ededed;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    gap: 24px;
  }
  .bento-primary, .bento-secondary {
    grid-column: span 12;
  }
  .dual-column-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stream-sidebar-col {
    grid-template-columns: 1fr 1fr;
  }
  .post-layout {
    grid-template-columns: 1fr;
  }
  .toc-card {
    display: none;
  }
}

@media (max-width: 640px) {
  .stream-sidebar-col {
    grid-template-columns: 1fr;
  }
  .timeline-post-inner {
    grid-template-columns: 60px 1fr 20px;
    gap: 10px;
  }
  .read-prompt {
    display: none;
  }
  .header-inner {
    padding: 6px 14px;
  }
  .nav-links a {
    padding: 4px 8px;
    font-size: 12px;
  }
}
