/* ============================================================
   AutomateNetOps.AI — Dark Theme Landing Page
   Color palette: violet #8b5cf6 → fuchsia #d946ef → cyan #06b6d4
   Inspired by aura.build aesthetics
   ============================================================ */

/* ---------- Reset & Base ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-tertiary: #141414;
  --bg-card: rgba(255,255,255,0.02);
  --bg-card-hover: rgba(255,255,255,0.05);
  --border-card: rgba(255,255,255,0.08);
  --border-card-hover: rgba(255,255,255,0.15);
  --text-primary: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --violet: #8b5cf6;
  --fuchsia: #d946ef;
  --cyan: #06b6d4;
  --gradient-main: linear-gradient(135deg, #a78bfa, #e879f9, #22d3ee);
  --gradient-subtle: linear-gradient(135deg, rgba(139,92,246,0.15), rgba(217,70,239,0.10), rgba(6,182,212,0.15));
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ---------- Noise / Grain Texture Overlay ---------- */
svg#dk-noise-filter {
  position: absolute;
  width: 0;
  height: 0;
}

/* ---------- Smooth Scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* Override minimal-mistakes styles on landing layout */
.layout--landing,
.layout--landing body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise overlay on whole page */
.layout--landing::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.layout--landing *,
.layout--landing *::before,
.layout--landing *::after {
  box-sizing: border-box;
}

/* Hide minimal-mistakes elements on landing */
.layout--landing .masthead,
.layout--landing .page__footer,
.layout--landing .sidebar,
.layout--landing .loader-wrapper,
.layout--landing .splash-wrapper,
.layout--landing .search-content,
.layout--landing #initial-content > .page {
  display: none !important;
}

/* ---------- Container ---------- */
.dk-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Gradient Text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #e879f9, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Glass Card ---------- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-subtle);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

/* Animated gradient border on hover */
.glass-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(167,139,250,0.4), rgba(232,121,249,0.3), rgba(34,211,238,0.4));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  transform: translateY(-1px);
}

.glass-card:hover::before {
  opacity: 0.4;
}

.glass-card:hover::after {
  opacity: 0.3;
}

/* ---------- Buttons ---------- */
.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient-main);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #7c3aed, #c026d3, #0891b2);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3),
              0 4px 16px rgba(217, 70, 239, 0.2);
}

.btn-gradient:hover::before {
  opacity: 1;
}

.btn-gradient span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--border-card-hover);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn-outline:hover {
  border-color: var(--violet);
  background: rgba(139, 92, 246, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

.btn-gradient-sm {
  padding: 10px 22px;
  font-size: 0.875rem;
  border-radius: 100px;
}

/* ---------- Section Spacing ---------- */
.dk-section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.dk-section-sm {
  padding: 60px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.8;
  margin: 0;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
.dk-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all var(--transition);
}

.dk-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 8px;
}

.dk-nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dk-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.dk-nav-logo img {
  height: 32px;
  width: auto;
}

.dk-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dk-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.dk-nav-links a:hover {
  color: var(--text-primary);
}

.dk-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dk-nav-signin {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.dk-nav-signin:hover {
  color: var(--text-primary);
}

.dk-nav-cta {
  padding: 9px 20px;
  font-size: 0.85rem;
  border-radius: 100px;
  background: var(--gradient-main);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
}

.dk-nav-cta:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

/* Mobile Menu */
.dk-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.dk-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.dk-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.dk-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.dk-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.dk-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.dk-mobile-menu.active {
  display: flex;
}

.dk-mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  transition: color var(--transition);
}

.dk-mobile-menu a:hover {
  color: var(--violet);
}

/* ============================================================
   HERO
   ============================================================ */
.dk-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient mesh background */
.dk-hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-attachment: fixed;
}

.dk-hero-mesh .mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.dk-hero-mesh .mesh-orb-1 {
  width: 700px;
  height: 700px;
  top: -20%;
  left: 20%;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  animation: dk-mesh-float-1 12s ease-in-out infinite;
}

.dk-hero-mesh .mesh-orb-2 {
  width: 500px;
  height: 500px;
  top: 10%;
  right: 5%;
  background: radial-gradient(circle, rgba(217,70,239,0.12) 0%, transparent 70%);
  animation: dk-mesh-float-2 15s ease-in-out infinite;
}

.dk-hero-mesh .mesh-orb-3 {
  width: 600px;
  height: 600px;
  bottom: -15%;
  left: -5%;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  animation: dk-mesh-float-3 18s ease-in-out infinite;
}

.dk-hero-mesh .mesh-orb-4 {
  width: 400px;
  height: 400px;
  bottom: 5%;
  right: 15%;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  animation: dk-mesh-float-1 20s ease-in-out infinite reverse;
}

@keyframes dk-mesh-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes dk-mesh-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 40px) scale(1.08); }
  66% { transform: translate(30px, -20px) scale(0.92); }
}

@keyframes dk-mesh-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, 25px) scale(1.04); }
  66% { transform: translate(-35px, -15px) scale(0.96); }
}

/* Legacy ambient glow (keep as subtle fallback) */
.dk-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.06) 0%, rgba(217,70,239,0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dk-hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.dk-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.dk-hero-content {
  position: relative;
  z-index: 1;
  text-align: left;
}

.dk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.dk-hero h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}

@media (min-width: 1280px) {
  .dk-hero h1 {
    font-size: 5rem;
  }
}

@media (min-width: 1536px) {
  .dk-hero h1 {
    font-size: 6rem;
  }
}

.dk-hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 0 40px;
}

.dk-hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.dk-hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Dashboard Mockup (right side of hero) ---------- */
.dk-hero-mockup {
  position: relative;
  z-index: 1;
}

.dk-dashboard-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(139,92,246,0.08),
    0 0 120px rgba(6,182,212,0.04),
    0 32px 64px rgba(0,0,0,0.4);
}

.dk-dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dk-dashboard-chrome .dot { width: 8px; height: 8px; border-radius: 50%; }
.dk-dashboard-chrome .dot-r { background: #ff5f57; }
.dk-dashboard-chrome .dot-y { background: #febc2e; }
.dk-dashboard-chrome .dot-g { background: #28c840; }
.dk-dashboard-chrome .chrome-title {
  margin-left: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dk-workflow-canvas {
  padding: 32px 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.dk-wf-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dk-wf-node {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.dk-wf-node-start {
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.35);
  color: #c4b5fd;
}

.dk-wf-node-connect {
  background: rgba(217,70,239,0.12);
  border: 1px solid rgba(217,70,239,0.3);
  color: #f0abfc;
}

.dk-wf-node-execute {
  background: rgba(6,182,212,0.15);
  border: 1px solid rgba(6,182,212,0.35);
  color: #67e8f9;
}

.dk-wf-node-end {
  background: rgba(134,239,172,0.1);
  border: 1px solid rgba(134,239,172,0.3);
  color: #86efac;
}

.dk-wf-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(139,92,246,0.5), rgba(6,182,212,0.5));
  position: relative;
}

.dk-wf-connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid rgba(6,182,212,0.5);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.dk-wf-connector-v {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(6,182,212,0.4), rgba(134,239,172,0.4));
  margin: 4px 0;
}

.dk-wf-status {
  margin-top: 20px;
  padding: 8px 16px;
  background: rgba(134,239,172,0.08);
  border: 1px solid rgba(134,239,172,0.2);
  border-radius: 100px;
  font-size: 0.7rem;
  color: #86efac;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dk-wf-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86efac;
  animation: dk-pulse 2s ease-in-out infinite;
}

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

.dk-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.dk-trust-badge svg {
  width: 18px;
  height: 18px;
  opacity: 0.5;
}

.dk-trust-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
}

/* ============================================================
   TRUSTED BY — Marquee
   ============================================================ */
.dk-trusted {
  padding: 56px 0;
  overflow: hidden;
  position: relative;
}

/* Gradient lines above and below */
.dk-trusted::before,
.dk-trusted::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), rgba(217,70,239,0.2), rgba(6,182,212,0.3), transparent);
}
.dk-trusted::before { top: 0; }
.dk-trusted::after { bottom: 0; }

.dk-trusted-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.dk-marquee-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* Fade edges */
.dk-marquee-wrapper::before,
.dk-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.dk-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.dk-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.dk-marquee-track {
  display: flex;
  align-items: center;
  gap: 100px;
  animation: dk-marquee 30s linear infinite;
  width: max-content;
}

.dk-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes dk-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.dk-brand-item {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0.45;
  transition: opacity var(--transition);
  user-select: none;
}

.dk-brand-item:hover {
  opacity: 0.75;
}

/* ============================================================
   FEATURES — Bento Grid
   ============================================================ */
.dk-features-header {
  text-align: center;
  margin-bottom: 56px;
}

.dk-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dk-bento-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
}

.dk-bento-card.span-2 {
  grid-column: span 2;
}

.dk-bento-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.dk-bento-icon svg {
  width: 26px;
  height: 26px;
}

.dk-bento-icon.violet {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(139,92,246,0.08));
  color: var(--violet);
}

.dk-bento-icon.fuchsia {
  background: linear-gradient(135deg, rgba(217,70,239,0.2), rgba(217,70,239,0.08));
  color: var(--fuchsia);
}

.dk-bento-icon.cyan {
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(6,182,212,0.08));
  color: var(--cyan);
}

.dk-bento-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.dk-bento-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Hybrid engine diagram */
.dk-engine-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 24px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.dk-engine-node {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.dk-engine-cloud {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--violet);
}

.dk-engine-connector {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: visible;
  flex-shrink: 0;
}

.dk-engine-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 2px;
  animation: dk-pulse-line 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(139,92,246,0.5);
}

@keyframes dk-pulse-line {
  0% { left: -20px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% + 20px); opacity: 0; }
}

.dk-engine-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  flex-shrink: 0;
  display: none; /* replaced by connector */
}

.dk-engine-encrypted {
  background: rgba(217, 70, 239, 0.12);
  border: 1px solid rgba(217, 70, 239, 0.25);
  color: var(--fuchsia);
  font-size: 0.7rem;
  padding: 8px 14px;
  z-index: 1;
  position: relative;
}

.dk-engine-onprem {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
}

/* ============================================================
   CODE PREVIEW
   ============================================================ */
.dk-code-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.dk-code-block {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

/* Glow effect behind code window */
.dk-code-block::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.12) 0%, transparent 60%);
  z-index: -1;
  filter: blur(40px);
}

.dk-code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dk-code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.dk-code-dot.red {
  background: #ff5f57;
  box-shadow: 0 0 4px rgba(255,95,87,0.4);
}
.dk-code-dot.yellow {
  background: #febc2e;
  box-shadow: 0 0 4px rgba(254,188,46,0.4);
}
.dk-code-dot.green {
  background: #28c840;
  box-shadow: 0 0 4px rgba(40,200,64,0.4);
}

.dk-code-filename {
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Code tabs */
.dk-code-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.dk-code-tab {
  padding: 6px 14px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}

.dk-code-tab:hover {
  color: var(--text-secondary);
  border-color: rgba(255,255,255,0.15);
}

.dk-code-tab.active {
  color: var(--cyan);
  background: rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.3);
}

.dk-code-panel {
  display: none;
}

.dk-code-panel.active {
  display: block;
}

.dk-code-body {
  padding: 0;
  overflow-x: auto;
}

.dk-code-body .dk-code-table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.dk-code-body .dk-code-table td {
  padding: 0;
  vertical-align: top;
}

.dk-code-body .dk-line-numbers {
  width: 48px;
  min-width: 48px;
  padding: 24px 0;
  text-align: right;
  user-select: none;
  border-right: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.15);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.75;
}

.dk-code-body .dk-line-numbers span {
  display: block;
  padding: 0 12px 0 0;
}

.dk-code-body .dk-code-content {
  padding: 24px;
}

.dk-code-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.75;
  color: var(--text-secondary);
  white-space: pre;
  background: transparent;
  border: none;
}

.dk-code-body .kw { color: #c084fc; }    /* keyword — violet */
.dk-code-body .fn { color: #67e8f9; }    /* function — cyan */
.dk-code-body .st { color: #86efac; }    /* string — green */
.dk-code-body .cm { color: #52525b; }    /* comment — gray */
.dk-code-body .op { color: #d946ef; }    /* operator — fuchsia */
.dk-code-body .nb { color: #fbbf24; }    /* built-in — amber */
.dk-code-body .va { color: #f5f5f5; }    /* variable — white */

/* ============================================================
   LATEST ARTICLES
   ============================================================ */
.dk-articles-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.dk-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dk-article-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dk-article-card .dk-article-tag {
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.dk-article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.dk-article-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.dk-article-card h3 a:hover {
  color: var(--violet);
}

.dk-article-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dk-article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: auto;
}

.dk-article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.dk-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Animated gradient mesh for CTA */
.dk-cta-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dk-cta-mesh .mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.dk-cta-mesh .mesh-orb-1 {
  width: 500px;
  height: 500px;
  top: -30%;
  left: 20%;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
  animation: dk-mesh-float-1 14s ease-in-out infinite;
}

.dk-cta-mesh .mesh-orb-2 {
  width: 400px;
  height: 400px;
  bottom: -20%;
  right: 15%;
  background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
  animation: dk-mesh-float-2 17s ease-in-out infinite;
}

.dk-cta-mesh .mesh-orb-3 {
  width: 350px;
  height: 350px;
  top: 20%;
  right: 30%;
  background: radial-gradient(circle, rgba(217,70,239,0.08) 0%, transparent 70%);
  animation: dk-mesh-float-3 20s ease-in-out infinite;
}

.dk-cta::before {
  content: none;
}

.dk-cta-content {
  position: relative;
  z-index: 1;
}

.dk-cta h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.03em;
}

.dk-cta p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.dk-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.dk-footer {
  background: var(--bg-secondary);
  border-top: none;
  padding: 0 0 40px;
  position: relative;
}

.dk-footer-gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), rgba(217,70,239,0.3), rgba(6,182,212,0.4), transparent);
  margin-bottom: 80px;
}

.dk-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.dk-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dk-footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dk-footer-brand-name img {
  height: 28px;
  width: auto;
}

.dk-footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 280px;
}

.dk-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin: 0 0 24px;
}

.dk-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.dk-footer-col a:hover {
  color: var(--text-primary);
}

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

.dk-footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dk-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dk-footer-socials a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.dk-footer-socials a:hover {
  color: var(--text-primary);
}

.dk-footer-socials svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .dk-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dk-bento-card.span-2 {
    grid-column: span 2;
  }

  .dk-code-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dk-footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .dk-footer-brand {
    grid-column: span 4;
  }

  .dk-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dk-hero-content {
    text-align: center;
  }

  .dk-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .dk-hero-buttons {
    justify-content: center;
  }

  .dk-hero-trust {
    justify-content: center;
  }

  .dk-hero-mockup {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .dk-nav-links,
  .dk-nav-right {
    display: none;
  }

  .dk-hamburger {
    display: flex;
  }

  .dk-hero h1 {
    font-size: 2.5rem;
  }

  .dk-hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .dk-hero-buttons .btn-gradient,
  .dk-hero-buttons .btn-outline {
    justify-content: center;
  }

  .dk-hero-trust {
    flex-direction: column;
    gap: 16px;
  }

  .dk-hero-mockup {
    display: none;
  }

  .dk-bento-grid {
    grid-template-columns: 1fr;
  }

  .dk-bento-card.span-2 {
    grid-column: span 1;
  }

  .dk-articles-grid {
    grid-template-columns: 1fr;
  }

  .dk-articles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dk-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .dk-footer-brand {
    grid-column: span 2;
  }

  .dk-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .dk-engine-diagram {
    flex-direction: column;
    gap: 8px;
  }

  .dk-engine-connector {
    width: 2px;
    height: 40px;
  }

  .dk-engine-connector::after {
    width: 2px;
    height: 12px;
    animation: dk-pulse-line-v 2s ease-in-out infinite;
  }

  @keyframes dk-pulse-line-v {
    0% { top: -12px; left: 0; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { top: calc(100% + 12px); left: 0; opacity: 0; }
  }

  .dk-section {
    padding: 64px 0;
  }

  .dk-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .dk-hero {
    padding: 100px 16px 60px;
  }

  .dk-hero h1 {
    font-size: 2rem;
  }

  .dk-container {
    padding: 0 16px;
  }

  .dk-bento-card {
    padding: 1.5rem;
    min-height: 220px;
  }

  .dk-marquee-track {
    gap: 60px;
  }

  .dk-brand-item {
    font-size: 1.15rem;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes dk-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dk-animate {
  opacity: 0;
  animation: dk-fade-up 0.6s ease-out forwards;
}

.dk-delay-1 { animation-delay: 0.1s; }
.dk-delay-2 { animation-delay: 0.2s; }
.dk-delay-3 { animation-delay: 0.3s; }
.dk-delay-4 { animation-delay: 0.4s; }
.dk-delay-5 { animation-delay: 0.5s; }

/* Grid pattern background for sections */
.dk-grid-bg {
  position: relative;
}

.dk-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
}

/* ============================================================
   AI INTEGRATION SECTION
   ============================================================ */
.dk-ai-section {
  position: relative;
}

.dk-ai-header {
  max-width: 720px;
  margin-bottom: 64px;
}

.dk-ai-workflow-diagram {
  padding: 48px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.dk-ai-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.dk-ai-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.dk-ai-flow-dual {
  gap: 80px;
}

.dk-ai-node {
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mono);
  white-space: nowrap;
  border: 1px solid;
  transition: all var(--transition);
}

.dk-ai-node:hover {
  transform: translateY(-2px);
}

.dk-ai-node-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
}

.dk-ai-node-label {
  letter-spacing: 0.01em;
}

/* Node types */
.dk-ai-node-netmiko {
  background: rgba(139,92,246,0.08);
  border-color: rgba(139,92,246,0.3);
  color: #c4b5fd;
}

.dk-ai-node-netmiko .dk-ai-node-icon {
  color: var(--violet);
}

.dk-ai-node-ai {
  background: rgba(251,191,36,0.08);
  border-color: rgba(251,191,36,0.35);
  color: #fcd34d;
  position: relative;
}

.dk-ai-node-ai .dk-ai-node-icon {
  color: #fbbf24;
}

/* AI glow effect */
.dk-ai-glow {
  animation: dk-ai-pulse 3s ease-in-out infinite;
}

@keyframes dk-ai-pulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(251,191,36,0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(251,191,36,0.5);
  }
}

.dk-ai-node-conditional {
  background: rgba(217,70,239,0.08);
  border-color: rgba(217,70,239,0.3);
  color: #f0abfc;
}

.dk-ai-node-conditional .dk-ai-node-icon {
  color: var(--fuchsia);
}

.dk-ai-node-execute {
  background: rgba(6,182,212,0.1);
  border-color: rgba(6,182,212,0.35);
  color: #67e8f9;
}

.dk-ai-node-execute .dk-ai-node-icon {
  color: var(--cyan);
}

.dk-ai-node-rollback {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.3);
  color: #fca5a5;
}

.dk-ai-node-rollback .dk-ai-node-icon {
  color: #ef4444;
}

/* Connectors */
.dk-ai-connector-v {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, rgba(139,92,246,0.4), rgba(251,191,36,0.4));
  margin: 8px 0;
}

.dk-ai-connector-v-sm {
  width: 2px;
  height: 28px;
  background: rgba(255,255,255,0.15);
}

.dk-ai-connector-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8px 0;
}

.dk-ai-split-line {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

.dk-ai-split-branches {
  display: flex;
  gap: 140px;
  position: relative;
}

.dk-ai-split-branches::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.15);
}

.dk-ai-split-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dk-ai-split-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 4px;
}

.dk-ai-split-pass .dk-ai-split-label {
  color: #86efac;
  background: rgba(134,239,172,0.1);
}

.dk-ai-split-fail .dk-ai-split-label {
  color: #fca5a5;
  background: rgba(239,68,68,0.1);
}

/* AI capabilities */
.dk-ai-capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.dk-ai-capability {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dk-ai-capability-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(251,191,36,0.1);
  border: 1px solid rgba(251,191,36,0.25);
  color: #fbbf24;
  flex-shrink: 0;
}

.dk-ai-capability-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dk-ai-capability-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dk-ai-capability-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Responsive AI section */
@media (max-width: 1024px) {
  .dk-ai-capabilities {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .dk-ai-split-branches {
    gap: 100px;
  }
}

@media (max-width: 768px) {
  .dk-ai-workflow-diagram {
    padding: 32px 24px;
  }
  
  .dk-ai-flow-dual {
    flex-direction: column;
    gap: 16px;
  }
  
  .dk-ai-split-branches {
    gap: 20px;
    flex-direction: column;
  }
  
  .dk-ai-split-branches::before {
    width: 2px;
    height: 100%;
    left: 50%;
  }
  
  .dk-ai-node {
    padding: 12px 18px;
    font-size: 0.8rem;
  }
}

/* ============================================================
   THREE OPTIONS - CODE PREVIEW SECTION
   ============================================================ */

/* ---------- Common Option Styles ---------- */
.dk-option-section {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.dk-option-header {
  max-width: 800px;
  margin: 0 auto 64px;
}

.dk-option-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(139, 92, 246, 0.12);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
  margin-bottom: 24px;
}

/* ---------- OPTION A: Before vs After ---------- */
.dk-before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.dk-before-panel,
.dk-after-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dk-old-way-label {
  text-align: center;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.strikethrough-text {
  color: #fca5a5;
  text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.5);
  text-decoration-thickness: 2px;
}

.dk-code-old {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0.5;
  filter: grayscale(0.3);
  transition: all var(--transition);
}

.dk-code-old:hover {
  opacity: 0.7;
}

.dk-old-code {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  overflow-x: auto;
}

.dk-new-way-label {
  text-align: center;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- Node Mockup (used in A and B) ---------- */
.dk-node-mockup {
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.dk-node-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dk-node-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.dk-node-icon.netmiko {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: var(--violet);
}

.dk-node-title {
  flex: 1;
}

.dk-node-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dk-node-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------- Property Pane ---------- */
.dk-property-pane {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dk-property-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dk-property-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.dk-property-input,
.dk-property-textarea {
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  transition: all var(--transition);
  outline: none;
}

.dk-property-input:focus,
.dk-property-textarea:focus {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255,255,255,0.07);
}

.dk-property-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.dk-property-select {
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition);
}

.dk-property-select:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(255,255,255,0.07);
}

.dk-property-select svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dk-property-help {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.dk-property-run-btn,
.dk-property-execute-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.dk-property-run-btn:hover,
.dk-property-execute-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
}

.dk-property-run-btn svg,
.dk-property-execute-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- OPTION B: Visual Node Showcase ---------- */
.dk-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.dk-showcase-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dk-showcase-content h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.dk-showcase-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.dk-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

.dk-feature-list svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.dk-showcase-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.dk-showcase-footnote svg {
  color: var(--violet);
  flex-shrink: 0;
}

.dk-showcase-visual {
  position: relative;
}

.dk-node-mockup-large {
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.dk-node-header-large {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dk-node-icon-large {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.dk-node-icon-large.netmiko {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--violet);
}

.dk-node-title-large {
  flex: 1;
}

.dk-node-name-large {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dk-node-type-large {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.dk-node-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(134, 239, 172, 0.08);
  border: 1px solid rgba(134, 239, 172, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #86efac;
}

.dk-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86efac;
  animation: dk-pulse 2s ease-in-out infinite;
}

.dk-property-pane-large {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dk-property-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dk-command-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.dk-command-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.dk-command-item svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.dk-add-command-btn {
  padding: 8px 14px;
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 8px;
}

.dk-add-command-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.5);
}

.dk-toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dk-toggle-track {
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: all var(--transition);
}

.dk-toggle-track.active {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.5);
}

.dk-toggle-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dk-toggle-track.active .dk-toggle-thumb {
  left: 22px;
  background: var(--violet);
}

.dk-toggle-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---------- OPTION C: Workflow Zoom-in ---------- */
.dk-workflow-zoom {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.dk-mini-workflow {
  padding: 28px 32px;
  background: rgba(255,255,255,0.03);
  position: relative;
  overflow: hidden;
}

.dk-workflow-label {
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.dk-workflow-nodes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px 0;
}

.dk-mini-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid;
  transition: all var(--transition);
  cursor: pointer;
}

.dk-mini-node:hover {
  transform: translateY(-2px);
}

.dk-mini-node.selected {
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.4);
}

.dk-mini-node-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dk-mini-node.netmiko {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  color: #c4b5fd;
}

.dk-mini-node.textfsm {
  background: rgba(217, 70, 239, 0.12);
  border-color: rgba(217, 70, 239, 0.3);
  color: #f0abfc;
}

.dk-mini-node.ai {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.dk-mini-node.notify {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67e8f9;
}

.dk-mini-connector {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.15);
  position: relative;
  margin: 0 8px;
}

.dk-mini-connector::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid rgba(255,255,255,0.15);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.dk-workflow-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.dk-workflow-hint svg {
  color: var(--violet);
}

/* Expanded Property Pane */
.dk-expanded-pane {
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.dk-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dk-pane-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dk-pane-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.dk-pane-icon.netmiko {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--violet);
}

.dk-pane-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dk-pane-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.dk-pane-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.dk-pane-action-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.3);
}

.dk-pane-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dk-pane-tab {
  padding: 12px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.dk-pane-tab:hover {
  color: var(--text-secondary);
}

.dk-pane-tab.active {
  color: var(--violet);
  border-bottom-color: var(--violet);
}

.dk-pane-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dk-pane-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dk-pane-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.dk-command-list-large {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dk-command-item-large {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 10px;
  transition: all var(--transition);
}

.dk-command-item-large:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(139, 92, 246, 0.2);
}

.dk-command-handle {
  color: var(--text-muted);
  font-size: 0.7rem;
  cursor: grab;
  user-select: none;
}

.dk-command-input {
  flex: 1;
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  outline: none;
}

.dk-command-delete {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 4px;
  color: #fca5a5;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.dk-command-delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* ---------- Responsive for Three Options ---------- */
@media (max-width: 1024px) {
  .dk-before-after-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dk-showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dk-property-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dk-option-badge {
    font-size: 0.85rem;
    padding: 8px 20px;
  }

  .dk-workflow-nodes {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dk-mini-node {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .dk-mini-connector {
    display: none;
  }

  .dk-pane-content {
    padding: 20px;
  }

  .dk-showcase-content h3 {
    font-size: 1.5rem;
  }

  .dk-feature-list {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .dk-property-pane,
  .dk-property-pane-large {
    padding: 20px;
  }

  .dk-node-header,
  .dk-node-header-large {
    padding: 14px 16px;
  }

  .dk-pane-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dk-pane-tabs {
    overflow-x: auto;
  }
}

/* ============================================================
   ACCURATE PROPERTY PANEL (matches real app)
   ============================================================ */
.dk-prop-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dk-prop-panel-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
}

.dk-prop-panel-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dk-prop-panel-sub {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.dk-required {
  color: #f87171;
  font-weight: 400;
}

.dk-property-input-sm {
  max-width: 120px;
}

/* Checkbox row */
.dk-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dk-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(139,92,246,0.2);
  border: 1px solid rgba(139,92,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c4b5fd;
  flex-shrink: 0;
}

.dk-checkbox-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Accordion-style collapsible sections */
.dk-prop-accordion {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 12px;
}

.dk-prop-accordion-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: default;
  transition: background 0.2s ease;
}

.dk-prop-accordion-item:hover {
  background: rgba(255,255,255,0.03);
}

.dk-prop-accordion-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.dk-prop-accordion-meta {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
}

/* Autosave indicator */
.dk-prop-autosave {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  padding: 12px 0 4px;
}

/* ============================================================
   DARK THEME - CONTENT PAGES (Articles, Posts, Pages)
   ============================================================ */

/* ---------- Layout--Dark Base ---------- */
.layout--dark,
.layout--dark body {
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Noise overlay on all dark layouts */
.layout--dark::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.layout--dark *,
.layout--dark *::before,
.layout--dark *::after {
  box-sizing: border-box;
}

/* Hide minimal-mistakes elements */
.layout--dark .masthead,
.layout--dark .page__footer,
.layout--dark .sidebar,
.layout--dark .loader-wrapper,
.layout--dark .splash-wrapper,
.layout--dark .search-content,
.layout--dark #initial-content > .page {
  display: none !important;
}

/* ---------- Page Container ---------- */
.dk-page-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.dk-page-wide {
  max-width: 1200px;
}

/* ---------- Page Header ---------- */
.dk-page-header {
  margin-bottom: 60px;
  text-align: center;
}

.dk-page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 16px;
  background: var(--gradient-main);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dk-page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Page Content ---------- */
.dk-page-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.dk-page-content h1,
.dk-page-content h2,
.dk-page-content h3,
.dk-page-content h4,
.dk-page-content h5,
.dk-page-content h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 2em 0 0.8em;
  line-height: 1.3;
}

.dk-page-content h1 { font-size: 2.2rem; }
.dk-page-content h2 { font-size: 1.8rem; }
.dk-page-content h3 { font-size: 1.4rem; }
.dk-page-content h4 { font-size: 1.2rem; }
.dk-page-content h5 { font-size: 1.1rem; }
.dk-page-content h6 { font-size: 1rem; }

.dk-page-content p {
  margin: 0 0 1.5em;
}

.dk-page-content a {
  color: var(--violet);
  text-decoration: none;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.dk-page-content a:hover {
  color: var(--fuchsia);
  border-bottom-color: var(--fuchsia);
}

.dk-page-content ul,
.dk-page-content ol {
  margin: 1.5em 0;
  padding-left: 1.8em;
}

.dk-page-content li {
  margin: 0.5em 0;
  color: var(--text-secondary);
}

.dk-page-content ul li::marker {
  color: var(--violet);
}

.dk-page-content ol li::marker {
  color: var(--violet);
  font-weight: 600;
}

.dk-page-content code {
  background: rgba(139,92,246,0.12);
  color: #c4b5fd;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  border: 1px solid rgba(139,92,246,0.2);
}

.dk-page-content pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin: 2em 0;
}

.dk-page-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.dk-page-content blockquote {
  border-left: 3px solid var(--violet);
  padding-left: 20px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-secondary);
}

.dk-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2em 0;
}

.dk-page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dk-page-content th,
.dk-page-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
}

.dk-page-content th {
  background: rgba(139,92,246,0.1);
  color: var(--text-primary);
  font-weight: 600;
}

.dk-page-content tr:last-child td {
  border-bottom: none;
}

.dk-page-content tr:hover {
  background: var(--bg-card-hover);
}

/* ---------- Article Header ---------- */
.dk-article-header {
  padding: 100px 0 60px;
  position: relative;
}

.dk-article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--violet);
  margin-bottom: 20px;
}

.dk-article-category svg {
  width: 14px;
  height: 14px;
}

.dk-article-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 30px;
  line-height: 1.2;
}

.dk-article-meta-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.dk-article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dk-article-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-card);
}

.dk-article-author span {
  font-weight: 600;
  color: var(--text-primary);
}

.dk-article-meta-items {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dk-article-meta-items span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dk-article-meta-items svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* Article Teaser Image */
.dk-article-teaser {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dk-article-teaser img {
  width: 100%;
  height: auto;
  display: block;
}

.dk-article-teaser-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* ---------- Article Body ---------- */
.dk-article-body {
  padding: 40px 0 80px;
}

.dk-article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}

/* Article Content */
.dk-article-content {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.dk-article-content h1,
.dk-article-content h2,
.dk-article-content h3,
.dk-article-content h4,
.dk-article-content h5,
.dk-article-content h6 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 2.5em 0 1em;
  line-height: 1.3;
  scroll-margin-top: 80px;
}

.dk-article-content h1 { font-size: 2.2rem; }
.dk-article-content h2 { font-size: 1.8rem; }
.dk-article-content h3 { font-size: 1.5rem; }
.dk-article-content h4 { font-size: 1.3rem; }
.dk-article-content h5 { font-size: 1.15rem; }
.dk-article-content h6 { font-size: 1rem; }

.dk-article-content p {
  margin: 0 0 1.5em;
}

.dk-article-content a {
  color: var(--violet);
  text-decoration: none;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.dk-article-content a:hover {
  color: var(--fuchsia);
  border-bottom-color: var(--fuchsia);
}

.dk-article-content ul,
.dk-article-content ol {
  margin: 1.5em 0;
  padding-left: 1.8em;
}

.dk-article-content li {
  margin: 0.6em 0;
  color: var(--text-secondary);
}

.dk-article-content ul li::marker {
  color: var(--violet);
}

.dk-article-content ol li::marker {
  color: var(--violet);
  font-weight: 600;
}

.dk-article-content code {
  background: rgba(139,92,246,0.12);
  color: #c4b5fd;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  border: 1px solid rgba(139,92,246,0.2);
}

.dk-article-content pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
  line-height: 1.5;
}

.dk-article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.dk-article-content blockquote {
  border-left: 3px solid var(--violet);
  padding-left: 24px;
  margin: 2.5em 0;
  font-style: italic;
  color: var(--text-muted);
}

.dk-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2.5em 0;
  border: 1px solid var(--border-card);
}

.dk-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5em 0;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dk-article-content th,
.dk-article-content td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.95rem;
}

.dk-article-content th {
  background: rgba(139,92,246,0.1);
  color: var(--text-primary);
  font-weight: 600;
}

.dk-article-content tr:last-child td {
  border-bottom: none;
}

.dk-article-content tr:hover {
  background: var(--bg-card-hover);
}

/* ---------- Article TOC (Table of Contents) ---------- */
.dk-article-toc {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  grid-column: 1;
  display: none;
}

.dk-toc-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
}

.dk-toc-wrapper h4 {
  margin: 0 0 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.dk-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dk-toc-item {
  margin: 0;
}

.dk-toc-item a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.dk-toc-item a:hover {
  color: var(--violet);
  border-left-color: var(--violet);
}

.dk-toc-h3 {
  padding-left: 20px;
}

.dk-toc-h4 {
  padding-left: 28px;
  font-size: 0.85rem;
}

/* Enable TOC sidebar on larger screens */
@media (min-width: 1100px) {
  .dk-article-layout {
    grid-template-columns: 240px 1fr;
  }
  
  .dk-article-toc {
    display: block;
  }
}

/* ---------- Article Footer ---------- */
.dk-article-footer {
  border-top: 1px solid var(--border-card);
  padding: 60px 0 40px;
}

.dk-article-tags {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
}

.dk-article-tags svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  margin-top: 4px;
  flex-shrink: 0;
}

.dk-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dk-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c4b5fd;
  text-decoration: none;
  transition: all var(--transition);
}

.dk-tag:hover {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.4);
  transform: translateY(-2px);
}

/* Social Share */
.dk-article-share {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dk-article-share > span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dk-share-buttons {
  display: flex;
  gap: 10px;
}

.dk-share-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

.dk-share-btn svg {
  width: 18px;
  height: 18px;
}

.dk-share-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--violet);
  color: var(--violet);
  transform: translateY(-2px);
}

/* ---------- Related Posts ---------- */
.dk-related-posts {
  padding: 80px 0;
  background: linear-gradient(to bottom, transparent, rgba(139,92,246,0.03));
}

.dk-related-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 60px;
}

/* ---------- Posts Page ---------- */
.dk-posts-page {
  padding: 100px 0 80px;
}

.dk-posts-header {
  text-align: center;
  margin-bottom: 80px;
}

.dk-posts-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 20px auto 0;
  line-height: 1.6;
}

.dk-year-header {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 60px 0 30px;
  grid-column: 1 / -1;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-card);
}

/* ---------- Article Cards (for posts grid) ---------- */
.dk-article-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  background: var(--bg-tertiary);
}

.dk-article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dk-article-card:hover .dk-article-card-image img {
  transform: scale(1.05);
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
  .dk-page-container {
    padding: 60px 20px 80px;
  }

  .dk-article-header {
    padding: 80px 0 40px;
  }

  .dk-article-title {
    font-size: 2rem;
  }

  .dk-article-content {
    font-size: 1rem;
  }

  .dk-article-meta-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dk-posts-page {
    padding: 80px 0 60px;
  }

  .dk-posts-header {
    margin-bottom: 60px;
  }

  .dk-related-posts {
    padding: 60px 0;
  }

  .dk-related-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
}

/* Ensure animations work */
.dk-observe {
  opacity: 0;
  animation: dk-fade-in-up 0.6s ease forwards;
}

@keyframes dk-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add stagger delays */
.dk-observe:nth-child(1) { animation-delay: 0.1s; }
.dk-observe:nth-child(2) { animation-delay: 0.2s; }
.dk-observe:nth-child(3) { animation-delay: 0.3s; }
.dk-observe:nth-child(4) { animation-delay: 0.4s; }
.dk-observe:nth-child(5) { animation-delay: 0.5s; }
.dk-observe:nth-child(6) { animation-delay: 0.6s; }
